@constructor-io/constructorio-connect-cli 1.0.4 → 1.1.0
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http-client.d.ts","sourceRoot":"","sources":["../../src/http/http-client.ts"],"names":[],"mappings":"AACA,OAAO,KAAuB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"http-client.d.ts","sourceRoot":"","sources":["../../src/http/http-client.ts"],"names":[],"mappings":"AACA,OAAO,KAAuB,MAAM,OAAO,CAAC;AAK5C;;GAEG;AACH,wBAAsB,aAAa,iCAkClC"}
|
package/dist/http/http-client.js
CHANGED
|
@@ -22,11 +22,15 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
22
22
|
__setModuleDefault(result, mod);
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
25
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
29
|
exports.getHttpClient = void 0;
|
|
27
30
|
const errors_1 = require("@oclif/core/lib/errors");
|
|
28
31
|
const axios_1 = __importStar(require("axios"));
|
|
29
32
|
const get_connect_token_1 = require("../customer/get-connect-token");
|
|
33
|
+
const version_1 = __importDefault(require("../version"));
|
|
30
34
|
/**
|
|
31
35
|
* @returns An axios instance with the correct base URL and auth token.
|
|
32
36
|
*/
|
|
@@ -37,6 +41,7 @@ async function getHttpClient() {
|
|
|
37
41
|
baseURL,
|
|
38
42
|
headers: {
|
|
39
43
|
Authorization: `Bearer ${token}`,
|
|
44
|
+
"X-CLI-Version": version_1.default,
|
|
40
45
|
},
|
|
41
46
|
});
|
|
42
47
|
instance.interceptors.response.use((response) => response, async (error) => {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":";AAAA,wBAAuB"}
|
package/dist/version.js
ADDED
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED