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/plugin-transform-shorthand-properties
> Compile ES2015 shorthand properties to ES5
See our website [@babel/plugin-transform-shorthand-properties](https://babeljs.io/docs/en/next/babel-plugin-transform-shorthand-properties.html) for more information.
## Install
Using npm:
```sh
npm install --save-dev @babel/plugin-transform-shorthand-properties
```
or using yarn:
```sh
yarn add @babel/plugin-transform-shorthand-properties --dev
```

View File

@@ -0,0 +1,57 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
function _helperPluginUtils() {
const data = require("@babel/helper-plugin-utils");
_helperPluginUtils = function () {
return data;
};
return data;
}
function _core() {
const data = require("@babel/core");
_core = function () {
return data;
};
return data;
}
var _default = (0, _helperPluginUtils().declare)(api => {
api.assertVersion(7);
return {
visitor: {
ObjectMethod(path) {
const {
node
} = path;
if (node.kind === "method") {
const func = _core().types.functionExpression(null, node.params, node.body, node.generator, node.async);
func.returnType = node.returnType;
path.replaceWith(_core().types.objectProperty(node.key, func, node.computed));
}
},
ObjectProperty({
node
}) {
if (node.shorthand) {
node.shorthand = false;
}
}
}
};
});
exports.default = _default;

View File

@@ -0,0 +1,91 @@
{
"_args": [
[
"@babel/plugin-transform-shorthand-properties@^7.0.0-beta",
"/home/bernhard/freifunk-app/node_modules/metro"
]
],
"_from": "@babel/plugin-transform-shorthand-properties@>=7.0.0-beta <8.0.0",
"_id": "@babel/plugin-transform-shorthand-properties@7.0.0-beta.54",
"_inCache": true,
"_installable": true,
"_location": "/@babel/plugin-transform-shorthand-properties",
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/plugin-transform-shorthand-properties_7.0.0-beta.54_1531764009505_0.852013300809271"
},
"_npmUser": {
"email": "hi@henryzoo.com",
"name": "hzoo"
},
"_phantomChildren": {},
"_requested": {
"name": "@babel/plugin-transform-shorthand-properties",
"raw": "@babel/plugin-transform-shorthand-properties@^7.0.0-beta",
"rawSpec": "^7.0.0-beta",
"scope": "@babel",
"spec": ">=7.0.0-beta <8.0.0",
"type": "range"
},
"_requiredBy": [
"/metro"
],
"_resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.0.0-beta.54.tgz",
"_shasum": "50e73c2afc5898b1055510ddf60ee13a6301517f",
"_shrinkwrap": null,
"_spec": "@babel/plugin-transform-shorthand-properties@^7.0.0-beta",
"_where": "/home/bernhard/freifunk-app/node_modules/metro",
"dependencies": {
"@babel/helper-plugin-utils": "7.0.0-beta.54"
},
"description": "Compile ES2015 shorthand properties to ES5",
"devDependencies": {
"@babel/core": "7.0.0-beta.54",
"@babel/helper-plugin-test-runner": "7.0.0-beta.54"
},
"directories": {},
"dist": {
"fileCount": 5,
"shasum": "50e73c2afc5898b1055510ddf60ee13a6301517f",
"tarball": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.0.0-beta.54.tgz",
"unpackedSize": 2141
},
"keywords": [
"babel-plugin"
],
"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/plugin-transform-shorthand-properties",
"optionalDependencies": {},
"peerDependencies": {
"@babel/core": ">=7.0.0-beta.50 <7.0.0-rc.0"
},
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-shorthand-properties"
},
"version": "7.0.0-beta.54"
}