@quatrain/worker 1.1.12 → 1.1.14
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/FileSystem.js +0 -6
- package/lib/Worker.js +2 -2
- package/package.json +6 -6
package/lib/FileSystem.js
CHANGED
|
@@ -112,12 +112,6 @@ class FileSystem {
|
|
|
112
112
|
})
|
|
113
113
|
.then((res) => resolve(res))
|
|
114
114
|
.catch((err) => reject(err));
|
|
115
|
-
// } else {
|
|
116
|
-
// Worker.error(res)
|
|
117
|
-
// reject(new Error('Unable to init upload'))
|
|
118
|
-
// }
|
|
119
|
-
//})
|
|
120
|
-
// .catch((err: any) => reject(err))
|
|
121
115
|
}
|
|
122
116
|
catch (err) {
|
|
123
117
|
console.log(err);
|
package/lib/Worker.js
CHANGED
|
@@ -24,10 +24,10 @@ class Worker extends core_1.Core {
|
|
|
24
24
|
return new Promise((resolve, reject) => {
|
|
25
25
|
const child = (0, child_process_1.spawn)(command, args, { cwd });
|
|
26
26
|
child.stdout.on('data', (data) => {
|
|
27
|
-
Worker.
|
|
27
|
+
Worker.debug(data.toString());
|
|
28
28
|
});
|
|
29
29
|
child.stderr.on('data', (data) => {
|
|
30
|
-
Worker.
|
|
30
|
+
Worker.debug(data.toString());
|
|
31
31
|
});
|
|
32
32
|
child.on('close', (code) => {
|
|
33
33
|
if (code !== 0) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quatrain/worker",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.14",
|
|
4
4
|
"description": "Container Worker helpers",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"typescript": "^5.1.5"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@quatrain/core": "^1.1.
|
|
27
|
+
"@quatrain/core": "^1.1.11",
|
|
28
28
|
"axios": "^1.7.7",
|
|
29
29
|
"fs-extra": "^11.2.0",
|
|
30
30
|
"node-fetch-native": "^1.6.4"
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
"wbuild": "tsc --watch",
|
|
36
36
|
"bump-to": "yarn version",
|
|
37
37
|
"hash": "node ../../bin/hashFolder.js",
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"publish": "yarn
|
|
41
|
-
"
|
|
38
|
+
"hash:persist": "yarn hash > .hash_latest.txt",
|
|
39
|
+
"hash:compare": "yarn hash > .hash_newest.txt && cmp -s .hash_latest.txt .hash_newest.txt",
|
|
40
|
+
"publish": "yarn hash:compare || yarn publish:process",
|
|
41
|
+
"publish:process": "yarn version patch && yarn build && yarn npm publish --access public && yarn hash:persist"
|
|
42
42
|
}
|
|
43
43
|
}
|