Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

arguer

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

arguer - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

2

arguer.js

@@ -16,3 +16,3 @@ /**

{
if (format[x] && (format[x].optional || format[x].mutex || format[x].requires || format[x].requiredBy))
if (format[x] && (format[x].optional || format[x].mutex || format[x].requires || format[x].requiredBy || ('default' in format[x])))
{

@@ -19,0 +19,0 @@ format[x].optional = true;

@@ -0,0 +0,0 @@ var arguer = require('./arguer.js');

{
"name": "arguer",
"version": "0.0.2",
"version": "0.0.3",
"author": "Bret Copeland <bret@atlantisflight.org>",

@@ -5,0 +5,0 @@ "description": "Normalizes arguments for JavaScript functions with optional arguments and provides optional typing.",

@@ -91,7 +91,7 @@ # Arguer

Specifies a default value for an argument.
Specifies a default value for an argument. If a default value is provided, `optional:true` is implied, and can be omitted.
### Back-Reference Properties
Each of the following properties accept a string which represents the name of a previous argument. ___Only previous___ arguments can referenced. In other words, arg with index 4 can reference any arg 0 through 3, but cannot reference arg 5. If any one or more of the following properties are used, optional:true is implied, and can be omitted.
Each of the following properties accept a string which represents the name of a previous argument. ___Only previous___ arguments can referenced. In other words, arg with index 4 can reference any arg 0 through 3, but cannot reference arg 5. If any one or more of the following properties are used, `optional:true` is implied, and can be omitted.

@@ -98,0 +98,0 @@ #### requires : _string_

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