@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
package/dist/index.cjs.js
CHANGED
|
@@ -8,7 +8,7 @@ var util = require('@firebase/util');
|
|
|
8
8
|
var logger$1 = require('@firebase/logger');
|
|
9
9
|
|
|
10
10
|
const name = "@firebase/data-connect";
|
|
11
|
-
const version = "0.7.
|
|
11
|
+
const version = "0.7.4";
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* @license
|
|
@@ -1558,7 +1558,7 @@ function restUrlBuilder(projectConfig, transportOptions) {
|
|
|
1558
1558
|
return `${baseUrl}/v1/projects/${project}/locations/${location}/services/${service}/connectors/${connector}`;
|
|
1559
1559
|
}
|
|
1560
1560
|
function websocketUrlBuilder(projectConfig, transportOptions) {
|
|
1561
|
-
const { location } = projectConfig;
|
|
1561
|
+
const { location, projectId, service } = projectConfig;
|
|
1562
1562
|
const { host, sslEnabled, port } = transportOptions;
|
|
1563
1563
|
const protocol = sslEnabled ? 'wss' : 'ws';
|
|
1564
1564
|
const realHost = host || PROD_HOST;
|
|
@@ -1570,7 +1570,7 @@ function websocketUrlBuilder(projectConfig, transportOptions) {
|
|
|
1570
1570
|
logError('Port type is of an invalid type');
|
|
1571
1571
|
throw new DataConnectError(Code.INVALID_ARGUMENT, 'Incorrect type for port passed in!');
|
|
1572
1572
|
}
|
|
1573
|
-
return `${baseUrl}/${WEBSOCKET_PATH}
|
|
1573
|
+
return `${baseUrl}/${WEBSOCKET_PATH}.Connect/${projectId}/locations/${location}/services/${service}`;
|
|
1574
1574
|
}
|
|
1575
1575
|
function addToken(url, apiKey) {
|
|
1576
1576
|
if (!apiKey) {
|
|
@@ -2093,7 +2093,7 @@ class AbstractDataConnectStreamTransport extends AbstractDataConnectTransport {
|
|
|
2093
2093
|
if (this.isFirstStreamMessage) {
|
|
2094
2094
|
headers['X-Client-Version'] = `web/${SDK_VERSION}`;
|
|
2095
2095
|
if (this._appCheckToken) {
|
|
2096
|
-
headers['X-Firebase-
|
|
2096
|
+
headers['X-Firebase-AppCheck'] = this._appCheckToken;
|
|
2097
2097
|
}
|
|
2098
2098
|
preparedRequestBody.name = this._connectorResourcePath;
|
|
2099
2099
|
}
|