@firebase/data-connect 0.7.3 → 0.7.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +4 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +4 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/index.node.cjs.js +4 -4
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/node-esm/index.node.esm.js +4 -4
- package/dist/node-esm/index.node.esm.js.map +1 -1
- package/dist/node-esm/src/network/stream/wire.d.ts +1 -1
- package/dist/public.d.ts +278 -110
- package/dist/src/network/stream/wire.d.ts +1 -1
- package/package.json +6 -6
|
@@ -414,7 +414,7 @@ function restUrlBuilder(projectConfig, transportOptions) {
|
|
|
414
414
|
return `${baseUrl}/v1/projects/${project}/locations/${location}/services/${service}/connectors/${connector}`;
|
|
415
415
|
}
|
|
416
416
|
function websocketUrlBuilder(projectConfig, transportOptions) {
|
|
417
|
-
const { location } = projectConfig;
|
|
417
|
+
const { location, projectId, service } = projectConfig;
|
|
418
418
|
const { host, sslEnabled, port } = transportOptions;
|
|
419
419
|
const protocol = sslEnabled ? 'wss' : 'ws';
|
|
420
420
|
const realHost = host || PROD_HOST;
|
|
@@ -426,7 +426,7 @@ function websocketUrlBuilder(projectConfig, transportOptions) {
|
|
|
426
426
|
logError('Port type is of an invalid type');
|
|
427
427
|
throw new DataConnectError(Code.INVALID_ARGUMENT, 'Incorrect type for port passed in!');
|
|
428
428
|
}
|
|
429
|
-
return `${baseUrl}/${WEBSOCKET_PATH}
|
|
429
|
+
return `${baseUrl}/${WEBSOCKET_PATH}.Connect/${projectId}/locations/${location}/services/${service}`;
|
|
430
430
|
}
|
|
431
431
|
function addToken(url, apiKey) {
|
|
432
432
|
if (!apiKey) {
|
|
@@ -949,7 +949,7 @@ class AbstractDataConnectStreamTransport extends AbstractDataConnectTransport {
|
|
|
949
949
|
if (this.isFirstStreamMessage) {
|
|
950
950
|
headers['X-Client-Version'] = `web/${SDK_VERSION}`;
|
|
951
951
|
if (this._appCheckToken) {
|
|
952
|
-
headers['X-Firebase-
|
|
952
|
+
headers['X-Firebase-AppCheck'] = this._appCheckToken;
|
|
953
953
|
}
|
|
954
954
|
preparedRequestBody.name = this._connectorResourcePath;
|
|
955
955
|
}
|
|
@@ -1550,7 +1550,7 @@ class WebSocketTransport extends AbstractDataConnectStreamTransport {
|
|
|
1550
1550
|
}
|
|
1551
1551
|
|
|
1552
1552
|
const name = "@firebase/data-connect";
|
|
1553
|
-
const version = "0.7.
|
|
1553
|
+
const version = "0.7.4";
|
|
1554
1554
|
|
|
1555
1555
|
/**
|
|
1556
1556
|
* @license
|