Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@firebase/remote-config-compat

Package Overview
Dependencies
Maintainers
5
Versions
1129
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.0.900-exp.a9388d5b2 to 0.0.900-exp.a9e3f07fc

11

dist/index.cjs.js

@@ -5,3 +5,2 @@ 'use strict';

var component = require('@firebase/component');
require('@firebase/remote-config-types');
var remoteConfig = require('@firebase/remote-config');

@@ -109,3 +108,3 @@

var name = "@firebase/remote-config-compat";
var version = "0.0.900-exp.a9388d5b2";
var version = "0.0.900";

@@ -129,8 +128,8 @@ /**

function registerRemoteConfigCompat(firebaseInstance) {
firebaseInstance.INTERNAL.registerComponent(new component.Component('remote-config-compat', remoteConfigFactory, "PUBLIC" /* PUBLIC */).setMultipleInstances(true));
firebaseInstance.INTERNAL.registerComponent(new component.Component('remoteConfig-compat', remoteConfigFactory, "PUBLIC" /* PUBLIC */).setMultipleInstances(true));
firebaseInstance.registerVersion(name, version);
}
function remoteConfigFactory(container, namespace) {
// TODO: change 'app' to 'app-compat' before the official release
var app = container.getProvider('app').getImmediate();
function remoteConfigFactory(container, _a) {
var namespace = _a.instanceIdentifier;
var app = container.getProvider('app-compat').getImmediate();
// The following call will always succeed because rc `import {...} from '@firebase/remote-config-exp'`

@@ -137,0 +136,0 @@ var remoteConfig = container.getProvider('remote-config-exp').getImmediate({

import firebase from '@firebase/app-compat';
import { Component } from '@firebase/component';
import '@firebase/remote-config-types';
import { activate, ensureInitialized, fetchConfig, fetchAndActivate, getAll, getBoolean, getNumber, getString, getValue, setLogLevel } from '@firebase/remote-config';

@@ -85,3 +84,3 @@

const name = "@firebase/remote-config-compat";
const version = "0.0.900-exp.a9388d5b2";
const version = "0.0.900";

@@ -105,8 +104,7 @@ /**

function registerRemoteConfigCompat(firebaseInstance) {
firebaseInstance.INTERNAL.registerComponent(new Component('remote-config-compat', remoteConfigFactory, "PUBLIC" /* PUBLIC */).setMultipleInstances(true));
firebaseInstance.INTERNAL.registerComponent(new Component('remoteConfig-compat', remoteConfigFactory, "PUBLIC" /* PUBLIC */).setMultipleInstances(true));
firebaseInstance.registerVersion(name, version);
}
function remoteConfigFactory(container, namespace) {
// TODO: change 'app' to 'app-compat' before the official release
const app = container.getProvider('app').getImmediate();
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-exp'`

@@ -113,0 +111,0 @@ const remoteConfig = container.getProvider('remote-config-exp').getImmediate({

import firebase from '@firebase/app-compat';
import { Component } from '@firebase/component';
import '@firebase/remote-config-types';
import { activate, ensureInitialized, fetchConfig, fetchAndActivate, getAll, getBoolean, getNumber, getString, getValue, setLogLevel } from '@firebase/remote-config';

@@ -102,3 +101,3 @@

var name = "@firebase/remote-config-compat";
var version = "0.0.900-exp.a9388d5b2";
var version = "0.0.900";

@@ -122,8 +121,8 @@ /**

function registerRemoteConfigCompat(firebaseInstance) {
firebaseInstance.INTERNAL.registerComponent(new Component('remote-config-compat', remoteConfigFactory, "PUBLIC" /* PUBLIC */).setMultipleInstances(true));
firebaseInstance.INTERNAL.registerComponent(new Component('remoteConfig-compat', remoteConfigFactory, "PUBLIC" /* PUBLIC */).setMultipleInstances(true));
firebaseInstance.registerVersion(name, version);
}
function remoteConfigFactory(container, namespace) {
// TODO: change 'app' to 'app-compat' before the official release
var app = container.getProvider('app').getImmediate();
function remoteConfigFactory(container, _a) {
var namespace = _a.instanceIdentifier;
var app = container.getProvider('app-compat').getImmediate();
// The following call will always succeed because rc `import {...} from '@firebase/remote-config-exp'`

@@ -130,0 +129,0 @@ var remoteConfig = container.getProvider('remote-config-exp').getImmediate({

@@ -20,4 +20,14 @@ /**

interface NameServiceMapping {
'remote-config-compat': RemoteConfigCompat;
'remoteConfig-compat': RemoteConfigCompat;
}
}
declare module '@firebase/app-compat' {
interface FirebaseNamespace {
remoteConfig?: {
(app?: FirebaseApp): RemoteConfigCompat;
};
}
interface FirebaseApp {
remoteConfig(): RemoteConfigCompat;
}
}

@@ -17,7 +17,6 @@ /**

*/
import { FirebaseApp } from '@firebase/app-types';
import { RemoteConfig } from "@firebase/remote-config-types";
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 { FirebaseService } from '@firebase/app-types/private';
export declare class RemoteConfigCompatImpl implements RemoteConfigCompat, FirebaseService {
import { RemoteConfig } from "@firebase/remote-config";
export declare class RemoteConfigCompatImpl implements RemoteConfigCompat, _FirebaseService {
app: FirebaseApp;

@@ -24,0 +23,0 @@ private _remoteConfig;

@@ -17,5 +17,5 @@ /**

*/
import { FirebaseApp } from '@firebase/app-types';
import { RemoteConfig } from "@firebase/remote-config-types";
import { FirebaseApp } from '@firebase/app-compat';
import { RemoteConfig } from "@firebase/remote-config";
export declare function getFakeApp(): FirebaseApp;
export declare function getFakeModularRemoteConfig(): RemoteConfig;
{
"name": "@firebase/remote-config-compat",
"version": "0.0.900-exp.a9388d5b2",
"version": "0.0.900-exp.a9e3f07fc",
"description": "The compatibility package of Remote Config",

@@ -25,24 +25,21 @@ "author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)",

"test:browser": "karma start --single-run",
"test:browser:debug": "karma start --browsers Chrome --auto-watch",
"prepare": "yarn build:release"
"test:browser:debug": "karma start --browsers Chrome --auto-watch"
},
"license": "Apache-2.0",
"peerDependencies": {
"@firebase/app-compat": "0.0.900-exp.a9388d5b2",
"@firebase/app-types": "0.x"
"@firebase/app-compat": "0.0.900-exp.a9e3f07fc"
},
"dependencies": {
"@firebase/remote-config": "0.0.900-exp.a9388d5b2",
"@firebase/remote-config-types": "0.0.900-exp.a9388d5b2",
"@firebase/util": "0.3.4",
"@firebase/remote-config": "0.0.900-exp.a9e3f07fc",
"@firebase/util": "0.4.0",
"@firebase/logger": "0.2.6",
"@firebase/component": "0.1.21",
"tslib": "^1.11.1"
"@firebase/component": "0.3.0",
"tslib": "^2.1.0"
},
"devDependencies": {
"rollup": "2.33.2",
"rollup": "2.35.1",
"@rollup/plugin-json": "4.1.0",
"rollup-plugin-replace": "2.2.0",
"rollup-plugin-typescript2": "0.29.0",
"typescript": "4.0.5",
"typescript": "4.2.2",
"@firebase/app-compat": "0.0.900"

@@ -49,0 +46,0 @@ },

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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