@quatrain/worker 1.1.19 → 1.1.21
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/lib/Worker.d.ts +0 -1
- package/lib/Worker.js +0 -9
- package/package.json +1 -1
package/lib/Worker.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ import { Core } from '@quatrain/core';
|
|
|
2
2
|
export declare class Worker extends Core {
|
|
3
3
|
static endpoint: string;
|
|
4
4
|
static logger: any;
|
|
5
|
-
constructor();
|
|
6
5
|
/**
|
|
7
6
|
* Execute an external command in a promise
|
|
8
7
|
* @see https://stackoverflow.com/questions/46289682/how-to-wait-for-child-process-spawn-execution-with-async-await
|
package/lib/Worker.js
CHANGED
|
@@ -7,19 +7,10 @@ exports.Worker = void 0;
|
|
|
7
7
|
const core_1 = require("@quatrain/core");
|
|
8
8
|
const os_1 = __importDefault(require("os"));
|
|
9
9
|
const axios_1 = __importDefault(require("axios"));
|
|
10
|
-
const https_1 = __importDefault(require("https"));
|
|
11
10
|
const child_process_1 = require("child_process");
|
|
12
11
|
class Worker extends core_1.Core {
|
|
13
12
|
static endpoint = '';
|
|
14
13
|
static logger = this.addLogger('Worker');
|
|
15
|
-
constructor() {
|
|
16
|
-
super();
|
|
17
|
-
axios_1.default.create({
|
|
18
|
-
httpsAgent: new https_1.default.Agent({
|
|
19
|
-
rejectUnauthorized: false,
|
|
20
|
-
}),
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
14
|
/**
|
|
24
15
|
* Execute an external command in a promise
|
|
25
16
|
* @see https://stackoverflow.com/questions/46289682/how-to-wait-for-child-process-spawn-execution-with-async-await
|