@dittowords/cli 2.7.0 → 2.7.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/README.md CHANGED
@@ -157,7 +157,7 @@ If you run the CLI in a directory that does not contain a `ditto/` folder, the f
157
157
  More information about statuses can be found [here](https://www.dittowords.com/docs/tips-for-collaborating).
158
158
 
159
159
  ```yml
160
- staus: FINAL
160
+ status: FINAL
161
161
  ```
162
162
 
163
163
  **Full Example**
package/bin/api.js CHANGED
@@ -5,6 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.create = void 0;
7
7
  const axios_1 = __importDefault(require("axios"));
8
+ const https_1 = __importDefault(require("https"));
8
9
  const config_1 = __importDefault(require("./config"));
9
10
  const consts_1 = __importDefault(require("./consts"));
10
11
  const create = (token) => {
@@ -13,6 +14,10 @@ const create = (token) => {
13
14
  headers: {
14
15
  Authorization: `token ${token}`,
15
16
  },
17
+ httpsAgent: new https_1.default.Agent({
18
+ requestCert: true,
19
+ rejectUnauthorized: false,
20
+ }),
16
21
  });
17
22
  };
18
23
  exports.create = create;
package/bin/api.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"api.js","sourceRoot":"","sources":["../lib/api.ts"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAE1B,sDAA8B;AAC9B,sDAA8B;AAEvB,MAAM,MAAM,GAAG,CAAC,KAAc,EAAE,EAAE;IACvC,OAAO,eAAK,CAAC,MAAM,CAAC;QAClB,OAAO,EAAE,gBAAM,CAAC,QAAQ;QACxB,OAAO,EAAE;YACP,aAAa,EAAE,SAAS,KAAK,EAAE;SAChC;KACF,CAAC,CAAC;AACL,CAAC,CAAC;AAPW,QAAA,MAAM,UAOjB;AAEF,kBAAe,IAAA,cAAM,EAAC,gBAAM,CAAC,QAAQ,CAAC,gBAAM,CAAC,WAAW,EAAE,gBAAM,CAAC,QAAQ,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"api.js","sourceRoot":"","sources":["../lib/api.ts"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,kDAA0B;AAE1B,sDAA8B;AAC9B,sDAA8B;AAEvB,MAAM,MAAM,GAAG,CAAC,KAAc,EAAE,EAAE;IACvC,OAAO,eAAK,CAAC,MAAM,CAAC;QAClB,OAAO,EAAE,gBAAM,CAAC,QAAQ;QACxB,OAAO,EAAE;YACP,aAAa,EAAE,SAAS,KAAK,EAAE;SAChC;QACD,UAAU,EAAE,IAAI,eAAK,CAAC,KAAK,CAAC;YAC1B,WAAW,EAAE,IAAI;YACjB,kBAAkB,EAAE,KAAK;SAC1B,CAAC;KACH,CAAC,CAAC;AACL,CAAC,CAAC;AAXW,QAAA,MAAM,UAWjB;AAEF,kBAAe,IAAA,cAAM,EAAC,gBAAM,CAAC,QAAQ,CAAC,gBAAM,CAAC,WAAW,EAAE,gBAAM,CAAC,QAAQ,CAAC,CAAC,CAAC"}
package/lib/api.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import axios from "axios";
2
+ import https from "https";
2
3
 
3
4
  import config from "./config";
4
5
  import consts from "./consts";
@@ -9,6 +10,10 @@ export const create = (token?: string) => {
9
10
  headers: {
10
11
  Authorization: `token ${token}`,
11
12
  },
13
+ httpsAgent: new https.Agent({
14
+ requestCert: true,
15
+ rejectUnauthorized: false,
16
+ }),
12
17
  });
13
18
  };
14
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dittowords/cli",
3
- "version": "2.7.0",
3
+ "version": "2.7.1",
4
4
  "description": "Command Line Interface for Ditto (dittowords.com).",
5
5
  "main": "bin/index.js",
6
6
  "scripts": {