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

babel-runtime-named-params

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-runtime-named-params - npm Package Compare versions

Comparing version 0.9.16 to 0.9.17

10

lib/babel-runtime-named-params.node.js

@@ -71,7 +71,7 @@ /*

let names = funcParams(fn, options.caching);
const names = funcParams(fn, options.caching);
/* initialize function arguments */
let args = new Array(names.length);
let mask = new Array(names.length);
const args = new Array(names.length);
const mask = new Array(names.length);

@@ -85,7 +85,7 @@ for (let i = 0; i < names.length; i++) {

let optIndex = options.options ? names.indexOf("options") : -1;
const optIndex = options.options ? names.indexOf("options") : -1;
/* process named parameters */
Object.keys(np).forEach(name => {
let i = names.indexOf(name);
const i = names.indexOf(name);

@@ -92,0 +92,0 @@ if (options.options && i < 0 && optIndex >= 0) {

@@ -5,3 +5,3 @@ {

"description": "Babel Run-Time for Named Function Parameters",
"version": "0.9.16",
"version": "0.9.17",
"license": "MIT",

@@ -29,16 +29,16 @@ "author": {

"grunt-mocha-test": "0.13.3",
"grunt-eslint": "21.1.0",
"babel-eslint": "10.0.1",
"grunt-eslint": "22.0.0",
"babel-eslint": "10.0.3",
"envify": "4.1.0",
"uglifyify": "5.0.1",
"uglifyify": "5.0.2",
"babelify": "10.0.0",
"eslint": "5.16.0",
"eslint-config-standard": "12.0.0",
"eslint-plugin-standard": "4.0.0",
"eslint-plugin-promise": "4.1.1",
"eslint-plugin-import": "2.17.3",
"eslint-plugin-node": "9.1.0",
"@babel/core": "7.4.5",
"@babel/preset-env": "7.4.5",
"@babel/plugin-transform-runtime": "7.4.4",
"eslint": "6.8.0",
"eslint-config-standard": "14.1.0",
"eslint-plugin-standard": "4.0.1",
"eslint-plugin-promise": "4.2.1",
"eslint-plugin-import": "2.19.1",
"eslint-plugin-node": "10.0.0",
"@babel/core": "7.7.7",
"@babel/preset-env": "7.7.7",
"@babel/plugin-transform-runtime": "7.7.6",
"browserify-header": "1.0.1",

@@ -45,0 +45,0 @@ "browserify-derequire": "1.0.1"

@@ -47,7 +47,7 @@ /*

/* determine function parameter names */
let names = funcParams(fn, options.caching)
const names = funcParams(fn, options.caching)
/* initialize function arguments */
let args = new Array(names.length)
let mask = new Array(names.length)
const args = new Array(names.length)
const mask = new Array(names.length)
for (let i = 0; i < names.length; i++) {

@@ -59,7 +59,7 @@ args[i] = undefined

/* detect special options argument */
let optIndex = options.options ? names.indexOf("options") : -1
const optIndex = options.options ? names.indexOf("options") : -1
/* process named parameters */
Object.keys(np).forEach((name) => {
let i = names.indexOf(name)
const i = names.indexOf(name)
if (options.options && i < 0 && optIndex >= 0) {

@@ -66,0 +66,0 @@ if (!mask[optIndex])

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