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

@firebase/data-connect

Package Overview
Dependencies
Maintainers
4
Versions
92
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@firebase/data-connect - npm Package Compare versions

Comparing version 0.2.0-canary.144bc3709 to 0.2.0-canary.24a90eeb0

19

dist/index.cjs.js

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

const name = "@firebase/data-connect";
const version = "0.2.0-canary.144bc3709";
const version = "0.2.0-canary.24a90eeb0";

@@ -61,5 +61,7 @@ /**

class AppCheckTokenProvider {
constructor(appName_, appCheckProvider) {
this.appName_ = appName_;
constructor(app$1, appCheckProvider) {
this.appCheckProvider = appCheckProvider;
if (app._isFirebaseServerApp(app$1) && app$1.settings.appCheckToken) {
this.serverAppAppCheckToken = app$1.settings.appCheckToken;
}
this.appCheck = appCheckProvider === null || appCheckProvider === void 0 ? void 0 : appCheckProvider.getImmediate({ optional: true });

@@ -70,3 +72,6 @@ if (!this.appCheck) {

}
getToken(forceRefresh) {
getToken() {
if (this.serverAppAppCheckToken) {
return Promise.resolve({ token: this.serverAppAppCheckToken });
}
if (!this.appCheck) {

@@ -80,3 +85,3 @@ return new Promise((resolve, reject) => {

if (this.appCheck) {
this.getToken(forceRefresh).then(resolve, reject);
this.getToken().then(resolve, reject);
}

@@ -89,3 +94,3 @@ else {

}
return this.appCheck.getToken(forceRefresh);
return this.appCheck.getToken();
}

@@ -870,3 +875,3 @@ addTokenChangeListener(listener) {

if (this._appCheckProvider) {
this._appCheckTokenProvider = new AppCheckTokenProvider(this.app.name, this._appCheckProvider);
this._appCheckTokenProvider = new AppCheckTokenProvider(this.app, this._appCheckProvider);
}

@@ -873,0 +878,0 @@ this._initialized = true;

@@ -1,2 +0,2 @@

import { _removeServiceInstance, getApp, _getProvider, _registerComponent, registerVersion, SDK_VERSION as SDK_VERSION$1 } from '@firebase/app';
import { _isFirebaseServerApp, _removeServiceInstance, getApp, _getProvider, _registerComponent, registerVersion, SDK_VERSION as SDK_VERSION$1 } from '@firebase/app';
import { Component } from '@firebase/component';

@@ -7,3 +7,3 @@ import { FirebaseError } from '@firebase/util';

const name = "@firebase/data-connect";
const version = "0.2.0-canary.144bc3709";
const version = "0.2.0-canary.24a90eeb0";

@@ -57,5 +57,7 @@ /**

class AppCheckTokenProvider {
constructor(appName_, appCheckProvider) {
this.appName_ = appName_;
constructor(app, appCheckProvider) {
this.appCheckProvider = appCheckProvider;
if (_isFirebaseServerApp(app) && app.settings.appCheckToken) {
this.serverAppAppCheckToken = app.settings.appCheckToken;
}
this.appCheck = appCheckProvider === null || appCheckProvider === void 0 ? void 0 : appCheckProvider.getImmediate({ optional: true });

@@ -66,3 +68,6 @@ if (!this.appCheck) {

}
getToken(forceRefresh) {
getToken() {
if (this.serverAppAppCheckToken) {
return Promise.resolve({ token: this.serverAppAppCheckToken });
}
if (!this.appCheck) {

@@ -76,3 +81,3 @@ return new Promise((resolve, reject) => {

if (this.appCheck) {
this.getToken(forceRefresh).then(resolve, reject);
this.getToken().then(resolve, reject);
}

@@ -85,3 +90,3 @@ else {

}
return this.appCheck.getToken(forceRefresh);
return this.appCheck.getToken();
}

@@ -866,3 +871,3 @@ addTokenChangeListener(listener) {

if (this._appCheckProvider) {
this._appCheckTokenProvider = new AppCheckTokenProvider(this.app.name, this._appCheckProvider);
this._appCheckTokenProvider = new AppCheckTokenProvider(this.app, this._appCheckProvider);
}

@@ -869,0 +874,0 @@ this._initialized = true;

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

const name = "@firebase/data-connect";
const version = "0.2.0-canary.144bc3709";
const version = "0.2.0-canary.24a90eeb0";

@@ -224,5 +224,7 @@ /**

class AppCheckTokenProvider {
constructor(appName_, appCheckProvider) {
this.appName_ = appName_;
constructor(app$1, appCheckProvider) {
this.appCheckProvider = appCheckProvider;
if (app._isFirebaseServerApp(app$1) && app$1.settings.appCheckToken) {
this.serverAppAppCheckToken = app$1.settings.appCheckToken;
}
this.appCheck = appCheckProvider === null || appCheckProvider === void 0 ? void 0 : appCheckProvider.getImmediate({ optional: true });

@@ -233,3 +235,6 @@ if (!this.appCheck) {

}
getToken(forceRefresh) {
getToken() {
if (this.serverAppAppCheckToken) {
return Promise.resolve({ token: this.serverAppAppCheckToken });
}
if (!this.appCheck) {

@@ -243,3 +248,3 @@ return new Promise((resolve, reject) => {

if (this.appCheck) {
this.getToken(forceRefresh).then(resolve, reject);
this.getToken().then(resolve, reject);
}

@@ -252,3 +257,3 @@ else {

}
return this.appCheck.getToken(forceRefresh);
return this.appCheck.getToken();
}

@@ -873,3 +878,3 @@ addTokenChangeListener(listener) {

if (this._appCheckProvider) {
this._appCheckTokenProvider = new AppCheckTokenProvider(this.app.name, this._appCheckProvider);
this._appCheckTokenProvider = new AppCheckTokenProvider(this.app, this._appCheckProvider);
}

@@ -876,0 +881,0 @@ this._initialized = true;

@@ -22,7 +22,7 @@ /**

declare class AppCheckTokenProvider {
private appName_;
private appCheckProvider?;
private appCheck?;
constructor(appName_: string, appCheckProvider?: Provider<AppCheckInternalComponentName>);
getToken(forceRefresh?: boolean): Promise<AppCheckTokenResult>;
private serverAppAppCheckToken?;
constructor(app: FirebaseApp, appCheckProvider?: Provider<AppCheckInternalComponentName>);
getToken(): Promise<AppCheckTokenResult>;
addTokenChangeListener(listener: AppCheckTokenListener): void;

@@ -29,0 +29,0 @@ }

import { FirebaseError } from '@firebase/util';
import { Logger } from '@firebase/logger';
import { _removeServiceInstance, getApp, _getProvider, _registerComponent, registerVersion, SDK_VERSION as SDK_VERSION$1 } from '@firebase/app';
import { _isFirebaseServerApp, _removeServiceInstance, getApp, _getProvider, _registerComponent, registerVersion, SDK_VERSION as SDK_VERSION$1 } from '@firebase/app';
import { Component } from '@firebase/component';

@@ -196,3 +196,3 @@

const name = "@firebase/data-connect";
const version = "0.2.0-canary.144bc3709";
const version = "0.2.0-canary.24a90eeb0";

@@ -220,5 +220,7 @@ /**

class AppCheckTokenProvider {
constructor(appName_, appCheckProvider) {
this.appName_ = appName_;
constructor(app, appCheckProvider) {
this.appCheckProvider = appCheckProvider;
if (_isFirebaseServerApp(app) && app.settings.appCheckToken) {
this.serverAppAppCheckToken = app.settings.appCheckToken;
}
this.appCheck = appCheckProvider === null || appCheckProvider === void 0 ? void 0 : appCheckProvider.getImmediate({ optional: true });

@@ -229,3 +231,6 @@ if (!this.appCheck) {

}
getToken(forceRefresh) {
getToken() {
if (this.serverAppAppCheckToken) {
return Promise.resolve({ token: this.serverAppAppCheckToken });
}
if (!this.appCheck) {

@@ -239,3 +244,3 @@ return new Promise((resolve, reject) => {

if (this.appCheck) {
this.getToken(forceRefresh).then(resolve, reject);
this.getToken().then(resolve, reject);
}

@@ -248,3 +253,3 @@ else {

}
return this.appCheck.getToken(forceRefresh);
return this.appCheck.getToken();
}

@@ -869,3 +874,3 @@ addTokenChangeListener(listener) {

if (this._appCheckProvider) {
this._appCheckTokenProvider = new AppCheckTokenProvider(this.app.name, this._appCheckProvider);
this._appCheckTokenProvider = new AppCheckTokenProvider(this.app, this._appCheckProvider);
}

@@ -872,0 +877,0 @@ this._initialized = true;

@@ -17,2 +17,3 @@ /**

*/
import { FirebaseApp } from '@firebase/app';
import { AppCheckInternalComponentName, AppCheckTokenListener, AppCheckTokenResult } from '@firebase/app-check-interop-types';

