Socket
Socket
Sign inDemoInstall

rasper

Package Overview
Dependencies
0
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.6 to 0.2.7

.eslintrc

10

index.js

@@ -18,3 +18,3 @@ module.exports = (args = process.argv.slice(1)) => {

function hasEgual (value) {
function hasEqual (value) {
return String(value).indexOf('=') !== -1

@@ -28,14 +28,14 @@ }

if (!hasDash(value)) {
if (!hasDash(prev) || hasDash(prev) && hasEgual(prev)) {
if (!hasDash(prev) || hasDash(prev) && hasEqual(prev)) {
rasper._.push(parser(value))
}
if (hasDash(prev) && !hasEgual(prev)) {
if (hasDash(prev) && !hasEqual(prev)) {
return prev + '=' + value
}
}
if (hasDash(value) && !hasEgual(value)) {
if (hasDash(value) && !hasEqual(value)) {
if (hasDash(next) || !next) {
return value + '=' + 'true'
}
if (!hasDash(next) && hasEgual(next)) {
if (!hasDash(next) && hasEqual(next)) {
return value + '=' + next

@@ -42,0 +42,0 @@ }

{
"name": "rasper",
"version": "0.2.6",
"version": "0.2.7",
"description": "Node.js parse argument options make ease.",

@@ -41,14 +41,13 @@ "homepage": "https://cjpatoilo.com/rasper",

"devDependencies": {
"ava": "^0.25.0",
"ava": "^2.1.0",
"boeing": "latest",
"editorconfig-tools": "^0.1.1",
"eslint": "^4.18.0",
"eslint-config-styled": "0.0.2",
"husky": "^0.14.3",
"eslint": "^6.0.1",
"eslint-config-styled": "latest",
"husky": "^3.0.0",
"marshmallow": "latest",
"nyc": "^11.4.1",
"rimraf": "^2.6.2"
"nyc": "^14.1.1",
"rimraf": "^2.6.3"
},
"engines": {
"node": ">=6"
"node": ">=10.0.0"
},

@@ -58,4 +57,4 @@ "scripts": {

"precommit": "npm t",
"test": "nyc ava && eslint . -c styled --ignore-path .gitignore && editorconfig-tools check ."
"test": "nyc ava && eslint . --ignore-path .gitignore"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc