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

38
node_modules/babel-jest/README.md generated vendored Normal file
View File

@@ -0,0 +1,38 @@
# babel-jest
[Babel](https://github.com/babel/babel) [jest](https://github.com/facebook/jest)
plugin
## Usage
If you are already using `jest-cli`, just add `babel-jest` and it will
automatically compile JavaScript code using babel.
```bash
yarn add --dev babel-jest babel-core
```
> Note: If you are using babel version 7 you have to install `babel-jest` with
>
> ```bash
> yarn add --dev babel-jest babel-core@^7.0.0-0 @babel/core
> ```
If you would like to write your own preprocessor, uninstall and delete
babel-jest and set the
[config.transform](http://facebook.github.io/jest/docs/configuration.html#transform-object-string-string)
option to your preprocessor.
## Setup
_Note: this step is only required if you are using `babel-jest` with additional
code preprocessors._
To explicitly define `babel-jest` as a transformer for your JavaScript code, map
_.js_ files to the `babel-jest` module.
```json
"transform": {
"^.+\\.jsx?$": "babel-jest"
},
```

142
node_modules/babel-jest/build/index.js generated vendored Normal file
View File

@@ -0,0 +1,142 @@
'use strict';
var _crypto;
function _load_crypto() {
return _crypto = _interopRequireDefault(require('crypto'));
}
var _fs;
function _load_fs() {
return _fs = _interopRequireDefault(require('fs'));
}
var _path;
function _load_path() {
return _path = _interopRequireDefault(require('path'));
}
var _babelPresetJest;
function _load_babelPresetJest() {
return _babelPresetJest = _interopRequireDefault(require('babel-preset-jest'));
}
var _babelCore;
function _load_babelCore() {
return _babelCore = require('babel-core');
}
var _babelPluginIstanbul;
function _load_babelPluginIstanbul() {
return _babelPluginIstanbul = _interopRequireDefault(require('babel-plugin-istanbul'));
}
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
/**
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*
*/
const BABELRC_FILENAME = '.babelrc';
const BABELRC_JS_FILENAME = '.babelrc.js';
const BABEL_CONFIG_KEY = 'babel';
const PACKAGE_JSON = 'package.json';
const THIS_FILE = (_fs || _load_fs()).default.readFileSync(__filename);
const createTransformer = options => {
const cache = Object.create(null);
const getBabelRC = filename => {
const paths = [];
let directory = filename;
while (directory !== (directory = (_path || _load_path()).default.dirname(directory))) {
if (cache[directory]) {
break;
}
paths.push(directory);
const configFilePath = (_path || _load_path()).default.join(directory, BABELRC_FILENAME);
if ((_fs || _load_fs()).default.existsSync(configFilePath)) {
cache[directory] = (_fs || _load_fs()).default.readFileSync(configFilePath, 'utf8');
break;
}
const configJsFilePath = (_path || _load_path()).default.join(directory, BABELRC_JS_FILENAME);
if ((_fs || _load_fs()).default.existsSync(configJsFilePath)) {
// $FlowFixMe
cache[directory] = JSON.stringify(require(configJsFilePath));
break;
}
const resolvedJsonFilePath = (_path || _load_path()).default.join(directory, PACKAGE_JSON);
const packageJsonFilePath = resolvedJsonFilePath === PACKAGE_JSON ? (_path || _load_path()).default.resolve(directory, PACKAGE_JSON) : resolvedJsonFilePath;
if ((_fs || _load_fs()).default.existsSync(packageJsonFilePath)) {
// $FlowFixMe
const packageJsonFileContents = require(packageJsonFilePath);
if (packageJsonFileContents[BABEL_CONFIG_KEY]) {
cache[directory] = JSON.stringify(packageJsonFileContents[BABEL_CONFIG_KEY]);
break;
}
}
}
paths.forEach(directoryPath => cache[directoryPath] = cache[directory]);
return cache[directory] || '';
};
options = Object.assign({}, options, {
plugins: options && options.plugins || [],
presets: (options && options.presets || []).concat([(_babelPresetJest || _load_babelPresetJest()).default]),
sourceMaps: 'both'
});
delete options.cacheDirectory;
delete options.filename;
return {
canInstrument: true,
getCacheKey(fileData, filename, configString, _ref) {
let instrument = _ref.instrument,
rootDir = _ref.rootDir;
return (_crypto || _load_crypto()).default.createHash('md5').update(THIS_FILE).update('\0', 'utf8').update(fileData).update('\0', 'utf8').update((_path || _load_path()).default.relative(rootDir, filename)).update('\0', 'utf8').update(configString).update('\0', 'utf8').update(getBabelRC(filename)).update('\0', 'utf8').update(instrument ? 'instrument' : '').digest('hex');
},
process(src, filename, config, transformOptions) {
const altExts = config.moduleFileExtensions.map(extension => '.' + extension);
if ((_babelCore || _load_babelCore()).util && !(_babelCore || _load_babelCore()).util.canCompile(filename, altExts)) {
return src;
}
const theseOptions = Object.assign({ filename }, options);
if (transformOptions && transformOptions.instrument) {
theseOptions.auxiliaryCommentBefore = ' istanbul ignore next ';
// Copied from jest-runtime transform.js
theseOptions.plugins = theseOptions.plugins.concat([[(_babelPluginIstanbul || _load_babelPluginIstanbul()).default, {
// files outside `cwd` will not be instrumented
cwd: config.rootDir,
exclude: []
}]]);
}
// babel v7 might return null in the case when the file has been ignored.
const transformResult = (0, (_babelCore || _load_babelCore()).transform)(src, theseOptions);
if (!transformResult) {
return src;
}
const shouldReturnCodeOnly = transformOptions == null || transformOptions.returnSourceString == null || transformOptions.returnSourceString === true;
return shouldReturnCodeOnly ? transformResult.code : transformResult;
}
};
};
module.exports = createTransformer();
module.exports.createTransformer = createTransformer;

97
node_modules/babel-jest/package.json generated vendored Normal file
View File

@@ -0,0 +1,97 @@
{
"_args": [
[
"babel-jest@22.4.4",
"/home/bernhard/freifunk-app"
]
],
"_from": "babel-jest@22.4.4",
"_id": "babel-jest@22.4.4",
"_inCache": true,
"_installable": true,
"_location": "/babel-jest",
"_nodeVersion": "8.9.1",
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/babel-jest_22.4.4_1526648338977_0.13700968041232686"
},
"_npmUser": {
"email": "mjesun@hotmail.com",
"name": "mjesun"
},
"_npmVersion": "5.5.1",
"_phantomChildren": {},
"_requested": {
"name": "babel-jest",
"raw": "babel-jest@22.4.4",
"rawSpec": "22.4.4",
"scope": null,
"spec": "22.4.4",
"type": "version"
},
"_requiredBy": [
"#DEV:/",
"/jest-runtime"
],
"_resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-22.4.4.tgz",
"_shasum": "977259240420e227444ebe49e226a61e49ea659d",
"_shrinkwrap": null,
"_spec": "babel-jest@22.4.4",
"_where": "/home/bernhard/freifunk-app",
"bugs": {
"url": "https://github.com/facebook/jest/issues"
},
"dependencies": {
"babel-plugin-istanbul": "^4.1.5",
"babel-preset-jest": "^22.4.4"
},
"description": "Jest plugin to use babel for transformation.",
"devDependencies": {
"babel-core": "^6.0.0"
},
"directories": {},
"dist": {
"fileCount": 3,
"integrity": "sha512-A9NB6/lZhYyypR9ATryOSDcqBaqNdzq4U+CN+/wcMsLcmKkPxQEoTKLajGfd3IkxNyVBT8NewUK2nWyGbSzHEQ==",
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa/s4TCRA9TVsSAnZWagAA/YgP/1ETdnmiaRinX0Y7OT4Q\nHRih9hn0wztvrSOSjKK0GuP9ZN5Ydjwtl+QP5SttZOQh9iv10n0VTeHV+mGF\nhwDUrsT3IngQi5W1eMBuIW3U9NQW2sFqh5m2L7VFK+ggOqSt+uKHO7HFdjTO\nYSDPmqLxCj8w2DRcrxPoHLsmTJKvJjtDuVG57IwqG317iBn58T2gZ3xLQSxb\n2H3RqHXmgc3895TCRx75jemROx77FmL+1ko03yEVSarvHR7cgD4PIQJgWBAm\nkzN4xAO0BBnT4Wc5j9V70QoJhb7Q+8Pr/sro67AcpNgPvGM7REC9VZLm8TzY\njJcqPn+g6GwdSKZXrhDjhpemLZsgYVtdQ82KpkBEuQLhq8lFlNmfwSXQ25oc\n7EiSv0ZKM2wwF2HWOZWpRT9yphizOrgdjJrGfyEfItTuPqvf55F5w7ktJGWQ\nTdhtqwDEKaE3LLdccSoAY5xk78z2m8s6KlWzbD6lOywlVwu/dZRU+9eKQbxr\nfLA1KqgqG8lP8OQY6D6InWDqg6NENHJY0h/PrPHEJ5MYkUQL9epIgh3gXmL1\nMmSgSWDHMwh57P5E0QP0vULDJPNmaqpGNEzfMGdf7qk/ftPBWWjTxPy9yYsh\nTzVBxE1m3Y1uu8FiJfkpsyNOsK79N/WOLgtP1RdwJx6231NfSjLEZEtcjymD\nsumJ\r\n=e5uo\r\n-----END PGP SIGNATURE-----\r\n",
"shasum": "977259240420e227444ebe49e226a61e49ea659d",
"tarball": "https://registry.npmjs.org/babel-jest/-/babel-jest-22.4.4.tgz",
"unpackedSize": 6541
},
"homepage": "https://github.com/facebook/jest#readme",
"license": "MIT",
"main": "build/index.js",
"maintainers": [
{
"name": "aaronabramov",
"email": "aaron@abramov.io"
},
{
"name": "cpojer",
"email": "christoph.pojer@gmail.com"
},
{
"name": "fb",
"email": "opensource+npm@fb.com"
},
{
"name": "jeanlauliac",
"email": "jean@lauliac.com"
},
{
"name": "mjesun",
"email": "mjesun@hotmail.com"
}
],
"name": "babel-jest",
"optionalDependencies": {},
"peerDependencies": {
"babel-core": "^6.0.0 || ^7.0.0-0"
},
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "git+https://github.com/facebook/jest.git"
},
"version": "22.4.4"
}