diff options
Diffstat (limited to 'frontend-old/node_modules/@firebase/remote-config-compat/dist/esm')
8 files changed, 252 insertions, 0 deletions
diff --git a/frontend-old/node_modules/@firebase/remote-config-compat/dist/esm/index.esm.js b/frontend-old/node_modules/@firebase/remote-config-compat/dist/esm/index.esm.js new file mode 100644 index 0000000..767b827 --- /dev/null +++ b/frontend-old/node_modules/@firebase/remote-config-compat/dist/esm/index.esm.js @@ -0,0 +1,117 @@ +import firebase from '@firebase/app-compat'; +import { Component } from '@firebase/component'; +import { activate, ensureInitialized, fetchConfig, fetchAndActivate, getAll, getBoolean, getNumber, getString, getValue, setLogLevel, isSupported } from '@firebase/remote-config'; + +/** + * @license + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +class RemoteConfigCompatImpl { + constructor(app, _delegate) { + this.app = app; + this._delegate = _delegate; + } + get defaultConfig() { + return this._delegate.defaultConfig; + } + set defaultConfig(value) { + this._delegate.defaultConfig = value; + } + get fetchTimeMillis() { + return this._delegate.fetchTimeMillis; + } + get lastFetchStatus() { + return this._delegate.lastFetchStatus; + } + get settings() { + return this._delegate.settings; + } + set settings(value) { + this._delegate.settings = value; + } + activate() { + return activate(this._delegate); + } + ensureInitialized() { + return ensureInitialized(this._delegate); + } + /** + * @throws a {@link ErrorCode.FETCH_CLIENT_TIMEOUT} if the request takes longer than + * {@link Settings.fetchTimeoutInSeconds} or + * {@link DEFAULT_FETCH_TIMEOUT_SECONDS}. + */ + fetch() { + return fetchConfig(this._delegate); + } + fetchAndActivate() { + return fetchAndActivate(this._delegate); + } + getAll() { + return getAll(this._delegate); + } + getBoolean(key) { + return getBoolean(this._delegate, key); + } + getNumber(key) { + return getNumber(this._delegate, key); + } + getString(key) { + return getString(this._delegate, key); + } + getValue(key) { + return getValue(this._delegate, key); + } + // Based on packages/firestore/src/util/log.ts but not static because we need per-instance levels + // to differentiate 2p and 3p use-cases. + setLogLevel(logLevel) { + setLogLevel(this._delegate, logLevel); + } +} + +const name = "@firebase/remote-config-compat"; +const version = "0.2.20"; + +/** + * @license + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +function registerRemoteConfigCompat(firebaseInstance) { + firebaseInstance.INTERNAL.registerComponent(new Component('remoteConfig-compat', remoteConfigFactory, "PUBLIC" /* ComponentType.PUBLIC */) + .setMultipleInstances(true) + .setServiceProps({ isSupported })); + firebaseInstance.registerVersion(name, version); +} +function remoteConfigFactory(container, { instanceIdentifier: namespace }) { + const app = container.getProvider('app-compat').getImmediate(); + // The following call will always succeed because rc `import {...} from '@firebase/remote-config'` + const remoteConfig = container.getProvider('remote-config').getImmediate({ + identifier: namespace + }); + return new RemoteConfigCompatImpl(app, remoteConfig); +} +registerRemoteConfigCompat(firebase); +//# sourceMappingURL=index.esm.js.map diff --git a/frontend-old/node_modules/@firebase/remote-config-compat/dist/esm/index.esm.js.map b/frontend-old/node_modules/@firebase/remote-config-compat/dist/esm/index.esm.js.map new file mode 100644 index 0000000..3d2f0a1 --- /dev/null +++ b/frontend-old/node_modules/@firebase/remote-config-compat/dist/esm/index.esm.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.esm.js","sources":["../../src/remoteConfig.ts","../../src/index.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { FirebaseApp, _FirebaseService } from '@firebase/app-compat';\nimport {\n Value as ValueCompat,\n FetchStatus as FetchSTatusCompat,\n Settings as SettingsCompat,\n LogLevel as RemoteConfigLogLevel,\n RemoteConfig as RemoteConfigCompat\n} from '@firebase/remote-config-types';\nimport {\n RemoteConfig,\n setLogLevel,\n activate,\n ensureInitialized,\n fetchAndActivate,\n fetchConfig,\n getAll,\n getBoolean,\n getNumber,\n getString,\n getValue,\n isSupported\n} from '@firebase/remote-config';\n\nexport { isSupported };\n\nexport class RemoteConfigCompatImpl\n implements RemoteConfigCompat, _FirebaseService\n{\n constructor(public app: FirebaseApp, readonly _delegate: RemoteConfig) {}\n\n get defaultConfig(): { [key: string]: string | number | boolean } {\n return this._delegate.defaultConfig;\n }\n\n set defaultConfig(value: { [key: string]: string | number | boolean }) {\n this._delegate.defaultConfig = value;\n }\n\n get fetchTimeMillis(): number {\n return this._delegate.fetchTimeMillis;\n }\n\n get lastFetchStatus(): FetchSTatusCompat {\n return this._delegate.lastFetchStatus;\n }\n\n get settings(): SettingsCompat {\n return this._delegate.settings;\n }\n\n set settings(value: SettingsCompat) {\n this._delegate.settings = value;\n }\n\n activate(): Promise<boolean> {\n return activate(this._delegate);\n }\n\n ensureInitialized(): Promise<void> {\n return ensureInitialized(this._delegate);\n }\n\n /**\n * @throws a {@link ErrorCode.FETCH_CLIENT_TIMEOUT} if the request takes longer than\n * {@link Settings.fetchTimeoutInSeconds} or\n * {@link DEFAULT_FETCH_TIMEOUT_SECONDS}.\n */\n fetch(): Promise<void> {\n return fetchConfig(this._delegate);\n }\n\n fetchAndActivate(): Promise<boolean> {\n return fetchAndActivate(this._delegate);\n }\n\n getAll(): { [key: string]: ValueCompat } {\n return getAll(this._delegate);\n }\n\n getBoolean(key: string): boolean {\n return getBoolean(this._delegate, key);\n }\n\n getNumber(key: string): number {\n return getNumber(this._delegate, key);\n }\n\n getString(key: string): string {\n return getString(this._delegate, key);\n }\n\n getValue(key: string): ValueCompat {\n return getValue(this._delegate, key);\n }\n\n // Based on packages/firestore/src/util/log.ts but not static because we need per-instance levels\n // to differentiate 2p and 3p use-cases.\n setLogLevel(logLevel: RemoteConfigLogLevel): void {\n setLogLevel(this._delegate, logLevel);\n }\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport firebase, { _FirebaseNamespace } from '@firebase/app-compat';\nimport {\n Component,\n ComponentContainer,\n ComponentType,\n InstanceFactoryOptions\n} from '@firebase/component';\nimport { RemoteConfigCompatImpl, isSupported } from './remoteConfig';\nimport { name as packageName, version } from '../package.json';\nimport { RemoteConfig as RemoteConfigCompat } from '@firebase/remote-config-types';\n\nfunction registerRemoteConfigCompat(\n firebaseInstance: _FirebaseNamespace\n): void {\n firebaseInstance.INTERNAL.registerComponent(\n new Component(\n 'remoteConfig-compat',\n remoteConfigFactory,\n ComponentType.PUBLIC\n )\n .setMultipleInstances(true)\n .setServiceProps({ isSupported })\n );\n\n firebaseInstance.registerVersion(packageName, version);\n}\n\nfunction remoteConfigFactory(\n container: ComponentContainer,\n { instanceIdentifier: namespace }: InstanceFactoryOptions\n): RemoteConfigCompatImpl {\n const app = container.getProvider('app-compat').getImmediate();\n // The following call will always succeed because rc `import {...} from '@firebase/remote-config'`\n const remoteConfig = container.getProvider('remote-config').getImmediate({\n identifier: namespace\n });\n\n return new RemoteConfigCompatImpl(app, remoteConfig);\n}\n\nregisterRemoteConfigCompat(firebase as _FirebaseNamespace);\n\ndeclare module '@firebase/app-compat' {\n interface FirebaseNamespace {\n remoteConfig: {\n (app?: FirebaseApp): RemoteConfigCompat;\n };\n }\n interface FirebaseApp {\n remoteConfig(): RemoteConfigCompat;\n }\n}\n"],"names":["packageName"],"mappings":";;;;AAAA;;;;;;;;;;;;;;;AAeG;MA2BU,sBAAsB,CAAA;IAGjC,WAAmB,CAAA,GAAgB,EAAW,SAAuB,EAAA;QAAlD,IAAG,CAAA,GAAA,GAAH,GAAG,CAAa;QAAW,IAAS,CAAA,SAAA,GAAT,SAAS,CAAc;KAAI;AAEzE,IAAA,IAAI,aAAa,GAAA;AACf,QAAA,OAAO,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC;KACrC;IAED,IAAI,aAAa,CAAC,KAAmD,EAAA;AACnE,QAAA,IAAI,CAAC,SAAS,CAAC,aAAa,GAAG,KAAK,CAAC;KACtC;AAED,IAAA,IAAI,eAAe,GAAA;AACjB,QAAA,OAAO,IAAI,CAAC,SAAS,CAAC,eAAe,CAAC;KACvC;AAED,IAAA,IAAI,eAAe,GAAA;AACjB,QAAA,OAAO,IAAI,CAAC,SAAS,CAAC,eAAe,CAAC;KACvC;AAED,IAAA,IAAI,QAAQ,GAAA;AACV,QAAA,OAAO,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC;KAChC;IAED,IAAI,QAAQ,CAAC,KAAqB,EAAA;AAChC,QAAA,IAAI,CAAC,SAAS,CAAC,QAAQ,GAAG,KAAK,CAAC;KACjC;IAED,QAAQ,GAAA;AACN,QAAA,OAAO,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;KACjC;IAED,iBAAiB,GAAA;AACf,QAAA,OAAO,iBAAiB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;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kB,EAAE,SAAS,EAA0B,EAAA;IAEzD,MAAM,GAAG,GAAG,SAAS,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC,YAAY,EAAE,CAAC;;IAE/D,MAAM,YAAY,GAAG,SAAS,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC,YAAY,CAAC;AACvE,QAAA,UAAU,EAAE,SAAS;AACtB,KAAA,CAAC,CAAC;AAEH,IAAA,OAAO,IAAI,sBAAsB,CAAC,GAAG,EAAE,YAAY,CAAC,CAAC;AACvD,CAAC;AAED,0BAA0B,CAAC,QAA8B,CAAC"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@firebase/remote-config-compat/dist/esm/package.json b/frontend-old/node_modules/@firebase/remote-config-compat/dist/esm/package.json new file mode 100644 index 0000000..7c34deb --- /dev/null +++ b/frontend-old/node_modules/@firebase/remote-config-compat/dist/esm/package.json @@ -0,0 +1 @@ +{"type":"module"}
\ No newline at end of file diff --git a/frontend-old/node_modules/@firebase/remote-config-compat/dist/esm/src/index.d.ts b/frontend-old/node_modules/@firebase/remote-config-compat/dist/esm/src/index.d.ts new file mode 100644 index 0000000..5cdfd61 --- /dev/null +++ b/frontend-old/node_modules/@firebase/remote-config-compat/dist/esm/src/index.d.ts @@ -0,0 +1,27 @@ +/** + * @license + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { RemoteConfig as RemoteConfigCompat } from '@firebase/remote-config-types'; +declare module '@firebase/app-compat' { + interface FirebaseNamespace { + remoteConfig: { + (app?: FirebaseApp): RemoteConfigCompat; + }; + } + interface FirebaseApp { + remoteConfig(): RemoteConfigCompat; + } +} diff --git a/frontend-old/node_modules/@firebase/remote-config-compat/dist/esm/src/remoteConfig.d.ts b/frontend-old/node_modules/@firebase/remote-config-compat/dist/esm/src/remoteConfig.d.ts new file mode 100644 index 0000000..7fcd699 --- /dev/null +++ b/frontend-old/node_modules/@firebase/remote-config-compat/dist/esm/src/remoteConfig.d.ts @@ -0,0 +1,52 @@ +/** + * @license + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { FirebaseApp, _FirebaseService } from '@firebase/app-compat'; +import { Value as ValueCompat, FetchStatus as FetchSTatusCompat, Settings as SettingsCompat, LogLevel as RemoteConfigLogLevel, RemoteConfig as RemoteConfigCompat } from '@firebase/remote-config-types'; +import { RemoteConfig, isSupported } from '@firebase/remote-config'; +export { isSupported }; +export declare class RemoteConfigCompatImpl implements RemoteConfigCompat, _FirebaseService { + app: FirebaseApp; + readonly _delegate: RemoteConfig; + constructor(app: FirebaseApp, _delegate: RemoteConfig); + get defaultConfig(): { + [key: string]: string | number | boolean; + }; + set defaultConfig(value: { + [key: string]: string | number | boolean; + }); + get fetchTimeMillis(): number; + get lastFetchStatus(): FetchSTatusCompat; + get settings(): SettingsCompat; + set settings(value: SettingsCompat); + activate(): Promise<boolean>; + ensureInitialized(): Promise<void>; + /** + * @throws a {@link ErrorCode.FETCH_CLIENT_TIMEOUT} if the request takes longer than + * {@link Settings.fetchTimeoutInSeconds} or + * {@link DEFAULT_FETCH_TIMEOUT_SECONDS}. + */ + fetch(): Promise<void>; + fetchAndActivate(): Promise<boolean>; + getAll(): { + [key: string]: ValueCompat; + }; + getBoolean(key: string): boolean; + getNumber(key: string): number; + getString(key: string): string; + getValue(key: string): ValueCompat; + setLogLevel(logLevel: RemoteConfigLogLevel): void; +} diff --git a/frontend-old/node_modules/@firebase/remote-config-compat/dist/esm/src/remoteConfig.test.d.ts b/frontend-old/node_modules/@firebase/remote-config-compat/dist/esm/src/remoteConfig.test.d.ts new file mode 100644 index 0000000..68eefa5 --- /dev/null +++ b/frontend-old/node_modules/@firebase/remote-config-compat/dist/esm/src/remoteConfig.test.d.ts @@ -0,0 +1,17 @@ +/** + * @license + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import '../test/setup'; diff --git a/frontend-old/node_modules/@firebase/remote-config-compat/dist/esm/test/setup.d.ts b/frontend-old/node_modules/@firebase/remote-config-compat/dist/esm/test/setup.d.ts new file mode 100644 index 0000000..1c93d90 --- /dev/null +++ b/frontend-old/node_modules/@firebase/remote-config-compat/dist/esm/test/setup.d.ts @@ -0,0 +1,17 @@ +/** + * @license + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +export {}; diff --git a/frontend-old/node_modules/@firebase/remote-config-compat/dist/esm/test/util.d.ts b/frontend-old/node_modules/@firebase/remote-config-compat/dist/esm/test/util.d.ts new file mode 100644 index 0000000..8767702 --- /dev/null +++ b/frontend-old/node_modules/@firebase/remote-config-compat/dist/esm/test/util.d.ts @@ -0,0 +1,20 @@ +/** + * @license + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { FirebaseApp } from '@firebase/app-compat'; +import { RemoteConfig } from '@firebase/remote-config'; +export declare function getFakeApp(): FirebaseApp; +export declare function getFakeModularRemoteConfig(): RemoteConfig; |
