@configura/web-api-auth 2.2.0-alpha.0 → 2.2.0-alpha.1
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/CatalogueAuthAPI.js +4 -1
- package/package.json +2 -2
package/dist/CatalogueAuthAPI.js
CHANGED
|
@@ -15,6 +15,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.DTO_OPERATION_ID_TO_DEBIT_GROUP = exports.CatalogueAuthAPI = exports.DtoAPIError = exports.dtoRenderFormatNames = exports.dtoExportFormatNames = void 0;
|
|
18
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
const package_json_1 = __importDefault(require("../package.json"));
|
|
18
21
|
const http_1 = __importDefault(require("http"));
|
|
19
22
|
const https_1 = __importDefault(require("https"));
|
|
20
23
|
exports.dtoExportFormatNames = ["glb", "gltf", "fbx", "dwg", "cmdrw", "cmfav", "cmsym"];
|
|
@@ -71,7 +74,7 @@ class CatalogueAuthAPI {
|
|
|
71
74
|
const url = `/v1/authorize`;
|
|
72
75
|
const options = {
|
|
73
76
|
method: "POST",
|
|
74
|
-
headers: { "X-API-Key": this.auth.secretToken || "" },
|
|
77
|
+
headers: { "X-API-Key": this.auth.secretToken || "", "X-SDK-Version": package_json_1.default.version },
|
|
75
78
|
body: JSON.stringify(body),
|
|
76
79
|
};
|
|
77
80
|
return this.fetch(this.auth.endpoint + url, options);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@configura/web-api-auth",
|
|
3
|
-
"version": "2.2.0-alpha.
|
|
3
|
+
"version": "2.2.0-alpha.1",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -21,5 +21,5 @@
|
|
|
21
21
|
"publishConfig": {
|
|
22
22
|
"access": "public"
|
|
23
23
|
},
|
|
24
|
-
"gitHead": "
|
|
24
|
+
"gitHead": "6a254fe163bdb33a2a22ffde0cda8c818fec7f31"
|
|
25
25
|
}
|