@firebase/data-connect
Advanced tools
Comparing version 0.1.3-canary.a13305330 to 0.1.3-canary.c19a051ce
@@ -11,3 +11,3 @@ 'use strict'; | ||
const name = "@firebase/data-connect"; | ||
const version = "0.1.3-canary.a13305330"; | ||
const version = "0.1.3-canary.c19a051ce"; | ||
@@ -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.a13305330"; | ||
const version = "0.1.3-canary.c19a051ce"; | ||
@@ -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.a13305330"; | ||
const version = "0.1.3-canary.c19a051ce"; | ||
@@ -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.a13305330"; | ||
const version = "0.1.3-canary.c19a051ce"; | ||
@@ -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.a13305330", | ||
"version": "0.1.3-canary.c19a051ce", | ||
"description": "", | ||
@@ -48,13 +48,13 @@ "author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)", | ||
"peerDependencies": { | ||
"@firebase/app": "0.10.17-canary.a13305330" | ||
"@firebase/app": "0.10.17-canary.c19a051ce" | ||
}, | ||
"dependencies": { | ||
"@firebase/auth-interop-types": "0.2.4-canary.a13305330", | ||
"@firebase/component": "0.6.11-canary.a13305330", | ||
"@firebase/logger": "0.4.4-canary.a13305330", | ||
"@firebase/util": "1.10.2-canary.a13305330", | ||
"@firebase/auth-interop-types": "0.2.4-canary.c19a051ce", | ||
"@firebase/component": "0.6.11-canary.c19a051ce", | ||
"@firebase/logger": "0.4.4-canary.c19a051ce", | ||
"@firebase/util": "1.10.2-canary.c19a051ce", | ||
"tslib": "^2.1.0" | ||
}, | ||
"devDependencies": { | ||
"@firebase/app": "0.10.17-canary.a13305330", | ||
"@firebase/app": "0.10.17-canary.c19a051ce", | ||
"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
615595
7275
+ Added@firebase/app@0.10.17-canary.c19a051ce(transitive)
+ Added@firebase/auth-interop-types@0.2.4-canary.c19a051ce(transitive)
+ Added@firebase/component@0.6.11-canary.c19a051ce(transitive)
+ Added@firebase/logger@0.4.4-canary.c19a051ce(transitive)
+ Added@firebase/util@1.10.2-canary.c19a051ce(transitive)
- Removed@firebase/app@0.10.17-canary.a13305330(transitive)
- Removed@firebase/auth-interop-types@0.2.4-canary.a13305330(transitive)
- Removed@firebase/component@0.6.11-canary.a13305330(transitive)
- Removed@firebase/logger@0.4.4-canary.a13305330(transitive)
- Removed@firebase/util@1.10.2-canary.a13305330(transitive)