@babel/helper-get-function-arity
Advanced tools
Comparing version 7.0.0 to 7.7.0
@@ -8,14 +8,8 @@ "use strict"; | ||
function t() { | ||
const data = _interopRequireWildcard(require("@babel/types")); | ||
var t = _interopRequireWildcard(require("@babel/types")); | ||
t = function () { | ||
return data; | ||
}; | ||
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; } | ||
return data; | ||
} | ||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; if (obj != null) { var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } | ||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } | ||
function _default(node) { | ||
@@ -27,3 +21,3 @@ const params = node.params; | ||
if (t().isAssignmentPattern(param) || t().isRestElement(param)) { | ||
if (t.isAssignmentPattern(param) || t.isRestElement(param)) { | ||
return i; | ||
@@ -30,0 +24,0 @@ } |
{ | ||
"name": "@babel/helper-get-function-arity", | ||
"version": "7.0.0", | ||
"version": "7.7.0", | ||
"description": "Helper function to get function arity", | ||
"repository": "https://github.com/babel/babel/tree/master/packages/babel-helper-get-function-arity", | ||
"license": "MIT", | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"main": "lib/index.js", | ||
"dependencies": { | ||
"@babel/types": "^7.0.0" | ||
} | ||
"@babel/types": "^7.7.0" | ||
}, | ||
"gitHead": "97faa83953cb87e332554fa559a4956d202343ea" | ||
} |
Sorry, the diff of this file is not supported yet
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
3198
19
1
Updated@babel/types@^7.7.0