summaryrefslogtreecommitdiffstats
path: root/node_modules/babel-helper-get-function-arity
diff options
context:
space:
mode:
authorGravatar Piotr Russ <mail@pruss.it> 2020-11-16 00:10:28 +0100
committerGravatar Piotr Russ <mail@pruss.it> 2020-11-16 00:10:28 +0100
commite06ec920f7a5d784e674c4c4b4e6d1da3dc7391d (patch)
tree55713f725f77b44ebfec86e4eec3ce33e71458ca /node_modules/babel-helper-get-function-arity
downloadwebsite_creator-e06ec920f7a5d784e674c4c4b4e6d1da3dc7391d.tar.gz
website_creator-e06ec920f7a5d784e674c4c4b4e6d1da3dc7391d.tar.bz2
website_creator-e06ec920f7a5d784e674c4c4b4e6d1da3dc7391d.zip
api, login, auth
Diffstat (limited to 'node_modules/babel-helper-get-function-arity')
-rw-r--r--node_modules/babel-helper-get-function-arity/.npmignore3
-rw-r--r--node_modules/babel-helper-get-function-arity/README.md5
-rw-r--r--node_modules/babel-helper-get-function-arity/lib/index.js22
-rw-r--r--node_modules/babel-helper-get-function-arity/package.json41
4 files changed, 71 insertions, 0 deletions
diff --git a/node_modules/babel-helper-get-function-arity/.npmignore b/node_modules/babel-helper-get-function-arity/.npmignore
new file mode 100644
index 0000000..47cdd2c
--- /dev/null
+++ b/node_modules/babel-helper-get-function-arity/.npmignore
@@ -0,0 +1,3 @@
+src
+test
+node_modules
diff --git a/node_modules/babel-helper-get-function-arity/README.md b/node_modules/babel-helper-get-function-arity/README.md
new file mode 100644
index 0000000..2263230
--- /dev/null
+++ b/node_modules/babel-helper-get-function-arity/README.md
@@ -0,0 +1,5 @@
+# babel-helper-get-function-arity
+
+## Usage
+
+TODO
diff --git a/node_modules/babel-helper-get-function-arity/lib/index.js b/node_modules/babel-helper-get-function-arity/lib/index.js
new file mode 100644
index 0000000..929dc41
--- /dev/null
+++ b/node_modules/babel-helper-get-function-arity/lib/index.js
@@ -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"]; \ No newline at end of file
diff --git a/node_modules/babel-helper-get-function-arity/package.json b/node_modules/babel-helper-get-function-arity/package.json
new file mode 100644
index 0000000..23cb95b
--- /dev/null
+++ b/node_modules/babel-helper-get-function-arity/package.json
@@ -0,0 +1,41 @@
+{
+ "_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",
+ "/babel-plugin-transform-es2015-parameters"
+ ],
+ "_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": "/home/pruss/Dev/3-minute-website/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"
+}