@@ -25,8 +26,8 @@ import { Provider } from '@firebase/component';

export declare class AppCheckTokenProvider {
private appName_;
private appCheckProvider?;
private appCheck?;
constructor(appName_: string, appCheckProvider?: Provider<AppCheckInternalComponentName>);
getToken(forceRefresh?: boolean): Promise<AppCheckTokenResult>;
private serverAppAppCheckToken?;
constructor(app: FirebaseApp, appCheckProvider?: Provider<AppCheckInternalComponentName>);
getToken(): Promise<AppCheckTokenResult>;
addTokenChangeListener(listener: AppCheckTokenListener): void;
}

@@ -17,2 +17,3 @@ /**

*/
import { FirebaseApp } from '@firebase/app';
import { AppCheckInternalComponentName, AppCheckTokenListener, AppCheckTokenResult } from '@firebase/app-check-interop-types';

@@ -25,8 +26,8 @@ import { Provider } from '@firebase/component';

export declare class AppCheckTokenProvider {
private appName_;
private appCheckProvider?;
private appCheck?;
constructor(appName_: string, appCheckProvider?: Provider<AppCheckInternalComponentName>);
getToken(forceRefresh?: boolean): Promise<AppCheckTokenResult>;
private serverAppAppCheckToken?;
constructor(app: FirebaseApp, appCheckProvider?: Provider<AppCheckInternalComponentName>);
getToken(): Promise<AppCheckTokenResult>;
addTokenChangeListener(listener: AppCheckTokenListener): void;
}
{
"name": "@firebase/data-connect",
"version": "0.2.0-canary.144bc3709",
"version": "0.2.0-canary.24a90eeb0",
"description": "",

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

"peerDependencies": {
"@firebase/app": "0.10.18-canary.144bc3709"
"@firebase/app": "0.10.18-canary.24a90eeb0"
},
"dependencies": {
"@firebase/auth-interop-types": "0.2.4-canary.144bc3709",
"@firebase/component": "0.6.12-canary.144bc3709",
"@firebase/logger": "0.4.4-canary.144bc3709",
"@firebase/util": "1.10.3-canary.144bc3709",
"@firebase/auth-interop-types": "0.2.4-canary.24a90eeb0",
"@firebase/component": "0.6.12-canary.24a90eeb0",
"@firebase/logger": "0.4.4-canary.24a90eeb0",
"@firebase/util": "1.10.3-canary.24a90eeb0",
"tslib": "^2.1.0"
},
"devDependencies": {
"@firebase/app": "0.10.18-canary.144bc3709",
"@firebase/app": "0.10.18-canary.24a90eeb0",
"rollup": "2.79.1",

@@ -61,0 +61,0 @@ "rollup-plugin-typescript2": "0.31.2",

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

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