@microlink/ping-url 1.4.12 → 1.4.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/index.js +3 -1
- package/package.json +10 -10
package/index.js
CHANGED
|
@@ -2,10 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
const reachableUrl = require('reachable-url')
|
|
4
4
|
const memoize = require('@keyvhq/memoize')
|
|
5
|
-
const isStream = require('is-stream')
|
|
6
5
|
const { omitBy } = require('lodash')
|
|
7
6
|
|
|
7
|
+
const isStream = input => input != null && typeof input.pipe === 'function'
|
|
8
|
+
|
|
8
9
|
const pingUrl = async (...args) => omitBy(await reachableUrl(...args), isStream)
|
|
9
10
|
|
|
10
11
|
module.exports = (keyOpts, memoOpts) => memoize(pingUrl, keyOpts, memoOpts)
|
|
11
12
|
module.exports.isReachable = reachableUrl.isReachable
|
|
13
|
+
module.exports.isStream = isStream
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microlink/ping-url",
|
|
3
3
|
"description": "Fast DNS resolution caching results for a while.",
|
|
4
|
-
"homepage": "https://
|
|
5
|
-
"version": "1.4.
|
|
4
|
+
"homepage": "https://github.com/microlinkhq/ping-url",
|
|
5
|
+
"version": "1.4.14",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"author": {
|
|
8
8
|
"email": "hello@microlink.io",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
},
|
|
12
12
|
"contributors": [
|
|
13
13
|
{
|
|
14
|
-
"name": "Kiko",
|
|
14
|
+
"name": "Kiko Beats",
|
|
15
15
|
"email": "josefrancisco.verdu@gmail.com"
|
|
16
16
|
}
|
|
17
17
|
],
|
|
@@ -31,22 +31,21 @@
|
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@keyvhq/memoize": "~2.1.0",
|
|
34
|
-
"is-stream": "~2.0.0",
|
|
35
34
|
"lodash": "~4.17.21",
|
|
36
35
|
"reachable-url": "~1.8.0"
|
|
37
36
|
},
|
|
38
37
|
"devDependencies": {
|
|
39
38
|
"@commitlint/cli": "latest",
|
|
40
39
|
"@commitlint/config-conventional": "latest",
|
|
41
|
-
"
|
|
40
|
+
"@ksmithut/prettier-standard": "latest",
|
|
41
|
+
"ava": "5",
|
|
42
42
|
"c8": "latest",
|
|
43
43
|
"ci-publish": "latest",
|
|
44
|
-
"conventional-github-releaser": "latest",
|
|
45
44
|
"finepack": "latest",
|
|
46
45
|
"git-authors-cli": "latest",
|
|
46
|
+
"github-generate-release": "latest",
|
|
47
47
|
"nano-staged": "latest",
|
|
48
48
|
"npm-check-updates": "latest",
|
|
49
|
-
"prettier-standard": "latest",
|
|
50
49
|
"simple-git-hooks": "latest",
|
|
51
50
|
"standard": "latest",
|
|
52
51
|
"standard-markdown": "latest",
|
|
@@ -66,7 +65,7 @@
|
|
|
66
65
|
"prerelease": "npm run update:check && npm run contributors",
|
|
67
66
|
"pretest": "npm run lint",
|
|
68
67
|
"release": "standard-version -a",
|
|
69
|
-
"release:github": "
|
|
68
|
+
"release:github": "github-generate-release",
|
|
70
69
|
"release:tags": "git push --follow-tags origin HEAD:master",
|
|
71
70
|
"test": "c8 ava",
|
|
72
71
|
"update": "ncu -u",
|
|
@@ -85,8 +84,9 @@
|
|
|
85
84
|
}
|
|
86
85
|
],
|
|
87
86
|
"nano-staged": {
|
|
88
|
-
"*.js
|
|
89
|
-
"prettier-standard"
|
|
87
|
+
"*.js": [
|
|
88
|
+
"prettier-standard",
|
|
89
|
+
"standard --fix"
|
|
90
90
|
],
|
|
91
91
|
"*.md": [
|
|
92
92
|
"standard-markdown"
|