utilitas 1989.8.75 → 1989.8.82
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/utilitas.js +2 -6
- package/package.json +5 -4
package/lib/utilitas.js
CHANGED
|
@@ -574,12 +574,8 @@ const checkInterval = (itv, sed) => {
|
|
|
574
574
|
return !((Math.round(Date.now() / 1000) + ensureInt(sed)) % ensureInt(itv));
|
|
575
575
|
};
|
|
576
576
|
|
|
577
|
-
const ignoreErrFunc = async (
|
|
578
|
-
|
|
579
|
-
try {
|
|
580
|
-
return await act.apply(options?.this || ths, args || []);
|
|
581
|
-
}
|
|
582
|
-
catch (err) { return options?.log ? console.error(err) : err; }
|
|
577
|
+
const ignoreErrFunc = async (f, o) => {
|
|
578
|
+
try { return await f(); } catch (e) { return o?.log ? console.error(e) : e }
|
|
583
579
|
};
|
|
584
580
|
|
|
585
581
|
const tryUntil = async (fnTry, options) => {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "utilitas",
|
|
3
3
|
"description": "Just another common utility for Node.js.",
|
|
4
|
-
"version": "1989.8.
|
|
4
|
+
"version": "1989.8.82",
|
|
5
5
|
"private": false,
|
|
6
6
|
"homepage": "https://github.com/Leask/utilitas",
|
|
7
7
|
"main": "index.js",
|
|
@@ -10,9 +10,10 @@
|
|
|
10
10
|
"debug": "node --inspect --trace-warnings debug.js",
|
|
11
11
|
"test": "node --inspect --trace-warnings test.js",
|
|
12
12
|
"ncuinit": "npm install -g npm-check-updates",
|
|
13
|
-
"updep": "npx ncu -u && npm install && npm install file-type@16 && npm install node-fetch@2 && npm install public-ip@4 && ( git commit -am 'update dependencies' || true )",
|
|
13
|
+
"updep": "npx ncu -u && npm install && npm install file-type@16 && npm install node-fetch@2 && npm install public-ip@4 && npm install colors@1.4.0 && ( git commit -am 'update dependencies' || true )",
|
|
14
14
|
"gitsync": "git pull && git push",
|
|
15
|
-
"
|
|
15
|
+
"prepublishOnlyOld": "npm version patch && npm run updep && npm run gitsync",
|
|
16
|
+
"prepublishOnly": "npm version patch && npm run gitsync"
|
|
16
17
|
},
|
|
17
18
|
"author": "Leask Wong <i@leaskh.com>",
|
|
18
19
|
"license": "MIT",
|
|
@@ -23,7 +24,7 @@
|
|
|
23
24
|
"dependencies": {
|
|
24
25
|
"@sentry/node": "^6.16.1",
|
|
25
26
|
"base64url": "^3.0.1",
|
|
26
|
-
"colors": "
|
|
27
|
+
"colors": "1.4.0",
|
|
27
28
|
"fast-geoip": "^1.1.53",
|
|
28
29
|
"file-type": "^16.5.3",
|
|
29
30
|
"ini": "github:Leask/ini",
|