File tree Expand file tree Collapse file tree 4 files changed +12
-9
lines changed Expand file tree Collapse file tree 4 files changed +12
-9
lines changed Original file line number Diff line number Diff line change 11module . exports = abbrev
22
33function 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+ }
58
69 for ( let i = 0 , l = list . length ; i < l ; i ++ ) {
710 list [ i ] = typeof list [ i ] === 'string' ? list [ i ] : String ( list [ i ] )
Original file line number Diff line number Diff line change 11{
22 "name" : " abbrev" ,
3- "version" : " 3.0.0 " ,
3+ "version" : " 3.0.1 " ,
44 "description" : " Like ruby's abbrev module, but in js" ,
55 "author" : " GitHub Inc." ,
66 "main" : " lib/index.js" ,
2121 "license" : " ISC" ,
2222 "devDependencies" : {
2323 "@npmcli/eslint-config" : " ^5.0.0" ,
24- "@npmcli/template-oss" : " 4.23 .3" ,
24+ "@npmcli/template-oss" : " 4.24 .3" ,
2525 "tap" : " ^16.3.0"
2626 },
2727 "tap" : {
3939 },
4040 "templateOSS" : {
4141 "//@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" ,
4343 "publish" : true
4444 }
4545}
Original file line number Diff line number Diff line change 9494 "@npmcli/redact": "^3.1.1",
9595 "@npmcli/run-script": "^9.1.0",
9696 "@sigstore/tuf": "^3.0.0",
97- "abbrev": "^3.0.0 ",
97+ "abbrev": "^3.0.1 ",
9898 "archy": "~1.0.0",
9999 "cacache": "^19.0.1",
100100 "chalk": "^5.4.1",
51225122 }
51235123 },
51245124 "node_modules/abbrev": {
5125- "version": "3.0.0 ",
5126- "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-3.0.0 .tgz",
5127- "integrity": "sha512-+/kfrslGQ7TNV2ecmQwMJj/B65g5KVq1/L3SGVZ3tCYGqlzFuFCGBZJtMP99wH3NpEUyAjn0zPdPUg0D+DwrOA ==",
5125+ "version": "3.0.1 ",
5126+ "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-3.0.1 .tgz",
5127+ "integrity": "sha512-AO2ac6pjRB3SJmGJo+v5/aK6Omggp6fsLrs6wN9bd35ulu4cCwaAU9+7ZhXjeqHVkaHThLuzH0nZr0YpCDhygg ==",
51285128 "inBundle": true,
51295129 "license": "ISC",
51305130 "engines": {
Original file line number Diff line number Diff line change 6161 "@npmcli/redact" : " ^3.1.1" ,
6262 "@npmcli/run-script" : " ^9.1.0" ,
6363 "@sigstore/tuf" : " ^3.0.0" ,
64- "abbrev" : " ^3.0.0 " ,
64+ "abbrev" : " ^3.0.1 " ,
6565 "archy" : " ~1.0.0" ,
6666 "cacache" : " ^19.0.1" ,
6767 "chalk" : " ^5.4.1" ,
You can’t perform that action at this time.
0 commit comments