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

95
node_modules/jest-environment-node/build/index.js generated vendored Normal file
View File

@@ -0,0 +1,95 @@
'use strict';
var _vm;
function _load_vm() {
return _vm = _interopRequireDefault(require('vm'));
}
var _jestUtil;
function _load_jestUtil() {
return _jestUtil = require('jest-util');
}
var _jestMock;
function _load_jestMock() {
return _jestMock = _interopRequireDefault(require('jest-mock'));
}
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
class NodeEnvironment {
constructor(config) {
this.context = (_vm || _load_vm()).default.createContext();
const global = this.global = (_vm || _load_vm()).default.runInContext('this', Object.assign(this.context, config.testEnvironmentOptions));
global.global = global;
global.clearInterval = clearInterval;
global.clearTimeout = clearTimeout;
global.Promise = Promise;
global.setInterval = setInterval;
global.setTimeout = setTimeout;
(0, (_jestUtil || _load_jestUtil()).installCommonGlobals)(global, config.globals);
this.moduleMocker = new (_jestMock || _load_jestMock()).default.ModuleMocker(global);
const timerIdToRef = id => ({
id,
ref() {
return this;
},
unref() {
return this;
}
});
const timerRefToId = timer => {
return timer && timer.id || null;
};
const timerConfig = {
idToRef: timerIdToRef,
refToId: timerRefToId
};
this.fakeTimers = new (_jestUtil || _load_jestUtil()).FakeTimers({
config,
global,
moduleMocker: this.moduleMocker,
timerConfig
});
}
setup() {
return Promise.resolve();
}
teardown() {
if (this.fakeTimers) {
this.fakeTimers.dispose();
}
this.context = null;
this.fakeTimers = null;
return Promise.resolve();
}
// Disabling rule as return type depends on script's return type.
/* eslint-disable flowtype/no-weak-types */
runScript(script) {
/* eslint-enable flowtype/no-weak-types */
if (this.context) {
return script.runInContext(this.context);
}
return null;
}
} /**
* 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.
*
*
*/
module.exports = NodeEnvironment;

89
node_modules/jest-environment-node/package.json generated vendored Normal file
View File

@@ -0,0 +1,89 @@
{
"_args": [
[
"jest-environment-node@^22.4.1",
"/home/bernhard/freifunk-app/node_modules/jest-config"
]
],
"_from": "jest-environment-node@>=22.4.1 <23.0.0",
"_id": "jest-environment-node@22.4.3",
"_inCache": true,
"_installable": true,
"_location": "/jest-environment-node",
"_nodeVersion": "8.9.1",
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/jest-environment-node_22.4.3_1521648552831_0.9254772030273346"
},
"_npmUser": {
"email": "mjesun@hotmail.com",
"name": "mjesun"
},
"_npmVersion": "5.5.1",
"_phantomChildren": {},
"_requested": {
"name": "jest-environment-node",
"raw": "jest-environment-node@^22.4.1",
"rawSpec": "^22.4.1",
"scope": null,
"spec": ">=22.4.1 <23.0.0",
"type": "range"
},
"_requiredBy": [
"/jest-config"
],
"_resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-22.4.3.tgz",
"_shasum": "54c4eaa374c83dd52a9da8759be14ebe1d0b9129",
"_shrinkwrap": null,
"_spec": "jest-environment-node@^22.4.1",
"_where": "/home/bernhard/freifunk-app/node_modules/jest-config",
"bugs": {
"url": "https://github.com/facebook/jest/issues"
},
"dependencies": {
"jest-mock": "^22.4.3",
"jest-util": "^22.4.3"
},
"devDependencies": {},
"directories": {},
"dist": {
"fileCount": 2,
"integrity": "sha512-reZl8XF6t/lMEuPWwo9OLfttyC26A5AMgDyEQ6DBgZuyfyeNUzYT8BFo6uxCCP/Av/b7eb9fTi3sIHFPBzmlRA==",
"shasum": "54c4eaa374c83dd52a9da8759be14ebe1d0b9129",
"tarball": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-22.4.3.tgz",
"unpackedSize": 2579
},
"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": "jest-environment-node",
"optionalDependencies": {},
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "git+https://github.com/facebook/jest.git"
},
"version": "22.4.3"
}