posix-getopt
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -91,5 +91,6 @@ /* | ||
if (!/^[\w\d]$/.test(chr)) | ||
if (!/^[\w\d\u1000-\u1100]$/.test(chr)) | ||
throw (goError('invalid optstring: only alphanumeric ' + | ||
'characters may be used as options: ' + chr)); | ||
'characters and unicode characters between ' + | ||
'\\u1000-\\u1100 may be used as options: ' + chr)); | ||
@@ -96,0 +97,0 @@ if (ii + 1 < optstr.length && optstr[ii + 1] == ':') { |
{ | ||
"name": "posix-getopt", | ||
"version": "1.0.0", | ||
"description": "POSIX-style getopt()", | ||
"author": "Dave Pacheco (dap@cs.brown.edu)", | ||
"engines": { "node": "*" }, | ||
"main": "./lib/getopt" | ||
"name": "posix-getopt", | ||
"version": "1.1.0", | ||
"description": "POSIX-style getopt()", | ||
"author": "Dave Pacheco (dap@cs.brown.edu)", | ||
"engines": { | ||
"node": "*" | ||
}, | ||
"main": "./lib/getopt", | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/davepacheco/node-getopt.git" | ||
}, | ||
"license": "MIT" | ||
} |
@@ -53,3 +53,21 @@ /* | ||
result: [] | ||
} ]; | ||
}, { | ||
optstr: '\u1000(help)\u1001(version)', | ||
argv: ['cmd', 'script', '--help' ], | ||
result: [ | ||
{ option: '\u1000' }, | ||
] | ||
}, { | ||
optstr: '\u1000(help)\u1001(version)', | ||
argv: ['cmd', 'script', '--version' ], | ||
result: [ | ||
{ option: '\u1001' }, | ||
] | ||
}, { | ||
optstr: '\u1000:(parallel)', | ||
argv: ['cmd', 'script', '--parallel=100' ], | ||
result: [ | ||
{ option: '\u1000', optarg: 100 }, | ||
] | ||
}]; | ||
@@ -56,0 +74,0 @@ var parser, ii, arg, result; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
27489
502
0
0