@naturalcycles/nodejs-lib 12.80.1 → 12.80.3
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/dist/fs/kpy.js +2 -2
- package/dist/got/getGot.js +1 -1
- package/dist/slack/slack.service.js +1 -1
- package/package.json +3 -3
package/dist/fs/kpy.js
CHANGED
|
@@ -69,8 +69,8 @@ function kpyPrepare(opt) {
|
|
|
69
69
|
if (!opt.inputPatterns?.length)
|
|
70
70
|
opt.inputPatterns = ['**'];
|
|
71
71
|
// default to cwd
|
|
72
|
-
opt.baseDir
|
|
73
|
-
opt.outputDir
|
|
72
|
+
opt.baseDir ||= '.';
|
|
73
|
+
opt.outputDir ||= '.';
|
|
74
74
|
if (!fs.existsSync(opt.baseDir)) {
|
|
75
75
|
console.log(`kpy: baseDir doesn't exist: ${(0, colors_1.boldWhite)(opt.baseDir)}`);
|
|
76
76
|
return;
|
package/dist/got/getGot.js
CHANGED
|
@@ -14,7 +14,7 @@ const __1 = require("..");
|
|
|
14
14
|
* 4. Preserves error stack traces (!) (experimental!)
|
|
15
15
|
*/
|
|
16
16
|
function getGot(opt = {}) {
|
|
17
|
-
opt.logger
|
|
17
|
+
opt.logger ||= console;
|
|
18
18
|
if (opt.debug) {
|
|
19
19
|
opt.logStart = opt.logFinished = opt.logResponse = opt.logRequest = true;
|
|
20
20
|
}
|
|
@@ -62,7 +62,7 @@ class SlackService {
|
|
|
62
62
|
// Transform msg.kv into msg.attachments
|
|
63
63
|
if (msg.kv) {
|
|
64
64
|
;
|
|
65
|
-
(msg.attachments
|
|
65
|
+
(msg.attachments ||= []).push({ fields: this.kvToFields(msg.kv) });
|
|
66
66
|
delete msg.kv; // to not pass it all the way to Slack Api
|
|
67
67
|
}
|
|
68
68
|
let text;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturalcycles/nodejs-lib",
|
|
3
|
-
"version": "12.80.
|
|
3
|
+
"version": "12.80.3",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"prepare": "husky install",
|
|
6
6
|
"docs-serve": "vuepress dev docs",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"dotenv": "^16.0.0",
|
|
28
28
|
"execa": "^5.0.0",
|
|
29
29
|
"fast-glob": "^3.2.11",
|
|
30
|
-
"fs-extra": "^
|
|
30
|
+
"fs-extra": "^11.0.0",
|
|
31
31
|
"globby": "^11.0.0",
|
|
32
32
|
"got": "^11.0.1",
|
|
33
33
|
"joi": "17.4.2",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"url": "https://github.com/NaturalCycles/nodejs-lib"
|
|
78
78
|
},
|
|
79
79
|
"engines": {
|
|
80
|
-
"node": ">=
|
|
80
|
+
"node": ">=16.10.0"
|
|
81
81
|
},
|
|
82
82
|
"description": "Standard library for Node.js",
|
|
83
83
|
"author": "Natural Cycles Team",
|