vectocore4 0.0.2 → 0.0.3
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.
Potentially problematic release.
This version of vectocore4 might be problematic. Click here for more details.
- package/dist/cjs/index.js +3 -3
- package/dist/mjs/index.js +3 -3
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -35,7 +35,7 @@ class Vectocore {
|
|
|
35
35
|
requestPost(requestBody) {
|
|
36
36
|
return __awaiter(this, void 0, void 0, function* () {
|
|
37
37
|
let config = {
|
|
38
|
-
headers: { "Content-Type": "application/json", "x-
|
|
38
|
+
headers: { "Content-Type": "application/json", "x-tenant-key": this.tenantKey },
|
|
39
39
|
};
|
|
40
40
|
const response = yield axios_1.default.post(this.baseURL, requestBody, config);
|
|
41
41
|
return response.data;
|
|
@@ -201,7 +201,7 @@ class Lens {
|
|
|
201
201
|
requestStream(requestBody) {
|
|
202
202
|
return __awaiter(this, void 0, void 0, function* () {
|
|
203
203
|
let header = {
|
|
204
|
-
"x-
|
|
204
|
+
"x-tenant-key": this.tenantKey ? this.tenantKey : "",
|
|
205
205
|
};
|
|
206
206
|
const request = {
|
|
207
207
|
method: "POST",
|
|
@@ -363,7 +363,7 @@ class AIMS {
|
|
|
363
363
|
requestStream(requestBody) {
|
|
364
364
|
return __awaiter(this, void 0, void 0, function* () {
|
|
365
365
|
let header = {
|
|
366
|
-
"x-
|
|
366
|
+
"x-tenant-key": this.tenantKey ? this.tenantKey : "",
|
|
367
367
|
};
|
|
368
368
|
const request = {
|
|
369
369
|
method: "POST",
|
package/dist/mjs/index.js
CHANGED
|
@@ -21,7 +21,7 @@ export class Vectocore {
|
|
|
21
21
|
}
|
|
22
22
|
async requestPost(requestBody) {
|
|
23
23
|
let config = {
|
|
24
|
-
headers: { "Content-Type": "application/json", "x-
|
|
24
|
+
headers: { "Content-Type": "application/json", "x-tenant-key": this.tenantKey },
|
|
25
25
|
};
|
|
26
26
|
const response = await axios.post(this.baseURL, requestBody, config);
|
|
27
27
|
return response.data;
|
|
@@ -178,7 +178,7 @@ export class Lens {
|
|
|
178
178
|
}
|
|
179
179
|
async requestStream(requestBody) {
|
|
180
180
|
let header = {
|
|
181
|
-
"x-
|
|
181
|
+
"x-tenant-key": this.tenantKey ? this.tenantKey : "",
|
|
182
182
|
};
|
|
183
183
|
const request = {
|
|
184
184
|
method: "POST",
|
|
@@ -333,7 +333,7 @@ export class AIMS {
|
|
|
333
333
|
}
|
|
334
334
|
async requestStream(requestBody) {
|
|
335
335
|
let header = {
|
|
336
|
-
"x-
|
|
336
|
+
"x-tenant-key": this.tenantKey ? this.tenantKey : "",
|
|
337
337
|
};
|
|
338
338
|
const request = {
|
|
339
339
|
method: "POST",
|