+12
-9
lines changedFilter options
+12
-9
lines changed Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
1
1
module.exports = abbrev
2
2
3
3
function abbrev (...args) {
4
-
let list = args.length === 1 || Array.isArray(args[0]) ? args[0] : args
4
+
let list = args
5
+
if (args.length === 1 && (Array.isArray(args[0]) || typeof args[0] === 'string')) {
6
+
list = [].concat(args[0])
7
+
}
5
8
6
9
for (let i = 0, l = list.length; i < l; i++) {
7
10
list[i] = typeof list[i] === 'string' ? list[i] : String(list[i])
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
1
1
{
2
2
"name": "abbrev",
3
-
"version": "3.0.0",
3
+
"version": "3.0.1",
4
4
"description": "Like ruby's abbrev module, but in js",
5
5
"author": "GitHub Inc.",
6
6
"main": "lib/index.js",
@@ -21,7 +21,7 @@
21
21
"license": "ISC",
22
22
"devDependencies": {
23
23
"@npmcli/eslint-config": "^5.0.0",
24
-
"@npmcli/template-oss": "4.23.3",
24
+
"@npmcli/template-oss": "4.24.3",
25
25
"tap": "^16.3.0"
26
26
},
27
27
"tap": {
@@ -39,7 +39,7 @@
39
39
},
40
40
"templateOSS": {
41
41
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
42
-
"version": "4.23.3",
42
+
"version": "4.24.3",
43
43
"publish": true
44
44
}
45
45
}
Original file line number Diff line number Diff line change
@@ -96,7 +96,7 @@
96
96
"@npmcli/redact": "^3.2.2",
97
97
"@npmcli/run-script": "^9.1.0",
98
98
"@sigstore/tuf": "^3.1.1",
99
-
"abbrev": "^3.0.0",
99
+
"abbrev": "^3.0.1",
100
100
"archy": "~1.0.0",
101
101
"cacache": "^19.0.1",
102
102
"chalk": "^5.3.0",
@@ -3294,9 +3294,9 @@
3294
3294
}
3295
3295
},
3296
3296
"node_modules/abbrev": {
3297
-
"version": "3.0.0",
3298
-
"resolved": "https://registry.npmjs.org/abbrev/-/abbrev-3.0.0.tgz",
3299
-
"integrity": "sha512-+/kfrslGQ7TNV2ecmQwMJj/B65g5KVq1/L3SGVZ3tCYGqlzFuFCGBZJtMP99wH3NpEUyAjn0zPdPUg0D+DwrOA==",
3297
+
"version": "3.0.1",
3298
+
"resolved": "https://registry.npmjs.org/abbrev/-/abbrev-3.0.1.tgz",
3299
+
"integrity": "sha512-AO2ac6pjRB3SJmGJo+v5/aK6Omggp6fsLrs6wN9bd35ulu4cCwaAU9+7ZhXjeqHVkaHThLuzH0nZr0YpCDhygg==",
3300
3300
"inBundle": true,
3301
3301
"license": "ISC",
3302
3302
"engines": {
Original file line number Diff line number Diff line change
@@ -61,7 +61,7 @@
61
61
"@npmcli/redact": "^3.2.2",
62
62
"@npmcli/run-script": "^9.1.0",
63
63
"@sigstore/tuf": "^3.1.1",
64
-
"abbrev": "^3.0.0",
64
+
"abbrev": "^3.0.1",
65
65
"archy": "~1.0.0",
66
66
"cacache": "^19.0.1",
67
67
"chalk": "^5.3.0",
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4