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

19
node_modules/@babel/helper-hoist-variables/README.md generated vendored Normal file
View File

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

View File

@@ -0,0 +1,63 @@
"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; } }
const visitor = {
Scope(path, state) {
if (state.kind === "let") path.skip();
},
Function(path) {
path.skip();
},
VariableDeclaration(path, state) {
if (state.kind && path.node.kind !== state.kind) return;
const nodes = [];
const declarations = path.get("declarations");
let firstId;
for (const declar of declarations) {
firstId = declar.node.id;
if (declar.node.init) {
nodes.push(t().expressionStatement(t().assignmentExpression("=", declar.node.id, declar.node.init)));
}
for (const name in declar.getBindingIdentifiers()) {
state.emit(t().identifier(name), name, declar.node.init !== null);
}
}
if (path.parentPath.isFor({
left: path.node
})) {
path.replaceWith(firstId);
} else {
path.replaceWithMultiple(nodes);
}
}
};
function _default(path, emit, kind = "var") {
path.traverse(visitor, {
kind,
emit
});
}

View File

@@ -0,0 +1,82 @@
{
"_args": [
[
"@babel/helper-hoist-variables@7.0.0-beta.54",
"/home/bernhard/freifunk-app/node_modules/@babel/helper-call-delegate"
]
],
"_from": "@babel/helper-hoist-variables@7.0.0-beta.54",
"_id": "@babel/helper-hoist-variables@7.0.0-beta.54",
"_inCache": true,
"_installable": true,
"_location": "/@babel/helper-hoist-variables",
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/helper-hoist-variables_7.0.0-beta.54_1531763993015_0.7195380183864251"
},
"_npmUser": {
"email": "hi@henryzoo.com",
"name": "hzoo"
},
"_phantomChildren": {},
"_requested": {
"name": "@babel/helper-hoist-variables",
"raw": "@babel/helper-hoist-variables@7.0.0-beta.54",
"rawSpec": "7.0.0-beta.54",
"scope": "@babel",
"spec": "7.0.0-beta.54",
"type": "version"
},
"_requiredBy": [
"/@babel/helper-call-delegate"
],
"_resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.0.0-beta.54.tgz",
"_shasum": "8635be8095135ff73f753ed189e449f68b4f43cb",
"_shrinkwrap": null,
"_spec": "@babel/helper-hoist-variables@7.0.0-beta.54",
"_where": "/home/bernhard/freifunk-app/node_modules/@babel/helper-call-delegate",
"dependencies": {
"@babel/types": "7.0.0-beta.54"
},
"description": "Helper function to hoist variables",
"devDependencies": {},
"directories": {},
"dist": {
"fileCount": 5,
"shasum": "8635be8095135ff73f753ed189e449f68b4f43cb",
"tarball": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.0.0-beta.54.tgz",
"unpackedSize": 2387
},
"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-hoist-variables",
"optionalDependencies": {},
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "https://github.com/babel/babel/tree/master/packages/babel-helper-hoist-variables"
},
"version": "7.0.0-beta.54"
}