@constructor-io/constructorio-connect-cli 1.0.4 → 1.1.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.
@@ -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;AAI5C;;GAEG;AACH,wBAAsB,aAAa,iCAiClC"}
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"}
@@ -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,3 @@
1
+ declare const _default: "1.1.1";
2
+ export default _default;
3
+ //# sourceMappingURL=version.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":";AAAA,wBAAuB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = '1.1.1';
@@ -125,5 +125,5 @@
125
125
  ]
126
126
  }
127
127
  },
128
- "version": "1.0.4"
128
+ "version": "0.0.0"
129
129
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@constructor-io/constructorio-connect-cli",
3
- "version": "1.0.4",
3
+ "version": "1.1.1",
4
4
  "description": "CLI tool to enable users to interface with the Constructor Connect Ecosystem",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -31,7 +31,7 @@
31
31
  "lint:fix": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
32
32
  "license-check": "license-checker --production --onlyAllow 'Apache-2.0;BSD-3-Clause;BSD-2-Clause;ISC;MIT;0BSD'",
33
33
  "postpack": "shx rm -f oclif.manifest.json",
34
- "prepack": "npm run build && npm run generate-readme && oclif manifest"
34
+ "compile": "npm run build && npm run generate-readme && oclif manifest"
35
35
  },
36
36
  "oclif": {
37
37
  "dirname": "constructorio-connect-cli",