🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@firebase/remote-config

Package Overview
Dependencies
Maintainers
5
Versions
2671
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@firebase/remote-config - npm Package Compare versions

Comparing version

to
0.1.1-0

dist/test/client/caching_client.test.d.ts

56

dist/index.cjs.js

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

require('@firebase/installations');
var tslib_1 = require('tslib');
var tslib = require('tslib');
var util = require('@firebase/util');

@@ -69,5 +69,5 @@ var logger = require('@firebase/logger');

CachingClient.prototype.fetch = function (request) {
return tslib_1.__awaiter(this, void 0, void 0, function () {
return tslib.__awaiter(this, void 0, void 0, function () {
var _a, lastSuccessfulFetchTimestampMillis, lastSuccessfulFetchResponse, response, storageOperations;
return tslib_1.__generator(this, function (_b) {
return tslib.__generator(this, function (_b) {
switch (_b.label) {

@@ -229,5 +229,5 @@ case 0: return [4 /*yield*/, Promise.all([

RestClient.prototype.fetch = function (request) {
return tslib_1.__awaiter(this, void 0, void 0, function () {
return tslib.__awaiter(this, void 0, void 0, function () {
var _a, installationId, installationToken, urlBase, url, headers, requestBody, options, fetchPromise, timeoutPromise, response, originalError_1, errorCode, status, responseEtag, config, state, responseBody, originalError_2;
return tslib_1.__generator(this, function (_b) {
return tslib.__generator(this, function (_b) {
switch (_b.label) {

@@ -504,5 +504,5 @@ case 0: return [4 /*yield*/, Promise.all([

RemoteConfig.prototype.activate = function () {
return tslib_1.__awaiter(this, void 0, void 0, function () {
return tslib.__awaiter(this, void 0, void 0, function () {
var _a, lastSuccessfulFetchResponse, activeConfigEtag;
return tslib_1.__generator(this, function (_b) {
return tslib.__generator(this, function (_b) {
switch (_b.label) {

@@ -551,14 +551,14 @@ case 0: return [4 /*yield*/, Promise.all([

RemoteConfig.prototype.fetch = function () {
return tslib_1.__awaiter(this, void 0, void 0, function () {
return tslib.__awaiter(this, void 0, void 0, function () {
var _this = this;
return tslib_1.__generator(this, function (_a) {
return [2 /*return*/, new Promise(function (resolve, reject) { return tslib_1.__awaiter(_this, void 0, void 0, function () {
return tslib.__generator(this, function (_a) {
return [2 /*return*/, new Promise(function (resolve, reject) { return tslib.__awaiter(_this, void 0, void 0, function () {
var abortSignal, e_1, lastFetchStatus;
var _this = this;
return tslib_1.__generator(this, function (_a) {
return tslib.__generator(this, function (_a) {
switch (_a.label) {
case 0:
abortSignal = new RemoteConfigAbortSignal();
setTimeout(function () { return tslib_1.__awaiter(_this, void 0, void 0, function () {
return tslib_1.__generator(this, function (_a) {
setTimeout(function () { return tslib.__awaiter(_this, void 0, void 0, function () {
return tslib.__generator(this, function (_a) {
// Note a very low delay, eg < 10ms, can elapse before listeners are initialized.

@@ -601,4 +601,4 @@ abortSignal.abort();

RemoteConfig.prototype.fetchAndActivate = function () {
return tslib_1.__awaiter(this, void 0, void 0, function () {
return tslib_1.__generator(this, function (_a) {
return tslib.__awaiter(this, void 0, void 0, function () {
return tslib.__generator(this, function (_a) {
switch (_a.label) {

@@ -653,3 +653,3 @@ case 0: return [4 /*yield*/, this.fetch()];

if (obj2 === void 0) { obj2 = {}; }
return Object.keys(tslib_1.__assign({}, obj1, obj2));
return Object.keys(tslib.__assign(tslib.__assign({}, obj1), obj2));
}

@@ -779,6 +779,6 @@

Storage.prototype.get = function (key) {
return tslib_1.__awaiter(this, void 0, void 0, function () {
return tslib.__awaiter(this, void 0, void 0, function () {
var db;
var _this = this;
return tslib_1.__generator(this, function (_a) {
return tslib.__generator(this, function (_a) {
switch (_a.label) {

@@ -818,6 +818,6 @@ case 0: return [4 /*yield*/, this.openDbPromise];

Storage.prototype.set = function (key, value) {
return tslib_1.__awaiter(this, void 0, void 0, function () {
return tslib.__awaiter(this, void 0, void 0, function () {
var db;
var _this = this;
return tslib_1.__generator(this, function (_a) {
return tslib.__generator(this, function (_a) {
switch (_a.label) {

@@ -854,6 +854,6 @@ case 0: return [4 /*yield*/, this.openDbPromise];

Storage.prototype.delete = function (key) {
return tslib_1.__awaiter(this, void 0, void 0, function () {
return tslib.__awaiter(this, void 0, void 0, function () {
var db;
var _this = this;
return tslib_1.__generator(this, function (_a) {
return tslib.__generator(this, function (_a) {
switch (_a.label) {

@@ -932,5 +932,5 @@ case 0: return [4 /*yield*/, this.openDbPromise];

StorageCache.prototype.loadFromStorage = function () {
return tslib_1.__awaiter(this, void 0, void 0, function () {
return tslib.__awaiter(this, void 0, void 0, function () {
var lastFetchStatusPromise, lastSuccessfulFetchTimestampMillisPromise, activeConfigPromise, lastFetchStatus, lastSuccessfulFetchTimestampMillis, activeConfig;
return tslib_1.__generator(this, function (_a) {
return tslib.__generator(this, function (_a) {
switch (_a.label) {

@@ -1116,5 +1116,5 @@ case 0:

RetryingClient.prototype.fetch = function (request) {
return tslib_1.__awaiter(this, void 0, void 0, function () {
return tslib.__awaiter(this, void 0, void 0, function () {
var throttleMetadata;
return tslib_1.__generator(this, function (_a) {
return tslib.__generator(this, function (_a) {
switch (_a.label) {

@@ -1139,5 +1139,5 @@ case 0: return [4 /*yield*/, this.storage.getThrottleMetadata()];

var throttleEndTimeMillis = _a.throttleEndTimeMillis, backoffCount = _a.backoffCount;
return tslib_1.__awaiter(this, void 0, void 0, function () {
return tslib.__awaiter(this, void 0, void 0, function () {
var response, e_1, throttleMetadata;
return tslib_1.__generator(this, function (_b) {
return tslib.__generator(this, function (_b) {
switch (_b.label) {

@@ -1144,0 +1144,0 @@ case 0:

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

if (obj2 === void 0) { obj2 = {}; }
return Object.keys(__assign({}, obj1, obj2));
return Object.keys(__assign(__assign({}, obj1), obj2));
}

@@ -644,0 +644,0 @@

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

function getAllKeys(obj1 = {}, obj2 = {}) {
return Object.keys(Object.assign({}, obj1, obj2));
return Object.keys(Object.assign(Object.assign({}, obj1), obj2));
}

@@ -565,0 +565,0 @@

{
"name": "@firebase/remote-config",
"version": "0.1.0",
"version": "0.1.1-0",
"description": "The Remote Config package of the Firebase JS SDK",
"author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)",
"main": "dist/index.node.cjs.js",
"main": "dist/index.cjs.js",
"browser": "dist/index.cjs.js",

@@ -29,6 +29,6 @@ "module": "dist/index.esm.js",

"dependencies": {
"@firebase/installations": "0.2.7",
"@firebase/logger": "0.1.25",
"@firebase/remote-config-types": "0.1.0",
"@firebase/util": "0.2.28",
"@firebase/installations": "0.3.0-0",
"@firebase/logger": "0.1.26-0",
"@firebase/remote-config-types": "0.1.1-0",
"@firebase/util": "0.2.29-0",
"tslib": "1.10.0"

@@ -38,18 +38,18 @@ },

"devDependencies": {
"@types/chai": "4.2.0",
"@types/chai": "4.2.3",
"@types/mocha": "5.2.7",
"@types/sinon": "7.0.13",
"@typescript-eslint/eslint-plugin": "2.0.0",
"@typescript-eslint/eslint-plugin-tslint": "2.0.0",
"@typescript-eslint/parser": "2.0.0",
"@types/sinon": "7.5.0",
"@typescript-eslint/eslint-plugin": "2.3.2",
"@typescript-eslint/eslint-plugin-tslint": "2.3.2",
"@typescript-eslint/parser": "2.3.2",
"chai": "4.2.0",
"chai-as-promised": "7.1.1",
"eslint": "5.16.0",
"eslint": "6.5.1",
"eslint-plugin-import": "2.18.2",
"mocha": "6.2.0",
"rollup": "1.20.3",
"rollup-plugin-typescript2": "0.24.0",
"sinon": "7.4.1",
"mocha": "6.2.1",
"rollup": "1.23.0",
"rollup-plugin-typescript2": "0.24.3",
"sinon": "7.5.0",
"sinon-chai": "3.3.0",
"typescript": "3.5.3"
"typescript": "3.6.3"
},

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

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