@vizzly/api-client 0.0.36 → 0.0.38
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/models/Api.js +2 -2
- package/dist/models/VizzlyApi.js +1 -1
- package/package.json +2 -3
package/dist/models/Api.js
CHANGED
|
@@ -13,7 +13,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
13
13
|
};
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.Api = void 0;
|
|
16
|
-
const
|
|
16
|
+
const cross_fetch_1 = __importDefault(require("cross-fetch"));
|
|
17
17
|
const Monitor_1 = require("./Monitor");
|
|
18
18
|
const VizzlyApiClientLogger_1 = require("./VizzlyApiClientLogger");
|
|
19
19
|
const Path_1 = require("./Path");
|
|
@@ -29,7 +29,7 @@ class Api {
|
|
|
29
29
|
const authHeaders = this.auth.buildAuthHeaders(request.acceptedAuthParams);
|
|
30
30
|
const customHeaders = Object.assign(Object.assign({}, (request.headers || {})), (this.extraHeaders() || {}));
|
|
31
31
|
const path = Path_1.Path.buildPath(this.host, request.path);
|
|
32
|
-
const timedFetch = Monitor_1.Monitor.timeRequest(request.method, path,
|
|
32
|
+
const timedFetch = Monitor_1.Monitor.timeRequest(request.method, path, cross_fetch_1.default);
|
|
33
33
|
const res = yield timedFetch(path, {
|
|
34
34
|
method: request.method,
|
|
35
35
|
headers: Object.assign(Object.assign({ 'Content-Type': 'application/json', Accept: 'application/json', 'Vizzly-User-Agent': `${VizzlyApiClientLogger_1.VizzlyApiClientLogger.UserAgentProduct}${this.originApp()} (Using client ${(_a = require('../../package.json')) === null || _a === void 0 ? void 0 : _a.version})` }, authHeaders), customHeaders),
|
package/dist/models/VizzlyApi.js
CHANGED
|
@@ -306,7 +306,7 @@ class VizzlyApi extends Api_1.Api {
|
|
|
306
306
|
path: `/api/v3/project/${params.projectId}`,
|
|
307
307
|
method: 'get',
|
|
308
308
|
abortSignal: params.abortSignal,
|
|
309
|
-
acceptedAuthParams: ['projectApiKey', 'projectAccessToken'],
|
|
309
|
+
acceptedAuthParams: ['projectApiKey', 'projectAccessToken', 'appSessionToken'],
|
|
310
310
|
};
|
|
311
311
|
}
|
|
312
312
|
getProjectAccessToken(params) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vizzly/api-client",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.38",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "NONE",
|
|
6
6
|
"source": "src/index.ts",
|
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
"dist"
|
|
12
12
|
],
|
|
13
13
|
"devDependencies": {
|
|
14
|
-
"@types/isomorphic-fetch": "^0.0.39",
|
|
15
14
|
"@types/jest": "^29.5.12",
|
|
16
15
|
"@types/lodash": "^4.17.0",
|
|
17
16
|
"@types/uuid": "^9.0.8",
|
|
@@ -33,6 +32,6 @@
|
|
|
33
32
|
"prepublish": "yarn build"
|
|
34
33
|
},
|
|
35
34
|
"dependencies": {
|
|
36
|
-
"
|
|
35
|
+
"cross-fetch": "^4.0.0"
|
|
37
36
|
}
|
|
38
37
|
}
|