New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@firebase/remote-config-compat

Package Overview
Dependencies
Maintainers
4
Versions
1145
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@firebase/remote-config-compat - npm Package Compare versions

Comparing version 0.2.10-canary.a97ac88db to 0.2.10-canary.e577a408c

2

dist/esm/index.esm2017.js

@@ -84,3 +84,3 @@ import firebase from '@firebase/app-compat';

const name = "@firebase/remote-config-compat";
const version = "0.2.10-canary.a97ac88db";
const version = "0.2.10-canary.e577a408c";

@@ -87,0 +87,0 @@ /**

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

@@ -90,3 +90,3 @@ 'use strict';

const name = "@firebase/remote-config-compat";
const version = "0.2.10-canary.a97ac88db";
const version = "0.2.10-canary.e577a408c";

@@ -93,0 +93,0 @@ /**

@@ -32,13 +32,111 @@ /**

declare module "@firebase/remote-config" {
function activate(remoteConfig: RemoteConfigCompat): Promise<boolean>;
function ensureInitialized(remoteConfig: RemoteConfigCompat): Promise<void>;
function fetchAndActivate(remoteConfig: RemoteConfigCompat): Promise<boolean>;
function fetchConfig(remoteConfig: RemoteConfigCompat): Promise<void>;
function getAll(remoteConfig: RemoteConfigCompat): Record<string, Value>;
function getBoolean(remoteConfig: RemoteConfigCompat, key: string): boolean;
function getNumber(remoteConfig: RemoteConfigCompat, key: string): number;
function getRemoteConfig(app?: FirebaseAppCompat): RemoteConfig;
function getString(remoteConfig: RemoteConfigCompat, key: string): string;
function getValue(remoteConfig: RemoteConfigCompat, key: string): Value;
function setLogLevel(remoteConfig: RemoteConfigCompat, logLevel: LogLevel): void;
/**
* Makes the last fetched config available to the getters.
* @param remoteConfig - The {@link RemoteConfig} instance.
* @returns A `Promise` which resolves to true if the current call activated the fetched configs.
* If the fetched configs were already activated, the `Promise` will resolve to false.
*
* @public
*/
export declare function activate(remoteConfig: RemoteConfigCompat): Promise<boolean>;
/**
* Ensures the last activated config are available to the getters.
* @param remoteConfig - The {@link RemoteConfig} instance.
*
* @returns A `Promise` that resolves when the last activated config is available to the getters.
* @public
*/
export declare function ensureInitialized(remoteConfig: RemoteConfigCompat): Promise<void>;
/**
*
* Performs fetch and activate operations, as a convenience.
*
* @param remoteConfig - The {@link RemoteConfig} instance.
*
* @returns A `Promise` which resolves to true if the current call activated the fetched configs.
* If the fetched configs were already activated, the `Promise` will resolve to false.
*
* @public
*/
export declare function fetchAndActivate(remoteConfig: RemoteConfigCompat): Promise<boolean>;
/**
* Fetches and caches configuration from the Remote Config service.
* @param remoteConfig - The {@link RemoteConfig} instance.
* @public
*/
export declare function fetchConfig(remoteConfig: RemoteConfigCompat): Promise<void>;
/**
* Gets all config.
*
* @param remoteConfig - The {@link RemoteConfig} instance.
* @returns All config.
*
* @public
*/
export declare function getAll(remoteConfig: RemoteConfigCompat): Record<string, Value>;
/**
* Gets the value for the given key as a boolean.
*
* Convenience method for calling <code>remoteConfig.getValue(key).asBoolean()</code>.
*
* @param remoteConfig - The {@link RemoteConfig} instance.
* @param key - The name of the parameter.
*
* @returns The value for the given key as a boolean.
* @public
*/
export declare function getBoolean(remoteConfig: RemoteConfigCompat, key: string): boolean;
/**
* Gets the value for the given key as a number.
*
* Convenience method for calling <code>remoteConfig.getValue(key).asNumber()</code>.
*
* @param remoteConfig - The {@link RemoteConfig} instance.
* @param key - The name of the parameter.
*
* @returns The value for the given key as a number.
*
* @public
*/
export declare function getNumber(remoteConfig: RemoteConfigCompat, key: string): number;
/**
*
* @param app - The {@link @firebase/app#FirebaseApp} instance.
* @returns A {@link RemoteConfig} instance.
*
* @public
*/
export declare function getRemoteConfig(app?: FirebaseAppCompat): RemoteConfig;
/**
* Gets the value for the given key as a string.
* Convenience method for calling <code>remoteConfig.getValue(key).asString()</code>.
*
* @param remoteConfig - The {@link RemoteConfig} instance.
* @param key - The name of the parameter.
*
* @returns The value for the given key as a string.
*
* @public
*/
export declare function getString(remoteConfig: RemoteConfigCompat, key: string): string;
/**
* Gets the {@link Value} for the given key.
*
* @param remoteConfig - The {@link RemoteConfig} instance.
* @param key - The name of the parameter.
*
* @returns The value for the given key.
*
* @public
*/
export declare function getValue(remoteConfig: RemoteConfigCompat, key: string): Value;
/**
* Defines the log level to use.
*
* @param remoteConfig - The {@link RemoteConfig} instance.
* @param logLevel - The log level to set.
*
* @public
*/
export declare function setLogLevel(remoteConfig: RemoteConfigCompat, logLevel: LogLevel): void;
}

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

{
"name": "@firebase/remote-config-compat",
"version": "0.2.10-canary.a97ac88db",
"version": "0.2.10-canary.e577a408c",
"description": "The compatibility package of Remote Config",

@@ -37,10 +37,10 @@ "author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)",

"peerDependencies": {
"@firebase/app-compat": "0.2.44-canary.a97ac88db"
"@firebase/app-compat": "0.2.45-canary.e577a408c"
},
"dependencies": {
"@firebase/remote-config": "0.4.10-canary.a97ac88db",
"@firebase/remote-config-types": "0.3.2-canary.a97ac88db",
"@firebase/util": "1.10.1-canary.a97ac88db",
"@firebase/logger": "0.4.3-canary.a97ac88db",
"@firebase/component": "0.6.10-canary.a97ac88db",
"@firebase/remote-config": "0.4.10-canary.e577a408c",
"@firebase/remote-config-types": "0.3.2-canary.e577a408c",
"@firebase/util": "1.10.1-canary.e577a408c",
"@firebase/logger": "0.4.3-canary.e577a408c",
"@firebase/component": "0.6.10-canary.e577a408c",
"tslib": "^2.1.0"

@@ -53,4 +53,4 @@ },

"rollup-plugin-typescript2": "0.31.2",
"typescript": "4.7.4",
"@firebase/app-compat": "0.2.44-canary.a97ac88db"
"typescript": "5.5.4",
"@firebase/app-compat": "0.2.45-canary.e577a408c"
},

@@ -57,0 +57,0 @@ "repository": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc