@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.esm.js
CHANGED
|
@@ -4,7 +4,7 @@ import { FirebaseError, generateSHA256Hash, isCloudWorkstation, pingServer } fro
|
|
|
4
4
|
import { Logger } from '@firebase/logger';
|
|
5
5
|
|
|
6
6
|
const name = "@firebase/data-connect";
|
|
7
|
-
const version = "0.7.
|
|
7
|
+
const version = "0.7.4";
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* @license
|
|
@@ -1554,7 +1554,7 @@ function restUrlBuilder(projectConfig, transportOptions) {
|
|
|
1554
1554
|
return `${baseUrl}/v1/projects/${project}/locations/${location}/services/${service}/connectors/${connector}`;
|
|
1555
1555
|
}
|
|
1556
1556
|
function websocketUrlBuilder(projectConfig, transportOptions) {
|
|
1557
|
-
const { location } = projectConfig;
|
|
1557
|
+
const { location, projectId, service } = projectConfig;
|
|
1558
1558
|
const { host, sslEnabled, port } = transportOptions;
|
|
1559
1559
|
const protocol = sslEnabled ? 'wss' : 'ws';
|
|
1560
1560
|
const realHost = host || PROD_HOST;
|
|
@@ -1566,7 +1566,7 @@ function websocketUrlBuilder(projectConfig, transportOptions) {
|
|
|
1566
1566
|
logError('Port type is of an invalid type');
|
|
1567
1567
|
throw new DataConnectError(Code.INVALID_ARGUMENT, 'Incorrect type for port passed in!');
|
|
1568
1568
|
}
|
|
1569
|
-
return `${baseUrl}/${WEBSOCKET_PATH}
|
|
1569
|
+
return `${baseUrl}/${WEBSOCKET_PATH}.Connect/${projectId}/locations/${location}/services/${service}`;
|
|
1570
1570
|
}
|
|
1571
1571
|
function addToken(url, apiKey) {
|
|
1572
1572
|
if (!apiKey) {
|
|
@@ -2089,7 +2089,7 @@ class AbstractDataConnectStreamTransport extends AbstractDataConnectTransport {
|
|
|
2089
2089
|
if (this.isFirstStreamMessage) {
|
|
2090
2090
|
headers['X-Client-Version'] = `web/${SDK_VERSION}`;
|
|
2091
2091
|
if (this._appCheckToken) {
|
|
2092
|
-
headers['X-Firebase-
|
|
2092
|
+
headers['X-Firebase-AppCheck'] = this._appCheckToken;
|
|
2093
2093
|
}
|
|
2094
2094
|
preparedRequestBody.name = this._connectorResourcePath;
|
|
2095
2095
|
}
|