Socket
Socket
Sign inDemoInstall

optimist

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

optimist - npm Package Compare versions

Comparing version 0.4.0 to 0.5.0

test/dash.js

12

index.js

@@ -364,2 +364,8 @@ var path = require('path');

var next = arg.slice(j+2);
if (next === '-') {
setArg(letters[j], next)
continue;
}
if (/[A-Za-z]/.test(letters[j])

@@ -381,6 +387,6 @@ && /-?\d+(\.\d*)?(e-?\d+)?$/.test(next)) {

if (!broken) {
var key = arg.slice(-1)[0];
var key = arg.slice(-1)[0];
if (!broken && key !== '-') {
if (args[i+1] && !args[i+1].match(/^-/)
if (args[i+1] && !/^(-|--)[^-]/.test(args[i+1])
&& !flags.bools[key]

@@ -387,0 +393,0 @@ && (aliases[key] ? !flags.bools[aliases[key]] : true)) {

{
"name" : "optimist",
"version" : "0.4.0",
"version" : "0.5.0",
"description" : "Light-weight option parsing with an argv hash. No optstrings attached.",

@@ -5,0 +5,0 @@ "main" : "./index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc