mirror of
https://github.com/actions/setup-java.git
synced 2025-04-20 01:46:46 +00:00
Fix.
This commit is contained in:
parent
596a6da241
commit
c1a589c5b6
7078 changed files with 1882834 additions and 319 deletions
23
node_modules/jest-resolve-dependencies/LICENSE
generated
vendored
Normal file
23
node_modules/jest-resolve-dependencies/LICENSE
generated
vendored
Normal file
|
@ -0,0 +1,23 @@
|
|||
MIT License
|
||||
|
||||
For Jest software
|
||||
|
||||
Copyright (c) 2014-present, Facebook, Inc.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
31
node_modules/jest-resolve-dependencies/build/index.d.ts
generated
vendored
Normal file
31
node_modules/jest-resolve-dependencies/build/index.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,31 @@
|
|||
/**
|
||||
* Copyright (c) Facebook, Inc. and its affiliates. 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.
|
||||
*/
|
||||
import { Config } from '@jest/types';
|
||||
import { FS as HasteFS } from 'jest-haste-map';
|
||||
import Resolver from 'jest-resolve';
|
||||
import { SnapshotResolver } from 'jest-snapshot';
|
||||
declare namespace DependencyResolver {
|
||||
type ResolvedModule = {
|
||||
file: Config.Path;
|
||||
dependencies: Array<Config.Path>;
|
||||
};
|
||||
}
|
||||
/**
|
||||
* DependencyResolver is used to resolve the direct dependencies of a module or
|
||||
* to retrieve a list of all transitive inverse dependencies.
|
||||
*/
|
||||
declare class DependencyResolver {
|
||||
private _hasteFS;
|
||||
private _resolver;
|
||||
private _snapshotResolver;
|
||||
constructor(resolver: Resolver, hasteFS: HasteFS, snapshotResolver: SnapshotResolver);
|
||||
resolve(file: Config.Path, options?: Resolver.ResolveModuleConfig): Array<Config.Path>;
|
||||
resolveInverseModuleMap(paths: Set<Config.Path>, filter: (file: Config.Path) => boolean, options?: Resolver.ResolveModuleConfig): Array<DependencyResolver.ResolvedModule>;
|
||||
resolveInverse(paths: Set<Config.Path>, filter: (file: Config.Path) => boolean, options?: Resolver.ResolveModuleConfig): Array<Config.Path>;
|
||||
}
|
||||
export = DependencyResolver;
|
||||
//# sourceMappingURL=index.d.ts.map
|
1
node_modules/jest-resolve-dependencies/build/index.d.ts.map
generated
vendored
Normal file
1
node_modules/jest-resolve-dependencies/build/index.d.ts.map
generated
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAC,MAAM,EAAC,MAAM,aAAa,CAAC;AACnC,OAAO,EAAC,EAAE,IAAI,OAAO,EAAC,MAAM,gBAAgB,CAAC;AAC7C,OAAO,QAAQ,MAAM,cAAc,CAAC;AACpC,OAAO,EAAiB,gBAAgB,EAAC,MAAM,eAAe,CAAC;AAE/D,kBAAU,kBAAkB,CAAC;IAC3B,KAAY,cAAc,GAAG;QAC3B,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC;QAClB,YAAY,EAAE,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;KAClC,CAAC;CACH;AAED;;;GAGG;AAEH,cAAM,kBAAkB;IACtB,OAAO,CAAC,QAAQ,CAAU;IAC1B,OAAO,CAAC,SAAS,CAAW;IAC5B,OAAO,CAAC,iBAAiB,CAAmB;gBAG1C,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,OAAO,EAChB,gBAAgB,EAAE,gBAAgB;IAOpC,OAAO,CACL,IAAI,EAAE,MAAM,CAAC,IAAI,EACjB,OAAO,CAAC,EAAE,QAAQ,CAAC,mBAAmB,GACrC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC;IA6BrB,uBAAuB,CACrB,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,EACvB,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,IAAI,KAAK,OAAO,EACtC,OAAO,CAAC,EAAE,QAAQ,CAAC,mBAAmB,GACrC,KAAK,CAAC,kBAAkB,CAAC,cAAc,CAAC;IA6D3C,cAAc,CACZ,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,EACvB,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,IAAI,KAAK,OAAO,EACtC,OAAO,CAAC,EAAE,QAAQ,CAAC,mBAAmB,GACrC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC;CAKtB;AAED,SAAS,kBAAkB,CAAC"}
|
204
node_modules/jest-resolve-dependencies/build/index.js
generated
vendored
Normal file
204
node_modules/jest-resolve-dependencies/build/index.js
generated
vendored
Normal file
|
@ -0,0 +1,204 @@
|
|||
'use strict';
|
||||
|
||||
function _jestSnapshot() {
|
||||
const data = require('jest-snapshot');
|
||||
|
||||
_jestSnapshot = function _jestSnapshot() {
|
||||
return data;
|
||||
};
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
function _defineProperty(obj, key, value) {
|
||||
if (key in obj) {
|
||||
Object.defineProperty(obj, key, {
|
||||
value: value,
|
||||
enumerable: true,
|
||||
configurable: true,
|
||||
writable: true
|
||||
});
|
||||
} else {
|
||||
obj[key] = value;
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
/**
|
||||
* DependencyResolver is used to resolve the direct dependencies of a module or
|
||||
* to retrieve a list of all transitive inverse dependencies.
|
||||
*/
|
||||
|
||||
/* eslint-disable-next-line no-redeclare */
|
||||
class DependencyResolver {
|
||||
constructor(resolver, hasteFS, snapshotResolver) {
|
||||
_defineProperty(this, '_hasteFS', void 0);
|
||||
|
||||
_defineProperty(this, '_resolver', void 0);
|
||||
|
||||
_defineProperty(this, '_snapshotResolver', void 0);
|
||||
|
||||
this._resolver = resolver;
|
||||
this._hasteFS = hasteFS;
|
||||
this._snapshotResolver = snapshotResolver;
|
||||
}
|
||||
|
||||
resolve(file, options) {
|
||||
const dependencies = this._hasteFS.getDependencies(file);
|
||||
|
||||
if (!dependencies) {
|
||||
return [];
|
||||
}
|
||||
|
||||
return dependencies.reduce((acc, dependency) => {
|
||||
if (this._resolver.isCoreModule(dependency)) {
|
||||
return acc;
|
||||
}
|
||||
|
||||
let resolvedDependency;
|
||||
|
||||
try {
|
||||
resolvedDependency = this._resolver.resolveModule(
|
||||
file,
|
||||
dependency,
|
||||
options
|
||||
);
|
||||
} catch (e) {
|
||||
resolvedDependency = this._resolver.getMockModule(file, dependency);
|
||||
}
|
||||
|
||||
if (resolvedDependency) {
|
||||
acc.push(resolvedDependency);
|
||||
}
|
||||
|
||||
return acc;
|
||||
}, []);
|
||||
}
|
||||
|
||||
resolveInverseModuleMap(paths, filter, options) {
|
||||
if (!paths.size) {
|
||||
return [];
|
||||
}
|
||||
|
||||
const collectModules = (related, moduleMap, changed) => {
|
||||
const visitedModules = new Set();
|
||||
const result = [];
|
||||
|
||||
while (changed.size) {
|
||||
changed = new Set(
|
||||
moduleMap.reduce((acc, module) => {
|
||||
if (
|
||||
visitedModules.has(module.file) ||
|
||||
!module.dependencies.some(dep => changed.has(dep))
|
||||
) {
|
||||
return acc;
|
||||
}
|
||||
|
||||
const file = module.file;
|
||||
|
||||
if (filter(file)) {
|
||||
result.push(module);
|
||||
related.delete(file);
|
||||
}
|
||||
|
||||
visitedModules.add(file);
|
||||
acc.push(module.file);
|
||||
return acc;
|
||||
}, [])
|
||||
);
|
||||
}
|
||||
|
||||
return result.concat(
|
||||
Array.from(related).map(file => ({
|
||||
dependencies: [],
|
||||
file
|
||||
}))
|
||||
);
|
||||
};
|
||||
|
||||
const relatedPaths = new Set();
|
||||
const changed = new Set();
|
||||
var _iteratorNormalCompletion = true;
|
||||
var _didIteratorError = false;
|
||||
var _iteratorError = undefined;
|
||||
|
||||
try {
|
||||
for (
|
||||
var _iterator = paths[Symbol.iterator](), _step;
|
||||
!(_iteratorNormalCompletion = (_step = _iterator.next()).done);
|
||||
_iteratorNormalCompletion = true
|
||||
) {
|
||||
const path = _step.value;
|
||||
|
||||
if (this._hasteFS.exists(path)) {
|
||||
const modulePath = (0, _jestSnapshot().isSnapshotPath)(path)
|
||||
? this._snapshotResolver.resolveTestPath(path)
|
||||
: path;
|
||||
changed.add(modulePath);
|
||||
|
||||
if (filter(modulePath)) {
|
||||
relatedPaths.add(modulePath);
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (err) {
|
||||
_didIteratorError = true;
|
||||
_iteratorError = err;
|
||||
} finally {
|
||||
try {
|
||||
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
||||
_iterator.return();
|
||||
}
|
||||
} finally {
|
||||
if (_didIteratorError) {
|
||||
throw _iteratorError;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
const modules = [];
|
||||
var _iteratorNormalCompletion2 = true;
|
||||
var _didIteratorError2 = false;
|
||||
var _iteratorError2 = undefined;
|
||||
|
||||
try {
|
||||
for (
|
||||
var _iterator2 = this._hasteFS
|
||||
.getAbsoluteFileIterator()
|
||||
[Symbol.iterator](),
|
||||
_step2;
|
||||
!(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done);
|
||||
_iteratorNormalCompletion2 = true
|
||||
) {
|
||||
const file = _step2.value;
|
||||
modules.push({
|
||||
dependencies: this.resolve(file, options),
|
||||
file
|
||||
});
|
||||
}
|
||||
} catch (err) {
|
||||
_didIteratorError2 = true;
|
||||
_iteratorError2 = err;
|
||||
} finally {
|
||||
try {
|
||||
if (!_iteratorNormalCompletion2 && _iterator2.return != null) {
|
||||
_iterator2.return();
|
||||
}
|
||||
} finally {
|
||||
if (_didIteratorError2) {
|
||||
throw _iteratorError2;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return collectModules(relatedPaths, modules, changed);
|
||||
}
|
||||
|
||||
resolveInverse(paths, filter, options) {
|
||||
return this.resolveInverseModuleMap(paths, filter, options).map(
|
||||
module => module.file
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = DependencyResolver;
|
58
node_modules/jest-resolve-dependencies/package.json
generated
vendored
Normal file
58
node_modules/jest-resolve-dependencies/package.json
generated
vendored
Normal file
|
@ -0,0 +1,58 @@
|
|||
{
|
||||
"_from": "jest-resolve-dependencies@^24.8.0",
|
||||
"_id": "jest-resolve-dependencies@24.8.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-hyK1qfIf/krV+fSNyhyJeq3elVMhK9Eijlwy+j5jqmZ9QsxwKBiP6qukQxaHtK8k6zql/KYWwCTQ+fDGTIJauw==",
|
||||
"_location": "/jest-resolve-dependencies",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "jest-resolve-dependencies@^24.8.0",
|
||||
"name": "jest-resolve-dependencies",
|
||||
"escapedName": "jest-resolve-dependencies",
|
||||
"rawSpec": "^24.8.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^24.8.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/@jest/core"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-24.8.0.tgz",
|
||||
"_shasum": "19eec3241f2045d3f990dba331d0d7526acff8e0",
|
||||
"_spec": "jest-resolve-dependencies@^24.8.0",
|
||||
"_where": "E:\\github\\setup-java\\node_modules\\@jest\\core",
|
||||
"bugs": {
|
||||
"url": "https://github.com/facebook/jest/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"dependencies": {
|
||||
"@jest/types": "^24.8.0",
|
||||
"jest-regex-util": "^24.3.0",
|
||||
"jest-snapshot": "^24.8.0"
|
||||
},
|
||||
"deprecated": false,
|
||||
"devDependencies": {
|
||||
"jest-haste-map": "^24.8.0",
|
||||
"jest-resolve": "^24.8.0",
|
||||
"jest-runtime": "^24.8.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 6"
|
||||
},
|
||||
"gitHead": "845728f24b3ef41e450595c384e9b5c9fdf248a4",
|
||||
"homepage": "https://github.com/facebook/jest#readme",
|
||||
"license": "MIT",
|
||||
"main": "build/index.js",
|
||||
"name": "jest-resolve-dependencies",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/facebook/jest.git",
|
||||
"directory": "packages/jest-resolve-dependencies"
|
||||
},
|
||||
"types": "build/index.d.ts",
|
||||
"version": "24.8.0"
|
||||
}
|
12
node_modules/jest-resolve-dependencies/tsconfig.json
generated
vendored
Normal file
12
node_modules/jest-resolve-dependencies/tsconfig.json
generated
vendored
Normal file
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"extends": "../../tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"rootDir": "src",
|
||||
"outDir": "build"
|
||||
},
|
||||
"references": [
|
||||
{"path": "../jest-regex-util"},
|
||||
{"path": "../jest-snapshot"},
|
||||
{"path": "../jest-types"}
|
||||
]
|
||||
}
|
2618
node_modules/jest-resolve-dependencies/tsconfig.tsbuildinfo
generated
vendored
Normal file
2618
node_modules/jest-resolve-dependencies/tsconfig.tsbuildinfo
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue