initial commit taken from gitlab.lrz.de

This commit is contained in:
privatereese
2018-08-24 18:09:42 +02:00
parent ae54ed4c48
commit fc05486403
28494 changed files with 2159823 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
# @babel/helper-get-function-arity
> Helper function to get function arity
See our website [@babel/helper-get-function-arity](https://babeljs.io/docs/en/next/babel-helper-get-function-arity.html) for more information.
## Install
Using npm:
```sh
npm install --save-dev @babel/helper-get-function-arity
```
or using yarn:
```sh
yarn add @babel/helper-get-function-arity --dev
```

View File

@@ -0,0 +1,32 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _default;
function t() {
const data = _interopRequireWildcard(require("@babel/types"));
t = function () {
return data;
};
return data;
}
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) {
const params = node.params;
for (let i = 0; i < params.length; i++) {
const param = params[i];
if (t().isAssignmentPattern(param) || t().isRestElement(param)) {
return i;
}
}
return params.length;
}

View File

@@ -0,0 +1,83 @@
{
"_args": [
[
"@babel/helper-get-function-arity@7.0.0-beta.54",
"/home/bernhard/freifunk-app/node_modules/@babel/helper-function-name"
]
],
"_from": "@babel/helper-get-function-arity@7.0.0-beta.54",
"_id": "@babel/helper-get-function-arity@7.0.0-beta.54",
"_inCache": true,
"_installable": true,
"_location": "/@babel/helper-get-function-arity",
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/helper-get-function-arity_7.0.0-beta.54_1531763995714_0.33472235595306876"
},
"_npmUser": {
"email": "hi@henryzoo.com",
"name": "hzoo"
},
"_phantomChildren": {},
"_requested": {
"name": "@babel/helper-get-function-arity",
"raw": "@babel/helper-get-function-arity@7.0.0-beta.54",
"rawSpec": "7.0.0-beta.54",
"scope": "@babel",
"spec": "7.0.0-beta.54",
"type": "version"
},
"_requiredBy": [
"/@babel/helper-function-name",
"/@babel/plugin-transform-parameters"
],
"_resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.0.0-beta.54.tgz",
"_shasum": "757bd189b077074a004028cfde5f083c306cc6c4",
"_shrinkwrap": null,
"_spec": "@babel/helper-get-function-arity@7.0.0-beta.54",
"_where": "/home/bernhard/freifunk-app/node_modules/@babel/helper-function-name",
"dependencies": {
"@babel/types": "7.0.0-beta.54"
},
"description": "Helper function to get function arity",
"devDependencies": {},
"directories": {},
"dist": {
"fileCount": 5,
"shasum": "757bd189b077074a004028cfde5f083c306cc6c4",
"tarball": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.0.0-beta.54.tgz",
"unpackedSize": 1711
},
"license": "MIT",
"main": "lib/index.js",
"maintainers": [
{
"name": "danez",
"email": "daniel@tschinder.de"
},
{
"name": "existentialism",
"email": "bng412@gmail.com"
},
{
"name": "hzoo",
"email": "hi@henryzoo.com"
},
{
"name": "loganfsmyth",
"email": "loganfsmyth@gmail.com"
},
{
"name": "xtuc",
"email": "contact@xtuc.fr"
}
],
"name": "@babel/helper-get-function-arity",
"optionalDependencies": {},
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "https://github.com/babel/babel/tree/master/packages/babel-helper-get-function-arity"
},
"version": "7.0.0-beta.54"
}