@firebase/data-connect
Advanced tools
Comparing version 0.1.2 to 0.1.3-20241210130030
@@ -11,3 +11,3 @@ 'use strict'; | ||
const name = "@firebase/data-connect"; | ||
const version = "0.1.2"; | ||
const version = "0.1.3-20241210130030"; | ||
@@ -887,3 +887,4 @@ /** | ||
enableEmulator(transportOptions) { | ||
if (this._initialized) { | ||
if (this._initialized && | ||
!areTransportOptionsEqual(this._transportOptions, transportOptions)) { | ||
logError('enableEmulator called after initialization'); | ||
@@ -897,2 +898,13 @@ throw new DataConnectError(Code.ALREADY_INITIALIZED, 'DataConnect instance already initialized!'); | ||
/** | ||
* @internal | ||
* @param transportOptions1 | ||
* @param transportOptions2 | ||
* @returns | ||
*/ | ||
function areTransportOptionsEqual(transportOptions1, transportOptions2) { | ||
return (transportOptions1.host === transportOptions2.host && | ||
transportOptions1.port === transportOptions2.port && | ||
transportOptions1.sslEnabled === transportOptions2.sslEnabled); | ||
} | ||
/** | ||
* Connect to the DataConnect Emulator | ||
@@ -1167,2 +1179,3 @@ * @param dc Data Connect instance | ||
exports.SOURCE_SERVER = SOURCE_SERVER; | ||
exports.areTransportOptionsEqual = areTransportOptionsEqual; | ||
exports.connectDataConnectEmulator = connectDataConnectEmulator; | ||
@@ -1169,0 +1182,0 @@ exports.executeMutation = executeMutation; |
@@ -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.2"; | ||
const version = "0.1.3-20241210130030"; | ||
@@ -883,3 +883,4 @@ /** | ||
enableEmulator(transportOptions) { | ||
if (this._initialized) { | ||
if (this._initialized && | ||
!areTransportOptionsEqual(this._transportOptions, transportOptions)) { | ||
logError('enableEmulator called after initialization'); | ||
@@ -893,2 +894,13 @@ throw new DataConnectError(Code.ALREADY_INITIALIZED, 'DataConnect instance already initialized!'); | ||
/** | ||
* @internal | ||
* @param transportOptions1 | ||
* @param transportOptions2 | ||
* @returns | ||
*/ | ||
function areTransportOptionsEqual(transportOptions1, transportOptions2) { | ||
return (transportOptions1.host === transportOptions2.host && | ||
transportOptions1.port === transportOptions2.port && | ||
transportOptions1.sslEnabled === transportOptions2.sslEnabled); | ||
} | ||
/** | ||
* Connect to the DataConnect Emulator | ||
@@ -1157,3 +1169,3 @@ * @param dc Data Connect instance | ||
export { DataConnect, MUTATION_STR, MutationManager, QUERY_STR, SOURCE_CACHE, SOURCE_SERVER, connectDataConnectEmulator, executeMutation, executeQuery, getDataConnect, mutationRef, parseOptions, queryRef, setLogLevel, subscribe, terminate, toQueryRef, validateArgs, validateDCOptions }; | ||
export { DataConnect, MUTATION_STR, MutationManager, QUERY_STR, SOURCE_CACHE, SOURCE_SERVER, areTransportOptionsEqual, connectDataConnectEmulator, executeMutation, executeQuery, getDataConnect, mutationRef, parseOptions, queryRef, setLogLevel, subscribe, terminate, toQueryRef, validateArgs, validateDCOptions }; | ||
//# sourceMappingURL=index.esm2017.js.map |
@@ -200,3 +200,3 @@ 'use strict'; | ||
const name = "@firebase/data-connect"; | ||
const version = "0.1.2"; | ||
const version = "0.1.3-20241210130030"; | ||
@@ -890,3 +890,4 @@ /** | ||
enableEmulator(transportOptions) { | ||
if (this._initialized) { | ||
if (this._initialized && | ||
!areTransportOptionsEqual(this._transportOptions, transportOptions)) { | ||
logError('enableEmulator called after initialization'); | ||
@@ -900,2 +901,13 @@ throw new DataConnectError(Code.ALREADY_INITIALIZED, 'DataConnect instance already initialized!'); | ||
/** | ||
* @internal | ||
* @param transportOptions1 | ||
* @param transportOptions2 | ||
* @returns | ||
*/ | ||
function areTransportOptionsEqual(transportOptions1, transportOptions2) { | ||
return (transportOptions1.host === transportOptions2.host && | ||
transportOptions1.port === transportOptions2.port && | ||
transportOptions1.sslEnabled === transportOptions2.sslEnabled); | ||
} | ||
/** | ||
* Connect to the DataConnect Emulator | ||
@@ -1182,2 +1194,3 @@ * @param dc Data Connect instance | ||
exports.SOURCE_SERVER = SOURCE_SERVER; | ||
exports.areTransportOptionsEqual = areTransportOptionsEqual; | ||
exports.connectDataConnectEmulator = connectDataConnectEmulator; | ||
@@ -1184,0 +1197,0 @@ exports.executeMutation = executeMutation; |
@@ -30,2 +30,10 @@ /** | ||
/** | ||
* @internal | ||
* @param transportOptions1 | ||
* @param transportOptions2 | ||
* @returns | ||
*/ | ||
export declare function areTransportOptionsEqual(transportOptions1: TransportOptions, transportOptions2: TransportOptions): boolean; | ||
declare type AuthTokenListener = (token: string | null) => void; | ||
@@ -32,0 +40,0 @@ |
@@ -196,3 +196,3 @@ import { FirebaseError } from '@firebase/util'; | ||
const name = "@firebase/data-connect"; | ||
const version = "0.1.2"; | ||
const version = "0.1.3-20241210130030"; | ||
@@ -886,3 +886,4 @@ /** | ||
enableEmulator(transportOptions) { | ||
if (this._initialized) { | ||
if (this._initialized && | ||
!areTransportOptionsEqual(this._transportOptions, transportOptions)) { | ||
logError('enableEmulator called after initialization'); | ||
@@ -896,2 +897,13 @@ throw new DataConnectError(Code.ALREADY_INITIALIZED, 'DataConnect instance already initialized!'); | ||
/** | ||
* @internal | ||
* @param transportOptions1 | ||
* @param transportOptions2 | ||
* @returns | ||
*/ | ||
function areTransportOptionsEqual(transportOptions1, transportOptions2) { | ||
return (transportOptions1.host === transportOptions2.host && | ||
transportOptions1.port === transportOptions2.port && | ||
transportOptions1.sslEnabled === transportOptions2.sslEnabled); | ||
} | ||
/** | ||
* Connect to the DataConnect Emulator | ||
@@ -1172,3 +1184,3 @@ * @param dc Data Connect instance | ||
export { DataConnect, MUTATION_STR, MutationManager, QUERY_STR, SOURCE_CACHE, SOURCE_SERVER, connectDataConnectEmulator, executeMutation, executeQuery, getDataConnect, mutationRef, parseOptions, queryRef, setLogLevel, subscribe, terminate, toQueryRef, validateArgs, validateDCOptions }; | ||
export { DataConnect, MUTATION_STR, MutationManager, QUERY_STR, SOURCE_CACHE, SOURCE_SERVER, areTransportOptionsEqual, connectDataConnectEmulator, executeMutation, executeQuery, getDataConnect, mutationRef, parseOptions, queryRef, setLogLevel, subscribe, terminate, toQueryRef, validateArgs, validateDCOptions }; | ||
//# sourceMappingURL=index.node.esm.js.map |
@@ -78,2 +78,9 @@ /** | ||
/** | ||
* @internal | ||
* @param transportOptions1 | ||
* @param transportOptions2 | ||
* @returns | ||
*/ | ||
export declare function areTransportOptionsEqual(transportOptions1: TransportOptions, transportOptions2: TransportOptions): boolean; | ||
/** | ||
* Connect to the DataConnect Emulator | ||
@@ -80,0 +87,0 @@ * @param dc Data Connect instance |
@@ -19,2 +19,4 @@ /** | ||
/* Excluded from this release type: areTransportOptionsEqual */ | ||
declare type AuthTokenListener = (token: string | null) => void; | ||
@@ -21,0 +23,0 @@ |
@@ -78,2 +78,9 @@ /** | ||
/** | ||
* @internal | ||
* @param transportOptions1 | ||
* @param transportOptions2 | ||
* @returns | ||
*/ | ||
export declare function areTransportOptionsEqual(transportOptions1: TransportOptions, transportOptions2: TransportOptions): boolean; | ||
/** | ||
* Connect to the DataConnect Emulator | ||
@@ -80,0 +87,0 @@ * @param dc Data Connect instance |
{ | ||
"name": "@firebase/data-connect", | ||
"version": "0.1.2", | ||
"version": "0.1.3-20241210130030", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)", |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
619580
7326
13