This commit is contained in:
hatuhn
2019-09-13 09:44:33 +07:00
parent 1f1633e801
commit f14a34ba19
16798 changed files with 1652961 additions and 4327 deletions

View File

@@ -0,0 +1,3 @@
src
test
node_modules

View File

@@ -0,0 +1,5 @@
# babel-helper-get-function-arity
## Usage
TODO

View File

@@ -0,0 +1,22 @@
"use strict";
exports.__esModule = true;
exports.default = function (node) {
var params = node.params;
for (var i = 0; i < params.length; i++) {
var param = params[i];
if (t.isAssignmentPattern(param) || t.isRestElement(param)) {
return i;
}
}
return params.length;
};
var _babelTypes = require("babel-types");
var t = _interopRequireWildcard(_babelTypes);
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)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
module.exports = exports["default"];

View File

@@ -0,0 +1,40 @@
{
"_from": "babel-helper-get-function-arity@^6.24.1",
"_id": "babel-helper-get-function-arity@6.24.1",
"_inBundle": false,
"_integrity": "sha1-j3eCqpNAfEHTqlCQj4mwMbG2hT0=",
"_location": "/babel-helper-get-function-arity",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "babel-helper-get-function-arity@^6.24.1",
"name": "babel-helper-get-function-arity",
"escapedName": "babel-helper-get-function-arity",
"rawSpec": "^6.24.1",
"saveSpec": null,
"fetchSpec": "^6.24.1"
},
"_requiredBy": [
"/babel-helper-function-name"
],
"_resolved": "https://registry.npmjs.org/babel-helper-get-function-arity/-/babel-helper-get-function-arity-6.24.1.tgz",
"_shasum": "8f7782aa93407c41d3aa50908f89b031b1b6853d",
"_spec": "babel-helper-get-function-arity@^6.24.1",
"_where": "/Applications/XAMPP/xamppfiles/htdocs/wordpress/t-latehome/wp-content/plugins/opal-estate-pro/node_modules/babel-helper-function-name",
"bundleDependencies": false,
"dependencies": {
"babel-runtime": "^6.22.0",
"babel-types": "^6.24.1"
},
"deprecated": false,
"description": "Helper function to get function arity",
"license": "MIT",
"main": "lib/index.js",
"name": "babel-helper-get-function-arity",
"repository": {
"type": "git",
"url": "https://github.com/babel/babel/tree/master/packages/babel-helper-get-function-arity"
},
"version": "6.24.1"
}