mirror of
https://gitea.com/actions/setup-go.git
synced 2024-11-25 05:25:40 +01:00
Merge branch 'master' into features/matcher
This commit is contained in:
commit
5331f86a70
@ -10,12 +10,65 @@ process.env['RUNNER_TOOLSDIRECTORY'] = toolDir;
|
|||||||
process.env['RUNNER_TEMPDIRECTORY'] = tempDir;
|
process.env['RUNNER_TEMPDIRECTORY'] = tempDir;
|
||||||
import * as installer from '../src/installer';
|
import * as installer from '../src/installer';
|
||||||
|
|
||||||
|
const IS_WINDOWS = process.platform === 'win32';
|
||||||
|
|
||||||
describe('installer tests', () => {
|
describe('installer tests', () => {
|
||||||
beforeAll(() => {});
|
|
||||||
beforeAll(async () => {
|
beforeAll(async () => {
|
||||||
await io.rmRF(toolDir);
|
await io.rmRF(toolDir);
|
||||||
await io.rmRF(tempDir);
|
await io.rmRF(tempDir);
|
||||||
|
}, 100000);
|
||||||
|
|
||||||
|
afterAll(async () => {
|
||||||
|
try {
|
||||||
|
await io.rmRF(toolDir);
|
||||||
|
await io.rmRF(tempDir);
|
||||||
|
} catch {
|
||||||
|
console.log('Failed to remove test directories');
|
||||||
|
}
|
||||||
|
}, 100000);
|
||||||
|
|
||||||
|
it('Acquires version of go if no matching version is installed', async () => {
|
||||||
|
await installer.getGo('1.10');
|
||||||
|
const goDir = path.join(toolDir, 'go', '1.10.0', os.arch());
|
||||||
|
|
||||||
|
expect(fs.existsSync(`${goDir}.complete`)).toBe(true);
|
||||||
|
if (IS_WINDOWS) {
|
||||||
|
expect(fs.existsSync(path.join(goDir, 'bin', 'go.exe'))).toBe(true);
|
||||||
|
} else {
|
||||||
|
expect(fs.existsSync(path.join(goDir, 'bin', 'go'))).toBe(true);
|
||||||
|
}
|
||||||
|
}, 100000);
|
||||||
|
|
||||||
|
it('Throws if no location contains correct go version', async () => {
|
||||||
|
let thrown = false;
|
||||||
|
try {
|
||||||
|
await installer.getGo('1000.0');
|
||||||
|
} catch {
|
||||||
|
thrown = true;
|
||||||
|
}
|
||||||
|
expect(thrown).toBe(true);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('TODO - Add tests', async () => {});
|
it('Uses version of go installed in cache', async () => {
|
||||||
|
const goDir: string = path.join(toolDir, 'go', '250.0.0', os.arch());
|
||||||
|
await io.mkdirP(goDir);
|
||||||
|
fs.writeFileSync(`${goDir}.complete`, 'hello');
|
||||||
|
// This will throw if it doesn't find it in the cache (because no such version exists)
|
||||||
|
await installer.getGo('250.0');
|
||||||
|
return;
|
||||||
|
});
|
||||||
|
|
||||||
|
it('Doesnt use version of go that was only partially installed in cache', async () => {
|
||||||
|
const goDir: string = path.join(toolDir, 'go', '251.0.0', os.arch());
|
||||||
|
await io.mkdirP(goDir);
|
||||||
|
let thrown = false;
|
||||||
|
try {
|
||||||
|
// This will throw if it doesn't find it in the cache (because no such version exists)
|
||||||
|
await installer.getGo('251.0');
|
||||||
|
} catch {
|
||||||
|
thrown = true;
|
||||||
|
}
|
||||||
|
expect(thrown).toBe(true);
|
||||||
|
return;
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
134
lib/installer.js
Normal file
134
lib/installer.js
Normal file
@ -0,0 +1,134 @@
|
|||||||
|
"use strict";
|
||||||
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||||
|
return new (P || (P = Promise))(function (resolve, reject) {
|
||||||
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||||
|
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||||
|
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
|
||||||
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||||
|
});
|
||||||
|
};
|
||||||
|
var __importStar = (this && this.__importStar) || function (mod) {
|
||||||
|
if (mod && mod.__esModule) return mod;
|
||||||
|
var result = {};
|
||||||
|
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
||||||
|
result["default"] = mod;
|
||||||
|
return result;
|
||||||
|
};
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
// Load tempDirectory before it gets wiped by tool-cache
|
||||||
|
let tempDirectory = process.env['RUNNER_TEMPDIRECTORY'] || '';
|
||||||
|
const core = __importStar(require("@actions/core"));
|
||||||
|
const tc = __importStar(require("@actions/tool-cache"));
|
||||||
|
const os = __importStar(require("os"));
|
||||||
|
const path = __importStar(require("path"));
|
||||||
|
const util = __importStar(require("util"));
|
||||||
|
let osPlat = os.platform();
|
||||||
|
let osArch = os.arch();
|
||||||
|
if (!tempDirectory) {
|
||||||
|
let baseLocation;
|
||||||
|
if (process.platform === 'win32') {
|
||||||
|
// On windows use the USERPROFILE env variable
|
||||||
|
baseLocation = process.env['USERPROFILE'] || 'C:\\';
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
if (process.platform === 'darwin') {
|
||||||
|
baseLocation = '/Users';
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
baseLocation = '/home';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
tempDirectory = path.join(baseLocation, 'actions', 'temp');
|
||||||
|
}
|
||||||
|
function getGo(version) {
|
||||||
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
|
// check cache
|
||||||
|
let toolPath;
|
||||||
|
toolPath = tc.find('go', normalizeVersion(version));
|
||||||
|
if (!toolPath) {
|
||||||
|
// download, extract, cache
|
||||||
|
toolPath = yield acquireGo(version);
|
||||||
|
core.debug('Go tool is cached under ' + toolPath);
|
||||||
|
}
|
||||||
|
setGoEnvironmentVariables(toolPath);
|
||||||
|
toolPath = path.join(toolPath, 'bin');
|
||||||
|
//
|
||||||
|
// prepend the tools path. instructs the agent to prepend for future tasks
|
||||||
|
//
|
||||||
|
core.addPath(toolPath);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
exports.getGo = getGo;
|
||||||
|
function acquireGo(version) {
|
||||||
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
|
//
|
||||||
|
// Download - a tool installer intimately knows how to get the tool (and construct urls)
|
||||||
|
//
|
||||||
|
let fileName = getFileName(version);
|
||||||
|
let downloadUrl = getDownloadUrl(fileName);
|
||||||
|
let downloadPath = null;
|
||||||
|
try {
|
||||||
|
downloadPath = yield tc.downloadTool(downloadUrl);
|
||||||
|
}
|
||||||
|
catch (error) {
|
||||||
|
core.debug(error);
|
||||||
|
throw `Failed to download version ${version}: ${error}`;
|
||||||
|
}
|
||||||
|
//
|
||||||
|
// Extract
|
||||||
|
//
|
||||||
|
let extPath = tempDirectory;
|
||||||
|
if (!extPath) {
|
||||||
|
throw new Error('Temp directory not set');
|
||||||
|
}
|
||||||
|
if (osPlat == 'win32') {
|
||||||
|
extPath = yield tc.extractZip(downloadPath);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
extPath = yield tc.extractTar(downloadPath);
|
||||||
|
}
|
||||||
|
//
|
||||||
|
// Install into the local tool cache - node extracts with a root folder that matches the fileName downloaded
|
||||||
|
//
|
||||||
|
const toolRoot = path.join(extPath, 'go');
|
||||||
|
version = normalizeVersion(version);
|
||||||
|
return yield tc.cacheDir(toolRoot, 'go', version);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
function getFileName(version) {
|
||||||
|
const platform = osPlat == 'win32' ? 'windows' : osPlat;
|
||||||
|
const arch = osArch == 'x64' ? 'amd64' : '386';
|
||||||
|
const ext = osPlat == 'win32' ? 'zip' : 'tar.gz';
|
||||||
|
const filename = util.format('go%s.%s-%s.%s', version, platform, arch, ext);
|
||||||
|
return filename;
|
||||||
|
}
|
||||||
|
function getDownloadUrl(filename) {
|
||||||
|
return util.format('https://storage.googleapis.com/golang/%s', filename);
|
||||||
|
}
|
||||||
|
function setGoEnvironmentVariables(goRoot) {
|
||||||
|
core.exportVariable('GOROOT', goRoot);
|
||||||
|
const goPath = process.env['GOPATH'] || '';
|
||||||
|
const goBin = process.env['GOBIN'] || '';
|
||||||
|
// set GOPATH and GOBIN as user value
|
||||||
|
if (goPath) {
|
||||||
|
core.exportVariable('GOPATH', goPath);
|
||||||
|
}
|
||||||
|
if (goBin) {
|
||||||
|
core.exportVariable('GOBIN', goBin);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// This function is required to convert the version 1.10 to 1.10.0.
|
||||||
|
// Because caching utility accept only sementic version,
|
||||||
|
// which have patch number as well.
|
||||||
|
function normalizeVersion(version) {
|
||||||
|
const versionPart = version.split('.');
|
||||||
|
if (versionPart[1] == null) {
|
||||||
|
//append minor and patch version if not available
|
||||||
|
return version.concat('.0.0');
|
||||||
|
}
|
||||||
|
else if (versionPart[2] == null) {
|
||||||
|
//append patch version if not available
|
||||||
|
return version.concat('.0');
|
||||||
|
}
|
||||||
|
return version;
|
||||||
|
}
|
30
node_modules/@actions/core/package.json
generated
vendored
30
node_modules/@actions/core/package.json
generated
vendored
@ -1,33 +1,29 @@
|
|||||||
{
|
{
|
||||||
"_from": "file:toolkit\\actions-core-0.1.0.tgz",
|
"_from": "file:toolkit\\actions-core-0.0.0.tgz",
|
||||||
"_id": "@actions/core@0.1.0",
|
"_id": "@actions/core@0.0.0",
|
||||||
"_inBundle": false,
|
"_inBundle": false,
|
||||||
"_integrity": "sha512-1I2vFY5r80QcbM1R8Ika5Ke9uWGrF8nl33oQuP3bXVG47wMIw1DdAVK0A17CHJe5ObHU4gpwTuQakUdZaOlg0w==",
|
"_integrity": "sha512-58ituSV1rzBMmmsWoFDnrnsT+Wm4kD/u9NgAGbPvZ7rQHWluYtD5bDbIsjDC6rKFuhqytkxDJPsF/TWBdgc/nA==",
|
||||||
"_location": "/@actions/core",
|
"_location": "/@actions/core",
|
||||||
"_phantomChildren": {},
|
"_phantomChildren": {},
|
||||||
"_requested": {
|
"_requested": {
|
||||||
"type": "file",
|
"type": "file",
|
||||||
"where": "C:\\Users\\damccorm\\Documents\\setup-node",
|
"where": "C:\\Users\\damccorm\\Documents\\setup-go",
|
||||||
"raw": "@actions/core@file:toolkit/actions-core-0.1.0.tgz",
|
"raw": "@actions/core@file:toolkit/actions-core-0.0.0.tgz",
|
||||||
"name": "@actions/core",
|
"name": "@actions/core",
|
||||||
"escapedName": "@actions%2fcore",
|
"escapedName": "@actions%2fcore",
|
||||||
"scope": "@actions",
|
"scope": "@actions",
|
||||||
"rawSpec": "file:toolkit/actions-core-0.1.0.tgz",
|
"rawSpec": "file:toolkit/actions-core-0.0.0.tgz",
|
||||||
"saveSpec": "file:toolkit\\actions-core-0.1.0.tgz",
|
"saveSpec": "file:toolkit\\actions-core-0.0.0.tgz",
|
||||||
"fetchSpec": "C:\\Users\\damccorm\\Documents\\setup-node\\toolkit\\actions-core-0.1.0.tgz"
|
"fetchSpec": "C:\\Users\\damccorm\\Documents\\setup-go\\toolkit\\actions-core-0.0.0.tgz"
|
||||||
},
|
},
|
||||||
"_requiredBy": [
|
"_requiredBy": [
|
||||||
"/",
|
"/",
|
||||||
"/@actions/tool-cache"
|
"/@actions/tool-cache"
|
||||||
],
|
],
|
||||||
"_resolved": "C:\\Users\\damccorm\\Documents\\setup-node\\toolkit\\actions-core-0.1.0.tgz",
|
"_resolved": "C:\\Users\\damccorm\\Documents\\setup-go\\toolkit\\actions-core-0.0.0.tgz",
|
||||||
"_shasum": "a2d7cc689a05e28a677af34e2d69826d2029232c",
|
"_shasum": "346d90a534fa6c5021bc2e1b732574fd2c66fc35",
|
||||||
"_spec": "@actions/core@file:toolkit/actions-core-0.1.0.tgz",
|
"_spec": "@actions/core@file:toolkit/actions-core-0.0.0.tgz",
|
||||||
"_where": "C:\\Users\\damccorm\\Documents\\setup-node",
|
"_where": "C:\\Users\\damccorm\\Documents\\setup-go",
|
||||||
"author": {
|
|
||||||
"name": "Bryan MacFarlane",
|
|
||||||
"email": "bryanmac@microsoft.com"
|
|
||||||
},
|
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/actions/toolkit/issues"
|
"url": "https://github.com/actions/toolkit/issues"
|
||||||
},
|
},
|
||||||
@ -66,5 +62,5 @@
|
|||||||
"test": "echo \"Error: run tests from root\" && exit 1",
|
"test": "echo \"Error: run tests from root\" && exit 1",
|
||||||
"tsc": "tsc"
|
"tsc": "tsc"
|
||||||
},
|
},
|
||||||
"version": "0.1.0"
|
"version": "0.0.0"
|
||||||
}
|
}
|
||||||
|
32
node_modules/@actions/exec/package.json
generated
vendored
32
node_modules/@actions/exec/package.json
generated
vendored
@ -1,33 +1,29 @@
|
|||||||
{
|
{
|
||||||
"_from": "file:toolkit\\actions-exec-1.0.0.tgz",
|
"_from": "file:toolkit\\actions-exec-0.0.0.tgz",
|
||||||
"_id": "@actions/exec@1.0.0",
|
"_id": "@actions/exec@0.0.0",
|
||||||
"_inBundle": false,
|
"_inBundle": false,
|
||||||
"_integrity": "sha512-AxtupsjQceVIf6nEECts5a1pDpWO4r3yq5lpTA73g1FXA0awDdTW3r9NFn8NGF6UaydkIN0BEOasQlS5qS30zg==",
|
"_integrity": "sha512-HHObusC4p1RElxIlrrN0sY/cweBYl+jKm3J/XWHPQZMipgJXB/dkVhUfl4KqH3Vim7oM2KjCGSfn+vTYrqVH3A==",
|
||||||
"_location": "/@actions/exec",
|
"_location": "/@actions/exec",
|
||||||
"_phantomChildren": {},
|
"_phantomChildren": {},
|
||||||
"_requested": {
|
"_requested": {
|
||||||
"type": "file",
|
"type": "file",
|
||||||
"where": "C:\\Users\\damccorm\\Documents\\setup-node",
|
"where": "C:\\Users\\damccorm\\Documents\\setup-go",
|
||||||
"raw": "@actions/exec@file:toolkit/actions-exec-1.0.0.tgz",
|
"raw": "@actions/exec@file:toolkit/actions-exec-0.0.0.tgz",
|
||||||
"name": "@actions/exec",
|
"name": "@actions/exec",
|
||||||
"escapedName": "@actions%2fexec",
|
"escapedName": "@actions%2fexec",
|
||||||
"scope": "@actions",
|
"scope": "@actions",
|
||||||
"rawSpec": "file:toolkit/actions-exec-1.0.0.tgz",
|
"rawSpec": "file:toolkit/actions-exec-0.0.0.tgz",
|
||||||
"saveSpec": "file:toolkit\\actions-exec-1.0.0.tgz",
|
"saveSpec": "file:toolkit\\actions-exec-0.0.0.tgz",
|
||||||
"fetchSpec": "C:\\Users\\damccorm\\Documents\\setup-node\\toolkit\\actions-exec-1.0.0.tgz"
|
"fetchSpec": "C:\\Users\\damccorm\\Documents\\setup-go\\toolkit\\actions-exec-0.0.0.tgz"
|
||||||
},
|
},
|
||||||
"_requiredBy": [
|
"_requiredBy": [
|
||||||
"/",
|
"/",
|
||||||
"/@actions/tool-cache"
|
"/@actions/tool-cache"
|
||||||
],
|
],
|
||||||
"_resolved": "C:\\Users\\damccorm\\Documents\\setup-node\\toolkit\\actions-exec-1.0.0.tgz",
|
"_resolved": "C:\\Users\\damccorm\\Documents\\setup-go\\toolkit\\actions-exec-0.0.0.tgz",
|
||||||
"_shasum": "6845691df4b14de24cf3b0a45c847070db8f9b6d",
|
"_shasum": "341d868fe6c4123ded20db9c2106b7b8c16e1d73",
|
||||||
"_spec": "@actions/exec@file:toolkit/actions-exec-1.0.0.tgz",
|
"_spec": "@actions/exec@file:toolkit/actions-exec-0.0.0.tgz",
|
||||||
"_where": "C:\\Users\\damccorm\\Documents\\setup-node",
|
"_where": "C:\\Users\\damccorm\\Documents\\setup-go",
|
||||||
"author": {
|
|
||||||
"name": "Bryan MacFarlane",
|
|
||||||
"email": "bryanmac@microsoft.com"
|
|
||||||
},
|
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/actions/toolkit/issues"
|
"url": "https://github.com/actions/toolkit/issues"
|
||||||
},
|
},
|
||||||
@ -35,7 +31,7 @@
|
|||||||
"deprecated": false,
|
"deprecated": false,
|
||||||
"description": "Actions exec lib",
|
"description": "Actions exec lib",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@actions/io": "^1.0.0"
|
"@actions/io": "^0.0.0"
|
||||||
},
|
},
|
||||||
"directories": {
|
"directories": {
|
||||||
"lib": "lib",
|
"lib": "lib",
|
||||||
@ -63,5 +59,5 @@
|
|||||||
"test": "echo \"Error: run tests from root\" && exit 1",
|
"test": "echo \"Error: run tests from root\" && exit 1",
|
||||||
"tsc": "tsc"
|
"tsc": "tsc"
|
||||||
},
|
},
|
||||||
"version": "1.0.0"
|
"version": "0.0.0"
|
||||||
}
|
}
|
||||||
|
8
node_modules/@actions/exit/package.json
generated
vendored
8
node_modules/@actions/exit/package.json
generated
vendored
@ -7,23 +7,23 @@
|
|||||||
"_phantomChildren": {},
|
"_phantomChildren": {},
|
||||||
"_requested": {
|
"_requested": {
|
||||||
"type": "file",
|
"type": "file",
|
||||||
"where": "C:\\Users\\damccorm\\Documents\\setup-node",
|
"where": "C:\\Users\\damccorm\\Documents\\setup-go",
|
||||||
"raw": "@actions/exit@file:toolkit/actions-exit-0.0.0.tgz",
|
"raw": "@actions/exit@file:toolkit/actions-exit-0.0.0.tgz",
|
||||||
"name": "@actions/exit",
|
"name": "@actions/exit",
|
||||||
"escapedName": "@actions%2fexit",
|
"escapedName": "@actions%2fexit",
|
||||||
"scope": "@actions",
|
"scope": "@actions",
|
||||||
"rawSpec": "file:toolkit/actions-exit-0.0.0.tgz",
|
"rawSpec": "file:toolkit/actions-exit-0.0.0.tgz",
|
||||||
"saveSpec": "file:toolkit\\actions-exit-0.0.0.tgz",
|
"saveSpec": "file:toolkit\\actions-exit-0.0.0.tgz",
|
||||||
"fetchSpec": "C:\\Users\\damccorm\\Documents\\setup-node\\toolkit\\actions-exit-0.0.0.tgz"
|
"fetchSpec": "C:\\Users\\damccorm\\Documents\\setup-go\\toolkit\\actions-exit-0.0.0.tgz"
|
||||||
},
|
},
|
||||||
"_requiredBy": [
|
"_requiredBy": [
|
||||||
"/",
|
"/",
|
||||||
"/@actions/core"
|
"/@actions/core"
|
||||||
],
|
],
|
||||||
"_resolved": "C:\\Users\\damccorm\\Documents\\setup-node\\toolkit\\actions-exit-0.0.0.tgz",
|
"_resolved": "C:\\Users\\damccorm\\Documents\\setup-go\\toolkit\\actions-exit-0.0.0.tgz",
|
||||||
"_shasum": "d47c8c61b45750ae49fea3061e3419a547b2a48f",
|
"_shasum": "d47c8c61b45750ae49fea3061e3419a547b2a48f",
|
||||||
"_spec": "@actions/exit@file:toolkit/actions-exit-0.0.0.tgz",
|
"_spec": "@actions/exit@file:toolkit/actions-exit-0.0.0.tgz",
|
||||||
"_where": "C:\\Users\\damccorm\\Documents\\setup-node",
|
"_where": "C:\\Users\\damccorm\\Documents\\setup-go",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/actions/toolkit/issues"
|
"url": "https://github.com/actions/toolkit/issues"
|
||||||
},
|
},
|
||||||
|
30
node_modules/@actions/io/package.json
generated
vendored
30
node_modules/@actions/io/package.json
generated
vendored
@ -1,33 +1,29 @@
|
|||||||
{
|
{
|
||||||
"_from": "file:toolkit\\actions-io-1.0.0.tgz",
|
"_from": "file:toolkit\\actions-io-0.0.0.tgz",
|
||||||
"_id": "@actions/io@1.0.0",
|
"_id": "@actions/io@0.0.0",
|
||||||
"_inBundle": false,
|
"_inBundle": false,
|
||||||
"_integrity": "sha512-Dox3bRCdyxoG0o1mSHt/uINbyQ2SfbhtJmmMuUQny6ARB1hU8ZUi+XR0cHUfd/SrwdzLUrxX4dV8x8ylNSBQpA==",
|
"_integrity": "sha512-BArfobXB/b6RjR4i/+P4UcdaqR2tPjEb2WzZf9GdKiSARQn7d301pKOZAqxA+0N11X07Lk46t/txeUBcrCNbeg==",
|
||||||
"_location": "/@actions/io",
|
"_location": "/@actions/io",
|
||||||
"_phantomChildren": {},
|
"_phantomChildren": {},
|
||||||
"_requested": {
|
"_requested": {
|
||||||
"type": "file",
|
"type": "file",
|
||||||
"where": "C:\\Users\\damccorm\\Documents\\setup-node",
|
"where": "C:\\Users\\damccorm\\Documents\\setup-go",
|
||||||
"raw": "@actions/io@file:toolkit/actions-io-1.0.0.tgz",
|
"raw": "@actions/io@file:toolkit/actions-io-0.0.0.tgz",
|
||||||
"name": "@actions/io",
|
"name": "@actions/io",
|
||||||
"escapedName": "@actions%2fio",
|
"escapedName": "@actions%2fio",
|
||||||
"scope": "@actions",
|
"scope": "@actions",
|
||||||
"rawSpec": "file:toolkit/actions-io-1.0.0.tgz",
|
"rawSpec": "file:toolkit/actions-io-0.0.0.tgz",
|
||||||
"saveSpec": "file:toolkit\\actions-io-1.0.0.tgz",
|
"saveSpec": "file:toolkit\\actions-io-0.0.0.tgz",
|
||||||
"fetchSpec": "C:\\Users\\damccorm\\Documents\\setup-node\\toolkit\\actions-io-1.0.0.tgz"
|
"fetchSpec": "C:\\Users\\damccorm\\Documents\\setup-go\\toolkit\\actions-io-0.0.0.tgz"
|
||||||
},
|
},
|
||||||
"_requiredBy": [
|
"_requiredBy": [
|
||||||
"/",
|
"/",
|
||||||
"/@actions/tool-cache"
|
"/@actions/tool-cache"
|
||||||
],
|
],
|
||||||
"_resolved": "C:\\Users\\damccorm\\Documents\\setup-node\\toolkit\\actions-io-1.0.0.tgz",
|
"_resolved": "C:\\Users\\damccorm\\Documents\\setup-go\\toolkit\\actions-io-0.0.0.tgz",
|
||||||
"_shasum": "a395423c226d068e7caced224d51356ad15c41a7",
|
"_shasum": "1e8f0faca6b39215bebacedf473e5bb0716e39bf",
|
||||||
"_spec": "@actions/io@file:toolkit/actions-io-1.0.0.tgz",
|
"_spec": "@actions/io@file:toolkit/actions-io-0.0.0.tgz",
|
||||||
"_where": "C:\\Users\\damccorm\\Documents\\setup-node",
|
"_where": "C:\\Users\\damccorm\\Documents\\setup-go",
|
||||||
"author": {
|
|
||||||
"name": "Danny McCormick",
|
|
||||||
"email": "damccorm@microsoft.com"
|
|
||||||
},
|
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/actions/toolkit/issues"
|
"url": "https://github.com/actions/toolkit/issues"
|
||||||
},
|
},
|
||||||
@ -60,5 +56,5 @@
|
|||||||
"test": "echo \"Error: run tests from root\" && exit 1",
|
"test": "echo \"Error: run tests from root\" && exit 1",
|
||||||
"tsc": "tsc"
|
"tsc": "tsc"
|
||||||
},
|
},
|
||||||
"version": "1.0.0"
|
"version": "0.0.0"
|
||||||
}
|
}
|
||||||
|
9
node_modules/@actions/tool-cache/lib/tool-cache.d.ts
generated
vendored
9
node_modules/@actions/tool-cache/lib/tool-cache.d.ts
generated
vendored
@ -62,10 +62,17 @@ export declare function cacheDir(sourceDir: string, tool: string, version: strin
|
|||||||
*/
|
*/
|
||||||
export declare function cacheFile(sourceFile: string, targetFile: string, tool: string, version: string, arch?: string): Promise<string>;
|
export declare function cacheFile(sourceFile: string, targetFile: string, tool: string, version: string, arch?: string): Promise<string>;
|
||||||
/**
|
/**
|
||||||
* finds the path to a tool in the local installed tool cache
|
* Finds the path to a tool version in the local installed tool cache
|
||||||
*
|
*
|
||||||
* @param toolName name of the tool
|
* @param toolName name of the tool
|
||||||
* @param versionSpec version of the tool
|
* @param versionSpec version of the tool
|
||||||
* @param arch optional arch. defaults to arch of computer
|
* @param arch optional arch. defaults to arch of computer
|
||||||
*/
|
*/
|
||||||
export declare function find(toolName: string, versionSpec: string, arch?: string): string;
|
export declare function find(toolName: string, versionSpec: string, arch?: string): string;
|
||||||
|
/**
|
||||||
|
* Finds the paths to all versions of a tool that are installed in the local tool cache
|
||||||
|
*
|
||||||
|
* @param toolName name of the tool
|
||||||
|
* @param arch optional arch. defaults to arch of computer
|
||||||
|
*/
|
||||||
|
export declare function findAllVersions(toolName: string, arch?: string): string[];
|
||||||
|
47
node_modules/@actions/tool-cache/lib/tool-cache.js
generated
vendored
47
node_modules/@actions/tool-cache/lib/tool-cache.js
generated
vendored
@ -31,8 +31,6 @@ const userAgent = 'actions/tool-cache';
|
|||||||
// On load grab temp directory and cache directory and remove them from env (currently don't want to expose this)
|
// On load grab temp directory and cache directory and remove them from env (currently don't want to expose this)
|
||||||
let tempDirectory = process.env['RUNNER_TEMPDIRECTORY'] || '';
|
let tempDirectory = process.env['RUNNER_TEMPDIRECTORY'] || '';
|
||||||
let cacheRoot = process.env['RUNNER_TOOLSDIRECTORY'] || '';
|
let cacheRoot = process.env['RUNNER_TOOLSDIRECTORY'] || '';
|
||||||
process.env['RUNNER_TEMPDIRECTORY'] = '';
|
|
||||||
process.env['RUNNER_TOOLSDIRECTORY'] = '';
|
|
||||||
// If directories not found, place them in common temp locations
|
// If directories not found, place them in common temp locations
|
||||||
if (!tempDirectory || !cacheRoot) {
|
if (!tempDirectory || !cacheRoot) {
|
||||||
let baseLocation;
|
let baseLocation;
|
||||||
@ -315,7 +313,7 @@ function cacheFile(sourceFile, targetFile, tool, version, arch) {
|
|||||||
}
|
}
|
||||||
exports.cacheFile = cacheFile;
|
exports.cacheFile = cacheFile;
|
||||||
/**
|
/**
|
||||||
* finds the path to a tool in the local installed tool cache
|
* Finds the path to a tool version in the local installed tool cache
|
||||||
*
|
*
|
||||||
* @param toolName name of the tool
|
* @param toolName name of the tool
|
||||||
* @param versionSpec version of the tool
|
* @param versionSpec version of the tool
|
||||||
@ -331,7 +329,7 @@ function find(toolName, versionSpec, arch) {
|
|||||||
arch = arch || os.arch();
|
arch = arch || os.arch();
|
||||||
// attempt to resolve an explicit version
|
// attempt to resolve an explicit version
|
||||||
if (!_isExplicitVersion(versionSpec)) {
|
if (!_isExplicitVersion(versionSpec)) {
|
||||||
const localVersions = _findLocalToolVersions(toolName, arch);
|
const localVersions = findAllVersions(toolName, arch);
|
||||||
const match = _evaluateVersions(localVersions, versionSpec);
|
const match = _evaluateVersions(localVersions, versionSpec);
|
||||||
versionSpec = match;
|
versionSpec = match;
|
||||||
}
|
}
|
||||||
@ -352,6 +350,30 @@ function find(toolName, versionSpec, arch) {
|
|||||||
return toolPath;
|
return toolPath;
|
||||||
}
|
}
|
||||||
exports.find = find;
|
exports.find = find;
|
||||||
|
/**
|
||||||
|
* Finds the paths to all versions of a tool that are installed in the local tool cache
|
||||||
|
*
|
||||||
|
* @param toolName name of the tool
|
||||||
|
* @param arch optional arch. defaults to arch of computer
|
||||||
|
*/
|
||||||
|
function findAllVersions(toolName, arch) {
|
||||||
|
const versions = [];
|
||||||
|
arch = arch || os.arch();
|
||||||
|
const toolPath = path.join(cacheRoot, toolName);
|
||||||
|
if (fs.existsSync(toolPath)) {
|
||||||
|
const children = fs.readdirSync(toolPath);
|
||||||
|
for (const child of children) {
|
||||||
|
if (_isExplicitVersion(child)) {
|
||||||
|
const fullPath = path.join(toolPath, child, arch || '');
|
||||||
|
if (fs.existsSync(fullPath) && fs.existsSync(`${fullPath}.complete`)) {
|
||||||
|
versions.push(child);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return versions;
|
||||||
|
}
|
||||||
|
exports.findAllVersions = findAllVersions;
|
||||||
function _createExtractFolder(dest) {
|
function _createExtractFolder(dest) {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
if (!dest) {
|
if (!dest) {
|
||||||
@ -411,21 +433,4 @@ function _evaluateVersions(versions, versionSpec) {
|
|||||||
}
|
}
|
||||||
return version;
|
return version;
|
||||||
}
|
}
|
||||||
function _findLocalToolVersions(toolName, arch) {
|
|
||||||
const versions = [];
|
|
||||||
arch = arch || os.arch();
|
|
||||||
const toolPath = path.join(cacheRoot, toolName);
|
|
||||||
if (fs.existsSync(toolPath)) {
|
|
||||||
const children = fs.readdirSync(toolPath);
|
|
||||||
for (const child of children) {
|
|
||||||
if (_isExplicitVersion(child)) {
|
|
||||||
const fullPath = path.join(toolPath, child, arch || '');
|
|
||||||
if (fs.existsSync(fullPath) && fs.existsSync(`${fullPath}.complete`)) {
|
|
||||||
versions.push(child);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return versions;
|
|
||||||
}
|
|
||||||
//# sourceMappingURL=tool-cache.js.map
|
//# sourceMappingURL=tool-cache.js.map
|
2
node_modules/@actions/tool-cache/lib/tool-cache.js.map
generated
vendored
2
node_modules/@actions/tool-cache/lib/tool-cache.js.map
generated
vendored
File diff suppressed because one or more lines are too long
39
node_modules/@actions/tool-cache/package.json
generated
vendored
39
node_modules/@actions/tool-cache/package.json
generated
vendored
@ -1,44 +1,41 @@
|
|||||||
{
|
{
|
||||||
"_args": [
|
"_from": "file:toolkit\\actions-tool-cache-0.0.0.tgz",
|
||||||
[
|
"_id": "@actions/tool-cache@0.0.0",
|
||||||
"@actions/tool-cache@file:toolkit\\actions-tool-cache-1.0.0.tgz",
|
|
||||||
"C:\\Users\\damccorm\\Documents\\setup-node"
|
|
||||||
]
|
|
||||||
],
|
|
||||||
"_from": "@actions/tool-cache@file:toolkit/actions-tool-cache-1.0.0.tgz",
|
|
||||||
"_id": "@actions/tool-cache@file:toolkit/actions-tool-cache-1.0.0.tgz",
|
|
||||||
"_inBundle": false,
|
"_inBundle": false,
|
||||||
"_integrity": "sha512-hx8Z1ip11aZVA47uSCIB7Y9ec4Ty9zNPUyFyBsr0YI5vJ64TR/JoySbr0ck7l2EI0zqYAdef11Ynwz/qUkXVyg==",
|
"_integrity": "sha512-NavDg5VFXDfbe9TpFuj+uOHacjg1bT3Wmo3DQuul3gsGRBEXyzhh2MWKnBZs/Zh7FE3prLmIqpbtymafNBFkIA==",
|
||||||
"_location": "/@actions/tool-cache",
|
"_location": "/@actions/tool-cache",
|
||||||
"_phantomChildren": {},
|
"_phantomChildren": {},
|
||||||
"_requested": {
|
"_requested": {
|
||||||
"type": "file",
|
"type": "file",
|
||||||
"where": "C:\\Users\\damccorm\\Documents\\setup-node",
|
"where": "C:\\Users\\damccorm\\Documents\\setup-go",
|
||||||
"raw": "@actions/tool-cache@file:toolkit/actions-tool-cache-1.0.0.tgz",
|
"raw": "@actions/tool-cache@file:toolkit/actions-tool-cache-0.0.0.tgz",
|
||||||
"name": "@actions/tool-cache",
|
"name": "@actions/tool-cache",
|
||||||
"escapedName": "@actions%2ftool-cache",
|
"escapedName": "@actions%2ftool-cache",
|
||||||
"scope": "@actions",
|
"scope": "@actions",
|
||||||
"rawSpec": "file:toolkit/actions-tool-cache-1.0.0.tgz",
|
"rawSpec": "file:toolkit/actions-tool-cache-0.0.0.tgz",
|
||||||
"saveSpec": "file:toolkit\\actions-tool-cache-1.0.0.tgz",
|
"saveSpec": "file:toolkit\\actions-tool-cache-0.0.0.tgz",
|
||||||
"fetchSpec": "C:\\Users\\damccorm\\Documents\\setup-node\\toolkit\\actions-tool-cache-1.0.0.tgz"
|
"fetchSpec": "C:\\Users\\damccorm\\Documents\\setup-go\\toolkit\\actions-tool-cache-0.0.0.tgz"
|
||||||
},
|
},
|
||||||
"_requiredBy": [
|
"_requiredBy": [
|
||||||
"/"
|
"/"
|
||||||
],
|
],
|
||||||
"_resolved": false,
|
"_resolved": "C:\\Users\\damccorm\\Documents\\setup-go\\toolkit\\actions-tool-cache-0.0.0.tgz",
|
||||||
"_spec": "file:toolkit/actions-tool-cache-1.0.0.tgz",
|
"_shasum": "fa216c10f724010a74602fd14881f25f5b008070",
|
||||||
"_where": "C:\\Users\\damccorm\\Documents\\setup-node",
|
"_spec": "@actions/tool-cache@file:toolkit/actions-tool-cache-0.0.0.tgz",
|
||||||
|
"_where": "C:\\Users\\damccorm\\Documents\\setup-go",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/actions/toolkit/issues"
|
"url": "https://github.com/actions/toolkit/issues"
|
||||||
},
|
},
|
||||||
|
"bundleDependencies": false,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/core": "^0.1.0",
|
"@actions/core": "^0.0.0",
|
||||||
"@actions/exec": "^1.0.0",
|
"@actions/exec": "^0.0.0",
|
||||||
"@actions/io": "^1.0.0",
|
"@actions/io": "^0.0.0",
|
||||||
"semver": "^6.1.0",
|
"semver": "^6.1.0",
|
||||||
"typed-rest-client": "^1.4.0",
|
"typed-rest-client": "^1.4.0",
|
||||||
"uuid": "^3.3.2"
|
"uuid": "^3.3.2"
|
||||||
},
|
},
|
||||||
|
"deprecated": false,
|
||||||
"description": "Actions tool-cache lib",
|
"description": "Actions tool-cache lib",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/nock": "^10.0.3",
|
"@types/nock": "^10.0.3",
|
||||||
@ -73,5 +70,5 @@
|
|||||||
"test": "echo \"Error: run tests from root\" && exit 1",
|
"test": "echo \"Error: run tests from root\" && exit 1",
|
||||||
"tsc": "tsc"
|
"tsc": "tsc"
|
||||||
},
|
},
|
||||||
"version": "1.0.0"
|
"version": "0.0.0"
|
||||||
}
|
}
|
||||||
|
31
node_modules/semver/package.json
generated
vendored
31
node_modules/semver/package.json
generated
vendored
@ -1,40 +1,37 @@
|
|||||||
{
|
{
|
||||||
"_args": [
|
"_from": "semver@^6.1.1",
|
||||||
[
|
"_id": "semver@6.1.2",
|
||||||
"semver@6.1.1",
|
|
||||||
"C:\\Users\\damccorm\\Documents\\setup-node"
|
|
||||||
]
|
|
||||||
],
|
|
||||||
"_from": "semver@6.1.1",
|
|
||||||
"_id": "semver@6.1.1",
|
|
||||||
"_inBundle": false,
|
"_inBundle": false,
|
||||||
"_integrity": "sha512-rWYq2e5iYW+fFe/oPPtYJxYgjBm8sC4rmoGdUOgBB7VnwKt6HrL793l2voH1UlsyYZpJ4g0wfjnTEO1s1NP2eQ==",
|
"_integrity": "sha512-z4PqiCpomGtWj8633oeAdXm1Kn1W++3T8epkZYnwiVgIYIJ0QHszhInYSJTYxebByQH7KVCEAn8R9duzZW2PhQ==",
|
||||||
"_location": "/semver",
|
"_location": "/semver",
|
||||||
"_phantomChildren": {},
|
"_phantomChildren": {},
|
||||||
"_requested": {
|
"_requested": {
|
||||||
"type": "version",
|
"type": "range",
|
||||||
"registry": true,
|
"registry": true,
|
||||||
"raw": "semver@6.1.1",
|
"raw": "semver@^6.1.1",
|
||||||
"name": "semver",
|
"name": "semver",
|
||||||
"escapedName": "semver",
|
"escapedName": "semver",
|
||||||
"rawSpec": "6.1.1",
|
"rawSpec": "^6.1.1",
|
||||||
"saveSpec": null,
|
"saveSpec": null,
|
||||||
"fetchSpec": "6.1.1"
|
"fetchSpec": "^6.1.1"
|
||||||
},
|
},
|
||||||
"_requiredBy": [
|
"_requiredBy": [
|
||||||
"/",
|
"/",
|
||||||
"/@actions/tool-cache",
|
"/@actions/tool-cache",
|
||||||
"/istanbul-lib-instrument"
|
"/istanbul-lib-instrument"
|
||||||
],
|
],
|
||||||
"_resolved": "https://registry.npmjs.org/semver/-/semver-6.1.1.tgz",
|
"_resolved": "https://registry.npmjs.org/semver/-/semver-6.1.2.tgz",
|
||||||
"_spec": "6.1.1",
|
"_shasum": "079960381376a3db62eb2edc8a3bfb10c7cfe318",
|
||||||
"_where": "C:\\Users\\damccorm\\Documents\\setup-node",
|
"_spec": "semver@^6.1.1",
|
||||||
|
"_where": "C:\\Users\\damccorm\\Documents\\setup-go",
|
||||||
"bin": {
|
"bin": {
|
||||||
"semver": "./bin/semver"
|
"semver": "./bin/semver"
|
||||||
},
|
},
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/npm/node-semver/issues"
|
"url": "https://github.com/npm/node-semver/issues"
|
||||||
},
|
},
|
||||||
|
"bundleDependencies": false,
|
||||||
|
"deprecated": false,
|
||||||
"description": "The semantic version parser used by npm.",
|
"description": "The semantic version parser used by npm.",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"tap": "^14.1.6"
|
"tap": "^14.1.6"
|
||||||
@ -61,5 +58,5 @@
|
|||||||
"tap": {
|
"tap": {
|
||||||
"check-coverage": true
|
"check-coverage": true
|
||||||
},
|
},
|
||||||
"version": "6.1.1"
|
"version": "6.1.2"
|
||||||
}
|
}
|
||||||
|
12
node_modules/semver/semver.js
generated
vendored
12
node_modules/semver/semver.js
generated
vendored
@ -810,7 +810,11 @@ Comparator.prototype.test = function (version) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (typeof version === 'string') {
|
if (typeof version === 'string') {
|
||||||
version = new SemVer(version, this.options)
|
try {
|
||||||
|
version = new SemVer(version, this.options)
|
||||||
|
} catch (er) {
|
||||||
|
return false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return cmp(version, this.operator, this.semver, this.options)
|
return cmp(version, this.operator, this.semver, this.options)
|
||||||
@ -1261,7 +1265,11 @@ Range.prototype.test = function (version) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (typeof version === 'string') {
|
if (typeof version === 'string') {
|
||||||
version = new SemVer(version, this.options)
|
try {
|
||||||
|
version = new SemVer(version, this.options)
|
||||||
|
} catch (er) {
|
||||||
|
return false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (var i = 0; i < this.set.length; i++) {
|
for (var i = 0; i < this.set.length; i++) {
|
||||||
|
2
node_modules/tunnel/package.json
generated
vendored
2
node_modules/tunnel/package.json
generated
vendored
@ -21,7 +21,7 @@
|
|||||||
"_resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.4.tgz",
|
"_resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.4.tgz",
|
||||||
"_shasum": "2d3785a158c174c9a16dc2c046ec5fc5f1742213",
|
"_shasum": "2d3785a158c174c9a16dc2c046ec5fc5f1742213",
|
||||||
"_spec": "tunnel@0.0.4",
|
"_spec": "tunnel@0.0.4",
|
||||||
"_where": "C:\\Users\\damccorm\\Documents\\setup-node\\node_modules\\typed-rest-client",
|
"_where": "C:\\Users\\damccorm\\Documents\\setup-go\\node_modules\\typed-rest-client",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Koichi Kobayashi",
|
"name": "Koichi Kobayashi",
|
||||||
"email": "koichik@improvement.jp"
|
"email": "koichik@improvement.jp"
|
||||||
|
30
node_modules/typed-rest-client/HttpClient.js
generated
vendored
30
node_modules/typed-rest-client/HttpClient.js
generated
vendored
@ -13,8 +13,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|||||||
const url = require("url");
|
const url = require("url");
|
||||||
const http = require("http");
|
const http = require("http");
|
||||||
const https = require("https");
|
const https = require("https");
|
||||||
const tunnel = require("tunnel");
|
let fs;
|
||||||
const fs = require("fs");
|
let tunnel;
|
||||||
var HttpCodes;
|
var HttpCodes;
|
||||||
(function (HttpCodes) {
|
(function (HttpCodes) {
|
||||||
HttpCodes[HttpCodes["OK"] = 200] = "OK";
|
HttpCodes[HttpCodes["OK"] = 200] = "OK";
|
||||||
@ -101,15 +101,19 @@ class HttpClient {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
this._certConfig = requestOptions.cert;
|
this._certConfig = requestOptions.cert;
|
||||||
// cache the cert content into memory, so we don't have to read it from disk every time
|
if (this._certConfig) {
|
||||||
if (this._certConfig && this._certConfig.caFile && fs.existsSync(this._certConfig.caFile)) {
|
// If using cert, need fs
|
||||||
this._ca = fs.readFileSync(this._certConfig.caFile, 'utf8');
|
fs = require('fs');
|
||||||
}
|
// cache the cert content into memory, so we don't have to read it from disk every time
|
||||||
if (this._certConfig && this._certConfig.certFile && fs.existsSync(this._certConfig.certFile)) {
|
if (this._certConfig.caFile && fs.existsSync(this._certConfig.caFile)) {
|
||||||
this._cert = fs.readFileSync(this._certConfig.certFile, 'utf8');
|
this._ca = fs.readFileSync(this._certConfig.caFile, 'utf8');
|
||||||
}
|
}
|
||||||
if (this._certConfig && this._certConfig.keyFile && fs.existsSync(this._certConfig.keyFile)) {
|
if (this._certConfig.certFile && fs.existsSync(this._certConfig.certFile)) {
|
||||||
this._key = fs.readFileSync(this._certConfig.keyFile, 'utf8');
|
this._cert = fs.readFileSync(this._certConfig.certFile, 'utf8');
|
||||||
|
}
|
||||||
|
if (this._certConfig.keyFile && fs.existsSync(this._certConfig.keyFile)) {
|
||||||
|
this._key = fs.readFileSync(this._certConfig.keyFile, 'utf8');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (requestOptions.allowRedirects != null) {
|
if (requestOptions.allowRedirects != null) {
|
||||||
this._allowRedirects = requestOptions.allowRedirects;
|
this._allowRedirects = requestOptions.allowRedirects;
|
||||||
@ -354,6 +358,10 @@ class HttpClient {
|
|||||||
maxSockets = this.requestOptions.maxSockets || http.globalAgent.maxSockets;
|
maxSockets = this.requestOptions.maxSockets || http.globalAgent.maxSockets;
|
||||||
}
|
}
|
||||||
if (useProxy) {
|
if (useProxy) {
|
||||||
|
// If using proxy, need tunnel
|
||||||
|
if (!tunnel) {
|
||||||
|
tunnel = require('tunnel');
|
||||||
|
}
|
||||||
const agentOptions = {
|
const agentOptions = {
|
||||||
maxSockets: maxSockets,
|
maxSockets: maxSockets,
|
||||||
keepAlive: this._keepAlive,
|
keepAlive: this._keepAlive,
|
||||||
|
12
node_modules/typed-rest-client/package.json
generated
vendored
12
node_modules/typed-rest-client/package.json
generated
vendored
@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"_from": "typed-rest-client@^1.4.0",
|
"_from": "typed-rest-client@^1.4.0",
|
||||||
"_id": "typed-rest-client@1.4.0",
|
"_id": "typed-rest-client@1.5.0",
|
||||||
"_inBundle": false,
|
"_inBundle": false,
|
||||||
"_integrity": "sha512-f+3+X13CIpkv0WvFERkXq4aH5BYzyeYclf8t+X7oa/YaE80EjYW12kphY0aEQBaL9RzChP0MSbsVhB4X+bzyDw==",
|
"_integrity": "sha512-DVZRlmsfnTjp6ZJaatcdyvvwYwbWvR4YDNFDqb+qdTxpvaVP99YCpBkA8rxsLtAPjBVoDe4fNsnMIdZTiPuKWg==",
|
||||||
"_location": "/typed-rest-client",
|
"_location": "/typed-rest-client",
|
||||||
"_phantomChildren": {},
|
"_phantomChildren": {},
|
||||||
"_requested": {
|
"_requested": {
|
||||||
@ -18,10 +18,10 @@
|
|||||||
"_requiredBy": [
|
"_requiredBy": [
|
||||||
"/@actions/tool-cache"
|
"/@actions/tool-cache"
|
||||||
],
|
],
|
||||||
"_resolved": "https://registry.npmjs.org/typed-rest-client/-/typed-rest-client-1.4.0.tgz",
|
"_resolved": "https://registry.npmjs.org/typed-rest-client/-/typed-rest-client-1.5.0.tgz",
|
||||||
"_shasum": "bf0f27684f8cbde05d32127ccb2cb8e0fe1a1b79",
|
"_shasum": "c0dda6e775b942fd46a2d99f2160a94953206fc2",
|
||||||
"_spec": "typed-rest-client@^1.4.0",
|
"_spec": "typed-rest-client@^1.4.0",
|
||||||
"_where": "C:\\Users\\damccorm\\Documents\\setup-node\\toolkit\\actions-tool-cache-1.0.0.tgz",
|
"_where": "C:\\Users\\damccorm\\Documents\\setup-go\\toolkit\\actions-tool-cache-0.0.0.tgz",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Microsoft Corporation"
|
"name": "Microsoft Corporation"
|
||||||
},
|
},
|
||||||
@ -69,5 +69,5 @@
|
|||||||
"units": "node make.js units",
|
"units": "node make.js units",
|
||||||
"validate": "node make.js validate"
|
"validate": "node make.js validate"
|
||||||
},
|
},
|
||||||
"version": "1.4.0"
|
"version": "1.5.0"
|
||||||
}
|
}
|
||||||
|
2
node_modules/underscore/package.json
generated
vendored
2
node_modules/underscore/package.json
generated
vendored
@ -21,7 +21,7 @@
|
|||||||
"_resolved": "https://registry.npmjs.org/underscore/-/underscore-1.8.3.tgz",
|
"_resolved": "https://registry.npmjs.org/underscore/-/underscore-1.8.3.tgz",
|
||||||
"_shasum": "4f3fb53b106e6097fcf9cb4109f2a5e9bdfa5022",
|
"_shasum": "4f3fb53b106e6097fcf9cb4109f2a5e9bdfa5022",
|
||||||
"_spec": "underscore@1.8.3",
|
"_spec": "underscore@1.8.3",
|
||||||
"_where": "C:\\Users\\damccorm\\Documents\\setup-node\\node_modules\\typed-rest-client",
|
"_where": "C:\\Users\\damccorm\\Documents\\setup-go\\node_modules\\typed-rest-client",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Jeremy Ashkenas",
|
"name": "Jeremy Ashkenas",
|
||||||
"email": "jeremy@documentcloud.org"
|
"email": "jeremy@documentcloud.org"
|
||||||
|
23
node_modules/uuid/package.json
generated
vendored
23
node_modules/uuid/package.json
generated
vendored
@ -1,33 +1,28 @@
|
|||||||
{
|
{
|
||||||
"_args": [
|
"_from": "uuid@^3.3.2",
|
||||||
[
|
|
||||||
"uuid@3.3.2",
|
|
||||||
"C:\\Users\\damccorm\\Documents\\setup-node"
|
|
||||||
]
|
|
||||||
],
|
|
||||||
"_from": "uuid@3.3.2",
|
|
||||||
"_id": "uuid@3.3.2",
|
"_id": "uuid@3.3.2",
|
||||||
"_inBundle": false,
|
"_inBundle": false,
|
||||||
"_integrity": "sha512-yXJmeNaw3DnnKAOKJE51sL/ZaYfWJRl1pK9dr19YFCu0ObS231AB1/LbqTKRAQ5kw8A90rA6fr4riOUpTZvQZA==",
|
"_integrity": "sha512-yXJmeNaw3DnnKAOKJE51sL/ZaYfWJRl1pK9dr19YFCu0ObS231AB1/LbqTKRAQ5kw8A90rA6fr4riOUpTZvQZA==",
|
||||||
"_location": "/uuid",
|
"_location": "/uuid",
|
||||||
"_phantomChildren": {},
|
"_phantomChildren": {},
|
||||||
"_requested": {
|
"_requested": {
|
||||||
"type": "version",
|
"type": "range",
|
||||||
"registry": true,
|
"registry": true,
|
||||||
"raw": "uuid@3.3.2",
|
"raw": "uuid@^3.3.2",
|
||||||
"name": "uuid",
|
"name": "uuid",
|
||||||
"escapedName": "uuid",
|
"escapedName": "uuid",
|
||||||
"rawSpec": "3.3.2",
|
"rawSpec": "^3.3.2",
|
||||||
"saveSpec": null,
|
"saveSpec": null,
|
||||||
"fetchSpec": "3.3.2"
|
"fetchSpec": "^3.3.2"
|
||||||
},
|
},
|
||||||
"_requiredBy": [
|
"_requiredBy": [
|
||||||
"/@actions/tool-cache",
|
"/@actions/tool-cache",
|
||||||
"/request"
|
"/request"
|
||||||
],
|
],
|
||||||
"_resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.2.tgz",
|
"_resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.2.tgz",
|
||||||
"_spec": "3.3.2",
|
"_shasum": "1b4af4955eb3077c501c23872fc6513811587131",
|
||||||
"_where": "C:\\Users\\damccorm\\Documents\\setup-node",
|
"_spec": "uuid@^3.3.2",
|
||||||
|
"_where": "C:\\Users\\damccorm\\Documents\\setup-go\\toolkit\\actions-tool-cache-0.0.0.tgz",
|
||||||
"bin": {
|
"bin": {
|
||||||
"uuid": "./bin/uuid"
|
"uuid": "./bin/uuid"
|
||||||
},
|
},
|
||||||
@ -39,6 +34,7 @@
|
|||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/kelektiv/node-uuid/issues"
|
"url": "https://github.com/kelektiv/node-uuid/issues"
|
||||||
},
|
},
|
||||||
|
"bundleDependencies": false,
|
||||||
"commitlint": {
|
"commitlint": {
|
||||||
"extends": [
|
"extends": [
|
||||||
"@commitlint/config-conventional"
|
"@commitlint/config-conventional"
|
||||||
@ -66,6 +62,7 @@
|
|||||||
"email": "shtylman@gmail.com"
|
"email": "shtylman@gmail.com"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"deprecated": false,
|
||||||
"description": "RFC4122 (v1, v4, and v5) UUIDs",
|
"description": "RFC4122 (v1, v4, and v5) UUIDs",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@commitlint/cli": "7.0.0",
|
"@commitlint/cli": "7.0.0",
|
||||||
|
535
package-lock.json
generated
535
package-lock.json
generated
@ -5,31 +5,31 @@
|
|||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/core": {
|
"@actions/core": {
|
||||||
"version": "file:../setup-node/toolkit/actions-core-0.1.0.tgz",
|
"version": "file:toolkit/actions-core-0.0.0.tgz",
|
||||||
"integrity": "sha512-1I2vFY5r80QcbM1R8Ika5Ke9uWGrF8nl33oQuP3bXVG47wMIw1DdAVK0A17CHJe5ObHU4gpwTuQakUdZaOlg0w==",
|
"integrity": "sha512-58ituSV1rzBMmmsWoFDnrnsT+Wm4kD/u9NgAGbPvZ7rQHWluYtD5bDbIsjDC6rKFuhqytkxDJPsF/TWBdgc/nA==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@actions/exit": "^0.0.0"
|
"@actions/exit": "^0.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@actions/exec": {
|
"@actions/exec": {
|
||||||
"version": "file:../setup-node/toolkit/actions-exec-1.0.0.tgz",
|
"version": "file:toolkit/actions-exec-0.0.0.tgz",
|
||||||
"integrity": "sha512-AxtupsjQceVIf6nEECts5a1pDpWO4r3yq5lpTA73g1FXA0awDdTW3r9NFn8NGF6UaydkIN0BEOasQlS5qS30zg=="
|
"integrity": "sha512-HHObusC4p1RElxIlrrN0sY/cweBYl+jKm3J/XWHPQZMipgJXB/dkVhUfl4KqH3Vim7oM2KjCGSfn+vTYrqVH3A=="
|
||||||
},
|
},
|
||||||
"@actions/exit": {
|
"@actions/exit": {
|
||||||
"version": "file:../setup-node/toolkit/actions-exit-0.0.0.tgz",
|
"version": "file:toolkit/actions-exit-0.0.0.tgz",
|
||||||
"integrity": "sha512-vQdxFWM0/AERkC79mQ886SqPmV4joWhrSF7hiSTiJoKkE9eTjrKV5WQtp7SXv6OntrQkKX+ZjgdGpv+0rvJRCw=="
|
"integrity": "sha512-vQdxFWM0/AERkC79mQ886SqPmV4joWhrSF7hiSTiJoKkE9eTjrKV5WQtp7SXv6OntrQkKX+ZjgdGpv+0rvJRCw=="
|
||||||
},
|
},
|
||||||
"@actions/io": {
|
"@actions/io": {
|
||||||
"version": "file:../setup-node/toolkit/actions-io-1.0.0.tgz",
|
"version": "file:toolkit/actions-io-0.0.0.tgz",
|
||||||
"integrity": "sha512-Dox3bRCdyxoG0o1mSHt/uINbyQ2SfbhtJmmMuUQny6ARB1hU8ZUi+XR0cHUfd/SrwdzLUrxX4dV8x8ylNSBQpA=="
|
"integrity": "sha512-BArfobXB/b6RjR4i/+P4UcdaqR2tPjEb2WzZf9GdKiSARQn7d301pKOZAqxA+0N11X07Lk46t/txeUBcrCNbeg=="
|
||||||
},
|
},
|
||||||
"@actions/tool-cache": {
|
"@actions/tool-cache": {
|
||||||
"version": "file:toolkit/actions-tool-cache-1.0.0.tgz",
|
"version": "file:toolkit/actions-tool-cache-0.0.0.tgz",
|
||||||
"integrity": "sha512-hx8Z1ip11aZVA47uSCIB7Y9ec4Ty9zNPUyFyBsr0YI5vJ64TR/JoySbr0ck7l2EI0zqYAdef11Ynwz/qUkXVyg==",
|
"integrity": "sha512-NavDg5VFXDfbe9TpFuj+uOHacjg1bT3Wmo3DQuul3gsGRBEXyzhh2MWKnBZs/Zh7FE3prLmIqpbtymafNBFkIA==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@actions/core": "^0.1.0",
|
"@actions/core": "^0.0.0",
|
||||||
"@actions/exec": "^1.0.0",
|
"@actions/exec": "^0.0.0",
|
||||||
"@actions/io": "^1.0.0",
|
"@actions/io": "^0.0.0",
|
||||||
"semver": "^6.1.0",
|
"semver": "^6.1.0",
|
||||||
"typed-rest-client": "^1.4.0",
|
"typed-rest-client": "^1.4.0",
|
||||||
"uuid": "^3.3.2"
|
"uuid": "^3.3.2"
|
||||||
@ -76,9 +76,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"ms": {
|
"ms": {
|
||||||
"version": "2.1.1",
|
"version": "2.1.2",
|
||||||
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
|
||||||
"integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==",
|
"integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"semver": {
|
"semver": {
|
||||||
@ -226,9 +226,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"ms": {
|
"ms": {
|
||||||
"version": "2.1.1",
|
"version": "2.1.2",
|
||||||
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
|
||||||
"integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==",
|
"integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
|
||||||
"dev": true
|
"dev": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -263,6 +263,14 @@
|
|||||||
"@jest/source-map": "^24.3.0",
|
"@jest/source-map": "^24.3.0",
|
||||||
"chalk": "^2.0.1",
|
"chalk": "^2.0.1",
|
||||||
"slash": "^2.0.0"
|
"slash": "^2.0.0"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"slash": {
|
||||||
|
"version": "2.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/slash/-/slash-2.0.0.tgz",
|
||||||
|
"integrity": "sha512-ZYKh3Wh2z1PpEXWr0MpSBZ0V6mZHAQfYevttO11c51CaWjGTaadiKZ+wVt1PbMlDV5qhMFslpZCemhwOK7C89A==",
|
||||||
|
"dev": true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@jest/core": {
|
"@jest/core": {
|
||||||
@ -350,6 +358,14 @@
|
|||||||
"slash": "^2.0.0",
|
"slash": "^2.0.0",
|
||||||
"source-map": "^0.6.0",
|
"source-map": "^0.6.0",
|
||||||
"string-length": "^2.0.0"
|
"string-length": "^2.0.0"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"slash": {
|
||||||
|
"version": "2.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/slash/-/slash-2.0.0.tgz",
|
||||||
|
"integrity": "sha512-ZYKh3Wh2z1PpEXWr0MpSBZ0V6mZHAQfYevttO11c51CaWjGTaadiKZ+wVt1PbMlDV5qhMFslpZCemhwOK7C89A==",
|
||||||
|
"dev": true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@jest/source-map": {
|
"@jest/source-map": {
|
||||||
@ -361,6 +377,14 @@
|
|||||||
"callsites": "^3.0.0",
|
"callsites": "^3.0.0",
|
||||||
"graceful-fs": "^4.1.15",
|
"graceful-fs": "^4.1.15",
|
||||||
"source-map": "^0.6.0"
|
"source-map": "^0.6.0"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"callsites": {
|
||||||
|
"version": "3.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz",
|
||||||
|
"integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==",
|
||||||
|
"dev": true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@jest/test-result": {
|
"@jest/test-result": {
|
||||||
@ -407,6 +431,14 @@
|
|||||||
"slash": "^2.0.0",
|
"slash": "^2.0.0",
|
||||||
"source-map": "^0.6.1",
|
"source-map": "^0.6.1",
|
||||||
"write-file-atomic": "2.4.1"
|
"write-file-atomic": "2.4.1"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"slash": {
|
||||||
|
"version": "2.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/slash/-/slash-2.0.0.tgz",
|
||||||
|
"integrity": "sha512-ZYKh3Wh2z1PpEXWr0MpSBZ0V6mZHAQfYevttO11c51CaWjGTaadiKZ+wVt1PbMlDV5qhMFslpZCemhwOK7C89A==",
|
||||||
|
"dev": true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@jest/types": {
|
"@jest/types": {
|
||||||
@ -453,9 +485,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@types/babel__traverse": {
|
"@types/babel__traverse": {
|
||||||
"version": "7.0.6",
|
"version": "7.0.7",
|
||||||
"resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.0.6.tgz",
|
"resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.0.7.tgz",
|
||||||
"integrity": "sha512-XYVgHF2sQ0YblLRMLNPB3CkFMewzFmlDsH/TneZFHUXDlABQgh88uOxuez7ZcXxayLFrqLwtDH1t+FmlFwNZxw==",
|
"integrity": "sha512-CeBpmX1J8kWLcDEnI3Cl2Eo6RfbGvzUctA+CjZUhOKDFbLfcr7fc4usEqLNWetrlJd7RhAkyYe2czXop4fICpw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"@babel/types": "^7.3.0"
|
"@babel/types": "^7.3.0"
|
||||||
@ -487,9 +519,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@types/jest": {
|
"@types/jest": {
|
||||||
"version": "24.0.13",
|
"version": "24.0.15",
|
||||||
"resolved": "https://registry.npmjs.org/@types/jest/-/jest-24.0.13.tgz",
|
"resolved": "https://registry.npmjs.org/@types/jest/-/jest-24.0.15.tgz",
|
||||||
"integrity": "sha512-3m6RPnO35r7Dg+uMLj1+xfZaOgIHHHut61djNjzwExXN4/Pm9has9C6I1KMYSfz7mahDhWUOVg4HW/nZdv5Pww==",
|
"integrity": "sha512-MU1HIvWUme74stAoc3mgAi+aMlgKOudgEvQDIm1v4RkrDudBh1T+NFp5sftpBAdXdx1J0PbdpJ+M2EsSOi1djA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"@types/jest-diff": "*"
|
"@types/jest-diff": "*"
|
||||||
@ -502,9 +534,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"@types/node": {
|
"@types/node": {
|
||||||
"version": "12.0.4",
|
"version": "12.0.10",
|
||||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-12.0.4.tgz",
|
"resolved": "https://registry.npmjs.org/@types/node/-/node-12.0.10.tgz",
|
||||||
"integrity": "sha512-j8YL2C0fXq7IONwl/Ud5Kt0PeXw22zGERt+HSSnwbKOJVsAGkEz3sFCYwaF9IOuoG1HOtE0vKCj6sXF7Q0+Vaw==",
|
"integrity": "sha512-LcsGbPomWsad6wmMNv7nBLw7YYYyfdYcz6xryKYQhx89c3XXan+8Q6AJ43G5XDIaklaVkK3mE4fCb0SBvMiPSQ==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"@types/normalize-package-data": {
|
"@types/normalize-package-data": {
|
||||||
@ -514,9 +546,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"@types/semver": {
|
"@types/semver": {
|
||||||
"version": "6.0.0",
|
"version": "6.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/@types/semver/-/semver-6.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/@types/semver/-/semver-6.0.1.tgz",
|
||||||
"integrity": "sha512-OO0srjOGH99a4LUN2its3+r6CBYcplhJ466yLqs+zvAWgphCpS8hYZEZ797tRDP/QKcqTdb/YCN6ifASoAWkrQ==",
|
"integrity": "sha512-ffCdcrEE5h8DqVxinQjo+2d1q+FV5z7iNtPofw3JsrltSoSVlOGaW0rY8XxtO9XukdTn8TaCGWmk2VFGhI70mg==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"@types/stack-utils": {
|
"@types/stack-utils": {
|
||||||
@ -719,6 +751,14 @@
|
|||||||
"babel-preset-jest": "^24.6.0",
|
"babel-preset-jest": "^24.6.0",
|
||||||
"chalk": "^2.4.2",
|
"chalk": "^2.4.2",
|
||||||
"slash": "^2.0.0"
|
"slash": "^2.0.0"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"slash": {
|
||||||
|
"version": "2.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/slash/-/slash-2.0.0.tgz",
|
||||||
|
"integrity": "sha512-ZYKh3Wh2z1PpEXWr0MpSBZ0V6mZHAQfYevttO11c51CaWjGTaadiKZ+wVt1PbMlDV5qhMFslpZCemhwOK7C89A==",
|
||||||
|
"dev": true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"babel-plugin-istanbul": {
|
"babel-plugin-istanbul": {
|
||||||
@ -730,6 +770,42 @@
|
|||||||
"find-up": "^3.0.0",
|
"find-up": "^3.0.0",
|
||||||
"istanbul-lib-instrument": "^3.3.0",
|
"istanbul-lib-instrument": "^3.3.0",
|
||||||
"test-exclude": "^5.2.3"
|
"test-exclude": "^5.2.3"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"find-up": {
|
||||||
|
"version": "3.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz",
|
||||||
|
"integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"locate-path": "^3.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"locate-path": {
|
||||||
|
"version": "3.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz",
|
||||||
|
"integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"p-locate": "^3.0.0",
|
||||||
|
"path-exists": "^3.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"p-locate": {
|
||||||
|
"version": "3.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz",
|
||||||
|
"integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"p-limit": "^2.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"path-exists": {
|
||||||
|
"version": "3.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz",
|
||||||
|
"integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=",
|
||||||
|
"dev": true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"babel-plugin-jest-hoist": {
|
"babel-plugin-jest-hoist": {
|
||||||
@ -893,9 +969,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"bser": {
|
"bser": {
|
||||||
"version": "2.0.0",
|
"version": "2.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/bser/-/bser-2.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/bser/-/bser-2.1.0.tgz",
|
||||||
"integrity": "sha1-mseNPtXZFYBP2HrLFYvHlxR6Fxk=",
|
"integrity": "sha512-8zsjWrQkkBoLK6uxASk1nJ2SKv97ltiGDo6A3wA0/yRPz+CwmEyDo0hUrhIuukG2JHpAl3bvFIixw2/3Hi0DOg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"node-int64": "^0.4.0"
|
"node-int64": "^0.4.0"
|
||||||
@ -931,14 +1007,6 @@
|
|||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"callsites": "^2.0.0"
|
"callsites": "^2.0.0"
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"callsites": {
|
|
||||||
"version": "2.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/callsites/-/callsites-2.0.0.tgz",
|
|
||||||
"integrity": "sha1-BuuE8A7qQT2oav/vrL/7Ngk7PFA=",
|
|
||||||
"dev": true
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"caller-path": {
|
"caller-path": {
|
||||||
@ -951,9 +1019,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"callsites": {
|
"callsites": {
|
||||||
"version": "3.1.0",
|
"version": "2.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/callsites/-/callsites-2.0.0.tgz",
|
||||||
"integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==",
|
"integrity": "sha1-BuuE8A7qQT2oav/vrL/7Ngk7PFA=",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"camelcase": {
|
"camelcase": {
|
||||||
@ -1386,12 +1454,20 @@
|
|||||||
"esutils": "^2.0.2",
|
"esutils": "^2.0.2",
|
||||||
"optionator": "^0.8.1",
|
"optionator": "^0.8.1",
|
||||||
"source-map": "~0.6.1"
|
"source-map": "~0.6.1"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"esprima": {
|
||||||
|
"version": "3.1.3",
|
||||||
|
"resolved": "https://registry.npmjs.org/esprima/-/esprima-3.1.3.tgz",
|
||||||
|
"integrity": "sha1-/cpRzuYTOJXjyI1TXOSdv/YqRjM=",
|
||||||
|
"dev": true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"esprima": {
|
"esprima": {
|
||||||
"version": "3.1.3",
|
"version": "4.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/esprima/-/esprima-3.1.3.tgz",
|
"resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz",
|
||||||
"integrity": "sha1-/cpRzuYTOJXjyI1TXOSdv/YqRjM=",
|
"integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"estraverse": {
|
"estraverse": {
|
||||||
@ -1631,12 +1707,13 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"find-up": {
|
"find-up": {
|
||||||
"version": "3.0.0",
|
"version": "4.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz",
|
||||||
"integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==",
|
"integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"locate-path": "^3.0.0"
|
"locate-path": "^5.0.0",
|
||||||
|
"path-exists": "^4.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"for-in": {
|
"for-in": {
|
||||||
@ -2407,86 +2484,20 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"husky": {
|
"husky": {
|
||||||
"version": "2.4.1",
|
"version": "2.5.0",
|
||||||
"resolved": "https://registry.npmjs.org/husky/-/husky-2.4.1.tgz",
|
"resolved": "https://registry.npmjs.org/husky/-/husky-2.5.0.tgz",
|
||||||
"integrity": "sha512-ZRwMWHr7QruR22dQ5l3rEGXQ7rAQYsJYqaeCd+NyOsIFczAtqaApZQP3P4HwLZjCtFbm3SUNYoKuoBXX3AYYfw==",
|
"integrity": "sha512-/aQIBaVMuzGi5X5BPliDPbHE+G+HDpWV7Zu28DiiXFMvHQcOeTsEnODWIGKyGBp7GM7rOgkxQdF+6AEo6xNtkw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"cosmiconfig": "^5.2.0",
|
"cosmiconfig": "^5.2.1",
|
||||||
"execa": "^1.0.0",
|
"execa": "^1.0.0",
|
||||||
"find-up": "^3.0.0",
|
|
||||||
"get-stdin": "^7.0.0",
|
"get-stdin": "^7.0.0",
|
||||||
"is-ci": "^2.0.0",
|
"is-ci": "^2.0.0",
|
||||||
"pkg-dir": "^4.1.0",
|
"pkg-dir": "^4.2.0",
|
||||||
"please-upgrade-node": "^3.1.1",
|
"please-upgrade-node": "^3.1.1",
|
||||||
"read-pkg": "^5.1.1",
|
"read-pkg": "^5.1.1",
|
||||||
"run-node": "^1.0.0",
|
"run-node": "^1.0.0",
|
||||||
"slash": "^3.0.0"
|
"slash": "^3.0.0"
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"locate-path": {
|
|
||||||
"version": "5.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz",
|
|
||||||
"integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"p-locate": "^4.1.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"p-locate": {
|
|
||||||
"version": "4.1.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz",
|
|
||||||
"integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"p-limit": "^2.2.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"path-exists": {
|
|
||||||
"version": "4.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",
|
|
||||||
"integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"pkg-dir": {
|
|
||||||
"version": "4.2.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz",
|
|
||||||
"integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"find-up": "^4.0.0"
|
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"find-up": {
|
|
||||||
"version": "4.1.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz",
|
|
||||||
"integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"locate-path": "^5.0.0",
|
|
||||||
"path-exists": "^4.0.0"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"read-pkg": {
|
|
||||||
"version": "5.1.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.1.1.tgz",
|
|
||||||
"integrity": "sha512-dFcTLQi6BZ+aFUaICg7er+/usEoqFdQxiEBsEMNGoipenihtxxtdrQuBXvyANCEI8VuUIVYFgeHGx9sLLvim4w==",
|
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
|
||||||
"@types/normalize-package-data": "^2.4.0",
|
|
||||||
"normalize-package-data": "^2.5.0",
|
|
||||||
"parse-json": "^4.0.0",
|
|
||||||
"type-fest": "^0.4.1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"slash": {
|
|
||||||
"version": "3.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz",
|
|
||||||
"integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==",
|
|
||||||
"dev": true
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"iconv-lite": {
|
"iconv-lite": {
|
||||||
@ -2516,6 +2527,51 @@
|
|||||||
"requires": {
|
"requires": {
|
||||||
"pkg-dir": "^3.0.0",
|
"pkg-dir": "^3.0.0",
|
||||||
"resolve-cwd": "^2.0.0"
|
"resolve-cwd": "^2.0.0"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"find-up": {
|
||||||
|
"version": "3.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz",
|
||||||
|
"integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"locate-path": "^3.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"locate-path": {
|
||||||
|
"version": "3.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz",
|
||||||
|
"integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"p-locate": "^3.0.0",
|
||||||
|
"path-exists": "^3.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"p-locate": {
|
||||||
|
"version": "3.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz",
|
||||||
|
"integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"p-limit": "^2.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"path-exists": {
|
||||||
|
"version": "3.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz",
|
||||||
|
"integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"pkg-dir": {
|
||||||
|
"version": "3.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-3.0.0.tgz",
|
||||||
|
"integrity": "sha512-/E57AYkoeQ25qkxMj5PBOVgF8Kiu/h7cYS30Z5+R7WaiCCBfLq58ZI/dSeaEKb9WVJV5n/03QwrN3IeWIFllvw==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"find-up": "^3.0.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"imurmurhash": {
|
"imurmurhash": {
|
||||||
@ -2535,9 +2591,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"inherits": {
|
"inherits": {
|
||||||
"version": "2.0.3",
|
"version": "2.0.4",
|
||||||
"resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz",
|
"resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
|
||||||
"integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=",
|
"integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"invariant": {
|
"invariant": {
|
||||||
@ -2832,9 +2888,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"ms": {
|
"ms": {
|
||||||
"version": "2.1.1",
|
"version": "2.1.2",
|
||||||
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
|
||||||
"integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==",
|
"integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
|
||||||
"dev": true
|
"dev": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -3009,9 +3065,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"jest-haste-map": {
|
"jest-haste-map": {
|
||||||
"version": "24.8.0",
|
"version": "24.8.1",
|
||||||
"resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-24.8.0.tgz",
|
"resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-24.8.1.tgz",
|
||||||
"integrity": "sha512-ZBPRGHdPt1rHajWelXdqygIDpJx8u3xOoLyUBWRW28r3tagrgoepPrzAozW7kW9HrQfhvmiv1tncsxqHJO1onQ==",
|
"integrity": "sha512-SwaxMGVdAZk3ernAx2Uv2sorA7jm3Kx+lR0grp6rMmnY06Kn/urtKx1LPN2mGTea4fCT38impYT28FfcLUhX0g==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"@jest/types": "^24.8.0",
|
"@jest/types": "^24.8.0",
|
||||||
@ -3087,6 +3143,14 @@
|
|||||||
"micromatch": "^3.1.10",
|
"micromatch": "^3.1.10",
|
||||||
"slash": "^2.0.0",
|
"slash": "^2.0.0",
|
||||||
"stack-utils": "^1.0.1"
|
"stack-utils": "^1.0.1"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"slash": {
|
||||||
|
"version": "2.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/slash/-/slash-2.0.0.tgz",
|
||||||
|
"integrity": "sha512-ZYKh3Wh2z1PpEXWr0MpSBZ0V6mZHAQfYevttO11c51CaWjGTaadiKZ+wVt1PbMlDV5qhMFslpZCemhwOK7C89A==",
|
||||||
|
"dev": true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"jest-mock": {
|
"jest-mock": {
|
||||||
@ -3190,6 +3254,14 @@
|
|||||||
"slash": "^2.0.0",
|
"slash": "^2.0.0",
|
||||||
"strip-bom": "^3.0.0",
|
"strip-bom": "^3.0.0",
|
||||||
"yargs": "^12.0.2"
|
"yargs": "^12.0.2"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"slash": {
|
||||||
|
"version": "2.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/slash/-/slash-2.0.0.tgz",
|
||||||
|
"integrity": "sha512-ZYKh3Wh2z1PpEXWr0MpSBZ0V6mZHAQfYevttO11c51CaWjGTaadiKZ+wVt1PbMlDV5qhMFslpZCemhwOK7C89A==",
|
||||||
|
"dev": true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"jest-serializer": {
|
"jest-serializer": {
|
||||||
@ -3244,6 +3316,20 @@
|
|||||||
"mkdirp": "^0.5.1",
|
"mkdirp": "^0.5.1",
|
||||||
"slash": "^2.0.0",
|
"slash": "^2.0.0",
|
||||||
"source-map": "^0.6.0"
|
"source-map": "^0.6.0"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"callsites": {
|
||||||
|
"version": "3.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz",
|
||||||
|
"integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"slash": {
|
||||||
|
"version": "2.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/slash/-/slash-2.0.0.tgz",
|
||||||
|
"integrity": "sha512-ZYKh3Wh2z1PpEXWr0MpSBZ0V6mZHAQfYevttO11c51CaWjGTaadiKZ+wVt1PbMlDV5qhMFslpZCemhwOK7C89A==",
|
||||||
|
"dev": true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"jest-validate": {
|
"jest-validate": {
|
||||||
@ -3310,14 +3396,6 @@
|
|||||||
"requires": {
|
"requires": {
|
||||||
"argparse": "^1.0.7",
|
"argparse": "^1.0.7",
|
||||||
"esprima": "^4.0.0"
|
"esprima": "^4.0.0"
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"esprima": {
|
|
||||||
"version": "4.0.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz",
|
|
||||||
"integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==",
|
|
||||||
"dev": true
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"jsbn": {
|
"jsbn": {
|
||||||
@ -3467,13 +3545,12 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"locate-path": {
|
"locate-path": {
|
||||||
"version": "3.0.0",
|
"version": "5.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz",
|
||||||
"integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==",
|
"integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"p-locate": "^3.0.0",
|
"p-locate": "^4.1.0"
|
||||||
"path-exists": "^3.0.0"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"lodash": {
|
"lodash": {
|
||||||
@ -3976,12 +4053,12 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"p-locate": {
|
"p-locate": {
|
||||||
"version": "3.0.0",
|
"version": "4.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz",
|
||||||
"integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==",
|
"integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"p-limit": "^2.0.0"
|
"p-limit": "^2.2.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"p-reduce": {
|
"p-reduce": {
|
||||||
@ -4019,9 +4096,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"path-exists": {
|
"path-exists": {
|
||||||
"version": "3.0.0",
|
"version": "4.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",
|
||||||
"integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=",
|
"integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"path-is-absolute": {
|
"path-is-absolute": {
|
||||||
@ -4073,12 +4150,12 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"pkg-dir": {
|
"pkg-dir": {
|
||||||
"version": "3.0.0",
|
"version": "4.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-3.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz",
|
||||||
"integrity": "sha512-/E57AYkoeQ25qkxMj5PBOVgF8Kiu/h7cYS30Z5+R7WaiCCBfLq58ZI/dSeaEKb9WVJV5n/03QwrN3IeWIFllvw==",
|
"integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"find-up": "^3.0.0"
|
"find-up": "^4.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"please-upgrade-node": {
|
"please-upgrade-node": {
|
||||||
@ -4109,9 +4186,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"prettier": {
|
"prettier": {
|
||||||
"version": "1.17.1",
|
"version": "1.18.2",
|
||||||
"resolved": "https://registry.npmjs.org/prettier/-/prettier-1.17.1.tgz",
|
"resolved": "https://registry.npmjs.org/prettier/-/prettier-1.18.2.tgz",
|
||||||
"integrity": "sha512-TzGRNvuUSmPgwivDqkZ9tM/qTGW9hqDKWOE9YHiyQdixlKbv7kvEqsmDPrcHJTKwthU774TQwZXVtaQ/mMsvjg==",
|
"integrity": "sha512-OeHeMc0JhFE9idD4ZdtNibzY0+TPHSpSSb9h8FqtP+YnoZZ1sl8Vc9b1sasjfymH3SonAF4QcA2+mzHPhMvIiw==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"pretty-format": {
|
"pretty-format": {
|
||||||
@ -4127,9 +4204,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"process-nextick-args": {
|
"process-nextick-args": {
|
||||||
"version": "2.0.0",
|
"version": "2.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz",
|
||||||
"integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==",
|
"integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"prompts": {
|
"prompts": {
|
||||||
@ -4143,9 +4220,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"psl": {
|
"psl": {
|
||||||
"version": "1.1.32",
|
"version": "1.1.33",
|
||||||
"resolved": "https://registry.npmjs.org/psl/-/psl-1.1.32.tgz",
|
"resolved": "https://registry.npmjs.org/psl/-/psl-1.1.33.tgz",
|
||||||
"integrity": "sha512-MHACAkHpihU/REGGPLj4sEfc/XKW2bheigvHO1dUqjaKigMp1C8+WLQYRGgeKFMsw5PMfegZcaN8IDXK/cD0+g==",
|
"integrity": "sha512-LTDP2uSrsc7XCb5lO7A8BI1qYxRe/8EqlRvMeEl6rsnYAqDOl8xHR+8lSAIVfrNaSAlTPTNOCgNjWcoUL3AZsw==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"pump": {
|
"pump": {
|
||||||
@ -4177,14 +4254,15 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"read-pkg": {
|
"read-pkg": {
|
||||||
"version": "3.0.0",
|
"version": "5.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-3.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.1.1.tgz",
|
||||||
"integrity": "sha1-nLxoaXj+5l0WwA4rGcI3/Pbjg4k=",
|
"integrity": "sha512-dFcTLQi6BZ+aFUaICg7er+/usEoqFdQxiEBsEMNGoipenihtxxtdrQuBXvyANCEI8VuUIVYFgeHGx9sLLvim4w==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"load-json-file": "^4.0.0",
|
"@types/normalize-package-data": "^2.4.0",
|
||||||
"normalize-package-data": "^2.3.2",
|
"normalize-package-data": "^2.5.0",
|
||||||
"path-type": "^3.0.0"
|
"parse-json": "^4.0.0",
|
||||||
|
"type-fest": "^0.4.1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"read-pkg-up": {
|
"read-pkg-up": {
|
||||||
@ -4195,6 +4273,53 @@
|
|||||||
"requires": {
|
"requires": {
|
||||||
"find-up": "^3.0.0",
|
"find-up": "^3.0.0",
|
||||||
"read-pkg": "^3.0.0"
|
"read-pkg": "^3.0.0"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"find-up": {
|
||||||
|
"version": "3.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz",
|
||||||
|
"integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"locate-path": "^3.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"locate-path": {
|
||||||
|
"version": "3.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz",
|
||||||
|
"integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"p-locate": "^3.0.0",
|
||||||
|
"path-exists": "^3.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"p-locate": {
|
||||||
|
"version": "3.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz",
|
||||||
|
"integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"p-limit": "^2.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"path-exists": {
|
||||||
|
"version": "3.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz",
|
||||||
|
"integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"read-pkg": {
|
||||||
|
"version": "3.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-3.0.0.tgz",
|
||||||
|
"integrity": "sha1-nLxoaXj+5l0WwA4rGcI3/Pbjg4k=",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"load-json-file": "^4.0.0",
|
||||||
|
"normalize-package-data": "^2.3.2",
|
||||||
|
"path-type": "^3.0.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"readable-stream": {
|
"readable-stream": {
|
||||||
@ -4373,9 +4498,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"rsvp": {
|
"rsvp": {
|
||||||
"version": "4.8.4",
|
"version": "4.8.5",
|
||||||
"resolved": "https://registry.npmjs.org/rsvp/-/rsvp-4.8.4.tgz",
|
"resolved": "https://registry.npmjs.org/rsvp/-/rsvp-4.8.5.tgz",
|
||||||
"integrity": "sha512-6FomvYPfs+Jy9TfXmBpBuMWNH94SgCsZmJKcanySzgNNP6LjWxBvyLTa9KaMfDDM5oxRfrKDB0r/qeRsLwnBfA==",
|
"integrity": "sha512-nfMOlASu9OnRJo1mbEk2cz0D56a1MBNrJ7orjRZQG10XDyuvwksKbuXNp6qa+kbn839HwjwhBzhFmdsaEAfauA==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"run-node": {
|
"run-node": {
|
||||||
@ -4429,9 +4554,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"semver": {
|
"semver": {
|
||||||
"version": "6.1.1",
|
"version": "6.1.2",
|
||||||
"resolved": "https://registry.npmjs.org/semver/-/semver-6.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/semver/-/semver-6.1.2.tgz",
|
||||||
"integrity": "sha512-rWYq2e5iYW+fFe/oPPtYJxYgjBm8sC4rmoGdUOgBB7VnwKt6HrL793l2voH1UlsyYZpJ4g0wfjnTEO1s1NP2eQ=="
|
"integrity": "sha512-z4PqiCpomGtWj8633oeAdXm1Kn1W++3T8epkZYnwiVgIYIJ0QHszhInYSJTYxebByQH7KVCEAn8R9duzZW2PhQ=="
|
||||||
},
|
},
|
||||||
"semver-compare": {
|
"semver-compare": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
@ -4502,9 +4627,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"slash": {
|
"slash": {
|
||||||
"version": "2.0.0",
|
"version": "3.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/slash/-/slash-2.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz",
|
||||||
"integrity": "sha512-ZYKh3Wh2z1PpEXWr0MpSBZ0V6mZHAQfYevttO11c51CaWjGTaadiKZ+wVt1PbMlDV5qhMFslpZCemhwOK7C89A==",
|
"integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"snapdragon": {
|
"snapdragon": {
|
||||||
@ -4846,9 +4971,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"symbol-tree": {
|
"symbol-tree": {
|
||||||
"version": "3.2.2",
|
"version": "3.2.4",
|
||||||
"resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.2.tgz",
|
"resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz",
|
||||||
"integrity": "sha1-rifbOPZgp64uHDt9G8KQgZuFGeY=",
|
"integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"test-exclude": {
|
"test-exclude": {
|
||||||
@ -5024,18 +5149,18 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"typed-rest-client": {
|
"typed-rest-client": {
|
||||||
"version": "1.4.0",
|
"version": "1.5.0",
|
||||||
"resolved": "https://registry.npmjs.org/typed-rest-client/-/typed-rest-client-1.4.0.tgz",
|
"resolved": "https://registry.npmjs.org/typed-rest-client/-/typed-rest-client-1.5.0.tgz",
|
||||||
"integrity": "sha512-f+3+X13CIpkv0WvFERkXq4aH5BYzyeYclf8t+X7oa/YaE80EjYW12kphY0aEQBaL9RzChP0MSbsVhB4X+bzyDw==",
|
"integrity": "sha512-DVZRlmsfnTjp6ZJaatcdyvvwYwbWvR4YDNFDqb+qdTxpvaVP99YCpBkA8rxsLtAPjBVoDe4fNsnMIdZTiPuKWg==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"tunnel": "0.0.4",
|
"tunnel": "0.0.4",
|
||||||
"underscore": "1.8.3"
|
"underscore": "1.8.3"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"typescript": {
|
"typescript": {
|
||||||
"version": "3.5.1",
|
"version": "3.5.2",
|
||||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-3.5.1.tgz",
|
"resolved": "https://registry.npmjs.org/typescript/-/typescript-3.5.2.tgz",
|
||||||
"integrity": "sha512-64HkdiRv1yYZsSe4xC1WVgamNigVYjlssIoaH2HcZF0+ijsk5YK2g0G34w9wJkze8+5ow4STd22AynfO6ZYYLw==",
|
"integrity": "sha512-7KxJovlYhTX5RaRbUdkAXN1KUZ8PwWlTzQdHV6xNqvuFOs7+WBo10TQUqT19Q/Jz2hk5v9TQDIhyLhhJY4p5AA==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"uglify-js": {
|
"uglify-js": {
|
||||||
@ -5368,6 +5493,40 @@
|
|||||||
"yargs-parser": "^11.1.1"
|
"yargs-parser": "^11.1.1"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"find-up": {
|
||||||
|
"version": "3.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz",
|
||||||
|
"integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"locate-path": "^3.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"locate-path": {
|
||||||
|
"version": "3.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz",
|
||||||
|
"integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"p-locate": "^3.0.0",
|
||||||
|
"path-exists": "^3.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"p-locate": {
|
||||||
|
"version": "3.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz",
|
||||||
|
"integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"p-limit": "^2.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"path-exists": {
|
||||||
|
"version": "3.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz",
|
||||||
|
"integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
"require-main-filename": {
|
"require-main-filename": {
|
||||||
"version": "1.0.1",
|
"version": "1.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-1.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-1.0.1.tgz",
|
||||||
|
@ -22,11 +22,11 @@
|
|||||||
"author": "GitHub",
|
"author": "GitHub",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/core": "file:toolkit/actions-core-0.1.0.tgz",
|
"@actions/core": "file:toolkit/actions-core-0.0.0.tgz",
|
||||||
"@actions/exec": "file:toolkit/actions-exec-1.0.0.tgz",
|
"@actions/exec": "file:toolkit/actions-exec-0.0.0.tgz",
|
||||||
"@actions/exit": "file:toolkit/actions-exit-0.0.0.tgz",
|
"@actions/exit": "file:toolkit/actions-exit-0.0.0.tgz",
|
||||||
"@actions/io": "file:toolkit/actions-io-1.0.0.tgz",
|
"@actions/io": "file:toolkit/actions-io-0.0.0.tgz",
|
||||||
"@actions/tool-cache": "file:toolkit/actions-tool-cache-1.0.0.tgz",
|
"@actions/tool-cache": "file:toolkit/actions-tool-cache-0.0.0.tgz",
|
||||||
"semver": "^6.1.1"
|
"semver": "^6.1.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
130
src/installer.ts
Normal file
130
src/installer.ts
Normal file
@ -0,0 +1,130 @@
|
|||||||
|
// Load tempDirectory before it gets wiped by tool-cache
|
||||||
|
let tempDirectory = process.env['RUNNER_TEMPDIRECTORY'] || '';
|
||||||
|
import * as core from '@actions/core';
|
||||||
|
import * as tc from '@actions/tool-cache';
|
||||||
|
import * as os from 'os';
|
||||||
|
import * as path from 'path';
|
||||||
|
import * as util from 'util';
|
||||||
|
|
||||||
|
let osPlat: string = os.platform();
|
||||||
|
let osArch: string = os.arch();
|
||||||
|
|
||||||
|
if (!tempDirectory) {
|
||||||
|
let baseLocation;
|
||||||
|
if (process.platform === 'win32') {
|
||||||
|
// On windows use the USERPROFILE env variable
|
||||||
|
baseLocation = process.env['USERPROFILE'] || 'C:\\';
|
||||||
|
} else {
|
||||||
|
if (process.platform === 'darwin') {
|
||||||
|
baseLocation = '/Users';
|
||||||
|
} else {
|
||||||
|
baseLocation = '/home';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
tempDirectory = path.join(baseLocation, 'actions', 'temp');
|
||||||
|
}
|
||||||
|
|
||||||
|
export async function getGo(version: string) {
|
||||||
|
// check cache
|
||||||
|
let toolPath: string;
|
||||||
|
toolPath = tc.find('go', normalizeVersion(version));
|
||||||
|
|
||||||
|
if (!toolPath) {
|
||||||
|
// download, extract, cache
|
||||||
|
toolPath = await acquireGo(version);
|
||||||
|
core.debug('Go tool is cached under ' + toolPath);
|
||||||
|
}
|
||||||
|
|
||||||
|
setGoEnvironmentVariables(toolPath);
|
||||||
|
|
||||||
|
toolPath = path.join(toolPath, 'bin');
|
||||||
|
//
|
||||||
|
// prepend the tools path. instructs the agent to prepend for future tasks
|
||||||
|
//
|
||||||
|
core.addPath(toolPath);
|
||||||
|
}
|
||||||
|
|
||||||
|
async function acquireGo(version: string): Promise<string> {
|
||||||
|
//
|
||||||
|
// Download - a tool installer intimately knows how to get the tool (and construct urls)
|
||||||
|
//
|
||||||
|
let fileName: string = getFileName(version);
|
||||||
|
let downloadUrl: string = getDownloadUrl(fileName);
|
||||||
|
let downloadPath: string | null = null;
|
||||||
|
try {
|
||||||
|
downloadPath = await tc.downloadTool(downloadUrl);
|
||||||
|
} catch (error) {
|
||||||
|
core.debug(error);
|
||||||
|
|
||||||
|
throw `Failed to download version ${version}: ${error}`;
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// Extract
|
||||||
|
//
|
||||||
|
let extPath: string = tempDirectory;
|
||||||
|
if (!extPath) {
|
||||||
|
throw new Error('Temp directory not set');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (osPlat == 'win32') {
|
||||||
|
extPath = await tc.extractZip(downloadPath);
|
||||||
|
} else {
|
||||||
|
extPath = await tc.extractTar(downloadPath);
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// Install into the local tool cache - node extracts with a root folder that matches the fileName downloaded
|
||||||
|
//
|
||||||
|
const toolRoot = path.join(extPath, 'go');
|
||||||
|
version = normalizeVersion(version);
|
||||||
|
return await tc.cacheDir(toolRoot, 'go', version);
|
||||||
|
}
|
||||||
|
|
||||||
|
function getFileName(version: string): string {
|
||||||
|
const platform: string = osPlat == 'win32' ? 'windows' : osPlat;
|
||||||
|
const arch: string = osArch == 'x64' ? 'amd64' : '386';
|
||||||
|
const ext: string = osPlat == 'win32' ? 'zip' : 'tar.gz';
|
||||||
|
const filename: string = util.format(
|
||||||
|
'go%s.%s-%s.%s',
|
||||||
|
version,
|
||||||
|
platform,
|
||||||
|
arch,
|
||||||
|
ext
|
||||||
|
);
|
||||||
|
return filename;
|
||||||
|
}
|
||||||
|
|
||||||
|
function getDownloadUrl(filename: string): string {
|
||||||
|
return util.format('https://storage.googleapis.com/golang/%s', filename);
|
||||||
|
}
|
||||||
|
|
||||||
|
function setGoEnvironmentVariables(goRoot: string) {
|
||||||
|
core.exportVariable('GOROOT', goRoot);
|
||||||
|
|
||||||
|
const goPath: string = process.env['GOPATH'] || '';
|
||||||
|
const goBin: string = process.env['GOBIN'] || '';
|
||||||
|
|
||||||
|
// set GOPATH and GOBIN as user value
|
||||||
|
if (goPath) {
|
||||||
|
core.exportVariable('GOPATH', goPath);
|
||||||
|
}
|
||||||
|
if (goBin) {
|
||||||
|
core.exportVariable('GOBIN', goBin);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// This function is required to convert the version 1.10 to 1.10.0.
|
||||||
|
// Because caching utility accept only sementic version,
|
||||||
|
// which have patch number as well.
|
||||||
|
function normalizeVersion(version: string): string {
|
||||||
|
const versionPart = version.split('.');
|
||||||
|
if (versionPart[1] == null) {
|
||||||
|
//append minor and patch version if not available
|
||||||
|
return version.concat('.0.0');
|
||||||
|
} else if (versionPart[2] == null) {
|
||||||
|
//append patch version if not available
|
||||||
|
return version.concat('.0');
|
||||||
|
}
|
||||||
|
return version;
|
||||||
|
}
|
BIN
toolkit/actions-core-0.0.0.tgz
Normal file
BIN
toolkit/actions-core-0.0.0.tgz
Normal file
Binary file not shown.
Binary file not shown.
BIN
toolkit/actions-exec-0.0.0.tgz
Normal file
BIN
toolkit/actions-exec-0.0.0.tgz
Normal file
Binary file not shown.
Binary file not shown.
BIN
toolkit/actions-io-0.0.0.tgz
Normal file
BIN
toolkit/actions-io-0.0.0.tgz
Normal file
Binary file not shown.
Binary file not shown.
BIN
toolkit/actions-tool-cache-0.0.0.tgz
Normal file
BIN
toolkit/actions-tool-cache-0.0.0.tgz
Normal file
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user