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
0
Versions
120
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.1.3-canary.645487bc4 to 0.1.3-canary.6a8263446

17

dist/index.cjs.js

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

const name = "@firebase/data-connect";
const version = "0.1.3-canary.645487bc4";
const version = "0.1.3-canary.6a8263446";

@@ -608,8 +608,4 @@ /**

variables: body
}, // TODO(mtewani): This is a patch, fix this.
abortController, this.appId, this._accessToken, this._appCheckToken, this._isUsingGen));
return {
then: withAuth.then.bind(withAuth),
catch: withAuth.catch.bind(withAuth)
};
}, abortController, this.appId, this._accessToken, this._appCheckToken, this._isUsingGen));
return withAuth;
};

@@ -625,8 +621,3 @@ this.invokeMutation = (mutationName, body) => {

});
return {
then: taskResult.then.bind(taskResult),
// catch: taskResult.catch.bind(taskResult),
// finally: taskResult.finally.bind(taskResult),
cancel: () => abortController.abort()
};
return taskResult;
};

@@ -633,0 +624,0 @@ if (transportOptions) {

@@ -7,3 +7,3 @@ import { _removeServiceInstance, getApp, _getProvider, _registerComponent, registerVersion, SDK_VERSION as SDK_VERSION$1 } from '@firebase/app';

const name = "@firebase/data-connect";
const version = "0.1.3-canary.645487bc4";
const version = "0.1.3-canary.6a8263446";

@@ -604,8 +604,4 @@ /**

variables: body
}, // TODO(mtewani): This is a patch, fix this.
abortController, this.appId, this._accessToken, this._appCheckToken, this._isUsingGen));
return {
then: withAuth.then.bind(withAuth),
catch: withAuth.catch.bind(withAuth)
};
}, abortController, this.appId, this._accessToken, this._appCheckToken, this._isUsingGen));
return withAuth;
};

@@ -621,8 +617,3 @@ this.invokeMutation = (mutationName, body) => {

});
return {
then: taskResult.then.bind(taskResult),
// catch: taskResult.catch.bind(taskResult),
// finally: taskResult.finally.bind(taskResult),
cancel: () => abortController.abort()
};
return taskResult;
};

@@ -629,0 +620,0 @@ if (transportOptions) {

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

const name = "@firebase/data-connect";
const version = "0.1.3-canary.645487bc4";
const version = "0.1.3-canary.6a8263446";

@@ -611,8 +611,4 @@ /**

variables: body
}, // TODO(mtewani): This is a patch, fix this.
abortController, this.appId, this._accessToken, this._appCheckToken, this._isUsingGen));
return {
then: withAuth.then.bind(withAuth),
catch: withAuth.catch.bind(withAuth)
};
}, abortController, this.appId, this._accessToken, this._appCheckToken, this._isUsingGen));
return withAuth;
};

@@ -628,8 +624,3 @@ this.invokeMutation = (mutationName, body) => {

});
return {
then: taskResult.then.bind(taskResult),
// catch: taskResult.catch.bind(taskResult),
// finally: taskResult.finally.bind(taskResult),
cancel: () => abortController.abort()
};
return taskResult;
};

@@ -636,0 +627,0 @@ if (transportOptions) {

@@ -45,8 +45,2 @@ /**

export declare interface CancellableOperation<T> extends PromiseLike<{
data: T;
}> {
cancel: () => void;
}
/**

@@ -146,7 +140,7 @@ * Connect to the DataConnect Emulator

export declare interface DataConnectTransport {
invokeQuery<T, U>(queryName: string, body?: U): PromiseLike<{
invokeQuery<T, U>(queryName: string, body?: U): Promise<{
data: T;
errors: Error[];
}>;
invokeMutation<T, U>(queryName: string, body?: U): PromiseLike<{
invokeMutation<T, U>(queryName: string, body?: U): Promise<{
data: T;

@@ -203,3 +197,3 @@ errors: Error[];

*/
export declare interface MutationPromise<Data, Variables> extends PromiseLike<MutationResult<Data, Variables>> {
export declare interface MutationPromise<Data, Variables> extends Promise<MutationResult<Data, Variables>> {
}

@@ -289,3 +283,3 @@

*/
export declare interface QueryPromise<Data, Variables> extends PromiseLike<QueryResult<Data, Variables>> {
export declare interface QueryPromise<Data, Variables> extends Promise<QueryResult<Data, Variables>> {
}

@@ -292,0 +286,0 @@

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

const name = "@firebase/data-connect";
const version = "0.1.3-canary.645487bc4";
const version = "0.1.3-canary.6a8263446";

@@ -607,8 +607,4 @@ /**

variables: body
}, // TODO(mtewani): This is a patch, fix this.
abortController, this.appId, this._accessToken, this._appCheckToken, this._isUsingGen));
return {
then: withAuth.then.bind(withAuth),
catch: withAuth.catch.bind(withAuth)
};
}, abortController, this.appId, this._accessToken, this._appCheckToken, this._isUsingGen));
return withAuth;
};

@@ -624,8 +620,3 @@ this.invokeMutation = (mutationName, body) => {

});
return {
then: taskResult.then.bind(taskResult),
// catch: taskResult.catch.bind(taskResult),
// finally: taskResult.finally.bind(taskResult),
cancel: () => abortController.abort()
};
return taskResult;
};

@@ -632,0 +623,0 @@ if (transportOptions) {

@@ -54,3 +54,3 @@ /**

*/
export interface MutationPromise<Data, Variables> extends PromiseLike<MutationResult<Data, Variables>> {
export interface MutationPromise<Data, Variables> extends Promise<MutationResult<Data, Variables>> {
}

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

@@ -56,3 +56,3 @@ /**

*/
export interface QueryPromise<Data, Variables> extends PromiseLike<QueryResult<Data, Variables>> {
export interface QueryPromise<Data, Variables> extends Promise<QueryResult<Data, Variables>> {
}

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

@@ -18,5 +18,10 @@ /**

export declare function initializeFetch(fetchImpl: typeof fetch): void;
export declare function dcFetch<T, U>(url: string, body: U, { signal }: AbortController, appId: string | null, accessToken: string | null, appCheckToken: string | null, _isUsingGen: boolean): Promise<{
export interface DataConnectFetchBody<T> {
name: string;
operationName: string;
variables: T;
}
export declare function dcFetch<T, U>(url: string, body: DataConnectFetchBody<U>, { signal }: AbortController, appId: string | null, accessToken: string | null, appCheckToken: string | null, _isUsingGen: boolean): Promise<{
data: T;
errors: Error[];
}>;

@@ -24,7 +24,7 @@ /**

export interface DataConnectTransport {
invokeQuery<T, U>(queryName: string, body?: U): PromiseLike<{
invokeQuery<T, U>(queryName: string, body?: U): Promise<{
data: T;
errors: Error[];
}>;
invokeMutation<T, U>(queryName: string, body?: U): PromiseLike<{
invokeMutation<T, U>(queryName: string, body?: U): Promise<{
data: T;

@@ -36,7 +36,2 @@ errors: Error[];

}
export interface CancellableOperation<T> extends PromiseLike<{
data: T;
}> {
cancel: () => void;
}
/**

@@ -43,0 +38,0 @@ * @internal

@@ -50,7 +50,7 @@ /**

}>;
invokeQuery: <T, U>(queryName: string, body?: U) => PromiseLike<{
invokeQuery: <T, U>(queryName: string, body?: U) => Promise<{
data: T;
errors: Error[];
}>;
invokeMutation: <T, U>(queryName: string, body?: U) => PromiseLike<{
invokeMutation: <T, U>(queryName: string, body?: U) => Promise<{
data: T;

@@ -57,0 +57,0 @@ errors: Error[];

@@ -28,8 +28,2 @@ /**

export declare interface CancellableOperation<T> extends PromiseLike<{
data: T;
}> {
cancel: () => void;
}
/**

@@ -163,3 +157,3 @@ * Connect to the DataConnect Emulator

*/
export declare interface MutationPromise<Data, Variables> extends PromiseLike<MutationResult<Data, Variables>> {
export declare interface MutationPromise<Data, Variables> extends Promise<MutationResult<Data, Variables>> {
}

@@ -243,3 +237,3 @@

*/
export declare interface QueryPromise<Data, Variables> extends PromiseLike<QueryResult<Data, Variables>> {
export declare interface QueryPromise<Data, Variables> extends Promise<QueryResult<Data, Variables>> {
}

@@ -246,0 +240,0 @@

@@ -14,7 +14,2 @@ /**

export declare interface CancellableOperation<T> extends PromiseLike<{
data: T;
}> {
cancel: () => void;
}
/**

@@ -95,3 +90,3 @@ * Connect to the DataConnect Emulator

*/
export declare interface MutationPromise<Data, Variables> extends PromiseLike<MutationResult<Data, Variables>> {
export declare interface MutationPromise<Data, Variables> extends Promise<MutationResult<Data, Variables>> {
}

@@ -148,3 +143,3 @@ export declare interface MutationRef<Data, Variables> extends OperationRef<Data, Variables> {

*/
export declare interface QueryPromise<Data, Variables> extends PromiseLike<QueryResult<Data, Variables>> {
export declare interface QueryPromise<Data, Variables> extends Promise<QueryResult<Data, Variables>> {
}

@@ -151,0 +146,0 @@ /**

@@ -54,3 +54,3 @@ /**

*/
export interface MutationPromise<Data, Variables> extends PromiseLike<MutationResult<Data, Variables>> {
export interface MutationPromise<Data, Variables> extends Promise<MutationResult<Data, Variables>> {
}

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

@@ -56,3 +56,3 @@ /**

*/
export interface QueryPromise<Data, Variables> extends PromiseLike<QueryResult<Data, Variables>> {
export interface QueryPromise<Data, Variables> extends Promise<QueryResult<Data, Variables>> {
}

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

@@ -18,5 +18,10 @@ /**

export declare function initializeFetch(fetchImpl: typeof fetch): void;
export declare function dcFetch<T, U>(url: string, body: U, { signal }: AbortController, appId: string | null, accessToken: string | null, appCheckToken: string | null, _isUsingGen: boolean): Promise<{
export interface DataConnectFetchBody<T> {
name: string;
operationName: string;
variables: T;
}
export declare function dcFetch<T, U>(url: string, body: DataConnectFetchBody<U>, { signal }: AbortController, appId: string | null, accessToken: string | null, appCheckToken: string | null, _isUsingGen: boolean): Promise<{
data: T;
errors: Error[];
}>;

@@ -24,7 +24,7 @@ /**

export interface DataConnectTransport {
invokeQuery<T, U>(queryName: string, body?: U): PromiseLike<{
invokeQuery<T, U>(queryName: string, body?: U): Promise<{
data: T;
errors: Error[];
}>;
invokeMutation<T, U>(queryName: string, body?: U): PromiseLike<{
invokeMutation<T, U>(queryName: string, body?: U): Promise<{
data: T;

@@ -36,7 +36,2 @@ errors: Error[];

}
export interface CancellableOperation<T> extends PromiseLike<{
data: T;
}> {
cancel: () => void;
}
/**

@@ -43,0 +38,0 @@ * @internal

@@ -50,7 +50,7 @@ /**

}>;
invokeQuery: <T, U>(queryName: string, body?: U) => PromiseLike<{
invokeQuery: <T, U>(queryName: string, body?: U) => Promise<{
data: T;
errors: Error[];
}>;
invokeMutation: <T, U>(queryName: string, body?: U) => PromiseLike<{
invokeMutation: <T, U>(queryName: string, body?: U) => Promise<{
data: T;

@@ -57,0 +57,0 @@ errors: Error[];

{
"name": "@firebase/data-connect",
"version": "0.1.3-canary.645487bc4",
"version": "0.1.3-canary.6a8263446",
"description": "",

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

"peerDependencies": {
"@firebase/app": "0.10.17-canary.645487bc4"
"@firebase/app": "0.10.17-canary.6a8263446"
},
"dependencies": {
"@firebase/auth-interop-types": "0.2.4-canary.645487bc4",
"@firebase/component": "0.6.11-canary.645487bc4",
"@firebase/logger": "0.4.4-canary.645487bc4",
"@firebase/util": "1.10.2-canary.645487bc4",
"@firebase/auth-interop-types": "0.2.4-canary.6a8263446",
"@firebase/component": "0.6.11-canary.6a8263446",
"@firebase/logger": "0.4.4-canary.6a8263446",
"@firebase/util": "1.10.2-canary.6a8263446",
"tslib": "^2.1.0"
},
"devDependencies": {
"@firebase/app": "0.10.17-canary.645487bc4",
"@firebase/app": "0.10.17-canary.6a8263446",
"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