utilitas 1989.8.68 → 1989.8.72
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/shot.js +1 -1
- package/lib/sms.js +0 -1
- package/package.json +8 -8
package/lib/shot.js
CHANGED
|
@@ -33,7 +33,7 @@ const get = async (url, options) => {
|
|
|
33
33
|
utilitas.assert(url, 'URL is required.');
|
|
34
34
|
options = options || {};
|
|
35
35
|
options.encode = utilitas.ensureString(options.encode, { case: 'UP' });
|
|
36
|
-
const r = await fetch(url,
|
|
36
|
+
const r = await fetch(url, { defFetchOpt, ...options.fetch || {} });
|
|
37
37
|
const ts = (b) => { return b.toString('utf8'); };
|
|
38
38
|
const [htpMime, buffer] = [r.headers.get('content-type'), await r.buffer()];
|
|
39
39
|
const bufMime = utilitas.extract(await fileType.fromBuffer(buffer), 'mime');
|
package/lib/sms.js
CHANGED
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.72",
|
|
5
5
|
"private": false,
|
|
6
6
|
"homepage": "https://github.com/Leask/utilitas",
|
|
7
7
|
"main": "index.js",
|
|
@@ -10,7 +10,7 @@
|
|
|
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 node-fetch@2 && ( git commit -am 'update dependencies' || true )",
|
|
13
|
+
"updep": "npx ncu -u && npm install && npm install file-type@16 && npm install node-fetch@2 && ( git commit -am 'update dependencies' || true )",
|
|
14
14
|
"gitsync": "git pull && git push",
|
|
15
15
|
"prepublishOnly": "npm version patch && npm run updep && npm run gitsync"
|
|
16
16
|
},
|
|
@@ -21,24 +21,24 @@
|
|
|
21
21
|
"url": "https://github.com/Leask/utilitas.git"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@sentry/node": "^6.
|
|
24
|
+
"@sentry/node": "^6.16.0",
|
|
25
25
|
"base64url": "^3.0.1",
|
|
26
26
|
"colors": "^1.4.0",
|
|
27
|
-
"fast-geoip": "^1.1.
|
|
27
|
+
"fast-geoip": "^1.1.49",
|
|
28
28
|
"file-type": "^16.5.3",
|
|
29
29
|
"ini": "github:Leask/ini",
|
|
30
|
-
"ioredis": "^4.28.
|
|
30
|
+
"ioredis": "^4.28.2",
|
|
31
31
|
"jsonwebtoken": "^8.5.1",
|
|
32
32
|
"mailgun-js": "^0.22.0",
|
|
33
33
|
"mathjs": "^10.0.0",
|
|
34
|
-
"mysql2": "^2.3.
|
|
34
|
+
"mysql2": "^2.3.3",
|
|
35
35
|
"node-fetch": "^2.6.6",
|
|
36
36
|
"node-mailjet": "^3.3.4",
|
|
37
37
|
"ping": "^0.4.1",
|
|
38
38
|
"public-ip": "^4.0.4",
|
|
39
|
-
"qs": "^6.10.
|
|
39
|
+
"qs": "^6.10.2",
|
|
40
40
|
"telesignsdk": "^2.2.1",
|
|
41
|
-
"twilio": "^3.71.
|
|
41
|
+
"twilio": "^3.71.3",
|
|
42
42
|
"uuid": "^8.3.2",
|
|
43
43
|
"winston": "^3.3.3",
|
|
44
44
|
"winston-papertrail-mproved": "^1.0.7"
|