@quatrain/worker 1.1.19 → 1.1.20
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 +5 -8
- 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
|
@@ -12,14 +12,6 @@ const child_process_1 = require("child_process");
|
|
|
12
12
|
class Worker extends core_1.Core {
|
|
13
13
|
static endpoint = '';
|
|
14
14
|
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
15
|
/**
|
|
24
16
|
* Execute an external command in a promise
|
|
25
17
|
* @see https://stackoverflow.com/questions/46289682/how-to-wait-for-child-process-spawn-execution-with-async-await
|
|
@@ -67,6 +59,11 @@ class Worker extends core_1.Core {
|
|
|
67
59
|
...data,
|
|
68
60
|
ts,
|
|
69
61
|
};
|
|
62
|
+
axios_1.default.create({
|
|
63
|
+
httpsAgent: new https_1.default.Agent({
|
|
64
|
+
rejectUnauthorized: false,
|
|
65
|
+
}),
|
|
66
|
+
});
|
|
70
67
|
axios_1.default
|
|
71
68
|
.patch(Worker.endpoint, payload)
|
|
72
69
|
.then((res) => {
|