Upgrade to @actions/core@^1.2.6 incl. dependencies

This commit is contained in:
Martin Madsen 2020-11-10 22:23:05 +01:00
parent c50e8fd92e
commit 44b19cd681
109 changed files with 4243 additions and 5708 deletions

View file

@ -52,5 +52,5 @@ function writeRegistryToFile(registryUrl, fileLocation, alwaysAuth) {
fs.writeFileSync(fileLocation, newContents); fs.writeFileSync(fileLocation, newContents);
core.exportVariable('NPM_CONFIG_USERCONFIG', fileLocation); core.exportVariable('NPM_CONFIG_USERCONFIG', fileLocation);
// Export empty node_auth_token so npm doesn't complain about not being able to find it // Export empty node_auth_token so npm doesn't complain about not being able to find it
core.exportVariable('NODE_AUTH_TOKEN', process.env.NODE_AUTH_TOKEN || 'XXXXX-XXXXX-XXXXX-XXXXX'); core.exportVariable('NODE_AUTH_TOKEN', 'XXXXX-XXXXX-XXXXX-XXXXX');
} }

15
node_modules/.bin/semver generated vendored
View file

@ -1,15 +0,0 @@
#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
case `uname` in
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
esac
if [ -x "$basedir/node" ]; then
"$basedir/node" "$basedir/../semver/bin/semver" "$@"
ret=$?
else
node "$basedir/../semver/bin/semver" "$@"
ret=$?
fi
exit $ret

1
node_modules/.bin/semver generated vendored Symbolic link
View file

@ -0,0 +1 @@
../semver/bin/semver

15
node_modules/.bin/uuid generated vendored
View file

@ -1,15 +0,0 @@
#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
case `uname` in
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
esac
if [ -x "$basedir/node" ]; then
"$basedir/node" "$basedir/../uuid/bin/uuid" "$@"
ret=$?
else
node "$basedir/../uuid/bin/uuid" "$@"
ret=$?
fi
exit $ret

1
node_modules/.bin/uuid generated vendored Symbolic link
View file

@ -0,0 +1 @@
../uuid/bin/uuid

15
node_modules/.bin/which generated vendored
View file

@ -1,15 +0,0 @@
#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
case `uname` in
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
esac
if [ -x "$basedir/node" ]; then
"$basedir/node" "$basedir/../which/bin/which" "$@"
ret=$?
else
node "$basedir/../which/bin/which" "$@"
ret=$?
fi
exit $ret

1
node_modules/.bin/which generated vendored Symbolic link
View file

@ -0,0 +1 @@
../which/bin/which

View file

@ -1,3 +1,5 @@
The MIT License (MIT)
Copyright 2019 GitHub Copyright 2019 GitHub
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: 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:

116
node_modules/@actions/core/README.md generated vendored
View file

@ -4,48 +4,55 @@
## Usage ## Usage
#### Inputs/Outputs ### Import the package
You can use this library to get inputs or set outputs: ```js
// javascript
```
const core = require('@actions/core'); const core = require('@actions/core');
const myInput = core.getInput('inputName', { required: true }); // typescript
import * as core from '@actions/core';
```
// Do stuff #### Inputs/Outputs
Action inputs can be read with `getInput`. Outputs can be set with `setOutput` which makes them available to be mapped into inputs of other actions to ensure they are decoupled.
```js
const myInput = core.getInput('inputName', { required: true });
core.setOutput('outputKey', 'outputVal'); core.setOutput('outputKey', 'outputVal');
``` ```
#### Exporting variables/secrets #### Exporting variables
You can also export variables and secrets for future steps. Variables get set in the environment automatically, while secrets must be scoped into the environment from a workflow using `{{ secret.FOO }}`. Secrets will also be masked from the logs: Since each step runs in a separate process, you can use `exportVariable` to add it to this step and future steps environment blocks.
```
const core = require('@actions/core');
// Do stuff
```js
core.exportVariable('envVar', 'Val'); core.exportVariable('envVar', 'Val');
core.exportSecret('secretVar', variableWithSecretValue); ```
#### Setting a secret
Setting a secret registers the secret with the runner to ensure it is masked in logs.
```js
core.setSecret('myPassword');
``` ```
#### PATH Manipulation #### PATH Manipulation
You can explicitly add items to the path for all remaining steps in a workflow: To make a tool's path available in the path for the remainder of the job (without altering the machine or containers state), use `addPath`. The runner will prepend the path given to the jobs PATH.
``` ```js
const core = require('@actions/core'); core.addPath('/path/to/mytool');
core.addPath('pathToTool');
``` ```
#### Exit codes #### Exit codes
You should use this library to set the failing exit code for your action: You should use this library to set the failing exit code for your action. If status is not set and the script runs to completion, that will lead to a success.
``` ```js
const core = require('@actions/core'); const core = require('@actions/core');
try { try {
@ -56,13 +63,15 @@ catch (err) {
core.setFailed(`Action failed with error ${err}`); core.setFailed(`Action failed with error ${err}`);
} }
Note that `setNeutral` is not yet implemented in actions V2 but equivalent functionality is being planned.
``` ```
#### Logging #### Logging
Finally, this library provides some utilities for logging: Finally, this library provides some utilities for logging. Note that debug logging is hidden from the logs by default. This behavior can be toggled by enabling the [Step Debug Logs](../../docs/action-debugging.md#step-debug-logs).
``` ```js
const core = require('@actions/core'); const core = require('@actions/core');
const myInput = core.getInput('input'); const myInput = core.getInput('input');
@ -70,12 +79,69 @@ try {
core.debug('Inside try block'); core.debug('Inside try block');
if (!myInput) { if (!myInput) {
core.warning('myInput wasnt set'); core.warning('myInput was not set');
} }
if (core.isDebug()) {
// curl -v https://github.com
} else {
// curl https://github.com
}
// Do stuff // Do stuff
core.info('Output to the actions build log')
} }
catch (err) { catch (err) {
core.error('Error ${err}, action may still succeed though'); core.error(`Error ${err}, action may still succeed though`);
} }
``` ```
This library can also wrap chunks of output in foldable groups.
```js
const core = require('@actions/core')
// Manually wrap output
core.startGroup('Do some function')
doSomeFunction()
core.endGroup()
// Wrap an asynchronous function call
const result = await core.group('Do something async', async () => {
const response = await doSomeHTTPRequest()
return response
})
```
#### Action state
You can use this library to save state and get state for sharing information between a given wrapper action:
**action.yml**
```yaml
name: 'Wrapper action sample'
inputs:
name:
default: 'GitHub'
runs:
using: 'node12'
main: 'main.js'
post: 'cleanup.js'
```
In action's `main.js`:
```js
const core = require('@actions/core');
core.saveState("pidToKill", 12345);
```
In action's `cleanup.js`:
```js
const core = require('@actions/core');
var pid = core.getState("pidToKill");
process.kill(pid);
```

View file

@ -1,16 +1,16 @@
interface CommandProperties { interface CommandProperties {
[key: string]: string; [key: string]: any;
} }
/** /**
* Commands * Commands
* *
* Command Format: * Command Format:
* ##[name key=value;key=value]message * ::name key=value,key=value::message
* *
* Examples: * Examples:
* ##[warning]This is the user warning message * ::warning::This is the message
* ##[set-secret name=mypassword]definatelyNotAPassword! * ::set-env name=MY_VAR::some value
*/ */
export declare function issueCommand(command: string, properties: CommandProperties, message: string): void; export declare function issueCommand(command: string, properties: CommandProperties, message: any): void;
export declare function issue(name: string, message: string): void; export declare function issue(name: string, message?: string): void;
export {}; export {};

View file

@ -1,26 +1,34 @@
"use strict"; "use strict";
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 }); Object.defineProperty(exports, "__esModule", { value: true });
const os = require("os"); const os = __importStar(require("os"));
const utils_1 = require("./utils");
/** /**
* Commands * Commands
* *
* Command Format: * Command Format:
* ##[name key=value;key=value]message * ::name key=value,key=value::message
* *
* Examples: * Examples:
* ##[warning]This is the user warning message * ::warning::This is the message
* ##[set-secret name=mypassword]definatelyNotAPassword! * ::set-env name=MY_VAR::some value
*/ */
function issueCommand(command, properties, message) { function issueCommand(command, properties, message) {
const cmd = new Command(command, properties, message); const cmd = new Command(command, properties, message);
process.stdout.write(cmd.toString() + os.EOL); process.stdout.write(cmd.toString() + os.EOL);
} }
exports.issueCommand = issueCommand; exports.issueCommand = issueCommand;
function issue(name, message) { function issue(name, message = '') {
issueCommand(name, {}, message); issueCommand(name, {}, message);
} }
exports.issue = issue; exports.issue = issue;
const CMD_PREFIX = '##['; const CMD_STRING = '::';
class Command { class Command {
constructor(command, properties, message) { constructor(command, properties, message) {
if (!command) { if (!command) {
@ -31,36 +39,41 @@ class Command {
this.message = message; this.message = message;
} }
toString() { toString() {
let cmdStr = CMD_PREFIX + this.command; let cmdStr = CMD_STRING + this.command;
if (this.properties && Object.keys(this.properties).length > 0) { if (this.properties && Object.keys(this.properties).length > 0) {
cmdStr += ' '; cmdStr += ' ';
let first = true;
for (const key in this.properties) { for (const key in this.properties) {
if (this.properties.hasOwnProperty(key)) { if (this.properties.hasOwnProperty(key)) {
const val = this.properties[key]; const val = this.properties[key];
if (val) { if (val) {
// safely append the val - avoid blowing up when attempting to if (first) {
// call .replace() if message is not a string for some reason first = false;
cmdStr += `${key}=${escape(`${val || ''}`)};`; }
else {
cmdStr += ',';
}
cmdStr += `${key}=${escapeProperty(val)}`;
} }
} }
} }
} }
cmdStr += ']'; cmdStr += `${CMD_STRING}${escapeData(this.message)}`;
// safely append the message - avoid blowing up when attempting to
// call .replace() if message is not a string for some reason
const message = `${this.message || ''}`;
cmdStr += escapeData(message);
return cmdStr; return cmdStr;
} }
} }
function escapeData(s) { function escapeData(s) {
return s.replace(/\r/g, '%0D').replace(/\n/g, '%0A'); return utils_1.toCommandValue(s)
.replace(/%/g, '%25')
.replace(/\r/g, '%0D')
.replace(/\n/g, '%0A');
} }
function escape(s) { function escapeProperty(s) {
return s return utils_1.toCommandValue(s)
.replace(/%/g, '%25')
.replace(/\r/g, '%0D') .replace(/\r/g, '%0D')
.replace(/\n/g, '%0A') .replace(/\n/g, '%0A')
.replace(/]/g, '%5D') .replace(/:/g, '%3A')
.replace(/;/g, '%3B'); .replace(/,/g, '%2C');
} }
//# sourceMappingURL=command.js.map //# sourceMappingURL=command.js.map

View file

@ -1 +1 @@
{"version":3,"file":"command.js","sourceRoot":"","sources":["../src/command.ts"],"names":[],"mappings":";;AAAA,yBAAwB;AAQxB;;;;;;;;;GASG;AACH,SAAgB,YAAY,CAC1B,OAAe,EACf,UAA6B,EAC7B,OAAe;IAEf,MAAM,GAAG,GAAG,IAAI,OAAO,CAAC,OAAO,EAAE,UAAU,EAAE,OAAO,CAAC,CAAA;IACrD,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,CAAA;AAC/C,CAAC;AAPD,oCAOC;AAED,SAAgB,KAAK,CAAC,IAAY,EAAE,OAAe;IACjD,YAAY,CAAC,IAAI,EAAE,EAAE,EAAE,OAAO,CAAC,CAAA;AACjC,CAAC;AAFD,sBAEC;AAED,MAAM,UAAU,GAAG,KAAK,CAAA;AAExB,MAAM,OAAO;IAKX,YAAY,OAAe,EAAE,UAA6B,EAAE,OAAe;QACzE,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,GAAG,iBAAiB,CAAA;SAC5B;QAED,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;QACtB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAA;QAC5B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;IACxB,CAAC;IAED,QAAQ;QACN,IAAI,MAAM,GAAG,UAAU,GAAG,IAAI,CAAC,OAAO,CAAA;QAEtC,IAAI,IAAI,CAAC,UAAU,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE;YAC9D,MAAM,IAAI,GAAG,CAAA;YACb,KAAK,MAAM,GAAG,IAAI,IAAI,CAAC,UAAU,EAAE;gBACjC,IAAI,IAAI,CAAC,UAAU,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE;oBACvC,MAAM,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAA;oBAChC,IAAI,GAAG,EAAE;wBACP,8DAA8D;wBAC9D,6DAA6D;wBAC7D,MAAM,IAAI,GAAG,GAAG,IAAI,MAAM,CAAC,GAAG,GAAG,IAAI,EAAE,EAAE,CAAC,GAAG,CAAA;qBAC9C;iBACF;aACF;SACF;QAED,MAAM,IAAI,GAAG,CAAA;QAEb,kEAAkE;QAClE,6DAA6D;QAC7D,MAAM,OAAO,GAAG,GAAG,IAAI,CAAC,OAAO,IAAI,EAAE,EAAE,CAAA;QACvC,MAAM,IAAI,UAAU,CAAC,OAAO,CAAC,CAAA;QAE7B,OAAO,MAAM,CAAA;IACf,CAAC;CACF;AAED,SAAS,UAAU,CAAC,CAAS;IAC3B,OAAO,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,CAAA;AACtD,CAAC;AAED,SAAS,MAAM,CAAC,CAAS;IACvB,OAAO,CAAC;SACL,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC;SACrB,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC;SACrB,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC;SACpB,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC,CAAA;AACzB,CAAC"} {"version":3,"file":"command.js","sourceRoot":"","sources":["../src/command.ts"],"names":[],"mappings":";;;;;;;;;AAAA,uCAAwB;AACxB,mCAAsC;AAWtC;;;;;;;;;GASG;AACH,SAAgB,YAAY,CAC1B,OAAe,EACf,UAA6B,EAC7B,OAAY;IAEZ,MAAM,GAAG,GAAG,IAAI,OAAO,CAAC,OAAO,EAAE,UAAU,EAAE,OAAO,CAAC,CAAA;IACrD,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,CAAA;AAC/C,CAAC;AAPD,oCAOC;AAED,SAAgB,KAAK,CAAC,IAAY,EAAE,UAAkB,EAAE;IACtD,YAAY,CAAC,IAAI,EAAE,EAAE,EAAE,OAAO,CAAC,CAAA;AACjC,CAAC;AAFD,sBAEC;AAED,MAAM,UAAU,GAAG,IAAI,CAAA;AAEvB,MAAM,OAAO;IAKX,YAAY,OAAe,EAAE,UAA6B,EAAE,OAAe;QACzE,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,GAAG,iBAAiB,CAAA;SAC5B;QAED,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;QACtB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAA;QAC5B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;IACxB,CAAC;IAED,QAAQ;QACN,IAAI,MAAM,GAAG,UAAU,GAAG,IAAI,CAAC,OAAO,CAAA;QAEtC,IAAI,IAAI,CAAC,UAAU,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE;YAC9D,MAAM,IAAI,GAAG,CAAA;YACb,IAAI,KAAK,GAAG,IAAI,CAAA;YAChB,KAAK,MAAM,GAAG,IAAI,IAAI,CAAC,UAAU,EAAE;gBACjC,IAAI,IAAI,CAAC,UAAU,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE;oBACvC,MAAM,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAA;oBAChC,IAAI,GAAG,EAAE;wBACP,IAAI,KAAK,EAAE;4BACT,KAAK,GAAG,KAAK,CAAA;yBACd;6BAAM;4BACL,MAAM,IAAI,GAAG,CAAA;yBACd;wBAED,MAAM,IAAI,GAAG,GAAG,IAAI,cAAc,CAAC,GAAG,CAAC,EAAE,CAAA;qBAC1C;iBACF;aACF;SACF;QAED,MAAM,IAAI,GAAG,UAAU,GAAG,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAA;QACpD,OAAO,MAAM,CAAA;IACf,CAAC;CACF;AAED,SAAS,UAAU,CAAC,CAAM;IACxB,OAAO,sBAAc,CAAC,CAAC,CAAC;SACrB,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC;SACpB,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC;SACrB,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,CAAA;AAC1B,CAAC;AAED,SAAS,cAAc,CAAC,CAAM;IAC5B,OAAO,sBAAc,CAAC,CAAC,CAAC;SACrB,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC;SACpB,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC;SACrB,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC;SACrB,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC;SACpB,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC,CAAA;AACzB,CAAC"}

View file

@ -19,17 +19,16 @@ export declare enum ExitCode {
Failure = 1 Failure = 1
} }
/** /**
* sets env variable for this action and future actions in the job * Sets env variable for this action and future actions in the job
* @param name the name of the variable to set * @param name the name of the variable to set
* @param val the value of the variable * @param val the value of the variable. Non-string values will be converted to a string via JSON.stringify
*/ */
export declare function exportVariable(name: string, val: string): void; export declare function exportVariable(name: string, val: any): void;
/** /**
* exports the variable and registers a secret which will get masked from logs * Registers a secret which will get masked from logs
* @param name the name of the variable to set * @param secret value of the secret
* @param val value of the secret
*/ */
export declare function exportSecret(name: string, val: string): void; export declare function setSecret(secret: string): void;
/** /**
* Prepends inputPath to the PATH (for this action and future actions) * Prepends inputPath to the PATH (for this action and future actions)
* @param inputPath * @param inputPath
@ -47,15 +46,25 @@ export declare function getInput(name: string, options?: InputOptions): string;
* Sets the value of an output. * Sets the value of an output.
* *
* @param name name of the output to set * @param name name of the output to set
* @param value value to store * @param value value to store. Non-string values will be converted to a string via JSON.stringify
*/ */
export declare function setOutput(name: string, value: string): void; export declare function setOutput(name: string, value: any): void;
/**
* Enables or disables the echoing of commands into stdout for the rest of the step.
* Echoing is disabled by default if ACTIONS_STEP_DEBUG is not set.
*
*/
export declare function setCommandEcho(enabled: boolean): void;
/** /**
* Sets the action status to failed. * Sets the action status to failed.
* When the action exits it will be with an exit code of 1 * When the action exits it will be with an exit code of 1
* @param message add error issue message * @param message add error issue message
*/ */
export declare function setFailed(message: string): void; export declare function setFailed(message: string | Error): void;
/**
* Gets whether Actions Step Debug is on or not
*/
export declare function isDebug(): boolean;
/** /**
* Writes debug message to user log * Writes debug message to user log
* @param message debug message * @param message debug message
@ -63,11 +72,51 @@ export declare function setFailed(message: string): void;
export declare function debug(message: string): void; export declare function debug(message: string): void;
/** /**
* Adds an error issue * Adds an error issue
* @param message error issue message * @param message error issue message. Errors will be converted to string via toString()
*/ */
export declare function error(message: string): void; export declare function error(message: string | Error): void;
/** /**
* Adds an warning issue * Adds an warning issue
* @param message warning issue message * @param message warning issue message. Errors will be converted to string via toString()
*/ */
export declare function warning(message: string): void; export declare function warning(message: string | Error): void;
/**
* Writes info to log with console.log.
* @param message info message
*/
export declare function info(message: string): void;
/**
* Begin an output group.
*
* Output until the next `groupEnd` will be foldable in this group
*
* @param name The name of the output group
*/
export declare function startGroup(name: string): void;
/**
* End an output group.
*/
export declare function endGroup(): void;
/**
* Wrap an asynchronous function call in a group.
*
* Returns the same type as the function itself.
*
* @param name The name of the group
* @param fn The function to wrap in the group
*/
export declare function group<T>(name: string, fn: () => Promise<T>): Promise<T>;
/**
* Saves state for current action, the state can only be retrieved by this action's post job execution.
*
* @param name name of the state to store
* @param value value to store. Non-string values will be converted to a string via JSON.stringify
*/
export declare function saveState(name: string, value: any): void;
/**
* Gets the value of an state set by this action's main execution.
*
* @param name name of the state to get
* @returns string
*/
export declare function getState(name: string): string;

View file

@ -1,7 +1,26 @@
"use strict"; "use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
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) : adopt(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 }); Object.defineProperty(exports, "__esModule", { value: true });
const command_1 = require("./command"); const command_1 = require("./command");
const path = require("path"); const file_command_1 = require("./file-command");
const utils_1 = require("./utils");
const os = __importStar(require("os"));
const path = __importStar(require("path"));
/** /**
* The code to exit an action * The code to exit an action
*/ */
@ -20,31 +39,45 @@ var ExitCode;
// Variables // Variables
//----------------------------------------------------------------------- //-----------------------------------------------------------------------
/** /**
* sets env variable for this action and future actions in the job * Sets env variable for this action and future actions in the job
* @param name the name of the variable to set * @param name the name of the variable to set
* @param val the value of the variable * @param val the value of the variable. Non-string values will be converted to a string via JSON.stringify
*/ */
// eslint-disable-next-line @typescript-eslint/no-explicit-any
function exportVariable(name, val) { function exportVariable(name, val) {
process.env[name] = val; const convertedVal = utils_1.toCommandValue(val);
command_1.issueCommand('set-env', { name }, val); process.env[name] = convertedVal;
const filePath = process.env['GITHUB_ENV'] || '';
if (filePath) {
const delimiter = '_GitHubActionsFileCommandDelimeter_';
const commandValue = `${name}<<${delimiter}${os.EOL}${convertedVal}${os.EOL}${delimiter}`;
file_command_1.issueCommand('ENV', commandValue);
}
else {
command_1.issueCommand('set-env', { name }, convertedVal);
}
} }
exports.exportVariable = exportVariable; exports.exportVariable = exportVariable;
/** /**
* exports the variable and registers a secret which will get masked from logs * Registers a secret which will get masked from logs
* @param name the name of the variable to set * @param secret value of the secret
* @param val value of the secret
*/ */
function exportSecret(name, val) { function setSecret(secret) {
exportVariable(name, val); command_1.issueCommand('add-mask', {}, secret);
command_1.issueCommand('set-secret', {}, val);
} }
exports.exportSecret = exportSecret; exports.setSecret = setSecret;
/** /**
* Prepends inputPath to the PATH (for this action and future actions) * Prepends inputPath to the PATH (for this action and future actions)
* @param inputPath * @param inputPath
*/ */
function addPath(inputPath) { function addPath(inputPath) {
command_1.issueCommand('add-path', {}, inputPath); const filePath = process.env['GITHUB_PATH'] || '';
if (filePath) {
file_command_1.issueCommand('PATH', inputPath);
}
else {
command_1.issueCommand('add-path', {}, inputPath);
}
process.env['PATH'] = `${inputPath}${path.delimiter}${process.env['PATH']}`; process.env['PATH'] = `${inputPath}${path.delimiter}${process.env['PATH']}`;
} }
exports.addPath = addPath; exports.addPath = addPath;
@ -56,7 +89,7 @@ exports.addPath = addPath;
* @returns string * @returns string
*/ */
function getInput(name, options) { function getInput(name, options) {
const val = process.env[`INPUT_${name.replace(' ', '_').toUpperCase()}`] || ''; const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';
if (options && options.required && !val) { if (options && options.required && !val) {
throw new Error(`Input required and not supplied: ${name}`); throw new Error(`Input required and not supplied: ${name}`);
} }
@ -67,12 +100,22 @@ exports.getInput = getInput;
* Sets the value of an output. * Sets the value of an output.
* *
* @param name name of the output to set * @param name name of the output to set
* @param value value to store * @param value value to store. Non-string values will be converted to a string via JSON.stringify
*/ */
// eslint-disable-next-line @typescript-eslint/no-explicit-any
function setOutput(name, value) { function setOutput(name, value) {
command_1.issueCommand('set-output', { name }, value); command_1.issueCommand('set-output', { name }, value);
} }
exports.setOutput = setOutput; exports.setOutput = setOutput;
/**
* Enables or disables the echoing of commands into stdout for the rest of the step.
* Echoing is disabled by default if ACTIONS_STEP_DEBUG is not set.
*
*/
function setCommandEcho(enabled) {
command_1.issue('echo', enabled ? 'on' : 'off');
}
exports.setCommandEcho = setCommandEcho;
//----------------------------------------------------------------------- //-----------------------------------------------------------------------
// Results // Results
//----------------------------------------------------------------------- //-----------------------------------------------------------------------
@ -89,6 +132,13 @@ exports.setFailed = setFailed;
//----------------------------------------------------------------------- //-----------------------------------------------------------------------
// Logging Commands // Logging Commands
//----------------------------------------------------------------------- //-----------------------------------------------------------------------
/**
* Gets whether Actions Step Debug is on or not
*/
function isDebug() {
return process.env['RUNNER_DEBUG'] === '1';
}
exports.isDebug = isDebug;
/** /**
* Writes debug message to user log * Writes debug message to user log
* @param message debug message * @param message debug message
@ -99,18 +149,90 @@ function debug(message) {
exports.debug = debug; exports.debug = debug;
/** /**
* Adds an error issue * Adds an error issue
* @param message error issue message * @param message error issue message. Errors will be converted to string via toString()
*/ */
function error(message) { function error(message) {
command_1.issue('error', message); command_1.issue('error', message instanceof Error ? message.toString() : message);
} }
exports.error = error; exports.error = error;
/** /**
* Adds an warning issue * Adds an warning issue
* @param message warning issue message * @param message warning issue message. Errors will be converted to string via toString()
*/ */
function warning(message) { function warning(message) {
command_1.issue('warning', message); command_1.issue('warning', message instanceof Error ? message.toString() : message);
} }
exports.warning = warning; exports.warning = warning;
/**
* Writes info to log with console.log.
* @param message info message
*/
function info(message) {
process.stdout.write(message + os.EOL);
}
exports.info = info;
/**
* Begin an output group.
*
* Output until the next `groupEnd` will be foldable in this group
*
* @param name The name of the output group
*/
function startGroup(name) {
command_1.issue('group', name);
}
exports.startGroup = startGroup;
/**
* End an output group.
*/
function endGroup() {
command_1.issue('endgroup');
}
exports.endGroup = endGroup;
/**
* Wrap an asynchronous function call in a group.
*
* Returns the same type as the function itself.
*
* @param name The name of the group
* @param fn The function to wrap in the group
*/
function group(name, fn) {
return __awaiter(this, void 0, void 0, function* () {
startGroup(name);
let result;
try {
result = yield fn();
}
finally {
endGroup();
}
return result;
});
}
exports.group = group;
//-----------------------------------------------------------------------
// Wrapper action state
//-----------------------------------------------------------------------
/**
* Saves state for current action, the state can only be retrieved by this action's post job execution.
*
* @param name name of the state to store
* @param value value to store. Non-string values will be converted to a string via JSON.stringify
*/
// eslint-disable-next-line @typescript-eslint/no-explicit-any
function saveState(name, value) {
command_1.issueCommand('save-state', { name }, value);
}
exports.saveState = saveState;
/**
* Gets the value of an state set by this action's main execution.
*
* @param name name of the state to get
* @returns string
*/
function getState(name) {
return process.env[`STATE_${name}`] || '';
}
exports.getState = getState;
//# sourceMappingURL=core.js.map //# sourceMappingURL=core.js.map

View file

@ -1 +1 @@
{"version":3,"file":"core.js","sourceRoot":"","sources":["../src/core.ts"],"names":[],"mappings":";;AAAA,uCAA6C;AAE7C,6BAA4B;AAU5B;;GAEG;AACH,IAAY,QAUX;AAVD,WAAY,QAAQ;IAClB;;OAEG;IACH,6CAAW,CAAA;IAEX;;OAEG;IACH,6CAAW,CAAA;AACb,CAAC,EAVW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAUnB;AAED,yEAAyE;AACzE,YAAY;AACZ,yEAAyE;AAEzE;;;;GAIG;AACH,SAAgB,cAAc,CAAC,IAAY,EAAE,GAAW;IACtD,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,GAAG,CAAA;IACvB,sBAAY,CAAC,SAAS,EAAE,EAAC,IAAI,EAAC,EAAE,GAAG,CAAC,CAAA;AACtC,CAAC;AAHD,wCAGC;AAED;;;;GAIG;AACH,SAAgB,YAAY,CAAC,IAAY,EAAE,GAAW;IACpD,cAAc,CAAC,IAAI,EAAE,GAAG,CAAC,CAAA;IACzB,sBAAY,CAAC,YAAY,EAAE,EAAE,EAAE,GAAG,CAAC,CAAA;AACrC,CAAC;AAHD,oCAGC;AAED;;;GAGG;AACH,SAAgB,OAAO,CAAC,SAAiB;IACvC,sBAAY,CAAC,UAAU,EAAE,EAAE,EAAE,SAAS,CAAC,CAAA;IACvC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,GAAG,SAAS,GAAG,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAA;AAC7E,CAAC;AAHD,0BAGC;AAED;;;;;;GAMG;AACH,SAAgB,QAAQ,CAAC,IAAY,EAAE,OAAsB;IAC3D,MAAM,GAAG,GACP,OAAO,CAAC,GAAG,CAAC,SAAS,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,WAAW,EAAE,EAAE,CAAC,IAAI,EAAE,CAAA;IACpE,IAAI,OAAO,IAAI,OAAO,CAAC,QAAQ,IAAI,CAAC,GAAG,EAAE;QACvC,MAAM,IAAI,KAAK,CAAC,oCAAoC,IAAI,EAAE,CAAC,CAAA;KAC5D;IAED,OAAO,GAAG,CAAC,IAAI,EAAE,CAAA;AACnB,CAAC;AARD,4BAQC;AAED;;;;;GAKG;AACH,SAAgB,SAAS,CAAC,IAAY,EAAE,KAAa;IACnD,sBAAY,CAAC,YAAY,EAAE,EAAC,IAAI,EAAC,EAAE,KAAK,CAAC,CAAA;AAC3C,CAAC;AAFD,8BAEC;AAED,yEAAyE;AACzE,UAAU;AACV,yEAAyE;AAEzE;;;;GAIG;AACH,SAAgB,SAAS,CAAC,OAAe;IACvC,OAAO,CAAC,QAAQ,GAAG,QAAQ,CAAC,OAAO,CAAA;IACnC,KAAK,CAAC,OAAO,CAAC,CAAA;AAChB,CAAC;AAHD,8BAGC;AAED,yEAAyE;AACzE,mBAAmB;AACnB,yEAAyE;AAEzE;;;GAGG;AACH,SAAgB,KAAK,CAAC,OAAe;IACnC,sBAAY,CAAC,OAAO,EAAE,EAAE,EAAE,OAAO,CAAC,CAAA;AACpC,CAAC;AAFD,sBAEC;AAED;;;GAGG;AACH,SAAgB,KAAK,CAAC,OAAe;IACnC,eAAK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAA;AACzB,CAAC;AAFD,sBAEC;AAED;;;GAGG;AACH,SAAgB,OAAO,CAAC,OAAe;IACrC,eAAK,CAAC,SAAS,EAAE,OAAO,CAAC,CAAA;AAC3B,CAAC;AAFD,0BAEC"} {"version":3,"file":"core.js","sourceRoot":"","sources":["../src/core.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,uCAA6C;AAC7C,iDAA+D;AAC/D,mCAAsC;AAEtC,uCAAwB;AACxB,2CAA4B;AAU5B;;GAEG;AACH,IAAY,QAUX;AAVD,WAAY,QAAQ;IAClB;;OAEG;IACH,6CAAW,CAAA;IAEX;;OAEG;IACH,6CAAW,CAAA;AACb,CAAC,EAVW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAUnB;AAED,yEAAyE;AACzE,YAAY;AACZ,yEAAyE;AAEzE;;;;GAIG;AACH,8DAA8D;AAC9D,SAAgB,cAAc,CAAC,IAAY,EAAE,GAAQ;IACnD,MAAM,YAAY,GAAG,sBAAc,CAAC,GAAG,CAAC,CAAA;IACxC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,YAAY,CAAA;IAEhC,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,EAAE,CAAA;IAChD,IAAI,QAAQ,EAAE;QACZ,MAAM,SAAS,GAAG,qCAAqC,CAAA;QACvD,MAAM,YAAY,GAAG,GAAG,IAAI,KAAK,SAAS,GAAG,EAAE,CAAC,GAAG,GAAG,YAAY,GAAG,EAAE,CAAC,GAAG,GAAG,SAAS,EAAE,CAAA;QACzF,2BAAgB,CAAC,KAAK,EAAE,YAAY,CAAC,CAAA;KACtC;SAAM;QACL,sBAAY,CAAC,SAAS,EAAE,EAAC,IAAI,EAAC,EAAE,YAAY,CAAC,CAAA;KAC9C;AACH,CAAC;AAZD,wCAYC;AAED;;;GAGG;AACH,SAAgB,SAAS,CAAC,MAAc;IACtC,sBAAY,CAAC,UAAU,EAAE,EAAE,EAAE,MAAM,CAAC,CAAA;AACtC,CAAC;AAFD,8BAEC;AAED;;;GAGG;AACH,SAAgB,OAAO,CAAC,SAAiB;IACvC,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,IAAI,EAAE,CAAA;IACjD,IAAI,QAAQ,EAAE;QACZ,2BAAgB,CAAC,MAAM,EAAE,SAAS,CAAC,CAAA;KACpC;SAAM;QACL,sBAAY,CAAC,UAAU,EAAE,EAAE,EAAE,SAAS,CAAC,CAAA;KACxC;IACD,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,GAAG,SAAS,GAAG,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAA;AAC7E,CAAC;AARD,0BAQC;AAED;;;;;;GAMG;AACH,SAAgB,QAAQ,CAAC,IAAY,EAAE,OAAsB;IAC3D,MAAM,GAAG,GACP,OAAO,CAAC,GAAG,CAAC,SAAS,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,WAAW,EAAE,EAAE,CAAC,IAAI,EAAE,CAAA;IACrE,IAAI,OAAO,IAAI,OAAO,CAAC,QAAQ,IAAI,CAAC,GAAG,EAAE;QACvC,MAAM,IAAI,KAAK,CAAC,oCAAoC,IAAI,EAAE,CAAC,CAAA;KAC5D;IAED,OAAO,GAAG,CAAC,IAAI,EAAE,CAAA;AACnB,CAAC;AARD,4BAQC;AAED;;;;;GAKG;AACH,8DAA8D;AAC9D,SAAgB,SAAS,CAAC,IAAY,EAAE,KAAU;IAChD,sBAAY,CAAC,YAAY,EAAE,EAAC,IAAI,EAAC,EAAE,KAAK,CAAC,CAAA;AAC3C,CAAC;AAFD,8BAEC;AAED;;;;GAIG;AACH,SAAgB,cAAc,CAAC,OAAgB;IAC7C,eAAK,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAA;AACvC,CAAC;AAFD,wCAEC;AAED,yEAAyE;AACzE,UAAU;AACV,yEAAyE;AAEzE;;;;GAIG;AACH,SAAgB,SAAS,CAAC,OAAuB;IAC/C,OAAO,CAAC,QAAQ,GAAG,QAAQ,CAAC,OAAO,CAAA;IAEnC,KAAK,CAAC,OAAO,CAAC,CAAA;AAChB,CAAC;AAJD,8BAIC;AAED,yEAAyE;AACzE,mBAAmB;AACnB,yEAAyE;AAEzE;;GAEG;AACH,SAAgB,OAAO;IACrB,OAAO,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,KAAK,GAAG,CAAA;AAC5C,CAAC;AAFD,0BAEC;AAED;;;GAGG;AACH,SAAgB,KAAK,CAAC,OAAe;IACnC,sBAAY,CAAC,OAAO,EAAE,EAAE,EAAE,OAAO,CAAC,CAAA;AACpC,CAAC;AAFD,sBAEC;AAED;;;GAGG;AACH,SAAgB,KAAK,CAAC,OAAuB;IAC3C,eAAK,CAAC,OAAO,EAAE,OAAO,YAAY,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAA;AACzE,CAAC;AAFD,sBAEC;AAED;;;GAGG;AACH,SAAgB,OAAO,CAAC,OAAuB;IAC7C,eAAK,CAAC,SAAS,EAAE,OAAO,YAAY,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAA;AAC3E,CAAC;AAFD,0BAEC;AAED;;;GAGG;AACH,SAAgB,IAAI,CAAC,OAAe;IAClC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,EAAE,CAAC,GAAG,CAAC,CAAA;AACxC,CAAC;AAFD,oBAEC;AAED;;;;;;GAMG;AACH,SAAgB,UAAU,CAAC,IAAY;IACrC,eAAK,CAAC,OAAO,EAAE,IAAI,CAAC,CAAA;AACtB,CAAC;AAFD,gCAEC;AAED;;GAEG;AACH,SAAgB,QAAQ;IACtB,eAAK,CAAC,UAAU,CAAC,CAAA;AACnB,CAAC;AAFD,4BAEC;AAED;;;;;;;GAOG;AACH,SAAsB,KAAK,CAAI,IAAY,EAAE,EAAoB;;QAC/D,UAAU,CAAC,IAAI,CAAC,CAAA;QAEhB,IAAI,MAAS,CAAA;QAEb,IAAI;YACF,MAAM,GAAG,MAAM,EAAE,EAAE,CAAA;SACpB;gBAAS;YACR,QAAQ,EAAE,CAAA;SACX;QAED,OAAO,MAAM,CAAA;IACf,CAAC;CAAA;AAZD,sBAYC;AAED,yEAAyE;AACzE,uBAAuB;AACvB,yEAAyE;AAEzE;;;;;GAKG;AACH,8DAA8D;AAC9D,SAAgB,SAAS,CAAC,IAAY,EAAE,KAAU;IAChD,sBAAY,CAAC,YAAY,EAAE,EAAC,IAAI,EAAC,EAAE,KAAK,CAAC,CAAA;AAC3C,CAAC;AAFD,8BAEC;AAED;;;;;GAKG;AACH,SAAgB,QAAQ,CAAC,IAAY;IACnC,OAAO,OAAO,CAAC,GAAG,CAAC,SAAS,IAAI,EAAE,CAAC,IAAI,EAAE,CAAA;AAC3C,CAAC;AAFD,4BAEC"}

1
node_modules/@actions/core/lib/file-command.d.ts generated vendored Normal file
View file

@ -0,0 +1 @@
export declare function issueCommand(command: string, message: any): void;

29
node_modules/@actions/core/lib/file-command.js generated vendored Normal file
View file

@ -0,0 +1,29 @@
"use strict";
// For internal use, subject to change.
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 });
// We use any as a valid input type
/* eslint-disable @typescript-eslint/no-explicit-any */
const fs = __importStar(require("fs"));
const os = __importStar(require("os"));
const utils_1 = require("./utils");
function issueCommand(command, message) {
const filePath = process.env[`GITHUB_${command}`];
if (!filePath) {
throw new Error(`Unable to find environment variable for file command ${command}`);
}
if (!fs.existsSync(filePath)) {
throw new Error(`Missing file at path: ${filePath}`);
}
fs.appendFileSync(filePath, `${utils_1.toCommandValue(message)}${os.EOL}`, {
encoding: 'utf8'
});
}
exports.issueCommand = issueCommand;
//# sourceMappingURL=file-command.js.map

1
node_modules/@actions/core/lib/file-command.js.map generated vendored Normal file
View file

@ -0,0 +1 @@
{"version":3,"file":"file-command.js","sourceRoot":"","sources":["../src/file-command.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;;;;;;;AAEvC,mCAAmC;AACnC,uDAAuD;AAEvD,uCAAwB;AACxB,uCAAwB;AACxB,mCAAsC;AAEtC,SAAgB,YAAY,CAAC,OAAe,EAAE,OAAY;IACxD,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,OAAO,EAAE,CAAC,CAAA;IACjD,IAAI,CAAC,QAAQ,EAAE;QACb,MAAM,IAAI,KAAK,CACb,wDAAwD,OAAO,EAAE,CAClE,CAAA;KACF;IACD,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE;QAC5B,MAAM,IAAI,KAAK,CAAC,yBAAyB,QAAQ,EAAE,CAAC,CAAA;KACrD;IAED,EAAE,CAAC,cAAc,CAAC,QAAQ,EAAE,GAAG,sBAAc,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,GAAG,EAAE,EAAE;QACjE,QAAQ,EAAE,MAAM;KACjB,CAAC,CAAA;AACJ,CAAC;AAdD,oCAcC"}

5
node_modules/@actions/core/lib/utils.d.ts generated vendored Normal file
View file

@ -0,0 +1,5 @@
/**
* Sanitizes an input into a string so it can be passed into issueCommand safely
* @param input input to sanitize into a string
*/
export declare function toCommandValue(input: any): string;

19
node_modules/@actions/core/lib/utils.js generated vendored Normal file
View file

@ -0,0 +1,19 @@
"use strict";
// We use any as a valid input type
/* eslint-disable @typescript-eslint/no-explicit-any */
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Sanitizes an input into a string so it can be passed into issueCommand safely
* @param input input to sanitize into a string
*/
function toCommandValue(input) {
if (input === null || input === undefined) {
return '';
}
else if (typeof input === 'string' || input instanceof String) {
return input;
}
return JSON.stringify(input);
}
exports.toCommandValue = toCommandValue;
//# sourceMappingURL=utils.js.map

1
node_modules/@actions/core/lib/utils.js.map generated vendored Normal file
View file

@ -0,0 +1 @@
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";AAAA,mCAAmC;AACnC,uDAAuD;;AAEvD;;;GAGG;AACH,SAAgB,cAAc,CAAC,KAAU;IACvC,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,EAAE;QACzC,OAAO,EAAE,CAAA;KACV;SAAM,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,YAAY,MAAM,EAAE;QAC/D,OAAO,KAAe,CAAA;KACvB;IACD,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAA;AAC9B,CAAC;AAPD,wCAOC"}

View file

@ -1,64 +1,45 @@
{ {
"_from": "@actions/core@^1.0.0", "name": "@actions/core",
"_id": "@actions/core@1.0.0", "version": "1.2.6",
"_inBundle": false,
"_integrity": "sha512-aMIlkx96XH4E/2YZtEOeyrYQfhlas9jIRkfGPqMwXD095Rdkzo4lB6ZmbxPQSzD+e1M+Xsm98ZhuSMYGv/AlqA==",
"_location": "/@actions/core",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "@actions/core@^1.0.0",
"name": "@actions/core",
"escapedName": "@actions%2fcore",
"scope": "@actions",
"rawSpec": "^1.0.0",
"saveSpec": null,
"fetchSpec": "^1.0.0"
},
"_requiredBy": [
"/",
"/@actions/tool-cache"
],
"_resolved": "https://registry.npmjs.org/@actions/core/-/core-1.0.0.tgz",
"_shasum": "4a090a2e958cc300b9ea802331034d5faf42d239",
"_spec": "@actions/core@^1.0.0",
"_where": "C:\\Users\\damccorm\\Documents\\setup-node",
"bugs": {
"url": "https://github.com/actions/toolkit/issues"
},
"bundleDependencies": false,
"deprecated": false,
"description": "Actions core lib", "description": "Actions core lib",
"devDependencies": { "keywords": [
"@types/node": "^12.0.2" "github",
}, "actions",
"core"
],
"homepage": "https://github.com/actions/toolkit/tree/main/packages/core",
"license": "MIT",
"main": "lib/core.js",
"types": "lib/core.d.ts",
"directories": { "directories": {
"lib": "lib", "lib": "lib",
"test": "__tests__" "test": "__tests__"
}, },
"files": [ "files": [
"lib" "lib",
"!.DS_Store"
], ],
"gitHead": "a40bce7c8d382aa3dbadaa327acbc696e9390e55",
"homepage": "https://github.com/actions/toolkit/tree/master/packages/core",
"keywords": [
"core",
"actions"
],
"license": "MIT",
"main": "lib/core.js",
"name": "@actions/core",
"publishConfig": { "publishConfig": {
"access": "public" "access": "public"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git+https://github.com/actions/toolkit.git" "url": "git+https://github.com/actions/toolkit.git",
"directory": "packages/core"
}, },
"scripts": { "scripts": {
"audit-moderate": "npm install && npm audit --json --audit-level=moderate > audit.json",
"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" "bugs": {
} "url": "https://github.com/actions/toolkit/issues"
},
"devDependencies": {
"@types/node": "^12.0.2"
}
,"_resolved": "https://registry.npmjs.org/@actions/core/-/core-1.2.6.tgz"
,"_integrity": "sha512-ZQYitnqiyBc3D+k7LsgSBmMDVkOVidaagDG7j3fOym77jNunWRuYx7VSHa9GNfFZh+zh61xsCjRj4JxMZlDqTA=="
,"_from": "@actions/core@1.2.6"
}

View file

@ -1,7 +1,7 @@
Copyright 2019 GitHub Copyright 2019 GitHub
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: 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 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. 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.

120
node_modules/@actions/exec/README.md generated vendored
View file

@ -1,60 +1,60 @@
# `@actions/exec` # `@actions/exec`
## Usage ## Usage
#### Basic #### Basic
You can use this package to execute your tools on the command line in a cross platform way: You can use this package to execute your tools on the command line in a cross platform way:
``` ```
const exec = require('@actions/exec'); const exec = require('@actions/exec');
await exec.exec('node index.js'); await exec.exec('node index.js');
``` ```
#### Args #### Args
You can also pass in arg arrays: You can also pass in arg arrays:
``` ```
const exec = require('@actions/exec'); const exec = require('@actions/exec');
await exec.exec('node', ['index.js', 'foo=bar']); await exec.exec('node', ['index.js', 'foo=bar']);
``` ```
#### Output/options #### Output/options
Capture output or specify [other options](https://github.com/actions/toolkit/blob/d9347d4ab99fd507c0b9104b2cf79fb44fcc827d/packages/exec/src/interfaces.ts#L5): Capture output or specify [other options](https://github.com/actions/toolkit/blob/d9347d4ab99fd507c0b9104b2cf79fb44fcc827d/packages/exec/src/interfaces.ts#L5):
``` ```
const exec = require('@actions/exec'); const exec = require('@actions/exec');
const myOutput = ''; const myOutput = '';
const myError = ''; const myError = '';
const options = {}; const options = {};
options.listeners = { options.listeners = {
stdout: (data: Buffer) => { stdout: (data: Buffer) => {
myOutput += data.toString(); myOutput += data.toString();
}, },
stderr: (data: Buffer) => { stderr: (data: Buffer) => {
myError += data.toString(); myError += data.toString();
} }
}; };
options.cwd = './lib'; options.cwd = './lib';
await exec.exec('node', ['index.js', 'foo=bar'], options); await exec.exec('node', ['index.js', 'foo=bar'], options);
``` ```
#### Exec tools not in the PATH #### Exec tools not in the PATH
You can use it in conjunction with the `which` function from `@actions/io` to execute tools that are not in the PATH: You can use it in conjunction with the `which` function from `@actions/io` to execute tools that are not in the PATH:
``` ```
const exec = require('@actions/exec'); const exec = require('@actions/exec');
const io = require('@actions/io'); const io = require('@actions/io');
const pythonPath: string = await io.which('python', true) const pythonPath: string = await io.which('python', true)
await exec.exec(`"${pythonPath}"`, ['main.py']); await exec.exec(`"${pythonPath}"`, ['main.py']);
``` ```

View file

@ -1,12 +1,12 @@
import * as im from './interfaces'; import * as im from './interfaces';
/** /**
* Exec a command. * Exec a command.
* Output will be streamed to the live console. * Output will be streamed to the live console.
* Returns promise with return code * Returns promise with return code
* *
* @param commandLine command to execute (can include additional args). Must be correctly escaped. * @param commandLine command to execute (can include additional args). Must be correctly escaped.
* @param args optional arguments for tool. Escaping is handled by the lib. * @param args optional arguments for tool. Escaping is handled by the lib.
* @param options optional exec options. See ExecOptions * @param options optional exec options. See ExecOptions
* @returns Promise<number> exit code * @returns Promise<number> exit code
*/ */
export declare function exec(commandLine: string, args?: string[], options?: im.ExecOptions): Promise<number>; export declare function exec(commandLine: string, args?: string[], options?: im.ExecOptions): Promise<number>;

View file

@ -1,36 +1,36 @@
"use strict"; "use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) { return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } 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 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); } 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()); step((generator = generator.apply(thisArg, _arguments || [])).next());
}); });
}; };
Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "__esModule", { value: true });
const tr = require("./toolrunner"); const tr = require("./toolrunner");
/** /**
* Exec a command. * Exec a command.
* Output will be streamed to the live console. * Output will be streamed to the live console.
* Returns promise with return code * Returns promise with return code
* *
* @param commandLine command to execute (can include additional args). Must be correctly escaped. * @param commandLine command to execute (can include additional args). Must be correctly escaped.
* @param args optional arguments for tool. Escaping is handled by the lib. * @param args optional arguments for tool. Escaping is handled by the lib.
* @param options optional exec options. See ExecOptions * @param options optional exec options. See ExecOptions
* @returns Promise<number> exit code * @returns Promise<number> exit code
*/ */
function exec(commandLine, args, options) { function exec(commandLine, args, options) {
return __awaiter(this, void 0, void 0, function* () { return __awaiter(this, void 0, void 0, function* () {
const commandArgs = tr.argStringToArray(commandLine); const commandArgs = tr.argStringToArray(commandLine);
if (commandArgs.length === 0) { if (commandArgs.length === 0) {
throw new Error(`Parameter 'commandLine' cannot be null or empty.`); throw new Error(`Parameter 'commandLine' cannot be null or empty.`);
} }
// Path to tool to execute should be first arg // Path to tool to execute should be first arg
const toolPath = commandArgs[0]; const toolPath = commandArgs[0];
args = commandArgs.slice(1).concat(args || []); args = commandArgs.slice(1).concat(args || []);
const runner = new tr.ToolRunner(toolPath, args, options); const runner = new tr.ToolRunner(toolPath, args, options);
return runner.exec(); return runner.exec();
}); });
} }
exports.exec = exec; exports.exec = exec;
//# sourceMappingURL=exec.js.map //# sourceMappingURL=exec.js.map

View file

@ -1,35 +1,35 @@
/// <reference types="node" /> /// <reference types="node" />
import * as stream from 'stream'; import * as stream from 'stream';
/** /**
* Interface for exec options * Interface for exec options
*/ */
export interface ExecOptions { export interface ExecOptions {
/** optional working directory. defaults to current */ /** optional working directory. defaults to current */
cwd?: string; cwd?: string;
/** optional envvar dictionary. defaults to current process's env */ /** optional envvar dictionary. defaults to current process's env */
env?: { env?: {
[key: string]: string; [key: string]: string;
}; };
/** optional. defaults to false */ /** optional. defaults to false */
silent?: boolean; silent?: boolean;
/** optional out stream to use. Defaults to process.stdout */ /** optional out stream to use. Defaults to process.stdout */
outStream?: stream.Writable; outStream?: stream.Writable;
/** optional err stream to use. Defaults to process.stderr */ /** optional err stream to use. Defaults to process.stderr */
errStream?: stream.Writable; errStream?: stream.Writable;
/** optional. whether to skip quoting/escaping arguments if needed. defaults to false. */ /** optional. whether to skip quoting/escaping arguments if needed. defaults to false. */
windowsVerbatimArguments?: boolean; windowsVerbatimArguments?: boolean;
/** optional. whether to fail if output to stderr. defaults to false */ /** optional. whether to fail if output to stderr. defaults to false */
failOnStdErr?: boolean; failOnStdErr?: boolean;
/** optional. defaults to failing on non zero. ignore will not fail leaving it up to the caller */ /** optional. defaults to failing on non zero. ignore will not fail leaving it up to the caller */
ignoreReturnCode?: boolean; ignoreReturnCode?: boolean;
/** optional. How long in ms to wait for STDIO streams to close after the exit event of the process before terminating. defaults to 10000 */ /** optional. How long in ms to wait for STDIO streams to close after the exit event of the process before terminating. defaults to 10000 */
delay?: number; delay?: number;
/** optional. Listeners for output. Callback functions that will be called on these events */ /** optional. Listeners for output. Callback functions that will be called on these events */
listeners?: { listeners?: {
stdout?: (data: Buffer) => void; stdout?: (data: Buffer) => void;
stderr?: (data: Buffer) => void; stderr?: (data: Buffer) => void;
stdline?: (data: string) => void; stdline?: (data: string) => void;
errline?: (data: string) => void; errline?: (data: string) => void;
debug?: (data: string) => void; debug?: (data: string) => void;
}; };
} }

View file

@ -1,3 +1,3 @@
"use strict"; "use strict";
Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=interfaces.js.map //# sourceMappingURL=interfaces.js.map

View file

@ -1,37 +1,37 @@
/// <reference types="node" /> /// <reference types="node" />
import * as events from 'events'; import * as events from 'events';
import * as im from './interfaces'; import * as im from './interfaces';
export declare class ToolRunner extends events.EventEmitter { export declare class ToolRunner extends events.EventEmitter {
constructor(toolPath: string, args?: string[], options?: im.ExecOptions); constructor(toolPath: string, args?: string[], options?: im.ExecOptions);
private toolPath; private toolPath;
private args; private args;
private options; private options;
private _debug; private _debug;
private _getCommandString; private _getCommandString;
private _processLineBuffer; private _processLineBuffer;
private _getSpawnFileName; private _getSpawnFileName;
private _getSpawnArgs; private _getSpawnArgs;
private _endsWith; private _endsWith;
private _isCmdFile; private _isCmdFile;
private _windowsQuoteCmdArg; private _windowsQuoteCmdArg;
private _uvQuoteCmdArg; private _uvQuoteCmdArg;
private _cloneExecOptions; private _cloneExecOptions;
private _getSpawnOptions; private _getSpawnOptions;
/** /**
* Exec a tool. * Exec a tool.
* Output will be streamed to the live console. * Output will be streamed to the live console.
* Returns promise with return code * Returns promise with return code
* *
* @param tool path to tool to exec * @param tool path to tool to exec
* @param options optional exec options. See ExecOptions * @param options optional exec options. See ExecOptions
* @returns number * @returns number
*/ */
exec(): Promise<number>; exec(): Promise<number>;
} }
/** /**
* Convert an arg string to an array of args. Handles escaping * Convert an arg string to an array of args. Handles escaping
* *
* @param argString string of arguments * @param argString string of arguments
* @returns string[] array of arguments * @returns string[] array of arguments
*/ */
export declare function argStringToArray(argString: string): string[]; export declare function argStringToArray(argString: string): string[];

File diff suppressed because it is too large Load diff

View file

@ -1,37 +1,14 @@
{ {
"_from": "@actions/exec@^1.0.0", "name": "@actions/exec",
"_id": "@actions/exec@1.0.0", "version": "1.0.0",
"_inBundle": false,
"_integrity": "sha512-nquH0+XKng+Ll7rZfCojN7NWSbnGh+ltwUJhzfbLkmOJgxocGX2/yXcZLMyT9fa7+tByEow/NSTrBExNlEj9fw==",
"_location": "/@actions/exec",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "@actions/exec@^1.0.0",
"name": "@actions/exec",
"escapedName": "@actions%2fexec",
"scope": "@actions",
"rawSpec": "^1.0.0",
"saveSpec": null,
"fetchSpec": "^1.0.0"
},
"_requiredBy": [
"/@actions/tool-cache"
],
"_resolved": "https://registry.npmjs.org/@actions/exec/-/exec-1.0.0.tgz",
"_shasum": "70c8b698c9baa02965c07da5f0b185ca56f0a955",
"_spec": "@actions/exec@^1.0.0",
"_where": "C:\\Users\\damccorm\\Documents\\setup-node\\node_modules\\@actions\\tool-cache",
"bugs": {
"url": "https://github.com/actions/toolkit/issues"
},
"bundleDependencies": false,
"deprecated": false,
"description": "Actions exec lib", "description": "Actions exec lib",
"devDependencies": { "keywords": [
"@actions/io": "^1.0.0" "exec",
}, "actions"
],
"homepage": "https://github.com/actions/toolkit/tree/master/packages/exec",
"license": "MIT",
"main": "lib/exec.js",
"directories": { "directories": {
"lib": "lib", "lib": "lib",
"test": "__tests__" "test": "__tests__"
@ -39,15 +16,6 @@
"files": [ "files": [
"lib" "lib"
], ],
"gitHead": "a40bce7c8d382aa3dbadaa327acbc696e9390e55",
"homepage": "https://github.com/actions/toolkit/tree/master/packages/exec",
"keywords": [
"exec",
"actions"
],
"license": "MIT",
"main": "lib/exec.js",
"name": "@actions/exec",
"publishConfig": { "publishConfig": {
"access": "public" "access": "public"
}, },
@ -59,5 +27,15 @@
"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" "bugs": {
} "url": "https://github.com/actions/toolkit/issues"
},
"devDependencies": {
"@actions/io": "^1.0.0"
},
"gitHead": "a40bce7c8d382aa3dbadaa327acbc696e9390e55"
,"_resolved": "https://registry.npmjs.org/@actions/exec/-/exec-1.0.0.tgz"
,"_integrity": "sha512-nquH0+XKng+Ll7rZfCojN7NWSbnGh+ltwUJhzfbLkmOJgxocGX2/yXcZLMyT9fa7+tByEow/NSTrBExNlEj9fw=="
,"_from": "@actions/exec@1.0.0"
}

View file

@ -1,7 +1,7 @@
Copyright 2019 GitHub Copyright 2019 GitHub
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: 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 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. 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.

View file

@ -1,48 +1,48 @@
# `@actions/github` # `@actions/github`
> A hydrated Octokit client. > A hydrated Octokit client.
## Usage ## Usage
Returns an [Octokit SDK] client. See https://octokit.github.io/rest.js for the API. Returns an [Octokit SDK] client. See https://octokit.github.io/rest.js for the API.
``` ```
const github = require('@actions/github'); const github = require('@actions/github');
const core = require('@actions/core'); const core = require('@actions/core');
// This should be a token with access to your repository scoped in as a secret. // This should be a token with access to your repository scoped in as a secret.
const myToken = core.getInput('myToken'); const myToken = core.getInput('myToken');
const octokit = new github.GitHub(myToken); const octokit = new github.GitHub(myToken);
const pulls = await octokit.pulls.get({ const pulls = await octokit.pulls.get({
owner: 'octokit', owner: 'octokit',
repo: 'rest.js', repo: 'rest.js',
pull_number: 123, pull_number: 123,
mediaType: { mediaType: {
format: 'diff' format: 'diff'
} }
}); });
console.log(pulls); console.log(pulls);
``` ```
You can also make GraphQL requests: You can also make GraphQL requests:
``` ```
const result = await octokit.graphql(query, variables); const result = await octokit.graphql(query, variables);
``` ```
Finally, you can get the context of the current action: Finally, you can get the context of the current action:
``` ```
const github = require('@actions/github'); const github = require('@actions/github');
const context = github.context; const context = github.context;
const newIssue = await octokit.issues.create({ const newIssue = await octokit.issues.create({
...context.repo, ...context.repo,
title: 'New issue!', title: 'New issue!',
body: 'Hello Universe!' body: 'Hello Universe!'
}); });
``` ```

View file

@ -1,26 +1,26 @@
import { WebhookPayload } from './interfaces'; import { WebhookPayload } from './interfaces';
export declare class Context { export declare class Context {
/** /**
* Webhook payload object that triggered the workflow * Webhook payload object that triggered the workflow
*/ */
payload: WebhookPayload; payload: WebhookPayload;
eventName: string; eventName: string;
sha: string; sha: string;
ref: string; ref: string;
workflow: string; workflow: string;
action: string; action: string;
actor: string; actor: string;
/** /**
* Hydrate the context from the environment * Hydrate the context from the environment
*/ */
constructor(); constructor();
readonly issue: { readonly issue: {
owner: string; owner: string;
repo: string; repo: string;
number: number; number: number;
}; };
readonly repo: { readonly repo: {
owner: string; owner: string;
repo: string; repo: string;
}; };
} }

View file

@ -1,38 +1,38 @@
"use strict"; "use strict";
Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "__esModule", { value: true });
/* eslint-disable @typescript-eslint/no-require-imports */ /* eslint-disable @typescript-eslint/no-require-imports */
class Context { class Context {
/** /**
* Hydrate the context from the environment * Hydrate the context from the environment
*/ */
constructor() { constructor() {
this.payload = process.env.GITHUB_EVENT_PATH this.payload = process.env.GITHUB_EVENT_PATH
? require(process.env.GITHUB_EVENT_PATH) ? require(process.env.GITHUB_EVENT_PATH)
: {}; : {};
this.eventName = process.env.GITHUB_EVENT_NAME; this.eventName = process.env.GITHUB_EVENT_NAME;
this.sha = process.env.GITHUB_SHA; this.sha = process.env.GITHUB_SHA;
this.ref = process.env.GITHUB_REF; this.ref = process.env.GITHUB_REF;
this.workflow = process.env.GITHUB_WORKFLOW; this.workflow = process.env.GITHUB_WORKFLOW;
this.action = process.env.GITHUB_ACTION; this.action = process.env.GITHUB_ACTION;
this.actor = process.env.GITHUB_ACTOR; this.actor = process.env.GITHUB_ACTOR;
} }
get issue() { get issue() {
const payload = this.payload; const payload = this.payload;
return Object.assign({}, this.repo, { number: (payload.issue || payload.pullRequest || payload).number }); return Object.assign({}, this.repo, { number: (payload.issue || payload.pullRequest || payload).number });
} }
get repo() { get repo() {
if (process.env.GITHUB_REPOSITORY) { if (process.env.GITHUB_REPOSITORY) {
const [owner, repo] = process.env.GITHUB_REPOSITORY.split('/'); const [owner, repo] = process.env.GITHUB_REPOSITORY.split('/');
return { owner, repo }; return { owner, repo };
} }
if (this.payload.repository) { if (this.payload.repository) {
return { return {
owner: this.payload.repository.owner.login, owner: this.payload.repository.owner.login,
repo: this.payload.repository.name repo: this.payload.repository.name
}; };
} }
throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'"); throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'");
} }
} }
exports.Context = Context; exports.Context = Context;
//# sourceMappingURL=context.js.map //# sourceMappingURL=context.js.map

View file

@ -1,8 +1,8 @@
import { GraphQlQueryResponse, Variables } from '@octokit/graphql'; import { GraphQlQueryResponse, Variables } from '@octokit/graphql';
import Octokit from '@octokit/rest'; import Octokit from '@octokit/rest';
import * as Context from './context'; import * as Context from './context';
export declare const context: Context.Context; export declare const context: Context.Context;
export declare class GitHub extends Octokit { export declare class GitHub extends Octokit {
graphql: (query: string, variables?: Variables) => Promise<GraphQlQueryResponse>; graphql: (query: string, variables?: Variables) => Promise<GraphQlQueryResponse>;
constructor(token: string); constructor(token: string);
} }

View file

@ -1,29 +1,29 @@
"use strict"; "use strict";
var __importDefault = (this && this.__importDefault) || function (mod) { var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod }; return (mod && mod.__esModule) ? mod : { "default": mod };
}; };
var __importStar = (this && this.__importStar) || function (mod) { var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod; if (mod && mod.__esModule) return mod;
var result = {}; var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod; result["default"] = mod;
return result; return result;
}; };
Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "__esModule", { value: true });
// Originally pulled from https://github.com/JasonEtco/actions-toolkit/blob/master/src/github.ts // Originally pulled from https://github.com/JasonEtco/actions-toolkit/blob/master/src/github.ts
const graphql_1 = require("@octokit/graphql"); const graphql_1 = require("@octokit/graphql");
const rest_1 = __importDefault(require("@octokit/rest")); const rest_1 = __importDefault(require("@octokit/rest"));
const Context = __importStar(require("./context")); const Context = __importStar(require("./context"));
// We need this in order to extend Octokit // We need this in order to extend Octokit
rest_1.default.prototype = new rest_1.default(); rest_1.default.prototype = new rest_1.default();
exports.context = new Context.Context(); exports.context = new Context.Context();
class GitHub extends rest_1.default { class GitHub extends rest_1.default {
constructor(token) { constructor(token) {
super({ auth: `token ${token}` }); super({ auth: `token ${token}` });
this.graphql = graphql_1.defaults({ this.graphql = graphql_1.defaults({
headers: { authorization: `token ${token}` } headers: { authorization: `token ${token}` }
}); });
} }
} }
exports.GitHub = GitHub; exports.GitHub = GitHub;
//# sourceMappingURL=github.js.map //# sourceMappingURL=github.js.map

View file

@ -1,36 +1,36 @@
export interface PayloadRepository { export interface PayloadRepository {
[key: string]: any; [key: string]: any;
full_name?: string; full_name?: string;
name: string; name: string;
owner: { owner: {
[key: string]: any; [key: string]: any;
login: string; login: string;
name?: string; name?: string;
}; };
html_url?: string; html_url?: string;
} }
export interface WebhookPayload { export interface WebhookPayload {
[key: string]: any; [key: string]: any;
repository?: PayloadRepository; repository?: PayloadRepository;
issue?: { issue?: {
[key: string]: any; [key: string]: any;
number: number; number: number;
html_url?: string; html_url?: string;
body?: string; body?: string;
}; };
pull_request?: { pull_request?: {
[key: string]: any; [key: string]: any;
number: number; number: number;
html_url?: string; html_url?: string;
body?: string; body?: string;
}; };
sender?: { sender?: {
[key: string]: any; [key: string]: any;
type: string; type: string;
}; };
action?: string; action?: string;
installation?: { installation?: {
id: number; id: number;
[key: string]: any; [key: string]: any;
}; };
} }

View file

@ -1,4 +1,4 @@
"use strict"; "use strict";
/* eslint-disable @typescript-eslint/no-explicit-any */ /* eslint-disable @typescript-eslint/no-explicit-any */
Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=interfaces.js.map //# sourceMappingURL=interfaces.js.map

View file

@ -1,41 +1,14 @@
{ {
"_from": "@actions/github@^1.0.0", "name": "@actions/github",
"_id": "@actions/github@1.0.0", "version": "1.0.0",
"_inBundle": false,
"_integrity": "sha512-PPbWZ5wFAD/Vr+RCECfR3KNHjTwYln4liJBihs9tQUL0/PCFqB2lSkIh9V94AcZFHxgKk8snImjuLaBE8bKR7A==",
"_location": "/@actions/github",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "@actions/github@^1.0.0",
"name": "@actions/github",
"escapedName": "@actions%2fgithub",
"scope": "@actions",
"rawSpec": "^1.0.0",
"saveSpec": null,
"fetchSpec": "^1.0.0"
},
"_requiredBy": [
"/"
],
"_resolved": "https://registry.npmjs.org/@actions/github/-/github-1.0.0.tgz",
"_shasum": "5154cadd93c4b17217f56304ee27056730b8ae88",
"_spec": "@actions/github@^1.0.0",
"_where": "C:\\Users\\damccorm\\Documents\\setup-node",
"bugs": {
"url": "https://github.com/actions/toolkit/issues"
},
"bundleDependencies": false,
"dependencies": {
"@octokit/graphql": "^2.0.1",
"@octokit/rest": "^16.15.0"
},
"deprecated": false,
"description": "Actions github lib", "description": "Actions github lib",
"devDependencies": { "keywords": [
"jest": "^24.7.1" "github",
}, "actions"
],
"homepage": "https://github.com/actions/toolkit/tree/master/packages/github",
"license": "MIT",
"main": "lib/github.js",
"directories": { "directories": {
"lib": "lib", "lib": "lib",
"test": "__tests__" "test": "__tests__"
@ -43,15 +16,6 @@
"files": [ "files": [
"lib" "lib"
], ],
"gitHead": "a40bce7c8d382aa3dbadaa327acbc696e9390e55",
"homepage": "https://github.com/actions/toolkit/tree/master/packages/github",
"keywords": [
"github",
"actions"
],
"license": "MIT",
"main": "lib/github.js",
"name": "@actions/github",
"publishConfig": { "publishConfig": {
"access": "public" "access": "public"
}, },
@ -60,9 +24,23 @@
"url": "git+https://github.com/actions/toolkit.git" "url": "git+https://github.com/actions/toolkit.git"
}, },
"scripts": { "scripts": {
"build": "tsc",
"test": "jest", "test": "jest",
"build": "tsc",
"tsc": "tsc" "tsc": "tsc"
}, },
"version": "1.0.0" "bugs": {
} "url": "https://github.com/actions/toolkit/issues"
},
"dependencies": {
"@octokit/graphql": "^2.0.1",
"@octokit/rest": "^16.15.0"
},
"devDependencies": {
"jest": "^24.7.1"
},
"gitHead": "a40bce7c8d382aa3dbadaa327acbc696e9390e55"
,"_resolved": "https://registry.npmjs.org/@actions/github/-/github-1.0.0.tgz"
,"_integrity": "sha512-PPbWZ5wFAD/Vr+RCECfR3KNHjTwYln4liJBihs9tQUL0/PCFqB2lSkIh9V94AcZFHxgKk8snImjuLaBE8bKR7A=="
,"_from": "@actions/github@1.0.0"
}

12
node_modules/@actions/io/LICENSE.md generated vendored
View file

@ -1,7 +1,7 @@
Copyright 2019 GitHub Copyright 2019 GitHub
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: 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 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. 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.

106
node_modules/@actions/io/README.md generated vendored
View file

@ -1,53 +1,53 @@
# `@actions/io` # `@actions/io`
> Core functions for cli filesystem scenarios > Core functions for cli filesystem scenarios
## Usage ## Usage
#### mkdir -p #### mkdir -p
Recursively make a directory. Follows rules specified in [man mkdir](https://linux.die.net/man/1/mkdir) with the `-p` option specified: Recursively make a directory. Follows rules specified in [man mkdir](https://linux.die.net/man/1/mkdir) with the `-p` option specified:
``` ```
const io = require('@actions/io'); const io = require('@actions/io');
await io.mkdirP('path/to/make'); await io.mkdirP('path/to/make');
``` ```
#### cp/mv #### cp/mv
Copy or move files or folders. Follows rules specified in [man cp](https://linux.die.net/man/1/cp) and [man mv](https://linux.die.net/man/1/mv): Copy or move files or folders. Follows rules specified in [man cp](https://linux.die.net/man/1/cp) and [man mv](https://linux.die.net/man/1/mv):
``` ```
const io = require('@actions/io'); const io = require('@actions/io');
// Recursive must be true for directories // Recursive must be true for directories
const options = { recursive: true, force: false } const options = { recursive: true, force: false }
await io.cp('path/to/directory', 'path/to/dest', options); await io.cp('path/to/directory', 'path/to/dest', options);
await io.mv('path/to/file', 'path/to/dest'); await io.mv('path/to/file', 'path/to/dest');
``` ```
#### rm -rf #### rm -rf
Remove a file or folder recursively. Follows rules specified in [man rm](https://linux.die.net/man/1/rm) with the `-r` and `-f` rules specified. Remove a file or folder recursively. Follows rules specified in [man rm](https://linux.die.net/man/1/rm) with the `-r` and `-f` rules specified.
``` ```
const io = require('@actions/io'); const io = require('@actions/io');
await io.rmRF('path/to/directory'); await io.rmRF('path/to/directory');
await io.rmRF('path/to/file'); await io.rmRF('path/to/file');
``` ```
#### which #### which
Get the path to a tool and resolves via paths. Follows the rules specified in [man which](https://linux.die.net/man/1/which). Get the path to a tool and resolves via paths. Follows the rules specified in [man which](https://linux.die.net/man/1/which).
``` ```
const exec = require('@actions/exec'); const exec = require('@actions/exec');
const io = require('@actions/io'); const io = require('@actions/io');
const pythonPath: string = await io.which('python', true) const pythonPath: string = await io.which('python', true)
await exec.exec(`"${pythonPath}"`, ['main.py']); await exec.exec(`"${pythonPath}"`, ['main.py']);
``` ```

View file

@ -1,29 +1,29 @@
/// <reference types="node" /> /// <reference types="node" />
import * as fs from 'fs'; import * as fs from 'fs';
export declare const chmod: typeof fs.promises.chmod, copyFile: typeof fs.promises.copyFile, lstat: typeof fs.promises.lstat, mkdir: typeof fs.promises.mkdir, readdir: typeof fs.promises.readdir, readlink: typeof fs.promises.readlink, rename: typeof fs.promises.rename, rmdir: typeof fs.promises.rmdir, stat: typeof fs.promises.stat, symlink: typeof fs.promises.symlink, unlink: typeof fs.promises.unlink; export declare const chmod: typeof fs.promises.chmod, copyFile: typeof fs.promises.copyFile, lstat: typeof fs.promises.lstat, mkdir: typeof fs.promises.mkdir, readdir: typeof fs.promises.readdir, readlink: typeof fs.promises.readlink, rename: typeof fs.promises.rename, rmdir: typeof fs.promises.rmdir, stat: typeof fs.promises.stat, symlink: typeof fs.promises.symlink, unlink: typeof fs.promises.unlink;
export declare const IS_WINDOWS: boolean; export declare const IS_WINDOWS: boolean;
export declare function exists(fsPath: string): Promise<boolean>; export declare function exists(fsPath: string): Promise<boolean>;
export declare function isDirectory(fsPath: string, useStat?: boolean): Promise<boolean>; export declare function isDirectory(fsPath: string, useStat?: boolean): Promise<boolean>;
/** /**
* On OSX/Linux, true if path starts with '/'. On Windows, true for paths like: * On OSX/Linux, true if path starts with '/'. On Windows, true for paths like:
* \, \hello, \\hello\share, C:, and C:\hello (and corresponding alternate separator cases). * \, \hello, \\hello\share, C:, and C:\hello (and corresponding alternate separator cases).
*/ */
export declare function isRooted(p: string): boolean; export declare function isRooted(p: string): boolean;
/** /**
* Recursively create a directory at `fsPath`. * Recursively create a directory at `fsPath`.
* *
* This implementation is optimistic, meaning it attempts to create the full * This implementation is optimistic, meaning it attempts to create the full
* path first, and backs up the path stack from there. * path first, and backs up the path stack from there.
* *
* @param fsPath The path to create * @param fsPath The path to create
* @param maxDepth The maximum recursion depth * @param maxDepth The maximum recursion depth
* @param depth The current recursion depth * @param depth The current recursion depth
*/ */
export declare function mkdirP(fsPath: string, maxDepth?: number, depth?: number): Promise<void>; export declare function mkdirP(fsPath: string, maxDepth?: number, depth?: number): Promise<void>;
/** /**
* Best effort attempt to determine whether a file exists and is executable. * Best effort attempt to determine whether a file exists and is executable.
* @param filePath file path to check * @param filePath file path to check
* @param extensions additional file extensions to try * @param extensions additional file extensions to try
* @return if file exists and is executable, returns the file path. otherwise empty string. * @return if file exists and is executable, returns the file path. otherwise empty string.
*/ */
export declare function tryGetExecutablePath(filePath: string, extensions: string[]): Promise<string>; export declare function tryGetExecutablePath(filePath: string, extensions: string[]): Promise<string>;

View file

@ -1,194 +1,194 @@
"use strict"; "use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) { return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } 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 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); } 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()); step((generator = generator.apply(thisArg, _arguments || [])).next());
}); });
}; };
var _a; var _a;
Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "__esModule", { value: true });
const assert_1 = require("assert"); const assert_1 = require("assert");
const fs = require("fs"); const fs = require("fs");
const path = require("path"); const path = require("path");
_a = fs.promises, exports.chmod = _a.chmod, exports.copyFile = _a.copyFile, exports.lstat = _a.lstat, exports.mkdir = _a.mkdir, exports.readdir = _a.readdir, exports.readlink = _a.readlink, exports.rename = _a.rename, exports.rmdir = _a.rmdir, exports.stat = _a.stat, exports.symlink = _a.symlink, exports.unlink = _a.unlink; _a = fs.promises, exports.chmod = _a.chmod, exports.copyFile = _a.copyFile, exports.lstat = _a.lstat, exports.mkdir = _a.mkdir, exports.readdir = _a.readdir, exports.readlink = _a.readlink, exports.rename = _a.rename, exports.rmdir = _a.rmdir, exports.stat = _a.stat, exports.symlink = _a.symlink, exports.unlink = _a.unlink;
exports.IS_WINDOWS = process.platform === 'win32'; exports.IS_WINDOWS = process.platform === 'win32';
function exists(fsPath) { function exists(fsPath) {
return __awaiter(this, void 0, void 0, function* () { return __awaiter(this, void 0, void 0, function* () {
try { try {
yield exports.stat(fsPath); yield exports.stat(fsPath);
} }
catch (err) { catch (err) {
if (err.code === 'ENOENT') { if (err.code === 'ENOENT') {
return false; return false;
} }
throw err; throw err;
} }
return true; return true;
}); });
} }
exports.exists = exists; exports.exists = exists;
function isDirectory(fsPath, useStat = false) { function isDirectory(fsPath, useStat = false) {
return __awaiter(this, void 0, void 0, function* () { return __awaiter(this, void 0, void 0, function* () {
const stats = useStat ? yield exports.stat(fsPath) : yield exports.lstat(fsPath); const stats = useStat ? yield exports.stat(fsPath) : yield exports.lstat(fsPath);
return stats.isDirectory(); return stats.isDirectory();
}); });
} }
exports.isDirectory = isDirectory; exports.isDirectory = isDirectory;
/** /**
* On OSX/Linux, true if path starts with '/'. On Windows, true for paths like: * On OSX/Linux, true if path starts with '/'. On Windows, true for paths like:
* \, \hello, \\hello\share, C:, and C:\hello (and corresponding alternate separator cases). * \, \hello, \\hello\share, C:, and C:\hello (and corresponding alternate separator cases).
*/ */
function isRooted(p) { function isRooted(p) {
p = normalizeSeparators(p); p = normalizeSeparators(p);
if (!p) { if (!p) {
throw new Error('isRooted() parameter "p" cannot be empty'); throw new Error('isRooted() parameter "p" cannot be empty');
} }
if (exports.IS_WINDOWS) { if (exports.IS_WINDOWS) {
return (p.startsWith('\\') || /^[A-Z]:/i.test(p) // e.g. \ or \hello or \\hello return (p.startsWith('\\') || /^[A-Z]:/i.test(p) // e.g. \ or \hello or \\hello
); // e.g. C: or C:\hello ); // e.g. C: or C:\hello
} }
return p.startsWith('/'); return p.startsWith('/');
} }
exports.isRooted = isRooted; exports.isRooted = isRooted;
/** /**
* Recursively create a directory at `fsPath`. * Recursively create a directory at `fsPath`.
* *
* This implementation is optimistic, meaning it attempts to create the full * This implementation is optimistic, meaning it attempts to create the full
* path first, and backs up the path stack from there. * path first, and backs up the path stack from there.
* *
* @param fsPath The path to create * @param fsPath The path to create
* @param maxDepth The maximum recursion depth * @param maxDepth The maximum recursion depth
* @param depth The current recursion depth * @param depth The current recursion depth
*/ */
function mkdirP(fsPath, maxDepth = 1000, depth = 1) { function mkdirP(fsPath, maxDepth = 1000, depth = 1) {
return __awaiter(this, void 0, void 0, function* () { return __awaiter(this, void 0, void 0, function* () {
assert_1.ok(fsPath, 'a path argument must be provided'); assert_1.ok(fsPath, 'a path argument must be provided');
fsPath = path.resolve(fsPath); fsPath = path.resolve(fsPath);
if (depth >= maxDepth) if (depth >= maxDepth)
return exports.mkdir(fsPath); return exports.mkdir(fsPath);
try { try {
yield exports.mkdir(fsPath); yield exports.mkdir(fsPath);
return; return;
} }
catch (err) { catch (err) {
switch (err.code) { switch (err.code) {
case 'ENOENT': { case 'ENOENT': {
yield mkdirP(path.dirname(fsPath), maxDepth, depth + 1); yield mkdirP(path.dirname(fsPath), maxDepth, depth + 1);
yield exports.mkdir(fsPath); yield exports.mkdir(fsPath);
return; return;
} }
default: { default: {
let stats; let stats;
try { try {
stats = yield exports.stat(fsPath); stats = yield exports.stat(fsPath);
} }
catch (err2) { catch (err2) {
throw err; throw err;
} }
if (!stats.isDirectory()) if (!stats.isDirectory())
throw err; throw err;
} }
} }
} }
}); });
} }
exports.mkdirP = mkdirP; exports.mkdirP = mkdirP;
/** /**
* Best effort attempt to determine whether a file exists and is executable. * Best effort attempt to determine whether a file exists and is executable.
* @param filePath file path to check * @param filePath file path to check
* @param extensions additional file extensions to try * @param extensions additional file extensions to try
* @return if file exists and is executable, returns the file path. otherwise empty string. * @return if file exists and is executable, returns the file path. otherwise empty string.
*/ */
function tryGetExecutablePath(filePath, extensions) { function tryGetExecutablePath(filePath, extensions) {
return __awaiter(this, void 0, void 0, function* () { return __awaiter(this, void 0, void 0, function* () {
let stats = undefined; let stats = undefined;
try { try {
// test file exists // test file exists
stats = yield exports.stat(filePath); stats = yield exports.stat(filePath);
} }
catch (err) { catch (err) {
if (err.code !== 'ENOENT') { if (err.code !== 'ENOENT') {
// eslint-disable-next-line no-console // eslint-disable-next-line no-console
console.log(`Unexpected error attempting to determine if executable file exists '${filePath}': ${err}`); console.log(`Unexpected error attempting to determine if executable file exists '${filePath}': ${err}`);
} }
} }
if (stats && stats.isFile()) { if (stats && stats.isFile()) {
if (exports.IS_WINDOWS) { if (exports.IS_WINDOWS) {
// on Windows, test for valid extension // on Windows, test for valid extension
const upperExt = path.extname(filePath).toUpperCase(); const upperExt = path.extname(filePath).toUpperCase();
if (extensions.some(validExt => validExt.toUpperCase() === upperExt)) { if (extensions.some(validExt => validExt.toUpperCase() === upperExt)) {
return filePath; return filePath;
} }
} }
else { else {
if (isUnixExecutable(stats)) { if (isUnixExecutable(stats)) {
return filePath; return filePath;
} }
} }
} }
// try each extension // try each extension
const originalFilePath = filePath; const originalFilePath = filePath;
for (const extension of extensions) { for (const extension of extensions) {
filePath = originalFilePath + extension; filePath = originalFilePath + extension;
stats = undefined; stats = undefined;
try { try {
stats = yield exports.stat(filePath); stats = yield exports.stat(filePath);
} }
catch (err) { catch (err) {
if (err.code !== 'ENOENT') { if (err.code !== 'ENOENT') {
// eslint-disable-next-line no-console // eslint-disable-next-line no-console
console.log(`Unexpected error attempting to determine if executable file exists '${filePath}': ${err}`); console.log(`Unexpected error attempting to determine if executable file exists '${filePath}': ${err}`);
} }
} }
if (stats && stats.isFile()) { if (stats && stats.isFile()) {
if (exports.IS_WINDOWS) { if (exports.IS_WINDOWS) {
// preserve the case of the actual file (since an extension was appended) // preserve the case of the actual file (since an extension was appended)
try { try {
const directory = path.dirname(filePath); const directory = path.dirname(filePath);
const upperName = path.basename(filePath).toUpperCase(); const upperName = path.basename(filePath).toUpperCase();
for (const actualName of yield exports.readdir(directory)) { for (const actualName of yield exports.readdir(directory)) {
if (upperName === actualName.toUpperCase()) { if (upperName === actualName.toUpperCase()) {
filePath = path.join(directory, actualName); filePath = path.join(directory, actualName);
break; break;
} }
} }
} }
catch (err) { catch (err) {
// eslint-disable-next-line no-console // eslint-disable-next-line no-console
console.log(`Unexpected error attempting to determine the actual case of the file '${filePath}': ${err}`); console.log(`Unexpected error attempting to determine the actual case of the file '${filePath}': ${err}`);
} }
return filePath; return filePath;
} }
else { else {
if (isUnixExecutable(stats)) { if (isUnixExecutable(stats)) {
return filePath; return filePath;
} }
} }
} }
} }
return ''; return '';
}); });
} }
exports.tryGetExecutablePath = tryGetExecutablePath; exports.tryGetExecutablePath = tryGetExecutablePath;
function normalizeSeparators(p) { function normalizeSeparators(p) {
p = p || ''; p = p || '';
if (exports.IS_WINDOWS) { if (exports.IS_WINDOWS) {
// convert slashes on Windows // convert slashes on Windows
p = p.replace(/\//g, '\\'); p = p.replace(/\//g, '\\');
// remove redundant slashes // remove redundant slashes
return p.replace(/\\\\+/g, '\\'); return p.replace(/\\\\+/g, '\\');
} }
// remove redundant slashes // remove redundant slashes
return p.replace(/\/\/+/g, '/'); return p.replace(/\/\/+/g, '/');
} }
// on Mac/Linux, test the execute bit // on Mac/Linux, test the execute bit
// R W X R W X R W X // R W X R W X R W X
// 256 128 64 32 16 8 4 2 1 // 256 128 64 32 16 8 4 2 1
function isUnixExecutable(stats) { function isUnixExecutable(stats) {
return ((stats.mode & 1) > 0 || return ((stats.mode & 1) > 0 ||
((stats.mode & 8) > 0 && stats.gid === process.getgid()) || ((stats.mode & 8) > 0 && stats.gid === process.getgid()) ||
((stats.mode & 64) > 0 && stats.uid === process.getuid())); ((stats.mode & 64) > 0 && stats.uid === process.getuid()));
} }
//# sourceMappingURL=io-util.js.map //# sourceMappingURL=io-util.js.map

112
node_modules/@actions/io/lib/io.d.ts generated vendored
View file

@ -1,56 +1,56 @@
/** /**
* Interface for cp/mv options * Interface for cp/mv options
*/ */
export interface CopyOptions { export interface CopyOptions {
/** Optional. Whether to recursively copy all subdirectories. Defaults to false */ /** Optional. Whether to recursively copy all subdirectories. Defaults to false */
recursive?: boolean; recursive?: boolean;
/** Optional. Whether to overwrite existing files in the destination. Defaults to true */ /** Optional. Whether to overwrite existing files in the destination. Defaults to true */
force?: boolean; force?: boolean;
} }
/** /**
* Interface for cp/mv options * Interface for cp/mv options
*/ */
export interface MoveOptions { export interface MoveOptions {
/** Optional. Whether to overwrite existing files in the destination. Defaults to true */ /** Optional. Whether to overwrite existing files in the destination. Defaults to true */
force?: boolean; force?: boolean;
} }
/** /**
* Copies a file or folder. * Copies a file or folder.
* Based off of shelljs - https://github.com/shelljs/shelljs/blob/9237f66c52e5daa40458f94f9565e18e8132f5a6/src/cp.js * Based off of shelljs - https://github.com/shelljs/shelljs/blob/9237f66c52e5daa40458f94f9565e18e8132f5a6/src/cp.js
* *
* @param source source path * @param source source path
* @param dest destination path * @param dest destination path
* @param options optional. See CopyOptions. * @param options optional. See CopyOptions.
*/ */
export declare function cp(source: string, dest: string, options?: CopyOptions): Promise<void>; export declare function cp(source: string, dest: string, options?: CopyOptions): Promise<void>;
/** /**
* Moves a path. * Moves a path.
* *
* @param source source path * @param source source path
* @param dest destination path * @param dest destination path
* @param options optional. See MoveOptions. * @param options optional. See MoveOptions.
*/ */
export declare function mv(source: string, dest: string, options?: MoveOptions): Promise<void>; export declare function mv(source: string, dest: string, options?: MoveOptions): Promise<void>;
/** /**
* Remove a path recursively with force * Remove a path recursively with force
* *
* @param inputPath path to remove * @param inputPath path to remove
*/ */
export declare function rmRF(inputPath: string): Promise<void>; export declare function rmRF(inputPath: string): Promise<void>;
/** /**
* Make a directory. Creates the full path with folders in between * Make a directory. Creates the full path with folders in between
* Will throw if it fails * Will throw if it fails
* *
* @param fsPath path to create * @param fsPath path to create
* @returns Promise<void> * @returns Promise<void>
*/ */
export declare function mkdirP(fsPath: string): Promise<void>; export declare function mkdirP(fsPath: string): Promise<void>;
/** /**
* Returns path of a tool had the tool actually been invoked. Resolves via paths. * Returns path of a tool had the tool actually been invoked. Resolves via paths.
* If you check and the tool does not exist, it will throw. * If you check and the tool does not exist, it will throw.
* *
* @param tool name of the tool * @param tool name of the tool
* @param check whether to check if tool exists * @param check whether to check if tool exists
* @returns Promise<string> path to tool * @returns Promise<string> path to tool
*/ */
export declare function which(tool: string, check?: boolean): Promise<string>; export declare function which(tool: string, check?: boolean): Promise<string>;

576
node_modules/@actions/io/lib/io.js generated vendored
View file

@ -1,289 +1,289 @@
"use strict"; "use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) { return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } 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 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); } 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()); step((generator = generator.apply(thisArg, _arguments || [])).next());
}); });
}; };
Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "__esModule", { value: true });
const childProcess = require("child_process"); const childProcess = require("child_process");
const path = require("path"); const path = require("path");
const util_1 = require("util"); const util_1 = require("util");
const ioUtil = require("./io-util"); const ioUtil = require("./io-util");
const exec = util_1.promisify(childProcess.exec); const exec = util_1.promisify(childProcess.exec);
/** /**
* Copies a file or folder. * Copies a file or folder.
* Based off of shelljs - https://github.com/shelljs/shelljs/blob/9237f66c52e5daa40458f94f9565e18e8132f5a6/src/cp.js * Based off of shelljs - https://github.com/shelljs/shelljs/blob/9237f66c52e5daa40458f94f9565e18e8132f5a6/src/cp.js
* *
* @param source source path * @param source source path
* @param dest destination path * @param dest destination path
* @param options optional. See CopyOptions. * @param options optional. See CopyOptions.
*/ */
function cp(source, dest, options = {}) { function cp(source, dest, options = {}) {
return __awaiter(this, void 0, void 0, function* () { return __awaiter(this, void 0, void 0, function* () {
const { force, recursive } = readCopyOptions(options); const { force, recursive } = readCopyOptions(options);
const destStat = (yield ioUtil.exists(dest)) ? yield ioUtil.stat(dest) : null; const destStat = (yield ioUtil.exists(dest)) ? yield ioUtil.stat(dest) : null;
// Dest is an existing file, but not forcing // Dest is an existing file, but not forcing
if (destStat && destStat.isFile() && !force) { if (destStat && destStat.isFile() && !force) {
return; return;
} }
// If dest is an existing directory, should copy inside. // If dest is an existing directory, should copy inside.
const newDest = destStat && destStat.isDirectory() const newDest = destStat && destStat.isDirectory()
? path.join(dest, path.basename(source)) ? path.join(dest, path.basename(source))
: dest; : dest;
if (!(yield ioUtil.exists(source))) { if (!(yield ioUtil.exists(source))) {
throw new Error(`no such file or directory: ${source}`); throw new Error(`no such file or directory: ${source}`);
} }
const sourceStat = yield ioUtil.stat(source); const sourceStat = yield ioUtil.stat(source);
if (sourceStat.isDirectory()) { if (sourceStat.isDirectory()) {
if (!recursive) { if (!recursive) {
throw new Error(`Failed to copy. ${source} is a directory, but tried to copy without recursive flag.`); throw new Error(`Failed to copy. ${source} is a directory, but tried to copy without recursive flag.`);
} }
else { else {
yield cpDirRecursive(source, newDest, 0, force); yield cpDirRecursive(source, newDest, 0, force);
} }
} }
else { else {
if (path.relative(source, newDest) === '') { if (path.relative(source, newDest) === '') {
// a file cannot be copied to itself // a file cannot be copied to itself
throw new Error(`'${newDest}' and '${source}' are the same file`); throw new Error(`'${newDest}' and '${source}' are the same file`);
} }
yield copyFile(source, newDest, force); yield copyFile(source, newDest, force);
} }
}); });
} }
exports.cp = cp; exports.cp = cp;
/** /**
* Moves a path. * Moves a path.
* *
* @param source source path * @param source source path
* @param dest destination path * @param dest destination path
* @param options optional. See MoveOptions. * @param options optional. See MoveOptions.
*/ */
function mv(source, dest, options = {}) { function mv(source, dest, options = {}) {
return __awaiter(this, void 0, void 0, function* () { return __awaiter(this, void 0, void 0, function* () {
if (yield ioUtil.exists(dest)) { if (yield ioUtil.exists(dest)) {
let destExists = true; let destExists = true;
if (yield ioUtil.isDirectory(dest)) { if (yield ioUtil.isDirectory(dest)) {
// If dest is directory copy src into dest // If dest is directory copy src into dest
dest = path.join(dest, path.basename(source)); dest = path.join(dest, path.basename(source));
destExists = yield ioUtil.exists(dest); destExists = yield ioUtil.exists(dest);
} }
if (destExists) { if (destExists) {
if (options.force == null || options.force) { if (options.force == null || options.force) {
yield rmRF(dest); yield rmRF(dest);
} }
else { else {
throw new Error('Destination already exists'); throw new Error('Destination already exists');
} }
} }
} }
yield mkdirP(path.dirname(dest)); yield mkdirP(path.dirname(dest));
yield ioUtil.rename(source, dest); yield ioUtil.rename(source, dest);
}); });
} }
exports.mv = mv; exports.mv = mv;
/** /**
* Remove a path recursively with force * Remove a path recursively with force
* *
* @param inputPath path to remove * @param inputPath path to remove
*/ */
function rmRF(inputPath) { function rmRF(inputPath) {
return __awaiter(this, void 0, void 0, function* () { return __awaiter(this, void 0, void 0, function* () {
if (ioUtil.IS_WINDOWS) { if (ioUtil.IS_WINDOWS) {
// Node doesn't provide a delete operation, only an unlink function. This means that if the file is being used by another // Node doesn't provide a delete operation, only an unlink function. This means that if the file is being used by another
// program (e.g. antivirus), it won't be deleted. To address this, we shell out the work to rd/del. // program (e.g. antivirus), it won't be deleted. To address this, we shell out the work to rd/del.
try { try {
if (yield ioUtil.isDirectory(inputPath, true)) { if (yield ioUtil.isDirectory(inputPath, true)) {
yield exec(`rd /s /q "${inputPath}"`); yield exec(`rd /s /q "${inputPath}"`);
} }
else { else {
yield exec(`del /f /a "${inputPath}"`); yield exec(`del /f /a "${inputPath}"`);
} }
} }
catch (err) { catch (err) {
// if you try to delete a file that doesn't exist, desired result is achieved // if you try to delete a file that doesn't exist, desired result is achieved
// other errors are valid // other errors are valid
if (err.code !== 'ENOENT') if (err.code !== 'ENOENT')
throw err; throw err;
} }
// Shelling out fails to remove a symlink folder with missing source, this unlink catches that // Shelling out fails to remove a symlink folder with missing source, this unlink catches that
try { try {
yield ioUtil.unlink(inputPath); yield ioUtil.unlink(inputPath);
} }
catch (err) { catch (err) {
// if you try to delete a file that doesn't exist, desired result is achieved // if you try to delete a file that doesn't exist, desired result is achieved
// other errors are valid // other errors are valid
if (err.code !== 'ENOENT') if (err.code !== 'ENOENT')
throw err; throw err;
} }
} }
else { else {
let isDir = false; let isDir = false;
try { try {
isDir = yield ioUtil.isDirectory(inputPath); isDir = yield ioUtil.isDirectory(inputPath);
} }
catch (err) { catch (err) {
// if you try to delete a file that doesn't exist, desired result is achieved // if you try to delete a file that doesn't exist, desired result is achieved
// other errors are valid // other errors are valid
if (err.code !== 'ENOENT') if (err.code !== 'ENOENT')
throw err; throw err;
return; return;
} }
if (isDir) { if (isDir) {
yield exec(`rm -rf "${inputPath}"`); yield exec(`rm -rf "${inputPath}"`);
} }
else { else {
yield ioUtil.unlink(inputPath); yield ioUtil.unlink(inputPath);
} }
} }
}); });
} }
exports.rmRF = rmRF; exports.rmRF = rmRF;
/** /**
* Make a directory. Creates the full path with folders in between * Make a directory. Creates the full path with folders in between
* Will throw if it fails * Will throw if it fails
* *
* @param fsPath path to create * @param fsPath path to create
* @returns Promise<void> * @returns Promise<void>
*/ */
function mkdirP(fsPath) { function mkdirP(fsPath) {
return __awaiter(this, void 0, void 0, function* () { return __awaiter(this, void 0, void 0, function* () {
yield ioUtil.mkdirP(fsPath); yield ioUtil.mkdirP(fsPath);
}); });
} }
exports.mkdirP = mkdirP; exports.mkdirP = mkdirP;
/** /**
* Returns path of a tool had the tool actually been invoked. Resolves via paths. * Returns path of a tool had the tool actually been invoked. Resolves via paths.
* If you check and the tool does not exist, it will throw. * If you check and the tool does not exist, it will throw.
* *
* @param tool name of the tool * @param tool name of the tool
* @param check whether to check if tool exists * @param check whether to check if tool exists
* @returns Promise<string> path to tool * @returns Promise<string> path to tool
*/ */
function which(tool, check) { function which(tool, check) {
return __awaiter(this, void 0, void 0, function* () { return __awaiter(this, void 0, void 0, function* () {
if (!tool) { if (!tool) {
throw new Error("parameter 'tool' is required"); throw new Error("parameter 'tool' is required");
} }
// recursive when check=true // recursive when check=true
if (check) { if (check) {
const result = yield which(tool, false); const result = yield which(tool, false);
if (!result) { if (!result) {
if (ioUtil.IS_WINDOWS) { if (ioUtil.IS_WINDOWS) {
throw new Error(`Unable to locate executable file: ${tool}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`); throw new Error(`Unable to locate executable file: ${tool}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`);
} }
else { else {
throw new Error(`Unable to locate executable file: ${tool}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`); throw new Error(`Unable to locate executable file: ${tool}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`);
} }
} }
} }
try { try {
// build the list of extensions to try // build the list of extensions to try
const extensions = []; const extensions = [];
if (ioUtil.IS_WINDOWS && process.env.PATHEXT) { if (ioUtil.IS_WINDOWS && process.env.PATHEXT) {
for (const extension of process.env.PATHEXT.split(path.delimiter)) { for (const extension of process.env.PATHEXT.split(path.delimiter)) {
if (extension) { if (extension) {
extensions.push(extension); extensions.push(extension);
} }
} }
} }
// if it's rooted, return it if exists. otherwise return empty. // if it's rooted, return it if exists. otherwise return empty.
if (ioUtil.isRooted(tool)) { if (ioUtil.isRooted(tool)) {
const filePath = yield ioUtil.tryGetExecutablePath(tool, extensions); const filePath = yield ioUtil.tryGetExecutablePath(tool, extensions);
if (filePath) { if (filePath) {
return filePath; return filePath;
} }
return ''; return '';
} }
// if any path separators, return empty // if any path separators, return empty
if (tool.includes('/') || (ioUtil.IS_WINDOWS && tool.includes('\\'))) { if (tool.includes('/') || (ioUtil.IS_WINDOWS && tool.includes('\\'))) {
return ''; return '';
} }
// build the list of directories // build the list of directories
// //
// Note, technically "where" checks the current directory on Windows. From a task lib perspective, // Note, technically "where" checks the current directory on Windows. From a task lib perspective,
// it feels like we should not do this. Checking the current directory seems like more of a use // it feels like we should not do this. Checking the current directory seems like more of a use
// case of a shell, and the which() function exposed by the task lib should strive for consistency // case of a shell, and the which() function exposed by the task lib should strive for consistency
// across platforms. // across platforms.
const directories = []; const directories = [];
if (process.env.PATH) { if (process.env.PATH) {
for (const p of process.env.PATH.split(path.delimiter)) { for (const p of process.env.PATH.split(path.delimiter)) {
if (p) { if (p) {
directories.push(p); directories.push(p);
} }
} }
} }
// return the first match // return the first match
for (const directory of directories) { for (const directory of directories) {
const filePath = yield ioUtil.tryGetExecutablePath(directory + path.sep + tool, extensions); const filePath = yield ioUtil.tryGetExecutablePath(directory + path.sep + tool, extensions);
if (filePath) { if (filePath) {
return filePath; return filePath;
} }
} }
return ''; return '';
} }
catch (err) { catch (err) {
throw new Error(`which failed with message ${err.message}`); throw new Error(`which failed with message ${err.message}`);
} }
}); });
} }
exports.which = which; exports.which = which;
function readCopyOptions(options) { function readCopyOptions(options) {
const force = options.force == null ? true : options.force; const force = options.force == null ? true : options.force;
const recursive = Boolean(options.recursive); const recursive = Boolean(options.recursive);
return { force, recursive }; return { force, recursive };
} }
function cpDirRecursive(sourceDir, destDir, currentDepth, force) { function cpDirRecursive(sourceDir, destDir, currentDepth, force) {
return __awaiter(this, void 0, void 0, function* () { return __awaiter(this, void 0, void 0, function* () {
// Ensure there is not a run away recursive copy // Ensure there is not a run away recursive copy
if (currentDepth >= 255) if (currentDepth >= 255)
return; return;
currentDepth++; currentDepth++;
yield mkdirP(destDir); yield mkdirP(destDir);
const files = yield ioUtil.readdir(sourceDir); const files = yield ioUtil.readdir(sourceDir);
for (const fileName of files) { for (const fileName of files) {
const srcFile = `${sourceDir}/${fileName}`; const srcFile = `${sourceDir}/${fileName}`;
const destFile = `${destDir}/${fileName}`; const destFile = `${destDir}/${fileName}`;
const srcFileStat = yield ioUtil.lstat(srcFile); const srcFileStat = yield ioUtil.lstat(srcFile);
if (srcFileStat.isDirectory()) { if (srcFileStat.isDirectory()) {
// Recurse // Recurse
yield cpDirRecursive(srcFile, destFile, currentDepth, force); yield cpDirRecursive(srcFile, destFile, currentDepth, force);
} }
else { else {
yield copyFile(srcFile, destFile, force); yield copyFile(srcFile, destFile, force);
} }
} }
// Change the mode for the newly created directory // Change the mode for the newly created directory
yield ioUtil.chmod(destDir, (yield ioUtil.stat(sourceDir)).mode); yield ioUtil.chmod(destDir, (yield ioUtil.stat(sourceDir)).mode);
}); });
} }
// Buffered file copy // Buffered file copy
function copyFile(srcFile, destFile, force) { function copyFile(srcFile, destFile, force) {
return __awaiter(this, void 0, void 0, function* () { return __awaiter(this, void 0, void 0, function* () {
if ((yield ioUtil.lstat(srcFile)).isSymbolicLink()) { if ((yield ioUtil.lstat(srcFile)).isSymbolicLink()) {
// unlink/re-link it // unlink/re-link it
try { try {
yield ioUtil.lstat(destFile); yield ioUtil.lstat(destFile);
yield ioUtil.unlink(destFile); yield ioUtil.unlink(destFile);
} }
catch (e) { catch (e) {
// Try to override file permission // Try to override file permission
if (e.code === 'EPERM') { if (e.code === 'EPERM') {
yield ioUtil.chmod(destFile, '0666'); yield ioUtil.chmod(destFile, '0666');
yield ioUtil.unlink(destFile); yield ioUtil.unlink(destFile);
} }
// other errors = it doesn't exist, no work to do // other errors = it doesn't exist, no work to do
} }
// Copy over symlink // Copy over symlink
const symlinkFull = yield ioUtil.readlink(srcFile); const symlinkFull = yield ioUtil.readlink(srcFile);
yield ioUtil.symlink(symlinkFull, destFile, ioUtil.IS_WINDOWS ? 'junction' : null); yield ioUtil.symlink(symlinkFull, destFile, ioUtil.IS_WINDOWS ? 'junction' : null);
} }
else if (!(yield ioUtil.exists(destFile)) || force) { else if (!(yield ioUtil.exists(destFile)) || force) {
yield ioUtil.copyFile(srcFile, destFile); yield ioUtil.copyFile(srcFile, destFile);
} }
}); });
} }
//# sourceMappingURL=io.js.map //# sourceMappingURL=io.js.map

View file

@ -1,35 +1,14 @@
{ {
"_from": "@actions/io@^1.0.0", "name": "@actions/io",
"_id": "@actions/io@1.0.0", "version": "1.0.0",
"_inBundle": false,
"_integrity": "sha512-ezrJSRdqtXtdx1WXlfYL85+40F7gB39jCK9P0jZVODW3W6xUYmu6ZOEc/UmmElUwhRyDRm1R4yNZu1Joq2kuQg==",
"_location": "/@actions/io",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "@actions/io@^1.0.0",
"name": "@actions/io",
"escapedName": "@actions%2fio",
"scope": "@actions",
"rawSpec": "^1.0.0",
"saveSpec": null,
"fetchSpec": "^1.0.0"
},
"_requiredBy": [
"/",
"/@actions/tool-cache"
],
"_resolved": "https://registry.npmjs.org/@actions/io/-/io-1.0.0.tgz",
"_shasum": "379454174660623bb5b3bce0be8b9e2285a62bcb",
"_spec": "@actions/io@^1.0.0",
"_where": "C:\\Users\\damccorm\\Documents\\setup-node",
"bugs": {
"url": "https://github.com/actions/toolkit/issues"
},
"bundleDependencies": false,
"deprecated": false,
"description": "Actions io lib", "description": "Actions io lib",
"keywords": [
"io",
"actions"
],
"homepage": "https://github.com/actions/toolkit/tree/master/packages/io",
"license": "MIT",
"main": "lib/io.js",
"directories": { "directories": {
"lib": "lib", "lib": "lib",
"test": "__tests__" "test": "__tests__"
@ -37,15 +16,6 @@
"files": [ "files": [
"lib" "lib"
], ],
"gitHead": "a40bce7c8d382aa3dbadaa327acbc696e9390e55",
"homepage": "https://github.com/actions/toolkit/tree/master/packages/io",
"keywords": [
"io",
"actions"
],
"license": "MIT",
"main": "lib/io.js",
"name": "@actions/io",
"publishConfig": { "publishConfig": {
"access": "public" "access": "public"
}, },
@ -57,5 +27,12 @@
"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" "bugs": {
} "url": "https://github.com/actions/toolkit/issues"
},
"gitHead": "a40bce7c8d382aa3dbadaa327acbc696e9390e55"
,"_resolved": "https://registry.npmjs.org/@actions/io/-/io-1.0.0.tgz"
,"_integrity": "sha512-ezrJSRdqtXtdx1WXlfYL85+40F7gB39jCK9P0jZVODW3W6xUYmu6ZOEc/UmmElUwhRyDRm1R4yNZu1Joq2kuQg=="
,"_from": "@actions/io@1.0.0"
}

View file

@ -1,7 +1,7 @@
Copyright 2019 GitHub Copyright 2019 GitHub
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: 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 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. 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.

View file

@ -1,82 +1,82 @@
# `@actions/tool-cache` # `@actions/tool-cache`
> Functions necessary for downloading and caching tools. > Functions necessary for downloading and caching tools.
## Usage ## Usage
#### Download #### Download
You can use this to download tools (or other files) from a download URL: You can use this to download tools (or other files) from a download URL:
``` ```
const tc = require('@actions/tool-cache'); const tc = require('@actions/tool-cache');
const node12Path = await tc.downloadTool('http://nodejs.org/dist/v12.7.0/node-v12.7.0-linux-x64.tar.gz'); const node12Path = await tc.downloadTool('http://nodejs.org/dist/v12.7.0/node-v12.7.0-linux-x64.tar.gz');
``` ```
#### Extract #### Extract
These can then be extracted in platform specific ways: These can then be extracted in platform specific ways:
``` ```
const tc = require('@actions/tool-cache'); const tc = require('@actions/tool-cache');
if (process.platform === 'win32') { if (process.platform === 'win32') {
tc.downloadTool('http://nodejs.org/dist/v12.7.0/node-v12.7.0-win-x64.zip'); tc.downloadTool('http://nodejs.org/dist/v12.7.0/node-v12.7.0-win-x64.zip');
const node12ExtractedFolder = await tc.extractZip(node12Path, 'path/to/extract/to'); const node12ExtractedFolder = await tc.extractZip(node12Path, 'path/to/extract/to');
// Or alternately // Or alternately
tc.downloadTool('http://nodejs.org/dist/v12.7.0/node-v12.7.0-win-x64.7z'); tc.downloadTool('http://nodejs.org/dist/v12.7.0/node-v12.7.0-win-x64.7z');
const node12ExtractedFolder = await tc.extract7z(node12Path, 'path/to/extract/to'); const node12ExtractedFolder = await tc.extract7z(node12Path, 'path/to/extract/to');
} }
else { else {
const node12Path = await tc.downloadTool('http://nodejs.org/dist/v12.7.0/node-v12.7.0-linux-x64.tar.gz'); const node12Path = await tc.downloadTool('http://nodejs.org/dist/v12.7.0/node-v12.7.0-linux-x64.tar.gz');
const node12ExtractedFolder = await tc.extractTar(node12Path, 'path/to/extract/to'); const node12ExtractedFolder = await tc.extractTar(node12Path, 'path/to/extract/to');
} }
``` ```
#### Cache #### Cache
Finally, you can cache these directories in our tool-cache. This is useful if you want to switch back and forth between versions of a tool, or save a tool between runs for private runners (private runners are still in development but are on the roadmap). Finally, you can cache these directories in our tool-cache. This is useful if you want to switch back and forth between versions of a tool, or save a tool between runs for private runners (private runners are still in development but are on the roadmap).
You'll often want to add it to the path as part of this step: You'll often want to add it to the path as part of this step:
``` ```
const tc = require('@actions/tool-cache'); const tc = require('@actions/tool-cache');
const core = require('@actions/core'); const core = require('@actions/core');
const node12Path = await tc.downloadTool('http://nodejs.org/dist/v12.7.0/node-v12.7.0-linux-x64.tar.gz'); const node12Path = await tc.downloadTool('http://nodejs.org/dist/v12.7.0/node-v12.7.0-linux-x64.tar.gz');
const node12ExtractedFolder = await tc.extractTar(node12Path, 'path/to/extract/to'); const node12ExtractedFolder = await tc.extractTar(node12Path, 'path/to/extract/to');
const cachedPath = await tc.cacheDir(node12ExtractedFolder, 'node', '12.7.0'); const cachedPath = await tc.cacheDir(node12ExtractedFolder, 'node', '12.7.0');
core.addPath(cachedPath); core.addPath(cachedPath);
``` ```
You can also cache files for reuse. You can also cache files for reuse.
``` ```
const tc = require('@actions/tool-cache'); const tc = require('@actions/tool-cache');
tc.cacheFile('path/to/exe', 'destFileName.exe', 'myExeName', '1.1.0'); tc.cacheFile('path/to/exe', 'destFileName.exe', 'myExeName', '1.1.0');
``` ```
#### Find #### Find
Finally, you can find directories and files you've previously cached: Finally, you can find directories and files you've previously cached:
``` ```
const tc = require('@actions/tool-cache'); const tc = require('@actions/tool-cache');
const core = require('@actions/core'); const core = require('@actions/core');
const nodeDirectory = tc.find('node', '12.x', 'x64'); const nodeDirectory = tc.find('node', '12.x', 'x64');
core.addPath(nodeDirectory); core.addPath(nodeDirectory);
``` ```
You can even find all cached versions of a tool: You can even find all cached versions of a tool:
``` ```
const tc = require('@actions/tool-cache'); const tc = require('@actions/tool-cache');
const allNodeVersions = tc.findAllVersions('node'); const allNodeVersions = tc.findAllVersions('node');
console.log(`Versions of node available: ${allNodeVersions}`); console.log(`Versions of node available: ${allNodeVersions}`);
``` ```

View file

@ -1,78 +1,78 @@
export declare class HTTPError extends Error { export declare class HTTPError extends Error {
readonly httpStatusCode: number | undefined; readonly httpStatusCode: number | undefined;
constructor(httpStatusCode: number | undefined); constructor(httpStatusCode: number | undefined);
} }
/** /**
* Download a tool from an url and stream it into a file * Download a tool from an url and stream it into a file
* *
* @param url url of tool to download * @param url url of tool to download
* @returns path to downloaded tool * @returns path to downloaded tool
*/ */
export declare function downloadTool(url: string): Promise<string>; export declare function downloadTool(url: string): Promise<string>;
/** /**
* Extract a .7z file * Extract a .7z file
* *
* @param file path to the .7z file * @param file path to the .7z file
* @param dest destination directory. Optional. * @param dest destination directory. Optional.
* @param _7zPath path to 7zr.exe. Optional, for long path support. Most .7z archives do not have this * @param _7zPath path to 7zr.exe. Optional, for long path support. Most .7z archives do not have this
* problem. If your .7z archive contains very long paths, you can pass the path to 7zr.exe which will * problem. If your .7z archive contains very long paths, you can pass the path to 7zr.exe which will
* gracefully handle long paths. By default 7zdec.exe is used because it is a very small program and is * gracefully handle long paths. By default 7zdec.exe is used because it is a very small program and is
* bundled with the tool lib. However it does not support long paths. 7zr.exe is the reduced command line * bundled with the tool lib. However it does not support long paths. 7zr.exe is the reduced command line
* interface, it is smaller than the full command line interface, and it does support long paths. At the * interface, it is smaller than the full command line interface, and it does support long paths. At the
* time of this writing, it is freely available from the LZMA SDK that is available on the 7zip website. * time of this writing, it is freely available from the LZMA SDK that is available on the 7zip website.
* Be sure to check the current license agreement. If 7zr.exe is bundled with your action, then the path * Be sure to check the current license agreement. If 7zr.exe is bundled with your action, then the path
* to 7zr.exe can be pass to this function. * to 7zr.exe can be pass to this function.
* @returns path to the destination directory * @returns path to the destination directory
*/ */
export declare function extract7z(file: string, dest?: string, _7zPath?: string): Promise<string>; export declare function extract7z(file: string, dest?: string, _7zPath?: string): Promise<string>;
/** /**
* Extract a tar * Extract a tar
* *
* @param file path to the tar * @param file path to the tar
* @param dest destination directory. Optional. * @param dest destination directory. Optional.
* @returns path to the destination directory * @returns path to the destination directory
*/ */
export declare function extractTar(file: string, dest?: string): Promise<string>; export declare function extractTar(file: string, dest?: string): Promise<string>;
/** /**
* Extract a zip * Extract a zip
* *
* @param file path to the zip * @param file path to the zip
* @param dest destination directory. Optional. * @param dest destination directory. Optional.
* @returns path to the destination directory * @returns path to the destination directory
*/ */
export declare function extractZip(file: string, dest?: string): Promise<string>; export declare function extractZip(file: string, dest?: string): Promise<string>;
/** /**
* Caches a directory and installs it into the tool cacheDir * Caches a directory and installs it into the tool cacheDir
* *
* @param sourceDir the directory to cache into tools * @param sourceDir the directory to cache into tools
* @param tool tool name * @param tool tool name
* @param version version of the tool. semver format * @param version version of the tool. semver format
* @param arch architecture of the tool. Optional. Defaults to machine architecture * @param arch architecture of the tool. Optional. Defaults to machine architecture
*/ */
export declare function cacheDir(sourceDir: string, tool: string, version: string, arch?: string): Promise<string>; export declare function cacheDir(sourceDir: string, tool: string, version: string, arch?: string): Promise<string>;
/** /**
* Caches a downloaded file (GUID) and installs it * Caches a downloaded file (GUID) and installs it
* into the tool cache with a given targetName * into the tool cache with a given targetName
* *
* @param sourceFile the file to cache into tools. Typically a result of downloadTool which is a guid. * @param sourceFile the file to cache into tools. Typically a result of downloadTool which is a guid.
* @param targetFile the name of the file name in the tools directory * @param targetFile the name of the file name in the tools directory
* @param tool tool name * @param tool tool name
* @param version version of the tool. semver format * @param version version of the tool. semver format
* @param arch architecture of the tool. Optional. Defaults to machine architecture * @param arch architecture of the tool. Optional. Defaults to machine architecture
*/ */
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 version 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 * Finds the paths to all versions of a tool that are installed in the local tool cache
* *
* @param toolName name of the tool * @param toolName name of the tool
* @param arch optional arch. defaults to arch of computer * @param arch optional arch. defaults to arch of computer
*/ */
export declare function findAllVersions(toolName: string, arch?: string): string[]; export declare function findAllVersions(toolName: string, arch?: string): string[];

View file

@ -1,436 +1,436 @@
"use strict"; "use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) { return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } 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 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); } 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()); step((generator = generator.apply(thisArg, _arguments || [])).next());
}); });
}; };
Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "__esModule", { value: true });
const core = require("@actions/core"); const core = require("@actions/core");
const io = require("@actions/io"); const io = require("@actions/io");
const fs = require("fs"); const fs = require("fs");
const os = require("os"); const os = require("os");
const path = require("path"); const path = require("path");
const httpm = require("typed-rest-client/HttpClient"); const httpm = require("typed-rest-client/HttpClient");
const semver = require("semver"); const semver = require("semver");
const uuidV4 = require("uuid/v4"); const uuidV4 = require("uuid/v4");
const exec_1 = require("@actions/exec/lib/exec"); const exec_1 = require("@actions/exec/lib/exec");
const assert_1 = require("assert"); const assert_1 = require("assert");
class HTTPError extends Error { class HTTPError extends Error {
constructor(httpStatusCode) { constructor(httpStatusCode) {
super(`Unexpected HTTP response: ${httpStatusCode}`); super(`Unexpected HTTP response: ${httpStatusCode}`);
this.httpStatusCode = httpStatusCode; this.httpStatusCode = httpStatusCode;
Object.setPrototypeOf(this, new.target.prototype); Object.setPrototypeOf(this, new.target.prototype);
} }
} }
exports.HTTPError = HTTPError; exports.HTTPError = HTTPError;
const IS_WINDOWS = process.platform === 'win32'; const IS_WINDOWS = process.platform === 'win32';
const userAgent = 'actions/tool-cache'; 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_TEMP'] || ''; let tempDirectory = process.env['RUNNER_TEMP'] || '';
let cacheRoot = process.env['RUNNER_TOOL_CACHE'] || ''; let cacheRoot = process.env['RUNNER_TOOL_CACHE'] || '';
// 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;
if (IS_WINDOWS) { if (IS_WINDOWS) {
// On windows use the USERPROFILE env variable // On windows use the USERPROFILE env variable
baseLocation = process.env['USERPROFILE'] || 'C:\\'; baseLocation = process.env['USERPROFILE'] || 'C:\\';
} }
else { else {
if (process.platform === 'darwin') { if (process.platform === 'darwin') {
baseLocation = '/Users'; baseLocation = '/Users';
} }
else { else {
baseLocation = '/home'; baseLocation = '/home';
} }
} }
if (!tempDirectory) { if (!tempDirectory) {
tempDirectory = path.join(baseLocation, 'actions', 'temp'); tempDirectory = path.join(baseLocation, 'actions', 'temp');
} }
if (!cacheRoot) { if (!cacheRoot) {
cacheRoot = path.join(baseLocation, 'actions', 'cache'); cacheRoot = path.join(baseLocation, 'actions', 'cache');
} }
} }
/** /**
* Download a tool from an url and stream it into a file * Download a tool from an url and stream it into a file
* *
* @param url url of tool to download * @param url url of tool to download
* @returns path to downloaded tool * @returns path to downloaded tool
*/ */
function downloadTool(url) { function downloadTool(url) {
return __awaiter(this, void 0, void 0, function* () { return __awaiter(this, void 0, void 0, function* () {
// Wrap in a promise so that we can resolve from within stream callbacks // Wrap in a promise so that we can resolve from within stream callbacks
return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () { return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
try { try {
const http = new httpm.HttpClient(userAgent, [], { const http = new httpm.HttpClient(userAgent, [], {
allowRetries: true, allowRetries: true,
maxRetries: 3 maxRetries: 3
}); });
const destPath = path.join(tempDirectory, uuidV4()); const destPath = path.join(tempDirectory, uuidV4());
yield io.mkdirP(tempDirectory); yield io.mkdirP(tempDirectory);
core.debug(`Downloading ${url}`); core.debug(`Downloading ${url}`);
core.debug(`Downloading ${destPath}`); core.debug(`Downloading ${destPath}`);
if (fs.existsSync(destPath)) { if (fs.existsSync(destPath)) {
throw new Error(`Destination file path ${destPath} already exists`); throw new Error(`Destination file path ${destPath} already exists`);
} }
const response = yield http.get(url); const response = yield http.get(url);
if (response.message.statusCode !== 200) { if (response.message.statusCode !== 200) {
const err = new HTTPError(response.message.statusCode); const err = new HTTPError(response.message.statusCode);
core.debug(`Failed to download from "${url}". Code(${response.message.statusCode}) Message(${response.message.statusMessage})`); core.debug(`Failed to download from "${url}". Code(${response.message.statusCode}) Message(${response.message.statusMessage})`);
throw err; throw err;
} }
const file = fs.createWriteStream(destPath); const file = fs.createWriteStream(destPath);
file.on('open', () => __awaiter(this, void 0, void 0, function* () { file.on('open', () => __awaiter(this, void 0, void 0, function* () {
try { try {
const stream = response.message.pipe(file); const stream = response.message.pipe(file);
stream.on('close', () => { stream.on('close', () => {
core.debug('download complete'); core.debug('download complete');
resolve(destPath); resolve(destPath);
}); });
} }
catch (err) { catch (err) {
core.debug(`Failed to download from "${url}". Code(${response.message.statusCode}) Message(${response.message.statusMessage})`); core.debug(`Failed to download from "${url}". Code(${response.message.statusCode}) Message(${response.message.statusMessage})`);
reject(err); reject(err);
} }
})); }));
file.on('error', err => { file.on('error', err => {
file.end(); file.end();
reject(err); reject(err);
}); });
} }
catch (err) { catch (err) {
reject(err); reject(err);
} }
})); }));
}); });
} }
exports.downloadTool = downloadTool; exports.downloadTool = downloadTool;
/** /**
* Extract a .7z file * Extract a .7z file
* *
* @param file path to the .7z file * @param file path to the .7z file
* @param dest destination directory. Optional. * @param dest destination directory. Optional.
* @param _7zPath path to 7zr.exe. Optional, for long path support. Most .7z archives do not have this * @param _7zPath path to 7zr.exe. Optional, for long path support. Most .7z archives do not have this
* problem. If your .7z archive contains very long paths, you can pass the path to 7zr.exe which will * problem. If your .7z archive contains very long paths, you can pass the path to 7zr.exe which will
* gracefully handle long paths. By default 7zdec.exe is used because it is a very small program and is * gracefully handle long paths. By default 7zdec.exe is used because it is a very small program and is
* bundled with the tool lib. However it does not support long paths. 7zr.exe is the reduced command line * bundled with the tool lib. However it does not support long paths. 7zr.exe is the reduced command line
* interface, it is smaller than the full command line interface, and it does support long paths. At the * interface, it is smaller than the full command line interface, and it does support long paths. At the
* time of this writing, it is freely available from the LZMA SDK that is available on the 7zip website. * time of this writing, it is freely available from the LZMA SDK that is available on the 7zip website.
* Be sure to check the current license agreement. If 7zr.exe is bundled with your action, then the path * Be sure to check the current license agreement. If 7zr.exe is bundled with your action, then the path
* to 7zr.exe can be pass to this function. * to 7zr.exe can be pass to this function.
* @returns path to the destination directory * @returns path to the destination directory
*/ */
function extract7z(file, dest, _7zPath) { function extract7z(file, dest, _7zPath) {
return __awaiter(this, void 0, void 0, function* () { return __awaiter(this, void 0, void 0, function* () {
assert_1.ok(IS_WINDOWS, 'extract7z() not supported on current OS'); assert_1.ok(IS_WINDOWS, 'extract7z() not supported on current OS');
assert_1.ok(file, 'parameter "file" is required'); assert_1.ok(file, 'parameter "file" is required');
dest = dest || (yield _createExtractFolder(dest)); dest = dest || (yield _createExtractFolder(dest));
const originalCwd = process.cwd(); const originalCwd = process.cwd();
process.chdir(dest); process.chdir(dest);
if (_7zPath) { if (_7zPath) {
try { try {
const args = [ const args = [
'x', 'x',
'-bb1', '-bb1',
'-bd', '-bd',
'-sccUTF-8', '-sccUTF-8',
file file
]; ];
const options = { const options = {
silent: true silent: true
}; };
yield exec_1.exec(`"${_7zPath}"`, args, options); yield exec_1.exec(`"${_7zPath}"`, args, options);
} }
finally { finally {
process.chdir(originalCwd); process.chdir(originalCwd);
} }
} }
else { else {
const escapedScript = path const escapedScript = path
.join(__dirname, '..', 'scripts', 'Invoke-7zdec.ps1') .join(__dirname, '..', 'scripts', 'Invoke-7zdec.ps1')
.replace(/'/g, "''") .replace(/'/g, "''")
.replace(/"|\n|\r/g, ''); // double-up single quotes, remove double quotes and newlines .replace(/"|\n|\r/g, ''); // double-up single quotes, remove double quotes and newlines
const escapedFile = file.replace(/'/g, "''").replace(/"|\n|\r/g, ''); const escapedFile = file.replace(/'/g, "''").replace(/"|\n|\r/g, '');
const escapedTarget = dest.replace(/'/g, "''").replace(/"|\n|\r/g, ''); const escapedTarget = dest.replace(/'/g, "''").replace(/"|\n|\r/g, '');
const command = `& '${escapedScript}' -Source '${escapedFile}' -Target '${escapedTarget}'`; const command = `& '${escapedScript}' -Source '${escapedFile}' -Target '${escapedTarget}'`;
const args = [ const args = [
'-NoLogo', '-NoLogo',
'-Sta', '-Sta',
'-NoProfile', '-NoProfile',
'-NonInteractive', '-NonInteractive',
'-ExecutionPolicy', '-ExecutionPolicy',
'Unrestricted', 'Unrestricted',
'-Command', '-Command',
command command
]; ];
const options = { const options = {
silent: true silent: true
}; };
try { try {
const powershellPath = yield io.which('powershell', true); const powershellPath = yield io.which('powershell', true);
yield exec_1.exec(`"${powershellPath}"`, args, options); yield exec_1.exec(`"${powershellPath}"`, args, options);
} }
finally { finally {
process.chdir(originalCwd); process.chdir(originalCwd);
} }
} }
return dest; return dest;
}); });
} }
exports.extract7z = extract7z; exports.extract7z = extract7z;
/** /**
* Extract a tar * Extract a tar
* *
* @param file path to the tar * @param file path to the tar
* @param dest destination directory. Optional. * @param dest destination directory. Optional.
* @returns path to the destination directory * @returns path to the destination directory
*/ */
function extractTar(file, dest) { function extractTar(file, dest) {
return __awaiter(this, void 0, void 0, function* () { return __awaiter(this, void 0, void 0, function* () {
if (!file) { if (!file) {
throw new Error("parameter 'file' is required"); throw new Error("parameter 'file' is required");
} }
dest = dest || (yield _createExtractFolder(dest)); dest = dest || (yield _createExtractFolder(dest));
const tarPath = yield io.which('tar', true); const tarPath = yield io.which('tar', true);
yield exec_1.exec(`"${tarPath}"`, ['xzC', dest, '-f', file]); yield exec_1.exec(`"${tarPath}"`, ['xzC', dest, '-f', file]);
return dest; return dest;
}); });
} }
exports.extractTar = extractTar; exports.extractTar = extractTar;
/** /**
* Extract a zip * Extract a zip
* *
* @param file path to the zip * @param file path to the zip
* @param dest destination directory. Optional. * @param dest destination directory. Optional.
* @returns path to the destination directory * @returns path to the destination directory
*/ */
function extractZip(file, dest) { function extractZip(file, dest) {
return __awaiter(this, void 0, void 0, function* () { return __awaiter(this, void 0, void 0, function* () {
if (!file) { if (!file) {
throw new Error("parameter 'file' is required"); throw new Error("parameter 'file' is required");
} }
dest = dest || (yield _createExtractFolder(dest)); dest = dest || (yield _createExtractFolder(dest));
if (IS_WINDOWS) { if (IS_WINDOWS) {
yield extractZipWin(file, dest); yield extractZipWin(file, dest);
} }
else { else {
yield extractZipNix(file, dest); yield extractZipNix(file, dest);
} }
return dest; return dest;
}); });
} }
exports.extractZip = extractZip; exports.extractZip = extractZip;
function extractZipWin(file, dest) { function extractZipWin(file, dest) {
return __awaiter(this, void 0, void 0, function* () { return __awaiter(this, void 0, void 0, function* () {
// build the powershell command // build the powershell command
const escapedFile = file.replace(/'/g, "''").replace(/"|\n|\r/g, ''); // double-up single quotes, remove double quotes and newlines const escapedFile = file.replace(/'/g, "''").replace(/"|\n|\r/g, ''); // double-up single quotes, remove double quotes and newlines
const escapedDest = dest.replace(/'/g, "''").replace(/"|\n|\r/g, ''); const escapedDest = dest.replace(/'/g, "''").replace(/"|\n|\r/g, '');
const command = `$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ; [System.IO.Compression.ZipFile]::ExtractToDirectory('${escapedFile}', '${escapedDest}')`; const command = `$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ; [System.IO.Compression.ZipFile]::ExtractToDirectory('${escapedFile}', '${escapedDest}')`;
// run powershell // run powershell
const powershellPath = yield io.which('powershell'); const powershellPath = yield io.which('powershell');
const args = [ const args = [
'-NoLogo', '-NoLogo',
'-Sta', '-Sta',
'-NoProfile', '-NoProfile',
'-NonInteractive', '-NonInteractive',
'-ExecutionPolicy', '-ExecutionPolicy',
'Unrestricted', 'Unrestricted',
'-Command', '-Command',
command command
]; ];
yield exec_1.exec(`"${powershellPath}"`, args); yield exec_1.exec(`"${powershellPath}"`, args);
}); });
} }
function extractZipNix(file, dest) { function extractZipNix(file, dest) {
return __awaiter(this, void 0, void 0, function* () { return __awaiter(this, void 0, void 0, function* () {
const unzipPath = path.join(__dirname, '..', 'scripts', 'externals', 'unzip'); const unzipPath = path.join(__dirname, '..', 'scripts', 'externals', 'unzip');
yield exec_1.exec(`"${unzipPath}"`, [file], { cwd: dest }); yield exec_1.exec(`"${unzipPath}"`, [file], { cwd: dest });
}); });
} }
/** /**
* Caches a directory and installs it into the tool cacheDir * Caches a directory and installs it into the tool cacheDir
* *
* @param sourceDir the directory to cache into tools * @param sourceDir the directory to cache into tools
* @param tool tool name * @param tool tool name
* @param version version of the tool. semver format * @param version version of the tool. semver format
* @param arch architecture of the tool. Optional. Defaults to machine architecture * @param arch architecture of the tool. Optional. Defaults to machine architecture
*/ */
function cacheDir(sourceDir, tool, version, arch) { function cacheDir(sourceDir, tool, version, arch) {
return __awaiter(this, void 0, void 0, function* () { return __awaiter(this, void 0, void 0, function* () {
version = semver.clean(version) || version; version = semver.clean(version) || version;
arch = arch || os.arch(); arch = arch || os.arch();
core.debug(`Caching tool ${tool} ${version} ${arch}`); core.debug(`Caching tool ${tool} ${version} ${arch}`);
core.debug(`source dir: ${sourceDir}`); core.debug(`source dir: ${sourceDir}`);
if (!fs.statSync(sourceDir).isDirectory()) { if (!fs.statSync(sourceDir).isDirectory()) {
throw new Error('sourceDir is not a directory'); throw new Error('sourceDir is not a directory');
} }
// Create the tool dir // Create the tool dir
const destPath = yield _createToolPath(tool, version, arch); const destPath = yield _createToolPath(tool, version, arch);
// copy each child item. do not move. move can fail on Windows // copy each child item. do not move. move can fail on Windows
// due to anti-virus software having an open handle on a file. // due to anti-virus software having an open handle on a file.
for (const itemName of fs.readdirSync(sourceDir)) { for (const itemName of fs.readdirSync(sourceDir)) {
const s = path.join(sourceDir, itemName); const s = path.join(sourceDir, itemName);
yield io.cp(s, destPath, { recursive: true }); yield io.cp(s, destPath, { recursive: true });
} }
// write .complete // write .complete
_completeToolPath(tool, version, arch); _completeToolPath(tool, version, arch);
return destPath; return destPath;
}); });
} }
exports.cacheDir = cacheDir; exports.cacheDir = cacheDir;
/** /**
* Caches a downloaded file (GUID) and installs it * Caches a downloaded file (GUID) and installs it
* into the tool cache with a given targetName * into the tool cache with a given targetName
* *
* @param sourceFile the file to cache into tools. Typically a result of downloadTool which is a guid. * @param sourceFile the file to cache into tools. Typically a result of downloadTool which is a guid.
* @param targetFile the name of the file name in the tools directory * @param targetFile the name of the file name in the tools directory
* @param tool tool name * @param tool tool name
* @param version version of the tool. semver format * @param version version of the tool. semver format
* @param arch architecture of the tool. Optional. Defaults to machine architecture * @param arch architecture of the tool. Optional. Defaults to machine architecture
*/ */
function cacheFile(sourceFile, targetFile, tool, version, arch) { function cacheFile(sourceFile, targetFile, tool, version, arch) {
return __awaiter(this, void 0, void 0, function* () { return __awaiter(this, void 0, void 0, function* () {
version = semver.clean(version) || version; version = semver.clean(version) || version;
arch = arch || os.arch(); arch = arch || os.arch();
core.debug(`Caching tool ${tool} ${version} ${arch}`); core.debug(`Caching tool ${tool} ${version} ${arch}`);
core.debug(`source file: ${sourceFile}`); core.debug(`source file: ${sourceFile}`);
if (!fs.statSync(sourceFile).isFile()) { if (!fs.statSync(sourceFile).isFile()) {
throw new Error('sourceFile is not a file'); throw new Error('sourceFile is not a file');
} }
// create the tool dir // create the tool dir
const destFolder = yield _createToolPath(tool, version, arch); const destFolder = yield _createToolPath(tool, version, arch);
// copy instead of move. move can fail on Windows due to // copy instead of move. move can fail on Windows due to
// anti-virus software having an open handle on a file. // anti-virus software having an open handle on a file.
const destPath = path.join(destFolder, targetFile); const destPath = path.join(destFolder, targetFile);
core.debug(`destination file ${destPath}`); core.debug(`destination file ${destPath}`);
yield io.cp(sourceFile, destPath); yield io.cp(sourceFile, destPath);
// write .complete // write .complete
_completeToolPath(tool, version, arch); _completeToolPath(tool, version, arch);
return destFolder; return destFolder;
}); });
} }
exports.cacheFile = cacheFile; exports.cacheFile = cacheFile;
/** /**
* Finds the path to a tool version 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
*/ */
function find(toolName, versionSpec, arch) { function find(toolName, versionSpec, arch) {
if (!toolName) { if (!toolName) {
throw new Error('toolName parameter is required'); throw new Error('toolName parameter is required');
} }
if (!versionSpec) { if (!versionSpec) {
throw new Error('versionSpec parameter is required'); throw new Error('versionSpec parameter is required');
} }
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 = findAllVersions(toolName, arch); const localVersions = findAllVersions(toolName, arch);
const match = _evaluateVersions(localVersions, versionSpec); const match = _evaluateVersions(localVersions, versionSpec);
versionSpec = match; versionSpec = match;
} }
// check for the explicit version in the cache // check for the explicit version in the cache
let toolPath = ''; let toolPath = '';
if (versionSpec) { if (versionSpec) {
versionSpec = semver.clean(versionSpec) || ''; versionSpec = semver.clean(versionSpec) || '';
const cachePath = path.join(cacheRoot, toolName, versionSpec, arch); const cachePath = path.join(cacheRoot, toolName, versionSpec, arch);
core.debug(`checking cache: ${cachePath}`); core.debug(`checking cache: ${cachePath}`);
if (fs.existsSync(cachePath) && fs.existsSync(`${cachePath}.complete`)) { if (fs.existsSync(cachePath) && fs.existsSync(`${cachePath}.complete`)) {
core.debug(`Found tool in cache ${toolName} ${versionSpec} ${arch}`); core.debug(`Found tool in cache ${toolName} ${versionSpec} ${arch}`);
toolPath = cachePath; toolPath = cachePath;
} }
else { else {
core.debug('not found'); core.debug('not found');
} }
} }
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 * Finds the paths to all versions of a tool that are installed in the local tool cache
* *
* @param toolName name of the tool * @param toolName name of the tool
* @param arch optional arch. defaults to arch of computer * @param arch optional arch. defaults to arch of computer
*/ */
function findAllVersions(toolName, arch) { function findAllVersions(toolName, arch) {
const versions = []; const versions = [];
arch = arch || os.arch(); arch = arch || os.arch();
const toolPath = path.join(cacheRoot, toolName); const toolPath = path.join(cacheRoot, toolName);
if (fs.existsSync(toolPath)) { if (fs.existsSync(toolPath)) {
const children = fs.readdirSync(toolPath); const children = fs.readdirSync(toolPath);
for (const child of children) { for (const child of children) {
if (_isExplicitVersion(child)) { if (_isExplicitVersion(child)) {
const fullPath = path.join(toolPath, child, arch || ''); const fullPath = path.join(toolPath, child, arch || '');
if (fs.existsSync(fullPath) && fs.existsSync(`${fullPath}.complete`)) { if (fs.existsSync(fullPath) && fs.existsSync(`${fullPath}.complete`)) {
versions.push(child); versions.push(child);
} }
} }
} }
} }
return versions; return versions;
} }
exports.findAllVersions = findAllVersions; 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) {
// create a temp dir // create a temp dir
dest = path.join(tempDirectory, uuidV4()); dest = path.join(tempDirectory, uuidV4());
} }
yield io.mkdirP(dest); yield io.mkdirP(dest);
return dest; return dest;
}); });
} }
function _createToolPath(tool, version, arch) { function _createToolPath(tool, version, arch) {
return __awaiter(this, void 0, void 0, function* () { return __awaiter(this, void 0, void 0, function* () {
const folderPath = path.join(cacheRoot, tool, semver.clean(version) || version, arch || ''); const folderPath = path.join(cacheRoot, tool, semver.clean(version) || version, arch || '');
core.debug(`destination ${folderPath}`); core.debug(`destination ${folderPath}`);
const markerPath = `${folderPath}.complete`; const markerPath = `${folderPath}.complete`;
yield io.rmRF(folderPath); yield io.rmRF(folderPath);
yield io.rmRF(markerPath); yield io.rmRF(markerPath);
yield io.mkdirP(folderPath); yield io.mkdirP(folderPath);
return folderPath; return folderPath;
}); });
} }
function _completeToolPath(tool, version, arch) { function _completeToolPath(tool, version, arch) {
const folderPath = path.join(cacheRoot, tool, semver.clean(version) || version, arch || ''); const folderPath = path.join(cacheRoot, tool, semver.clean(version) || version, arch || '');
const markerPath = `${folderPath}.complete`; const markerPath = `${folderPath}.complete`;
fs.writeFileSync(markerPath, ''); fs.writeFileSync(markerPath, '');
core.debug('finished caching tool'); core.debug('finished caching tool');
} }
function _isExplicitVersion(versionSpec) { function _isExplicitVersion(versionSpec) {
const c = semver.clean(versionSpec) || ''; const c = semver.clean(versionSpec) || '';
core.debug(`isExplicit: ${c}`); core.debug(`isExplicit: ${c}`);
const valid = semver.valid(c) != null; const valid = semver.valid(c) != null;
core.debug(`explicit? ${valid}`); core.debug(`explicit? ${valid}`);
return valid; return valid;
} }
function _evaluateVersions(versions, versionSpec) { function _evaluateVersions(versions, versionSpec) {
let version = ''; let version = '';
core.debug(`evaluating ${versions.length} versions`); core.debug(`evaluating ${versions.length} versions`);
versions = versions.sort((a, b) => { versions = versions.sort((a, b) => {
if (semver.gt(a, b)) { if (semver.gt(a, b)) {
return 1; return 1;
} }
return -1; return -1;
}); });
for (let i = versions.length - 1; i >= 0; i--) { for (let i = versions.length - 1; i >= 0; i--) {
const potential = versions[i]; const potential = versions[i];
const satisfied = semver.satisfies(potential, versionSpec); const satisfied = semver.satisfies(potential, versionSpec);
if (satisfied) { if (satisfied) {
version = potential; version = potential;
break; break;
} }
} }
if (version) { if (version) {
core.debug(`matched: ${version}`); core.debug(`matched: ${version}`);
} }
else { else {
core.debug('match not found'); core.debug('match not found');
} }
return version; return version;
} }
//# sourceMappingURL=tool-cache.js.map //# sourceMappingURL=tool-cache.js.map

View file

@ -1,48 +1,14 @@
{ {
"_from": "@actions/tool-cache@^1.0.0", "name": "@actions/tool-cache",
"_id": "@actions/tool-cache@1.0.0", "version": "1.0.0",
"_inBundle": false,
"_integrity": "sha512-l3zT0IfDfi5Ik5aMpnXqGHGATxN8xa9ls4ue+X/CBXpPhRMRZS4vcuh5Q9T98WAGbkysRCfhpbksTPHIcKnNwQ==",
"_location": "/@actions/tool-cache",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "@actions/tool-cache@^1.0.0",
"name": "@actions/tool-cache",
"escapedName": "@actions%2ftool-cache",
"scope": "@actions",
"rawSpec": "^1.0.0",
"saveSpec": null,
"fetchSpec": "^1.0.0"
},
"_requiredBy": [
"/"
],
"_resolved": "https://registry.npmjs.org/@actions/tool-cache/-/tool-cache-1.0.0.tgz",
"_shasum": "a9ac414bd2e0bf1f5f0302f029193c418d344c09",
"_spec": "@actions/tool-cache@^1.0.0",
"_where": "C:\\Users\\damccorm\\Documents\\setup-node",
"bugs": {
"url": "https://github.com/actions/toolkit/issues"
},
"bundleDependencies": false,
"dependencies": {
"@actions/core": "^1.0.0",
"@actions/exec": "^1.0.0",
"@actions/io": "^1.0.0",
"semver": "^6.1.0",
"typed-rest-client": "^1.4.0",
"uuid": "^3.3.2"
},
"deprecated": false,
"description": "Actions tool-cache lib", "description": "Actions tool-cache lib",
"devDependencies": { "keywords": [
"@types/nock": "^10.0.3", "exec",
"@types/semver": "^6.0.0", "actions"
"@types/uuid": "^3.4.4", ],
"nock": "^10.0.6" "homepage": "https://github.com/actions/toolkit/tree/master/packages/exec",
}, "license": "MIT",
"main": "lib/tool-cache.js",
"directories": { "directories": {
"lib": "lib", "lib": "lib",
"test": "__tests__" "test": "__tests__"
@ -51,15 +17,6 @@
"lib", "lib",
"scripts" "scripts"
], ],
"gitHead": "a40bce7c8d382aa3dbadaa327acbc696e9390e55",
"homepage": "https://github.com/actions/toolkit/tree/master/packages/exec",
"keywords": [
"exec",
"actions"
],
"license": "MIT",
"main": "lib/tool-cache.js",
"name": "@actions/tool-cache",
"publishConfig": { "publishConfig": {
"access": "public" "access": "public"
}, },
@ -71,5 +28,26 @@
"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" "bugs": {
} "url": "https://github.com/actions/toolkit/issues"
},
"dependencies": {
"@actions/core": "^1.0.0",
"@actions/exec": "^1.0.0",
"@actions/io": "^1.0.0",
"semver": "^6.1.0",
"typed-rest-client": "^1.4.0",
"uuid": "^3.3.2"
},
"devDependencies": {
"@types/nock": "^10.0.3",
"@types/semver": "^6.0.0",
"@types/uuid": "^3.4.4",
"nock": "^10.0.6"
},
"gitHead": "a40bce7c8d382aa3dbadaa327acbc696e9390e55"
,"_resolved": "https://registry.npmjs.org/@actions/tool-cache/-/tool-cache-1.0.0.tgz"
,"_integrity": "sha512-l3zT0IfDfi5Ik5aMpnXqGHGATxN8xa9ls4ue+X/CBXpPhRMRZS4vcuh5Q9T98WAGbkysRCfhpbksTPHIcKnNwQ=="
,"_from": "@actions/tool-cache@1.0.0"
}

View file

@ -1,60 +1,60 @@
[CmdletBinding()] [CmdletBinding()]
param( param(
[Parameter(Mandatory = $true)] [Parameter(Mandatory = $true)]
[string]$Source, [string]$Source,
[Parameter(Mandatory = $true)] [Parameter(Mandatory = $true)]
[string]$Target) [string]$Target)
# This script translates the output from 7zdec into UTF8. Node has limited # This script translates the output from 7zdec into UTF8. Node has limited
# built-in support for encodings. # built-in support for encodings.
# #
# 7zdec uses the system default code page. The system default code page varies # 7zdec uses the system default code page. The system default code page varies
# depending on the locale configuration. On an en-US box, the system default code # depending on the locale configuration. On an en-US box, the system default code
# page is Windows-1252. # page is Windows-1252.
# #
# Note, on a typical en-US box, testing with the 'ç' character is a good way to # Note, on a typical en-US box, testing with the 'ç' character is a good way to
# determine whether data is passed correctly between processes. This is because # determine whether data is passed correctly between processes. This is because
# the 'ç' character has a different code point across each of the common encodings # the 'ç' character has a different code point across each of the common encodings
# on a typical en-US box, i.e. # on a typical en-US box, i.e.
# 1) the default console-output code page (IBM437) # 1) the default console-output code page (IBM437)
# 2) the system default code page (i.e. CP_ACP) (Windows-1252) # 2) the system default code page (i.e. CP_ACP) (Windows-1252)
# 3) UTF8 # 3) UTF8
$ErrorActionPreference = 'Stop' $ErrorActionPreference = 'Stop'
# Redefine the wrapper over STDOUT to use UTF8. Node expects UTF8 by default. # Redefine the wrapper over STDOUT to use UTF8. Node expects UTF8 by default.
$stdout = [System.Console]::OpenStandardOutput() $stdout = [System.Console]::OpenStandardOutput()
$utf8 = New-Object System.Text.UTF8Encoding($false) # do not emit BOM $utf8 = New-Object System.Text.UTF8Encoding($false) # do not emit BOM
$writer = New-Object System.IO.StreamWriter($stdout, $utf8) $writer = New-Object System.IO.StreamWriter($stdout, $utf8)
[System.Console]::SetOut($writer) [System.Console]::SetOut($writer)
# All subsequent output must be written using [System.Console]::WriteLine(). In # All subsequent output must be written using [System.Console]::WriteLine(). In
# PowerShell 4, Write-Host and Out-Default do not consider the updated stream writer. # PowerShell 4, Write-Host and Out-Default do not consider the updated stream writer.
Set-Location -LiteralPath $Target Set-Location -LiteralPath $Target
# Print the ##command. # Print the ##command.
$_7zdec = Join-Path -Path "$PSScriptRoot" -ChildPath "externals/7zdec.exe" $_7zdec = Join-Path -Path "$PSScriptRoot" -ChildPath "externals/7zdec.exe"
[System.Console]::WriteLine("##[command]$_7zdec x `"$Source`"") [System.Console]::WriteLine("##[command]$_7zdec x `"$Source`"")
# The $OutputEncoding variable instructs PowerShell how to interpret the output # The $OutputEncoding variable instructs PowerShell how to interpret the output
# from the external command. # from the external command.
$OutputEncoding = [System.Text.Encoding]::Default $OutputEncoding = [System.Text.Encoding]::Default
# Note, the output from 7zdec.exe needs to be iterated over. Otherwise PowerShell.exe # Note, the output from 7zdec.exe needs to be iterated over. Otherwise PowerShell.exe
# will launch the external command in such a way that it inherits the streams. # will launch the external command in such a way that it inherits the streams.
& $_7zdec x $Source 2>&1 | & $_7zdec x $Source 2>&1 |
ForEach-Object { ForEach-Object {
if ($_ -is [System.Management.Automation.ErrorRecord]) { if ($_ -is [System.Management.Automation.ErrorRecord]) {
[System.Console]::WriteLine($_.Exception.Message) [System.Console]::WriteLine($_.Exception.Message)
} }
else { else {
[System.Console]::WriteLine($_) [System.Console]::WriteLine($_)
} }
} }
[System.Console]::WriteLine("##[debug]7zdec.exe exit code '$LASTEXITCODE'") [System.Console]::WriteLine("##[debug]7zdec.exe exit code '$LASTEXITCODE'")
[System.Console]::Out.Flush() [System.Console]::Out.Flush()
if ($LASTEXITCODE -ne 0) { if ($LASTEXITCODE -ne 0) {
exit $LASTEXITCODE exit $LASTEXITCODE
} }

View file

@ -1,57 +1,41 @@
{ {
"_from": "is-plain-object@^3.0.0", "name": "is-plain-object",
"_id": "is-plain-object@3.0.0", "description": "Returns true if an object was created by the `Object` constructor.",
"_inBundle": false, "version": "3.0.0",
"_integrity": "sha512-tZIpofR+P05k8Aocp7UI/2UTa9lTJSebCXpFFoR9aibpokDj/uXBsJ8luUu0tTVYKkMU6URDUuOfJZ7koewXvg==", "homepage": "https://github.com/jonschlinkert/is-plain-object",
"_location": "/@octokit/endpoint/is-plain-object", "author": "Jon Schlinkert (https://github.com/jonschlinkert)",
"_phantomChildren": {}, "contributors": [
"_requested": { "Jon Schlinkert (http://twitter.com/jonschlinkert)",
"type": "range", "Osman Nuri Okumuş (http://onokumus.com)",
"registry": true, "Steven Vachon (https://svachon.com)",
"raw": "is-plain-object@^3.0.0", "(https://github.com/wtgtybhertgeghgtwtg)"
"name": "is-plain-object",
"escapedName": "is-plain-object",
"rawSpec": "^3.0.0",
"saveSpec": null,
"fetchSpec": "^3.0.0"
},
"_requiredBy": [
"/@octokit/endpoint"
], ],
"_resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-3.0.0.tgz", "repository": "jonschlinkert/is-plain-object",
"_shasum": "47bfc5da1b5d50d64110806c199359482e75a928",
"_spec": "is-plain-object@^3.0.0",
"_where": "C:\\Users\\Administrator\\Documents\\setup-node\\node_modules\\@octokit\\endpoint",
"author": {
"name": "Jon Schlinkert",
"url": "https://github.com/jonschlinkert"
},
"bugs": { "bugs": {
"url": "https://github.com/jonschlinkert/is-plain-object/issues" "url": "https://github.com/jonschlinkert/is-plain-object/issues"
}, },
"bundleDependencies": false, "license": "MIT",
"contributors": [ "main": "index.cjs.js",
{ "module": "index.js",
"name": "Jon Schlinkert", "types": "index.d.ts",
"url": "http://twitter.com/jonschlinkert" "files": [
}, "index.d.ts",
{ "index.js",
"name": "Osman Nuri Okumuş", "index.cjs.js"
"url": "http://onokumus.com"
},
{
"name": "Steven Vachon",
"url": "https://svachon.com"
},
{
"url": "https://github.com/wtgtybhertgeghgtwtg"
}
], ],
"engines": {
"node": ">=0.10.0"
},
"scripts": {
"build": "rollup -c",
"test_browser": "mocha-headless-chrome --args=disable-web-security -f test/browser.html",
"test_node": "mocha -r esm",
"test": "npm run test_node && npm run build && npm run test_browser",
"prepare": "rollup -c"
},
"dependencies": { "dependencies": {
"isobject": "^4.0.0" "isobject": "^4.0.0"
}, },
"deprecated": false,
"description": "Returns true if an object was created by the `Object` constructor.",
"devDependencies": { "devDependencies": {
"chai": "^4.2.0", "chai": "^4.2.0",
"esm": "^3.2.22", "esm": "^3.2.22",
@ -61,15 +45,6 @@
"rollup": "^1.10.1", "rollup": "^1.10.1",
"rollup-plugin-node-resolve": "^4.2.3" "rollup-plugin-node-resolve": "^4.2.3"
}, },
"engines": {
"node": ">=0.10.0"
},
"files": [
"index.d.ts",
"index.js",
"index.cjs.js"
],
"homepage": "https://github.com/jonschlinkert/is-plain-object",
"keywords": [ "keywords": [
"check", "check",
"is", "is",
@ -84,22 +59,6 @@
"typeof", "typeof",
"value" "value"
], ],
"license": "MIT",
"main": "index.cjs.js",
"module": "index.js",
"name": "is-plain-object",
"repository": {
"type": "git",
"url": "git+https://github.com/jonschlinkert/is-plain-object.git"
},
"scripts": {
"build": "rollup -c",
"prepare": "rollup -c",
"test": "npm run test_node && npm run build && npm run test_browser",
"test_browser": "mocha-headless-chrome --args=disable-web-security -f test/browser.html",
"test_node": "mocha -r esm"
},
"types": "index.d.ts",
"verb": { "verb": {
"toc": false, "toc": false,
"layout": "default", "layout": "default",
@ -119,6 +78,9 @@
"lint": { "lint": {
"reflinks": true "reflinks": true
} }
}, }
"version": "3.0.0"
} ,"_resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-3.0.0.tgz"
,"_integrity": "sha512-tZIpofR+P05k8Aocp7UI/2UTa9lTJSebCXpFFoR9aibpokDj/uXBsJ8luUu0tTVYKkMU6URDUuOfJZ7koewXvg=="
,"_from": "is-plain-object@3.0.0"
}

View file

@ -1,74 +1,43 @@
{ {
"_from": "isobject@^4.0.0", "name": "isobject",
"_id": "isobject@4.0.0", "description": "Returns true if the value is an object and not an array or null.",
"_inBundle": false, "version": "4.0.0",
"_integrity": "sha512-S/2fF5wH8SJA/kmwr6HYhK/RI/OkhD84k8ntalo0iJjZikgq1XFvR5M8NPT1x5F7fBwCG3qHfnzeP/Vh/ZxCUA==", "homepage": "https://github.com/jonschlinkert/isobject",
"_location": "/@octokit/endpoint/isobject", "author": "Jon Schlinkert (https://github.com/jonschlinkert)",
"_phantomChildren": {}, "contributors": [
"_requested": { "(https://github.com/LeSuisse)",
"type": "range", "Brian Woodward (https://twitter.com/doowb)",
"registry": true, "Jon Schlinkert (http://twitter.com/jonschlinkert)",
"raw": "isobject@^4.0.0", "Magnús Dæhlen (https://github.com/magnudae)",
"name": "isobject", "Tom MacWright (https://macwright.org)"
"escapedName": "isobject",
"rawSpec": "^4.0.0",
"saveSpec": null,
"fetchSpec": "^4.0.0"
},
"_requiredBy": [
"/@octokit/endpoint/is-plain-object"
], ],
"_resolved": "https://registry.npmjs.org/isobject/-/isobject-4.0.0.tgz", "repository": "jonschlinkert/isobject",
"_shasum": "3f1c9155e73b192022a80819bacd0343711697b0",
"_spec": "isobject@^4.0.0",
"_where": "C:\\Users\\Administrator\\Documents\\setup-node\\node_modules\\@octokit\\endpoint\\node_modules\\is-plain-object",
"author": {
"name": "Jon Schlinkert",
"url": "https://github.com/jonschlinkert"
},
"bugs": { "bugs": {
"url": "https://github.com/jonschlinkert/isobject/issues" "url": "https://github.com/jonschlinkert/isobject/issues"
}, },
"bundleDependencies": false, "license": "MIT",
"contributors": [ "files": [
{ "index.d.ts",
"url": "https://github.com/LeSuisse" "index.cjs.js",
}, "index.js"
{
"name": "Brian Woodward",
"url": "https://twitter.com/doowb"
},
{
"name": "Jon Schlinkert",
"url": "http://twitter.com/jonschlinkert"
},
{
"name": "Magnús Dæhlen",
"url": "https://github.com/magnudae"
},
{
"name": "Tom MacWright",
"url": "https://macwright.org"
}
], ],
"main": "index.cjs.js",
"module": "index.js",
"engines": {
"node": ">=0.10.0"
},
"scripts": {
"build": "rollup -i index.js -o index.cjs.js -f cjs",
"test": "mocha -r esm",
"prepublish": "npm run build"
},
"dependencies": {}, "dependencies": {},
"deprecated": false,
"description": "Returns true if the value is an object and not an array or null.",
"devDependencies": { "devDependencies": {
"esm": "^3.2.22", "esm": "^3.2.22",
"gulp-format-md": "^0.1.9", "gulp-format-md": "^0.1.9",
"mocha": "^2.4.5", "mocha": "^2.4.5",
"rollup": "^1.10.1" "rollup": "^1.10.1"
}, },
"engines": {
"node": ">=0.10.0"
},
"files": [
"index.d.ts",
"index.cjs.js",
"index.js"
],
"homepage": "https://github.com/jonschlinkert/isobject",
"keywords": [ "keywords": [
"check", "check",
"is", "is",
@ -83,19 +52,6 @@
"typeof", "typeof",
"value" "value"
], ],
"license": "MIT",
"main": "index.cjs.js",
"module": "index.js",
"name": "isobject",
"repository": {
"type": "git",
"url": "git+https://github.com/jonschlinkert/isobject.git"
},
"scripts": {
"build": "rollup -i index.js -o index.cjs.js -f cjs",
"prepublish": "npm run build",
"test": "mocha -r esm"
},
"types": "index.d.ts", "types": "index.d.ts",
"verb": { "verb": {
"related": { "related": {
@ -120,6 +76,9 @@
"reflinks": [ "reflinks": [
"verb" "verb"
] ]
}, }
"version": "4.0.0"
} ,"_resolved": "https://registry.npmjs.org/isobject/-/isobject-4.0.0.tgz"
,"_integrity": "sha512-S/2fF5wH8SJA/kmwr6HYhK/RI/OkhD84k8ntalo0iJjZikgq1XFvR5M8NPT1x5F7fBwCG3qHfnzeP/Vh/ZxCUA=="
,"_from": "isobject@4.0.0"
}

View file

@ -1,72 +1,39 @@
{ {
"_from": "universal-user-agent@^3.0.0", "name": "universal-user-agent",
"_id": "universal-user-agent@3.0.0", "version": "3.0.0",
"_inBundle": false,
"_integrity": "sha512-T3siHThqoj5X0benA5H0qcDnrKGXzU8TKoX15x/tQHw1hQBvIEBHjxQ2klizYsqBOO/Q+WuxoQUihadeeqDnoA==",
"_location": "/@octokit/endpoint/universal-user-agent",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "universal-user-agent@^3.0.0",
"name": "universal-user-agent",
"escapedName": "universal-user-agent",
"rawSpec": "^3.0.0",
"saveSpec": null,
"fetchSpec": "^3.0.0"
},
"_requiredBy": [
"/@octokit/endpoint"
],
"_resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-3.0.0.tgz",
"_shasum": "4cc88d68097bffd7ac42e3b7c903e7481424b4b9",
"_spec": "universal-user-agent@^3.0.0",
"_where": "C:\\Users\\Administrator\\Documents\\setup-node\\node_modules\\@octokit\\endpoint",
"author": {
"name": "Gregor Martynus",
"url": "https://github.com/gr2m"
},
"browser": "browser.js",
"bugs": {
"url": "https://github.com/gr2m/universal-user-agent/issues"
},
"bundleDependencies": false,
"dependencies": {
"os-name": "^3.0.0"
},
"deprecated": false,
"description": "Get a user agent string in both browser and node", "description": "Get a user agent string in both browser and node",
"repository": "https://github.com/gr2m/universal-user-agent.git",
"keywords": [],
"author": "Gregor Martynus (https://github.com/gr2m)",
"license": "ISC",
"main": "index.js",
"browser": "browser.js",
"types": "index.d.ts",
"scripts": {
"coverage": "nyc report --reporter=html && open coverage/index.html",
"coverage:upload": "nyc report --reporter=text-lcov | coveralls",
"pretest": "standard",
"test": "nyc mocha \"test/*-test.js\"",
"test:browser": "cypress run --browser chrome",
"semantic-release": "semantic-release",
"travis-deploy-once": "travis-deploy-once"
},
"devDependencies": { "devDependencies": {
"chai": "^4.1.2", "chai": "^4.1.2",
"coveralls": "^3.0.2", "coveralls": "^3.0.2",
"cypress": "^3.1.0", "cypress": "^3.1.0",
"mocha": "^6.0.0", "mocha": "^6.0.0",
"nyc": "^14.0.0",
"proxyquire": "^2.1.0", "proxyquire": "^2.1.0",
"semantic-release": "^15.9.15", "nyc": "^14.0.0",
"sinon": "^7.2.4", "sinon": "^7.2.4",
"sinon-chai": "^3.2.0", "sinon-chai": "^3.2.0",
"standard": "^13.0.1", "standard": "^13.0.1",
"test": "^0.6.0", "test": "^0.6.0",
"semantic-release": "^15.9.15",
"travis-deploy-once": "^5.0.7" "travis-deploy-once": "^5.0.7"
}, },
"homepage": "https://github.com/gr2m/universal-user-agent#readme", "dependencies": {
"keywords": [], "os-name": "^3.0.0"
"license": "ISC",
"main": "index.js",
"name": "universal-user-agent",
"repository": {
"type": "git",
"url": "git+https://github.com/gr2m/universal-user-agent.git"
},
"scripts": {
"coverage": "nyc report --reporter=html && open coverage/index.html",
"coverage:upload": "nyc report --reporter=text-lcov | coveralls",
"pretest": "standard",
"semantic-release": "semantic-release",
"test": "nyc mocha \"test/*-test.js\"",
"test:browser": "cypress run --browser chrome",
"travis-deploy-once": "travis-deploy-once"
}, },
"standard": { "standard": {
"globals": [ "globals": [
@ -76,7 +43,9 @@
"afterEach", "afterEach",
"expect" "expect"
] ]
}, }
"types": "index.d.ts",
"version": "3.0.0" ,"_resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-3.0.0.tgz"
} ,"_integrity": "sha512-T3siHThqoj5X0benA5H0qcDnrKGXzU8TKoX15x/tQHw1hQBvIEBHjxQ2klizYsqBOO/Q+WuxoQUihadeeqDnoA=="
,"_from": "universal-user-agent@3.0.0"
}

View file

@ -1,42 +1,34 @@
{ {
"_from": "@octokit/endpoint@^5.1.0", "name": "@octokit/endpoint",
"_id": "@octokit/endpoint@5.3.2", "description": "Turns REST API endpoints into generic request options",
"_inBundle": false, "version": "5.3.2",
"_integrity": "sha512-gRjteEM9I6f4D8vtwU2iGUTn9RX/AJ0SVXiqBUEuYEWVGGAVjSXdT0oNmghH5lvQNWs8mwt6ZaultuG6yXivNw==", "license": "MIT",
"_location": "/@octokit/endpoint", "files": [
"_phantomChildren": { "dist-*/",
"os-name": "3.1.0" "bin/"
},
"_requested": {
"type": "range",
"registry": true,
"raw": "@octokit/endpoint@^5.1.0",
"name": "@octokit/endpoint",
"escapedName": "@octokit%2fendpoint",
"scope": "@octokit",
"rawSpec": "^5.1.0",
"saveSpec": null,
"fetchSpec": "^5.1.0"
},
"_requiredBy": [
"/@octokit/request"
], ],
"_resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-5.3.2.tgz", "pika": true,
"_shasum": "2deda2d869cac9ba7f370287d55667be2a808d4b", "sideEffects": false,
"_spec": "@octokit/endpoint@^5.1.0", "keywords": [
"_where": "C:\\Users\\Administrator\\Documents\\setup-node\\node_modules\\@octokit\\request", "octokit",
"github",
"api",
"rest"
],
"homepage": "https://github.com/octokit/endpoint.js#readme",
"bugs": { "bugs": {
"url": "https://github.com/octokit/endpoint.js/issues" "url": "https://github.com/octokit/endpoint.js/issues"
}, },
"bundleDependencies": false, "repository": {
"type": "git",
"url": "git+https://github.com/octokit/endpoint.js.git"
},
"dependencies": { "dependencies": {
"deepmerge": "4.0.0", "deepmerge": "4.0.0",
"is-plain-object": "^3.0.0", "is-plain-object": "^3.0.0",
"universal-user-agent": "^3.0.0", "universal-user-agent": "^3.0.0",
"url-template": "^2.0.8" "url-template": "^2.0.8"
}, },
"deprecated": false,
"description": "Turns REST API endpoints into generic request options",
"devDependencies": { "devDependencies": {
"@octokit/routes": "20.9.2", "@octokit/routes": "20.9.2",
"@pika/pack": "^0.4.0", "@pika/pack": "^0.4.0",
@ -58,31 +50,15 @@
"ts-jest": "^24.0.2", "ts-jest": "^24.0.2",
"typescript": "^3.4.5" "typescript": "^3.4.5"
}, },
"files": [
"dist-*/",
"bin/"
],
"homepage": "https://github.com/octokit/endpoint.js#readme",
"keywords": [
"octokit",
"github",
"api",
"rest"
],
"license": "MIT",
"main": "dist-node/index.js",
"module": "dist-web/index.js",
"name": "@octokit/endpoint",
"pika": true,
"publishConfig": { "publishConfig": {
"access": "public" "access": "public"
}, },
"repository": {
"type": "git",
"url": "git+https://github.com/octokit/endpoint.js.git"
},
"sideEffects": false,
"source": "dist-src/index.js", "source": "dist-src/index.js",
"types": "dist-types/index.d.ts", "types": "dist-types/index.d.ts",
"version": "5.3.2" "main": "dist-node/index.js",
} "module": "dist-web/index.js"
,"_resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-5.3.2.tgz"
,"_integrity": "sha512-gRjteEM9I6f4D8vtwU2iGUTn9RX/AJ0SVXiqBUEuYEWVGGAVjSXdT0oNmghH5lvQNWs8mwt6ZaultuG6yXivNw=="
,"_from": "@octokit/endpoint@5.3.2"
}

View file

@ -1,48 +1,43 @@
{ {
"_from": "@octokit/graphql@^2.0.1", "name": "@octokit/graphql",
"_id": "@octokit/graphql@2.1.3", "version": "2.1.3",
"_inBundle": false, "publishConfig": {
"_integrity": "sha512-XoXJqL2ondwdnMIW3wtqJWEwcBfKk37jO/rYkoxNPEVeLBDGsGO1TCWggrAlq3keGt/O+C/7VepXnukUxwt5vA==", "access": "public"
"_location": "/@octokit/graphql",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "@octokit/graphql@^2.0.1",
"name": "@octokit/graphql",
"escapedName": "@octokit%2fgraphql",
"scope": "@octokit",
"rawSpec": "^2.0.1",
"saveSpec": null,
"fetchSpec": "^2.0.1"
}, },
"_requiredBy": [ "description": "GitHub GraphQL API client for browsers and Node",
"/@actions/github" "main": "index.js",
"scripts": {
"prebuild": "mkdirp dist/",
"build": "npm-run-all build:*",
"build:development": "webpack --mode development --entry . --output-library=octokitGraphql --output=./dist/octokit-graphql.js --profile --json > dist/bundle-stats.json",
"build:production": "webpack --mode production --entry . --plugin=compression-webpack-plugin --output-library=octokitGraphql --output-path=./dist --output-filename=octokit-graphql.min.js --devtool source-map",
"bundle-report": "webpack-bundle-analyzer dist/bundle-stats.json --mode=static --no-open --report dist/bundle-report.html",
"coverage": "nyc report --reporter=html && open coverage/index.html",
"coverage:upload": "nyc report --reporter=text-lcov | coveralls",
"pretest": "standard",
"test": "nyc mocha test/*-test.js",
"test:browser": "cypress run --browser chrome"
},
"repository": {
"type": "git",
"url": "https://github.com/octokit/graphql.js.git"
},
"keywords": [
"octokit",
"github",
"api",
"graphql"
], ],
"_resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-2.1.3.tgz", "author": "Gregor Martynus (https://github.com/gr2m)",
"_shasum": "60c058a0ed5fa242eca6f938908d95fd1a2f4b92", "license": "MIT",
"_spec": "@octokit/graphql@^2.0.1",
"_where": "C:\\Users\\Administrator\\Documents\\setup-node\\toolkit\\actions-github-0.0.0.tgz",
"author": {
"name": "Gregor Martynus",
"url": "https://github.com/gr2m"
},
"bugs": { "bugs": {
"url": "https://github.com/octokit/graphql.js/issues" "url": "https://github.com/octokit/graphql.js/issues"
}, },
"bundleDependencies": false, "homepage": "https://github.com/octokit/graphql.js#readme",
"bundlesize": [
{
"path": "./dist/octokit-graphql.min.js.gz",
"maxSize": "5KB"
}
],
"dependencies": { "dependencies": {
"@octokit/request": "^5.0.0", "@octokit/request": "^5.0.0",
"universal-user-agent": "^2.0.3" "universal-user-agent": "^2.0.3"
}, },
"deprecated": false,
"description": "GitHub GraphQL API client for browsers and Node",
"devDependencies": { "devDependencies": {
"chai": "^4.2.0", "chai": "^4.2.0",
"compression-webpack-plugin": "^2.0.0", "compression-webpack-plugin": "^2.0.0",
@ -60,22 +55,12 @@
"webpack-bundle-analyzer": "^3.1.0", "webpack-bundle-analyzer": "^3.1.0",
"webpack-cli": "^3.2.3" "webpack-cli": "^3.2.3"
}, },
"files": [ "bundlesize": [
"lib" {
"path": "./dist/octokit-graphql.min.js.gz",
"maxSize": "5KB"
}
], ],
"homepage": "https://github.com/octokit/graphql.js#readme",
"keywords": [
"octokit",
"github",
"api",
"graphql"
],
"license": "MIT",
"main": "index.js",
"name": "@octokit/graphql",
"publishConfig": {
"access": "public"
},
"release": { "release": {
"publish": [ "publish": [
"@semantic-release/npm", "@semantic-release/npm",
@ -88,22 +73,6 @@
} }
] ]
}, },
"repository": {
"type": "git",
"url": "git+https://github.com/octokit/graphql.js.git"
},
"scripts": {
"build": "npm-run-all build:*",
"build:development": "webpack --mode development --entry . --output-library=octokitGraphql --output=./dist/octokit-graphql.js --profile --json > dist/bundle-stats.json",
"build:production": "webpack --mode production --entry . --plugin=compression-webpack-plugin --output-library=octokitGraphql --output-path=./dist --output-filename=octokit-graphql.min.js --devtool source-map",
"bundle-report": "webpack-bundle-analyzer dist/bundle-stats.json --mode=static --no-open --report dist/bundle-report.html",
"coverage": "nyc report --reporter=html && open coverage/index.html",
"coverage:upload": "nyc report --reporter=text-lcov | coveralls",
"prebuild": "mkdirp dist/",
"pretest": "standard",
"test": "nyc mocha test/*-test.js",
"test:browser": "cypress run --browser chrome"
},
"standard": { "standard": {
"globals": [ "globals": [
"describe", "describe",
@ -115,5 +84,11 @@
"expect" "expect"
] ]
}, },
"version": "2.1.3" "files": [
} "lib"
]
,"_resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-2.1.3.tgz"
,"_integrity": "sha512-XoXJqL2ondwdnMIW3wtqJWEwcBfKk37jO/rYkoxNPEVeLBDGsGO1TCWggrAlq3keGt/O+C/7VepXnukUxwt5vA=="
,"_from": "@octokit/graphql@2.1.3"
}

View file

@ -1,39 +1,36 @@
{ {
"_from": "@octokit/request-error@^1.0.1", "name": "@octokit/request-error",
"_id": "@octokit/request-error@1.0.4", "description": "Error class for Octokit request errors",
"_inBundle": false, "version": "1.0.4",
"_integrity": "sha512-L4JaJDXn8SGT+5G0uX79rZLv0MNJmfGa4vb4vy1NnpjSnWDLJRy6m90udGwvMmavwsStgbv2QNkPzzTCMmL+ig==", "license": "MIT",
"_location": "/@octokit/request-error", "files": [
"_phantomChildren": {}, "dist-*/",
"_requested": { "bin/"
"type": "range",
"registry": true,
"raw": "@octokit/request-error@^1.0.1",
"name": "@octokit/request-error",
"escapedName": "@octokit%2frequest-error",
"scope": "@octokit",
"rawSpec": "^1.0.1",
"saveSpec": null,
"fetchSpec": "^1.0.1"
},
"_requiredBy": [
"/@octokit/request",
"/@octokit/rest"
], ],
"_resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-1.0.4.tgz", "source": "dist-src/index.js",
"_shasum": "15e1dc22123ba4a9a4391914d80ec1e5303a23be", "types": "dist-types/index.d.ts",
"_spec": "@octokit/request-error@^1.0.1", "main": "dist-node/index.js",
"_where": "C:\\Users\\Administrator\\Documents\\setup-node\\node_modules\\@octokit\\request", "module": "dist-web/index.js",
"pika": true,
"sideEffects": false,
"keywords": [
"octokit",
"github",
"api",
"error"
],
"homepage": "https://github.com/octokit/request-error.js#readme",
"bugs": { "bugs": {
"url": "https://github.com/octokit/request-error.js/issues" "url": "https://github.com/octokit/request-error.js/issues"
}, },
"bundleDependencies": false, "repository": {
"type": "git",
"url": "https://github.com/octokit/request-error.js.git"
},
"dependencies": { "dependencies": {
"deprecation": "^2.0.0", "deprecation": "^2.0.0",
"once": "^1.4.0" "once": "^1.4.0"
}, },
"deprecated": false,
"description": "Error class for Octokit request errors",
"devDependencies": { "devDependencies": {
"@pika/pack": "^0.3.7", "@pika/pack": "^0.3.7",
"@pika/plugin-build-node": "^0.4.0", "@pika/plugin-build-node": "^0.4.0",
@ -51,31 +48,11 @@
"ts-jest": "^24.0.2", "ts-jest": "^24.0.2",
"typescript": "^3.4.5" "typescript": "^3.4.5"
}, },
"files": [
"dist-*/",
"bin/"
],
"homepage": "https://github.com/octokit/request-error.js#readme",
"keywords": [
"octokit",
"github",
"api",
"error"
],
"license": "MIT",
"main": "dist-node/index.js",
"module": "dist-web/index.js",
"name": "@octokit/request-error",
"pika": true,
"publishConfig": { "publishConfig": {
"access": "public" "access": "public"
}, }
"repository": {
"type": "git", ,"_resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-1.0.4.tgz"
"url": "git+https://github.com/octokit/request-error.js.git" ,"_integrity": "sha512-L4JaJDXn8SGT+5G0uX79rZLv0MNJmfGa4vb4vy1NnpjSnWDLJRy6m90udGwvMmavwsStgbv2QNkPzzTCMmL+ig=="
}, ,"_from": "@octokit/request-error@1.0.4"
"sideEffects": false, }
"source": "dist-src/index.js",
"types": "dist-types/index.d.ts",
"version": "1.0.4"
}

View file

@ -1,57 +1,41 @@
{ {
"_from": "is-plain-object@^3.0.0", "name": "is-plain-object",
"_id": "is-plain-object@3.0.0", "description": "Returns true if an object was created by the `Object` constructor.",
"_inBundle": false, "version": "3.0.0",
"_integrity": "sha512-tZIpofR+P05k8Aocp7UI/2UTa9lTJSebCXpFFoR9aibpokDj/uXBsJ8luUu0tTVYKkMU6URDUuOfJZ7koewXvg==", "homepage": "https://github.com/jonschlinkert/is-plain-object",
"_location": "/@octokit/request/is-plain-object", "author": "Jon Schlinkert (https://github.com/jonschlinkert)",
"_phantomChildren": {}, "contributors": [
"_requested": { "Jon Schlinkert (http://twitter.com/jonschlinkert)",
"type": "range", "Osman Nuri Okumuş (http://onokumus.com)",
"registry": true, "Steven Vachon (https://svachon.com)",
"raw": "is-plain-object@^3.0.0", "(https://github.com/wtgtybhertgeghgtwtg)"
"name": "is-plain-object",
"escapedName": "is-plain-object",
"rawSpec": "^3.0.0",
"saveSpec": null,
"fetchSpec": "^3.0.0"
},
"_requiredBy": [
"/@octokit/request"
], ],
"_resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-3.0.0.tgz", "repository": "jonschlinkert/is-plain-object",
"_shasum": "47bfc5da1b5d50d64110806c199359482e75a928",
"_spec": "is-plain-object@^3.0.0",
"_where": "C:\\Users\\Administrator\\Documents\\setup-node\\node_modules\\@octokit\\request",
"author": {
"name": "Jon Schlinkert",
"url": "https://github.com/jonschlinkert"
},
"bugs": { "bugs": {
"url": "https://github.com/jonschlinkert/is-plain-object/issues" "url": "https://github.com/jonschlinkert/is-plain-object/issues"
}, },
"bundleDependencies": false, "license": "MIT",
"contributors": [ "main": "index.cjs.js",
{ "module": "index.js",
"name": "Jon Schlinkert", "types": "index.d.ts",
"url": "http://twitter.com/jonschlinkert" "files": [
}, "index.d.ts",
{ "index.js",
"name": "Osman Nuri Okumuş", "index.cjs.js"
"url": "http://onokumus.com"
},
{
"name": "Steven Vachon",
"url": "https://svachon.com"
},
{
"url": "https://github.com/wtgtybhertgeghgtwtg"
}
], ],
"engines": {
"node": ">=0.10.0"
},
"scripts": {
"build": "rollup -c",
"test_browser": "mocha-headless-chrome --args=disable-web-security -f test/browser.html",
"test_node": "mocha -r esm",
"test": "npm run test_node && npm run build && npm run test_browser",
"prepare": "rollup -c"
},
"dependencies": { "dependencies": {
"isobject": "^4.0.0" "isobject": "^4.0.0"
}, },
"deprecated": false,
"description": "Returns true if an object was created by the `Object` constructor.",
"devDependencies": { "devDependencies": {
"chai": "^4.2.0", "chai": "^4.2.0",
"esm": "^3.2.22", "esm": "^3.2.22",
@ -61,15 +45,6 @@
"rollup": "^1.10.1", "rollup": "^1.10.1",
"rollup-plugin-node-resolve": "^4.2.3" "rollup-plugin-node-resolve": "^4.2.3"
}, },
"engines": {
"node": ">=0.10.0"
},
"files": [
"index.d.ts",
"index.js",
"index.cjs.js"
],
"homepage": "https://github.com/jonschlinkert/is-plain-object",
"keywords": [ "keywords": [
"check", "check",
"is", "is",
@ -84,22 +59,6 @@
"typeof", "typeof",
"value" "value"
], ],
"license": "MIT",
"main": "index.cjs.js",
"module": "index.js",
"name": "is-plain-object",
"repository": {
"type": "git",
"url": "git+https://github.com/jonschlinkert/is-plain-object.git"
},
"scripts": {
"build": "rollup -c",
"prepare": "rollup -c",
"test": "npm run test_node && npm run build && npm run test_browser",
"test_browser": "mocha-headless-chrome --args=disable-web-security -f test/browser.html",
"test_node": "mocha -r esm"
},
"types": "index.d.ts",
"verb": { "verb": {
"toc": false, "toc": false,
"layout": "default", "layout": "default",
@ -119,6 +78,9 @@
"lint": { "lint": {
"reflinks": true "reflinks": true
} }
}, }
"version": "3.0.0"
} ,"_resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-3.0.0.tgz"
,"_integrity": "sha512-tZIpofR+P05k8Aocp7UI/2UTa9lTJSebCXpFFoR9aibpokDj/uXBsJ8luUu0tTVYKkMU6URDUuOfJZ7koewXvg=="
,"_from": "is-plain-object@3.0.0"
}

View file

@ -1,74 +1,43 @@
{ {
"_from": "isobject@^4.0.0", "name": "isobject",
"_id": "isobject@4.0.0", "description": "Returns true if the value is an object and not an array or null.",
"_inBundle": false, "version": "4.0.0",
"_integrity": "sha512-S/2fF5wH8SJA/kmwr6HYhK/RI/OkhD84k8ntalo0iJjZikgq1XFvR5M8NPT1x5F7fBwCG3qHfnzeP/Vh/ZxCUA==", "homepage": "https://github.com/jonschlinkert/isobject",
"_location": "/@octokit/request/isobject", "author": "Jon Schlinkert (https://github.com/jonschlinkert)",
"_phantomChildren": {}, "contributors": [
"_requested": { "(https://github.com/LeSuisse)",
"type": "range", "Brian Woodward (https://twitter.com/doowb)",
"registry": true, "Jon Schlinkert (http://twitter.com/jonschlinkert)",
"raw": "isobject@^4.0.0", "Magnús Dæhlen (https://github.com/magnudae)",
"name": "isobject", "Tom MacWright (https://macwright.org)"
"escapedName": "isobject",
"rawSpec": "^4.0.0",
"saveSpec": null,
"fetchSpec": "^4.0.0"
},
"_requiredBy": [
"/@octokit/request/is-plain-object"
], ],
"_resolved": "https://registry.npmjs.org/isobject/-/isobject-4.0.0.tgz", "repository": "jonschlinkert/isobject",
"_shasum": "3f1c9155e73b192022a80819bacd0343711697b0",
"_spec": "isobject@^4.0.0",
"_where": "C:\\Users\\Administrator\\Documents\\setup-node\\node_modules\\@octokit\\request\\node_modules\\is-plain-object",
"author": {
"name": "Jon Schlinkert",
"url": "https://github.com/jonschlinkert"
},
"bugs": { "bugs": {
"url": "https://github.com/jonschlinkert/isobject/issues" "url": "https://github.com/jonschlinkert/isobject/issues"
}, },
"bundleDependencies": false, "license": "MIT",
"contributors": [ "files": [
{ "index.d.ts",
"url": "https://github.com/LeSuisse" "index.cjs.js",
}, "index.js"
{
"name": "Brian Woodward",
"url": "https://twitter.com/doowb"
},
{
"name": "Jon Schlinkert",
"url": "http://twitter.com/jonschlinkert"
},
{
"name": "Magnús Dæhlen",
"url": "https://github.com/magnudae"
},
{
"name": "Tom MacWright",
"url": "https://macwright.org"
}
], ],
"main": "index.cjs.js",
"module": "index.js",
"engines": {
"node": ">=0.10.0"
},
"scripts": {
"build": "rollup -i index.js -o index.cjs.js -f cjs",
"test": "mocha -r esm",
"prepublish": "npm run build"
},
"dependencies": {}, "dependencies": {},
"deprecated": false,
"description": "Returns true if the value is an object and not an array or null.",
"devDependencies": { "devDependencies": {
"esm": "^3.2.22", "esm": "^3.2.22",
"gulp-format-md": "^0.1.9", "gulp-format-md": "^0.1.9",
"mocha": "^2.4.5", "mocha": "^2.4.5",
"rollup": "^1.10.1" "rollup": "^1.10.1"
}, },
"engines": {
"node": ">=0.10.0"
},
"files": [
"index.d.ts",
"index.cjs.js",
"index.js"
],
"homepage": "https://github.com/jonschlinkert/isobject",
"keywords": [ "keywords": [
"check", "check",
"is", "is",
@ -83,19 +52,6 @@
"typeof", "typeof",
"value" "value"
], ],
"license": "MIT",
"main": "index.cjs.js",
"module": "index.js",
"name": "isobject",
"repository": {
"type": "git",
"url": "git+https://github.com/jonschlinkert/isobject.git"
},
"scripts": {
"build": "rollup -i index.js -o index.cjs.js -f cjs",
"prepublish": "npm run build",
"test": "mocha -r esm"
},
"types": "index.d.ts", "types": "index.d.ts",
"verb": { "verb": {
"related": { "related": {
@ -120,6 +76,9 @@
"reflinks": [ "reflinks": [
"verb" "verb"
] ]
}, }
"version": "4.0.0"
} ,"_resolved": "https://registry.npmjs.org/isobject/-/isobject-4.0.0.tgz"
,"_integrity": "sha512-S/2fF5wH8SJA/kmwr6HYhK/RI/OkhD84k8ntalo0iJjZikgq1XFvR5M8NPT1x5F7fBwCG3qHfnzeP/Vh/ZxCUA=="
,"_from": "isobject@4.0.0"
}

View file

@ -1,72 +1,39 @@
{ {
"_from": "universal-user-agent@^3.0.0", "name": "universal-user-agent",
"_id": "universal-user-agent@3.0.0", "version": "3.0.0",
"_inBundle": false,
"_integrity": "sha512-T3siHThqoj5X0benA5H0qcDnrKGXzU8TKoX15x/tQHw1hQBvIEBHjxQ2klizYsqBOO/Q+WuxoQUihadeeqDnoA==",
"_location": "/@octokit/request/universal-user-agent",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "universal-user-agent@^3.0.0",
"name": "universal-user-agent",
"escapedName": "universal-user-agent",
"rawSpec": "^3.0.0",
"saveSpec": null,
"fetchSpec": "^3.0.0"
},
"_requiredBy": [
"/@octokit/request"
],
"_resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-3.0.0.tgz",
"_shasum": "4cc88d68097bffd7ac42e3b7c903e7481424b4b9",
"_spec": "universal-user-agent@^3.0.0",
"_where": "C:\\Users\\Administrator\\Documents\\setup-node\\node_modules\\@octokit\\request",
"author": {
"name": "Gregor Martynus",
"url": "https://github.com/gr2m"
},
"browser": "browser.js",
"bugs": {
"url": "https://github.com/gr2m/universal-user-agent/issues"
},
"bundleDependencies": false,
"dependencies": {
"os-name": "^3.0.0"
},
"deprecated": false,
"description": "Get a user agent string in both browser and node", "description": "Get a user agent string in both browser and node",
"repository": "https://github.com/gr2m/universal-user-agent.git",
"keywords": [],
"author": "Gregor Martynus (https://github.com/gr2m)",
"license": "ISC",
"main": "index.js",
"browser": "browser.js",
"types": "index.d.ts",
"scripts": {
"coverage": "nyc report --reporter=html && open coverage/index.html",
"coverage:upload": "nyc report --reporter=text-lcov | coveralls",
"pretest": "standard",
"test": "nyc mocha \"test/*-test.js\"",
"test:browser": "cypress run --browser chrome",
"semantic-release": "semantic-release",
"travis-deploy-once": "travis-deploy-once"
},
"devDependencies": { "devDependencies": {
"chai": "^4.1.2", "chai": "^4.1.2",
"coveralls": "^3.0.2", "coveralls": "^3.0.2",
"cypress": "^3.1.0", "cypress": "^3.1.0",
"mocha": "^6.0.0", "mocha": "^6.0.0",
"nyc": "^14.0.0",
"proxyquire": "^2.1.0", "proxyquire": "^2.1.0",
"semantic-release": "^15.9.15", "nyc": "^14.0.0",
"sinon": "^7.2.4", "sinon": "^7.2.4",
"sinon-chai": "^3.2.0", "sinon-chai": "^3.2.0",
"standard": "^13.0.1", "standard": "^13.0.1",
"test": "^0.6.0", "test": "^0.6.0",
"semantic-release": "^15.9.15",
"travis-deploy-once": "^5.0.7" "travis-deploy-once": "^5.0.7"
}, },
"homepage": "https://github.com/gr2m/universal-user-agent#readme", "dependencies": {
"keywords": [], "os-name": "^3.0.0"
"license": "ISC",
"main": "index.js",
"name": "universal-user-agent",
"repository": {
"type": "git",
"url": "git+https://github.com/gr2m/universal-user-agent.git"
},
"scripts": {
"coverage": "nyc report --reporter=html && open coverage/index.html",
"coverage:upload": "nyc report --reporter=text-lcov | coveralls",
"pretest": "standard",
"semantic-release": "semantic-release",
"test": "nyc mocha \"test/*-test.js\"",
"test:browser": "cypress run --browser chrome",
"travis-deploy-once": "travis-deploy-once"
}, },
"standard": { "standard": {
"globals": [ "globals": [
@ -76,7 +43,9 @@
"afterEach", "afterEach",
"expect" "expect"
] ]
}, }
"types": "index.d.ts",
"version": "3.0.0" ,"_resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-3.0.0.tgz"
} ,"_integrity": "sha512-T3siHThqoj5X0benA5H0qcDnrKGXzU8TKoX15x/tQHw1hQBvIEBHjxQ2klizYsqBOO/Q+WuxoQUihadeeqDnoA=="
,"_from": "universal-user-agent@3.0.0"
}

View file

@ -1,35 +1,28 @@
{ {
"_from": "@octokit/request@^5.0.0", "name": "@octokit/request",
"_id": "@octokit/request@5.0.2", "description": "Send parameterized requests to GitHubs APIs with sensible defaults in browsers and Node",
"_inBundle": false, "version": "5.0.2",
"_integrity": "sha512-z1BQr43g4kOL4ZrIVBMHwi68Yg9VbkRUyuAgqCp1rU3vbYa69+2gIld/+gHclw15bJWQnhqqyEb7h5a5EqgZ0A==", "license": "MIT",
"_location": "/@octokit/request", "files": [
"_phantomChildren": { "dist-*/",
"os-name": "3.1.0" "bin/"
},
"_requested": {
"type": "range",
"registry": true,
"raw": "@octokit/request@^5.0.0",
"name": "@octokit/request",
"escapedName": "@octokit%2frequest",
"scope": "@octokit",
"rawSpec": "^5.0.0",
"saveSpec": null,
"fetchSpec": "^5.0.0"
},
"_requiredBy": [
"/@octokit/graphql",
"/@octokit/rest"
], ],
"_resolved": "https://registry.npmjs.org/@octokit/request/-/request-5.0.2.tgz", "pika": true,
"_shasum": "59a920451f24811c016ddc507adcc41aafb2dca5", "sideEffects": false,
"_spec": "@octokit/request@^5.0.0", "keywords": [
"_where": "C:\\Users\\Administrator\\Documents\\setup-node\\node_modules\\@octokit\\graphql", "octokit",
"github",
"api",
"request"
],
"homepage": "https://github.com/octokit/request.js#readme",
"bugs": { "bugs": {
"url": "https://github.com/octokit/request.js/issues" "url": "https://github.com/octokit/request.js/issues"
}, },
"bundleDependencies": false, "repository": {
"type": "git",
"url": "https://github.com/octokit/request.js.git"
},
"dependencies": { "dependencies": {
"@octokit/endpoint": "^5.1.0", "@octokit/endpoint": "^5.1.0",
"@octokit/request-error": "^1.0.1", "@octokit/request-error": "^1.0.1",
@ -39,8 +32,6 @@
"once": "^1.4.0", "once": "^1.4.0",
"universal-user-agent": "^3.0.0" "universal-user-agent": "^3.0.0"
}, },
"deprecated": false,
"description": "Send parameterized requests to GitHubs APIs with sensible defaults in browsers and Node",
"devDependencies": { "devDependencies": {
"@pika/pack": "^0.4.0", "@pika/pack": "^0.4.0",
"@pika/plugin-build-node": "^0.5.1", "@pika/plugin-build-node": "^0.5.1",
@ -59,31 +50,15 @@
"ts-jest": "^24.0.2", "ts-jest": "^24.0.2",
"typescript": "^3.4.5" "typescript": "^3.4.5"
}, },
"files": [
"dist-*/",
"bin/"
],
"homepage": "https://github.com/octokit/request.js#readme",
"keywords": [
"octokit",
"github",
"api",
"request"
],
"license": "MIT",
"main": "dist-node/index.js",
"module": "dist-web/index.js",
"name": "@octokit/request",
"pika": true,
"publishConfig": { "publishConfig": {
"access": "public" "access": "public"
}, },
"repository": {
"type": "git",
"url": "git+https://github.com/octokit/request.js.git"
},
"sideEffects": false,
"source": "dist-src/index.js", "source": "dist-src/index.js",
"types": "dist-types/index.d.ts", "types": "dist-types/index.d.ts",
"version": "5.0.2" "main": "dist-node/index.js",
} "module": "dist-web/index.js"
,"_resolved": "https://registry.npmjs.org/@octokit/request/-/request-5.0.2.tgz"
,"_integrity": "sha512-z1BQr43g4kOL4ZrIVBMHwi68Yg9VbkRUyuAgqCp1rU3vbYa69+2gIld/+gHclw15bJWQnhqqyEb7h5a5EqgZ0A=="
,"_from": "@octokit/request@5.0.2"
}

View file

@ -1,72 +1,39 @@
{ {
"_from": "universal-user-agent@^3.0.0", "name": "universal-user-agent",
"_id": "universal-user-agent@3.0.0", "version": "3.0.0",
"_inBundle": false,
"_integrity": "sha512-T3siHThqoj5X0benA5H0qcDnrKGXzU8TKoX15x/tQHw1hQBvIEBHjxQ2klizYsqBOO/Q+WuxoQUihadeeqDnoA==",
"_location": "/@octokit/rest/universal-user-agent",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "universal-user-agent@^3.0.0",
"name": "universal-user-agent",
"escapedName": "universal-user-agent",
"rawSpec": "^3.0.0",
"saveSpec": null,
"fetchSpec": "^3.0.0"
},
"_requiredBy": [
"/@octokit/rest"
],
"_resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-3.0.0.tgz",
"_shasum": "4cc88d68097bffd7ac42e3b7c903e7481424b4b9",
"_spec": "universal-user-agent@^3.0.0",
"_where": "C:\\Users\\Administrator\\Documents\\setup-node\\node_modules\\@octokit\\rest",
"author": {
"name": "Gregor Martynus",
"url": "https://github.com/gr2m"
},
"browser": "browser.js",
"bugs": {
"url": "https://github.com/gr2m/universal-user-agent/issues"
},
"bundleDependencies": false,
"dependencies": {
"os-name": "^3.0.0"
},
"deprecated": false,
"description": "Get a user agent string in both browser and node", "description": "Get a user agent string in both browser and node",
"repository": "https://github.com/gr2m/universal-user-agent.git",
"keywords": [],
"author": "Gregor Martynus (https://github.com/gr2m)",
"license": "ISC",
"main": "index.js",
"browser": "browser.js",
"types": "index.d.ts",
"scripts": {
"coverage": "nyc report --reporter=html && open coverage/index.html",
"coverage:upload": "nyc report --reporter=text-lcov | coveralls",
"pretest": "standard",
"test": "nyc mocha \"test/*-test.js\"",
"test:browser": "cypress run --browser chrome",
"semantic-release": "semantic-release",
"travis-deploy-once": "travis-deploy-once"
},
"devDependencies": { "devDependencies": {
"chai": "^4.1.2", "chai": "^4.1.2",
"coveralls": "^3.0.2", "coveralls": "^3.0.2",
"cypress": "^3.1.0", "cypress": "^3.1.0",
"mocha": "^6.0.0", "mocha": "^6.0.0",
"nyc": "^14.0.0",
"proxyquire": "^2.1.0", "proxyquire": "^2.1.0",
"semantic-release": "^15.9.15", "nyc": "^14.0.0",
"sinon": "^7.2.4", "sinon": "^7.2.4",
"sinon-chai": "^3.2.0", "sinon-chai": "^3.2.0",
"standard": "^13.0.1", "standard": "^13.0.1",
"test": "^0.6.0", "test": "^0.6.0",
"semantic-release": "^15.9.15",
"travis-deploy-once": "^5.0.7" "travis-deploy-once": "^5.0.7"
}, },
"homepage": "https://github.com/gr2m/universal-user-agent#readme", "dependencies": {
"keywords": [], "os-name": "^3.0.0"
"license": "ISC",
"main": "index.js",
"name": "universal-user-agent",
"repository": {
"type": "git",
"url": "git+https://github.com/gr2m/universal-user-agent.git"
},
"scripts": {
"coverage": "nyc report --reporter=html && open coverage/index.html",
"coverage:upload": "nyc report --reporter=text-lcov | coveralls",
"pretest": "standard",
"semantic-release": "semantic-release",
"test": "nyc mocha \"test/*-test.js\"",
"test:browser": "cypress run --browser chrome",
"travis-deploy-once": "travis-deploy-once"
}, },
"standard": { "standard": {
"globals": [ "globals": [
@ -76,7 +43,9 @@
"afterEach", "afterEach",
"expect" "expect"
] ]
}, }
"types": "index.d.ts",
"version": "3.0.0" ,"_resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-3.0.0.tgz"
} ,"_integrity": "sha512-T3siHThqoj5X0benA5H0qcDnrKGXzU8TKoX15x/tQHw1hQBvIEBHjxQ2klizYsqBOO/Q+WuxoQUihadeeqDnoA=="
,"_from": "universal-user-agent@3.0.0"
}

View file

@ -1,44 +1,17 @@
{ {
"_from": "@octokit/rest@^16.15.0", "name": "@octokit/rest",
"_id": "@octokit/rest@16.28.7", "version": "16.28.7",
"_inBundle": false, "publishConfig": {
"_integrity": "sha512-cznFSLEhh22XD3XeqJw51OLSfyL2fcFKUO+v2Ep9MTAFfFLS1cK1Zwd1yEgQJmJoDnj4/vv3+fGGZweG+xsbIA==", "access": "public"
"_location": "/@octokit/rest",
"_phantomChildren": {
"os-name": "3.1.0"
}, },
"_requested": { "description": "GitHub REST API client for Node.js",
"type": "range", "keywords": [
"registry": true, "octokit",
"raw": "@octokit/rest@^16.15.0", "github",
"name": "@octokit/rest", "rest",
"escapedName": "@octokit%2frest", "api-client"
"scope": "@octokit",
"rawSpec": "^16.15.0",
"saveSpec": null,
"fetchSpec": "^16.15.0"
},
"_requiredBy": [
"/@actions/github"
],
"_resolved": "https://registry.npmjs.org/@octokit/rest/-/rest-16.28.7.tgz",
"_shasum": "a2c2db5b318da84144beba82d19c1a9dbdb1a1fa",
"_spec": "@octokit/rest@^16.15.0",
"_where": "C:\\Users\\Administrator\\Documents\\setup-node\\toolkit\\actions-github-0.0.0.tgz",
"author": {
"name": "Gregor Martynus",
"url": "https://github.com/gr2m"
},
"bugs": {
"url": "https://github.com/octokit/rest.js/issues"
},
"bundleDependencies": false,
"bundlesize": [
{
"path": "./dist/octokit-rest.min.js.gz",
"maxSize": "33 kB"
}
], ],
"author": "Gregor Martynus (https://github.com/gr2m)",
"contributors": [ "contributors": [
{ {
"name": "Mike de Boer", "name": "Mike de Boer",
@ -57,6 +30,7 @@
"url": "https://github.com/gr2m" "url": "https://github.com/gr2m"
} }
], ],
"repository": "https://github.com/octokit/rest.js",
"dependencies": { "dependencies": {
"@octokit/request": "^5.0.0", "@octokit/request": "^5.0.0",
"@octokit/request-error": "^1.0.2", "@octokit/request-error": "^1.0.2",
@ -72,8 +46,6 @@
"universal-user-agent": "^3.0.0", "universal-user-agent": "^3.0.0",
"url-template": "^2.0.8" "url-template": "^2.0.8"
}, },
"deprecated": false,
"description": "GitHub REST API client for Node.js",
"devDependencies": { "devDependencies": {
"@gimenete/type-writer": "^0.1.3", "@gimenete/type-writer": "^0.1.3",
"@octokit/fixtures-server": "^5.0.1", "@octokit/fixtures-server": "^5.0.1",
@ -108,29 +80,38 @@
"webpack-bundle-analyzer": "^3.0.0", "webpack-bundle-analyzer": "^3.0.0",
"webpack-cli": "^3.0.0" "webpack-cli": "^3.0.0"
}, },
"types": "index.d.ts",
"scripts": {
"coverage": "nyc report --reporter=html && open coverage/index.html",
"pretest": "standard",
"test": "nyc mocha test/mocha-node-setup.js \"test/*/**/*-test.js\"",
"test:browser": "cypress run --browser chrome",
"test:memory": "mocha test/memory-test",
"build": "npm-run-all build:*",
"build:ts": "node scripts/generate-types",
"prebuild:browser": "mkdirp dist/",
"build:browser": "npm-run-all build:browser:*",
"build:browser:development": "webpack --mode development --entry . --output-library=Octokit --output=./dist/octokit-rest.js --profile --json > dist/bundle-stats.json",
"build:browser:production": "webpack --mode production --entry . --plugin=compression-webpack-plugin --output-library=Octokit --output-path=./dist --output-filename=octokit-rest.min.js --devtool source-map",
"generate-bundle-report": "webpack-bundle-analyzer dist/bundle-stats.json --mode=static --no-open --report dist/bundle-report.html",
"generate-routes": "node scripts/generate-routes",
"prevalidate:ts": "npm run -s build:ts",
"validate:ts": "tsc --target es6 --noImplicitAny index.d.ts",
"postvalidate:ts": "tsc --noEmit --target es6 test/typescript-validate.ts",
"start-fixtures-server": "octokit-fixtures-server"
},
"license": "MIT",
"files": [ "files": [
"index.js", "index.js",
"index.d.ts", "index.d.ts",
"lib", "lib",
"plugins" "plugins"
], ],
"homepage": "https://github.com/octokit/rest.js#readme",
"keywords": [
"octokit",
"github",
"rest",
"api-client"
],
"license": "MIT",
"name": "@octokit/rest",
"nyc": { "nyc": {
"ignore": [ "ignore": [
"test" "test"
] ]
}, },
"publishConfig": {
"access": "public"
},
"release": { "release": {
"publish": [ "publish": [
"@semantic-release/npm", "@semantic-release/npm",
@ -143,29 +124,6 @@
} }
] ]
}, },
"repository": {
"type": "git",
"url": "git+https://github.com/octokit/rest.js.git"
},
"scripts": {
"build": "npm-run-all build:*",
"build:browser": "npm-run-all build:browser:*",
"build:browser:development": "webpack --mode development --entry . --output-library=Octokit --output=./dist/octokit-rest.js --profile --json > dist/bundle-stats.json",
"build:browser:production": "webpack --mode production --entry . --plugin=compression-webpack-plugin --output-library=Octokit --output-path=./dist --output-filename=octokit-rest.min.js --devtool source-map",
"build:ts": "node scripts/generate-types",
"coverage": "nyc report --reporter=html && open coverage/index.html",
"generate-bundle-report": "webpack-bundle-analyzer dist/bundle-stats.json --mode=static --no-open --report dist/bundle-report.html",
"generate-routes": "node scripts/generate-routes",
"postvalidate:ts": "tsc --noEmit --target es6 test/typescript-validate.ts",
"prebuild:browser": "mkdirp dist/",
"pretest": "standard",
"prevalidate:ts": "npm run -s build:ts",
"start-fixtures-server": "octokit-fixtures-server",
"test": "nyc mocha test/mocha-node-setup.js \"test/*/**/*-test.js\"",
"test:browser": "cypress run --browser chrome",
"test:memory": "mocha test/memory-test",
"validate:ts": "tsc --target es6 --noImplicitAny index.d.ts"
},
"standard": { "standard": {
"globals": [ "globals": [
"describe", "describe",
@ -181,6 +139,14 @@
"/docs" "/docs"
] ]
}, },
"types": "index.d.ts", "bundlesize": [
"version": "16.28.7" {
} "path": "./dist/octokit-rest.min.js.gz",
"maxSize": "33 kB"
}
]
,"_resolved": "https://registry.npmjs.org/@octokit/rest/-/rest-16.28.7.tgz"
,"_integrity": "sha512-cznFSLEhh22XD3XeqJw51OLSfyL2fcFKUO+v2Ep9MTAFfFLS1cK1Zwd1yEgQJmJoDnj4/vv3+fGGZweG+xsbIA=="
,"_from": "@octokit/rest@16.28.7"
}

67
node_modules/atob-lite/package.json generated vendored
View file

@ -1,40 +1,21 @@
{ {
"_from": "atob-lite@^2.0.0", "name": "atob-lite",
"_id": "atob-lite@2.0.0", "version": "2.0.0",
"_inBundle": false, "description": "Smallest/simplest possible means of using atob with both Node and browserify",
"_integrity": "sha1-D+9a1G8b16hQLGVyfwNn1e5D1pY=", "main": "atob-node.js",
"_location": "/atob-lite", "browser": "atob-browser.js",
"_phantomChildren": {}, "license": "MIT",
"_requested": { "scripts": {
"type": "range", "test": "npm run test-node && npm run test-browser",
"registry": true, "test-node": "node test | tap-spec",
"raw": "atob-lite@^2.0.0", "test-browser": "browserify test | smokestack | tap-spec"
"name": "atob-lite",
"escapedName": "atob-lite",
"rawSpec": "^2.0.0",
"saveSpec": null,
"fetchSpec": "^2.0.0"
}, },
"_requiredBy": [
"/@octokit/rest"
],
"_resolved": "https://registry.npmjs.org/atob-lite/-/atob-lite-2.0.0.tgz",
"_shasum": "0fef5ad46f1bd7a8502c65727f0367d5ee43d696",
"_spec": "atob-lite@^2.0.0",
"_where": "C:\\Users\\Administrator\\Documents\\setup-node\\node_modules\\@octokit\\rest",
"author": { "author": {
"name": "Hugh Kennedy", "name": "Hugh Kennedy",
"email": "hughskennedy@gmail.com", "email": "hughskennedy@gmail.com",
"url": "http://hughsk.io/" "url": "http://hughsk.io/"
}, },
"browser": "atob-browser.js",
"bugs": {
"url": "https://github.com/hughsk/atob-lite/issues"
},
"bundleDependencies": false,
"dependencies": {}, "dependencies": {},
"deprecated": false,
"description": "Smallest/simplest possible means of using atob with both Node and browserify",
"devDependencies": { "devDependencies": {
"browserify": "^10.2.4", "browserify": "^10.2.4",
"smokestack": "^3.3.0", "smokestack": "^3.3.0",
@ -42,7 +23,10 @@
"tap-spec": "^4.0.0", "tap-spec": "^4.0.0",
"tape": "^4.0.0" "tape": "^4.0.0"
}, },
"homepage": "https://github.com/hughsk/atob-lite", "repository": {
"type": "git",
"url": "git://github.com/hughsk/atob-lite.git"
},
"keywords": [ "keywords": [
"atob", "atob",
"base64", "base64",
@ -51,17 +35,12 @@
"node", "node",
"shared" "shared"
], ],
"license": "MIT", "homepage": "https://github.com/hughsk/atob-lite",
"main": "atob-node.js", "bugs": {
"name": "atob-lite", "url": "https://github.com/hughsk/atob-lite/issues"
"repository": { }
"type": "git",
"url": "git://github.com/hughsk/atob-lite.git" ,"_resolved": "https://registry.npmjs.org/atob-lite/-/atob-lite-2.0.0.tgz"
}, ,"_integrity": "sha1-D+9a1G8b16hQLGVyfwNn1e5D1pY="
"scripts": { ,"_from": "atob-lite@2.0.0"
"test": "npm run test-node && npm run test-browser", }
"test-browser": "browserify test | smokestack | tap-spec",
"test-node": "node test | tap-spec"
},
"version": "2.0.0"
}

View file

@ -1,37 +1,45 @@
{ {
"_from": "before-after-hook@^2.0.0", "name": "before-after-hook",
"_id": "before-after-hook@2.1.0", "version": "2.1.0",
"_inBundle": false, "description": "asynchronous before/error/after hooks for internal functionality",
"_integrity": "sha512-IWIbu7pMqyw3EAJHzzHbWa85b6oud/yfKYg5rqB5hNE8CeMi3nX+2C2sj0HswfblST86hpVEOAb9x34NZd6P7A==", "files": [
"_location": "/before-after-hook", "index.js",
"_phantomChildren": {}, "index.d.ts",
"_requested": { "lib"
"type": "range",
"registry": true,
"raw": "before-after-hook@^2.0.0",
"name": "before-after-hook",
"escapedName": "before-after-hook",
"rawSpec": "^2.0.0",
"saveSpec": null,
"fetchSpec": "^2.0.0"
},
"_requiredBy": [
"/@octokit/rest"
], ],
"_resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-2.1.0.tgz", "types": "./index.d.ts",
"_shasum": "b6c03487f44e24200dd30ca5e6a1979c5d2fb635", "scripts": {
"_spec": "before-after-hook@^2.0.0", "prebuild": "rimraf dist && mkdirp dist",
"_where": "C:\\Users\\Administrator\\Documents\\setup-node\\node_modules\\@octokit\\rest", "build": "browserify index.js --standalone=Hook > dist/before-after-hook.js",
"author": { "postbuild": "uglifyjs dist/before-after-hook.js -mc > dist/before-after-hook.min.js",
"name": "Gregor Martynus" "pretest": "standard",
"test": "npm run -s test:node | tap-spec",
"posttest": "npm run validate:ts",
"test:node": "node test",
"test:watch": "gaze 'clear && node test | tap-min' 'test/**/*.js' 'index.js' 'lib/**/*.js'",
"test:coverage": "istanbul cover test",
"test:coverage:upload": "istanbul-coveralls",
"validate:ts": "tsc --strict --target es6 index.d.ts",
"postvalidate:ts": "tsc --noEmit --strict --target es6 test/typescript-validate.ts",
"presemantic-release": "npm run build",
"semantic-release": "semantic-release"
}, },
"repository": {
"type": "git",
"url": "https://github.com/gr2m/before-after-hook.git"
},
"keywords": [
"hook",
"hooks",
"api"
],
"author": "Gregor Martynus",
"license": "Apache-2.0",
"bugs": { "bugs": {
"url": "https://github.com/gr2m/before-after-hook/issues" "url": "https://github.com/gr2m/before-after-hook/issues"
}, },
"bundleDependencies": false, "homepage": "https://github.com/gr2m/before-after-hook#readme",
"dependencies": {}, "dependencies": {},
"deprecated": false,
"description": "asynchronous before/error/after hooks for internal functionality",
"devDependencies": { "devDependencies": {
"browserify": "^16.0.0", "browserify": "^16.0.0",
"gaze-cli": "^0.2.0", "gaze-cli": "^0.2.0",
@ -48,19 +56,6 @@
"typescript": "^3.5.3", "typescript": "^3.5.3",
"uglify-js": "^3.0.0" "uglify-js": "^3.0.0"
}, },
"files": [
"index.js",
"index.d.ts",
"lib"
],
"homepage": "https://github.com/gr2m/before-after-hook#readme",
"keywords": [
"hook",
"hooks",
"api"
],
"license": "Apache-2.0",
"name": "before-after-hook",
"release": { "release": {
"publish": [ "publish": [
"@semantic-release/npm", "@semantic-release/npm",
@ -71,27 +66,9 @@
] ]
} }
] ]
}, }
"repository": {
"type": "git", ,"_resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-2.1.0.tgz"
"url": "git+https://github.com/gr2m/before-after-hook.git" ,"_integrity": "sha512-IWIbu7pMqyw3EAJHzzHbWa85b6oud/yfKYg5rqB5hNE8CeMi3nX+2C2sj0HswfblST86hpVEOAb9x34NZd6P7A=="
}, ,"_from": "before-after-hook@2.1.0"
"scripts": { }
"build": "browserify index.js --standalone=Hook > dist/before-after-hook.js",
"postbuild": "uglifyjs dist/before-after-hook.js -mc > dist/before-after-hook.min.js",
"posttest": "npm run validate:ts",
"postvalidate:ts": "tsc --noEmit --strict --target es6 test/typescript-validate.ts",
"prebuild": "rimraf dist && mkdirp dist",
"presemantic-release": "npm run build",
"pretest": "standard",
"semantic-release": "semantic-release",
"test": "npm run -s test:node | tap-spec",
"test:coverage": "istanbul cover test",
"test:coverage:upload": "istanbul-coveralls",
"test:node": "node test",
"test:watch": "gaze 'clear && node test | tap-min' 'test/**/*.js' 'index.js' 'lib/**/*.js'",
"validate:ts": "tsc --strict --target es6 index.d.ts"
},
"types": "./index.d.ts",
"version": "2.1.0"
}

67
node_modules/btoa-lite/package.json generated vendored
View file

@ -1,47 +1,31 @@
{ {
"_from": "btoa-lite@^1.0.0", "name": "btoa-lite",
"_id": "btoa-lite@1.0.0", "version": "1.0.0",
"_inBundle": false, "description": "Smallest/simplest possible means of using btoa with both Node and browserify",
"_integrity": "sha1-M3dm2hWAEhD92VbCLpxokaudAzc=", "main": "btoa-node.js",
"_location": "/btoa-lite", "browser": "btoa-browser.js",
"_phantomChildren": {}, "license": "MIT",
"_requested": { "scripts": {
"type": "range", "test": "npm run test-node && npm run test-browser",
"registry": true, "test-node": "node test | tap-spec",
"raw": "btoa-lite@^1.0.0", "test-browser": "browserify test | smokestack | tap-spec"
"name": "btoa-lite",
"escapedName": "btoa-lite",
"rawSpec": "^1.0.0",
"saveSpec": null,
"fetchSpec": "^1.0.0"
}, },
"_requiredBy": [
"/@octokit/rest"
],
"_resolved": "https://registry.npmjs.org/btoa-lite/-/btoa-lite-1.0.0.tgz",
"_shasum": "337766da15801210fdd956c22e9c6891ab9d0337",
"_spec": "btoa-lite@^1.0.0",
"_where": "C:\\Users\\Administrator\\Documents\\setup-node\\node_modules\\@octokit\\rest",
"author": { "author": {
"name": "Hugh Kennedy", "name": "Hugh Kennedy",
"email": "hughskennedy@gmail.com", "email": "hughskennedy@gmail.com",
"url": "http://hughsk.io/" "url": "http://hughsk.io/"
}, },
"browser": "btoa-browser.js",
"bugs": {
"url": "https://github.com/hughsk/btoa-lite/issues"
},
"bundleDependencies": false,
"dependencies": {}, "dependencies": {},
"deprecated": false,
"description": "Smallest/simplest possible means of using btoa with both Node and browserify",
"devDependencies": { "devDependencies": {
"browserify": "^10.2.4", "browserify": "^10.2.4",
"smokestack": "^3.3.0", "smokestack": "^3.3.0",
"tap-spec": "^4.0.0", "tap-spec": "^4.0.0",
"tape": "^4.0.0" "tape": "^4.0.0"
}, },
"homepage": "https://github.com/hughsk/btoa-lite", "repository": {
"type": "git",
"url": "git://github.com/hughsk/btoa-lite.git"
},
"keywords": [ "keywords": [
"btoa", "btoa",
"base64", "base64",
@ -50,17 +34,12 @@
"node", "node",
"shared" "shared"
], ],
"license": "MIT", "homepage": "https://github.com/hughsk/btoa-lite",
"main": "btoa-node.js", "bugs": {
"name": "btoa-lite", "url": "https://github.com/hughsk/btoa-lite/issues"
"repository": { }
"type": "git",
"url": "git://github.com/hughsk/btoa-lite.git" ,"_resolved": "https://registry.npmjs.org/btoa-lite/-/btoa-lite-1.0.0.tgz"
}, ,"_integrity": "sha1-M3dm2hWAEhD92VbCLpxokaudAzc="
"scripts": { ,"_from": "btoa-lite@1.0.0"
"test": "npm run test-node && npm run test-browser", }
"test-browser": "browserify test | smokestack | tap-spec",
"test-node": "node test | tap-spec"
},
"version": "1.0.0"
}

View file

@ -1,15 +0,0 @@
#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
case `uname` in
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
esac
if [ -x "$basedir/node" ]; then
"$basedir/node" "$basedir/../semver/bin/semver" "$@"
ret=$?
else
node "$basedir/../semver/bin/semver" "$@"
ret=$?
fi
exit $ret

1
node_modules/cross-spawn/node_modules/.bin/semver generated vendored Symbolic link
View file

@ -0,0 +1 @@
../semver/bin/semver

View file

@ -1,7 +0,0 @@
@IF EXIST "%~dp0\node.exe" (
"%~dp0\node.exe" "%~dp0\..\semver\bin\semver" %*
) ELSE (
@SETLOCAL
@SET PATHEXT=%PATHEXT:;.JS;=;%
node "%~dp0\..\semver\bin\semver" %*
)

0
node_modules/cross-spawn/node_modules/semver/bin/semver generated vendored Normal file → Executable file
View file

View file

@ -1,64 +1,32 @@
{ {
"_args": [ "name": "semver",
[ "version": "5.7.0",
"semver@5.7.0",
"C:\\Users\\Administrator\\Documents\\setup-node"
]
],
"_development": true,
"_from": "semver@5.7.0",
"_id": "semver@5.7.0",
"_inBundle": false,
"_integrity": "sha512-Ya52jSX2u7QKghxeoFGpLwCtGlt7j0oY9DYb5apt9nPlJ42ID+ulTXESnt/qAQcoSERyZ5sl3LDIOw0nAn/5DA==",
"_location": "/cross-spawn/semver",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "semver@5.7.0",
"name": "semver",
"escapedName": "semver",
"rawSpec": "5.7.0",
"saveSpec": null,
"fetchSpec": "5.7.0"
},
"_requiredBy": [
"/cross-spawn"
],
"_resolved": "https://registry.npmjs.org/semver/-/semver-5.7.0.tgz",
"_spec": "5.7.0",
"_where": "C:\\Users\\Administrator\\Documents\\setup-node",
"bin": {
"semver": "./bin/semver"
},
"bugs": {
"url": "https://github.com/npm/node-semver/issues"
},
"description": "The semantic version parser used by npm.", "description": "The semantic version parser used by npm.",
"main": "semver.js",
"scripts": {
"test": "tap",
"preversion": "npm test",
"postversion": "npm publish",
"postpublish": "git push origin --all; git push origin --tags"
},
"devDependencies": { "devDependencies": {
"tap": "^13.0.0-rc.18" "tap": "^13.0.0-rc.18"
}, },
"license": "ISC",
"repository": "https://github.com/npm/node-semver",
"bin": {
"semver": "./bin/semver"
},
"files": [ "files": [
"bin", "bin",
"range.bnf", "range.bnf",
"semver.js" "semver.js"
], ],
"homepage": "https://github.com/npm/node-semver#readme",
"license": "ISC",
"main": "semver.js",
"name": "semver",
"repository": {
"type": "git",
"url": "git+https://github.com/npm/node-semver.git"
},
"scripts": {
"postpublish": "git push origin --all; git push origin --tags",
"postversion": "npm publish",
"preversion": "npm test",
"test": "tap"
},
"tap": { "tap": {
"check-coverage": true "check-coverage": true
}, }
"version": "5.7.0"
} ,"_resolved": "https://registry.npmjs.org/semver/-/semver-5.7.0.tgz"
,"_integrity": "sha512-Ya52jSX2u7QKghxeoFGpLwCtGlt7j0oY9DYb5apt9nPlJ42ID+ulTXESnt/qAQcoSERyZ5sl3LDIOw0nAn/5DA=="
,"_from": "semver@5.7.0"
}

125
node_modules/cross-spawn/package.json generated vendored
View file

@ -1,39 +1,46 @@
{ {
"_args": [ "name": "cross-spawn",
[ "version": "6.0.5",
"cross-spawn@6.0.5", "description": "Cross platform child_process#spawn and child_process#spawnSync",
"C:\\Users\\Administrator\\Documents\\setup-node" "keywords": [
"spawn",
"spawnSync",
"windows",
"cross-platform",
"path-ext",
"shebang",
"cmd",
"execute"
],
"author": "André Cruz <andre@moxy.studio>",
"homepage": "https://github.com/moxystudio/node-cross-spawn",
"repository": {
"type": "git",
"url": "git@github.com:moxystudio/node-cross-spawn.git"
},
"license": "MIT",
"main": "index.js",
"files": [
"lib"
],
"scripts": {
"lint": "eslint .",
"test": "jest --env node --coverage",
"prerelease": "npm t && npm run lint",
"release": "standard-version",
"precommit": "lint-staged",
"commitmsg": "commitlint -e $GIT_PARAMS"
},
"standard-version": {
"scripts": {
"posttag": "git push --follow-tags origin master && npm publish"
}
},
"lint-staged": {
"*.js": [
"eslint --fix",
"git add"
] ]
],
"_development": true,
"_from": "cross-spawn@6.0.5",
"_id": "cross-spawn@6.0.5",
"_inBundle": false,
"_integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==",
"_location": "/cross-spawn",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "cross-spawn@6.0.5",
"name": "cross-spawn",
"escapedName": "cross-spawn",
"rawSpec": "6.0.5",
"saveSpec": null,
"fetchSpec": "6.0.5"
},
"_requiredBy": [
"/execa"
],
"_resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz",
"_spec": "6.0.5",
"_where": "C:\\Users\\Administrator\\Documents\\setup-node",
"author": {
"name": "André Cruz",
"email": "andre@moxy.studio"
},
"bugs": {
"url": "https://github.com/moxystudio/node-cross-spawn/issues"
}, },
"commitlint": { "commitlint": {
"extends": [ "extends": [
@ -47,7 +54,6 @@
"shebang-command": "^1.2.0", "shebang-command": "^1.2.0",
"which": "^1.2.9" "which": "^1.2.9"
}, },
"description": "Cross platform child_process#spawn and child_process#spawnSync",
"devDependencies": { "devDependencies": {
"@commitlint/cli": "^6.0.0", "@commitlint/cli": "^6.0.0",
"@commitlint/config-conventional": "^6.0.2", "@commitlint/config-conventional": "^6.0.2",
@ -66,46 +72,9 @@
}, },
"engines": { "engines": {
"node": ">=4.8" "node": ">=4.8"
}, }
"files": [
"lib" ,"_resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz"
], ,"_integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ=="
"homepage": "https://github.com/moxystudio/node-cross-spawn", ,"_from": "cross-spawn@6.0.5"
"keywords": [ }
"spawn",
"spawnSync",
"windows",
"cross-platform",
"path-ext",
"shebang",
"cmd",
"execute"
],
"license": "MIT",
"lint-staged": {
"*.js": [
"eslint --fix",
"git add"
]
},
"main": "index.js",
"name": "cross-spawn",
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/moxystudio/node-cross-spawn.git"
},
"scripts": {
"commitmsg": "commitlint -e $GIT_PARAMS",
"lint": "eslint .",
"precommit": "lint-staged",
"prerelease": "npm t && npm run lint",
"release": "standard-version",
"test": "jest --env node --coverage"
},
"standard-version": {
"scripts": {
"posttag": "git push --follow-tags origin master && npm publish"
}
},
"version": "6.0.5"
}

86
node_modules/deepmerge/package.json generated vendored
View file

@ -1,34 +1,30 @@
{ {
"_from": "deepmerge@4.0.0", "name": "deepmerge",
"_id": "deepmerge@4.0.0",
"_inBundle": false,
"_integrity": "sha512-YZ1rOP5+kHor4hMAH+HRQnBQHg+wvS1un1hAOuIcxcBy0hzcUf6Jg2a1w65kpoOUnurOfZbERwjI1TfZxNjcww==",
"_location": "/deepmerge",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "deepmerge@4.0.0",
"name": "deepmerge",
"escapedName": "deepmerge",
"rawSpec": "4.0.0",
"saveSpec": null,
"fetchSpec": "4.0.0"
},
"_requiredBy": [
"/@octokit/endpoint"
],
"_resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.0.0.tgz",
"_shasum": "3e3110ca29205f120d7cb064960a39c3d2087c09",
"_spec": "deepmerge@4.0.0",
"_where": "C:\\Users\\Administrator\\Documents\\setup-node\\node_modules\\@octokit\\endpoint",
"bugs": {
"url": "https://github.com/TehShrike/deepmerge/issues"
},
"bundleDependencies": false,
"dependencies": {},
"deprecated": false,
"description": "A library for deep (recursive) merging of Javascript objects", "description": "A library for deep (recursive) merging of Javascript objects",
"keywords": [
"merge",
"deep",
"extend",
"copy",
"clone",
"recursive"
],
"version": "4.0.0",
"homepage": "https://github.com/TehShrike/deepmerge",
"repository": {
"type": "git",
"url": "git://github.com/TehShrike/deepmerge.git"
},
"main": "dist/cjs.js",
"engines": {
"node": ">=0.10.0"
},
"scripts": {
"build": "rollup -c",
"test": "npm run build && tape test/*.js && jsmd readme.md && npm run test:typescript",
"test:typescript": "tsc --noEmit test/typescript.ts && ts-node test/typescript.ts",
"size": "npm run build && uglifyjs --compress --mangle -- ./dist/umd.js | gzip -c | wc -c"
},
"devDependencies": { "devDependencies": {
"@types/node": "^8.10.49", "@types/node": "^8.10.49",
"is-mergeable-object": "1.1.0", "is-mergeable-object": "1.1.0",
@ -42,30 +38,10 @@
"typescript": "=2.2.2", "typescript": "=2.2.2",
"uglify-js": "^3.6.0" "uglify-js": "^3.6.0"
}, },
"engines": {
"node": ">=0.10.0"
},
"homepage": "https://github.com/TehShrike/deepmerge",
"keywords": [
"merge",
"deep",
"extend",
"copy",
"clone",
"recursive"
],
"license": "MIT", "license": "MIT",
"main": "dist/cjs.js", "dependencies": {}
"name": "deepmerge",
"repository": { ,"_resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.0.0.tgz"
"type": "git", ,"_integrity": "sha512-YZ1rOP5+kHor4hMAH+HRQnBQHg+wvS1un1hAOuIcxcBy0hzcUf6Jg2a1w65kpoOUnurOfZbERwjI1TfZxNjcww=="
"url": "git://github.com/TehShrike/deepmerge.git" ,"_from": "deepmerge@4.0.0"
}, }
"scripts": {
"build": "rollup -c",
"size": "npm run build && uglifyjs --compress --mangle -- ./dist/umd.js | gzip -c | wc -c",
"test": "npm run build && tape test/*.js && jsmd readme.md && npm run test:typescript",
"test:typescript": "tsc --noEmit test/typescript.ts && ts-node test/typescript.ts"
},
"version": "4.0.0"
}

View file

@ -1,36 +1,28 @@
{ {
"_from": "deprecation@^2.0.0", "name": "deprecation",
"_id": "deprecation@2.3.1",
"_inBundle": false,
"_integrity": "sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ==",
"_location": "/deprecation",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "deprecation@^2.0.0",
"name": "deprecation",
"escapedName": "deprecation",
"rawSpec": "^2.0.0",
"saveSpec": null,
"fetchSpec": "^2.0.0"
},
"_requiredBy": [
"/@octokit/request",
"/@octokit/request-error",
"/@octokit/rest"
],
"_resolved": "https://registry.npmjs.org/deprecation/-/deprecation-2.3.1.tgz",
"_shasum": "6368cbdb40abf3373b525ac87e4a260c3a700919",
"_spec": "deprecation@^2.0.0",
"_where": "C:\\Users\\Administrator\\Documents\\setup-node\\node_modules\\@octokit\\request",
"bugs": {
"url": "https://github.com/gr2m/deprecation/issues"
},
"bundleDependencies": false,
"dependencies": {},
"deprecated": false,
"description": "Log a deprecation message with stack", "description": "Log a deprecation message with stack",
"version": "2.3.1",
"license": "ISC",
"files": [
"dist-*/",
"bin/"
],
"esnext": "dist-src/index.js",
"main": "dist-node/index.js",
"module": "dist-web/index.js",
"types": "dist-types/index.d.ts",
"pika": true,
"sideEffects": false,
"keywords": [
"deprecate",
"deprecated",
"deprecation"
],
"repository": {
"type": "git",
"url": "https://github.com/gr2m/deprecation.git"
},
"dependencies": {},
"devDependencies": { "devDependencies": {
"@pika/pack": "^0.3.7", "@pika/pack": "^0.3.7",
"@pika/plugin-build-node": "^0.4.0", "@pika/plugin-build-node": "^0.4.0",
@ -38,28 +30,9 @@
"@pika/plugin-build-web": "^0.4.0", "@pika/plugin-build-web": "^0.4.0",
"@pika/plugin-standard-pkg": "^0.4.0", "@pika/plugin-standard-pkg": "^0.4.0",
"semantic-release": "^15.13.3" "semantic-release": "^15.13.3"
}, }
"esnext": "dist-src/index.js",
"files": [ ,"_resolved": "https://registry.npmjs.org/deprecation/-/deprecation-2.3.1.tgz"
"dist-*/", ,"_integrity": "sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ=="
"bin/" ,"_from": "deprecation@2.3.1"
], }
"homepage": "https://github.com/gr2m/deprecation#readme",
"keywords": [
"deprecate",
"deprecated",
"deprecation"
],
"license": "ISC",
"main": "dist-node/index.js",
"module": "dist-web/index.js",
"name": "deprecation",
"pika": true,
"repository": {
"type": "git",
"url": "git+https://github.com/gr2m/deprecation.git"
},
"sideEffects": false,
"types": "dist-types/index.d.ts",
"version": "2.3.1"
}

View file

@ -1,48 +1,20 @@
{ {
"_args": [ "name": "end-of-stream",
[ "version": "1.4.1",
"end-of-stream@1.4.1", "description": "Call a callback when a readable/writable/duplex stream has completed or failed.",
"C:\\Users\\Administrator\\Documents\\setup-node" "repository": {
] "type": "git",
], "url": "git://github.com/mafintosh/end-of-stream.git"
"_development": true,
"_from": "end-of-stream@1.4.1",
"_id": "end-of-stream@1.4.1",
"_inBundle": false,
"_integrity": "sha512-1MkrZNvWTKCaigbn+W15elq2BB/L22nqrSY5DKlo3X6+vclJm8Bb5djXJBmEX6fS3+zCh/F4VBK5Z2KxJt4s2Q==",
"_location": "/end-of-stream",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "end-of-stream@1.4.1",
"name": "end-of-stream",
"escapedName": "end-of-stream",
"rawSpec": "1.4.1",
"saveSpec": null,
"fetchSpec": "1.4.1"
},
"_requiredBy": [
"/pump"
],
"_resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.1.tgz",
"_spec": "1.4.1",
"_where": "C:\\Users\\Administrator\\Documents\\setup-node",
"author": {
"name": "Mathias Buus",
"email": "mathiasbuus@gmail.com"
},
"bugs": {
"url": "https://github.com/mafintosh/end-of-stream/issues"
}, },
"dependencies": { "dependencies": {
"once": "^1.4.0" "once": "^1.4.0"
}, },
"description": "Call a callback when a readable/writable/duplex stream has completed or failed.", "scripts": {
"test": "node test.js"
},
"files": [ "files": [
"index.js" "index.js"
], ],
"homepage": "https://github.com/mafintosh/end-of-stream",
"keywords": [ "keywords": [
"stream", "stream",
"streams", "streams",
@ -52,15 +24,15 @@
"end", "end",
"wait" "wait"
], ],
"license": "MIT", "bugs": {
"url": "https://github.com/mafintosh/end-of-stream/issues"
},
"homepage": "https://github.com/mafintosh/end-of-stream",
"main": "index.js", "main": "index.js",
"name": "end-of-stream", "author": "Mathias Buus <mathiasbuus@gmail.com>",
"repository": { "license": "MIT"
"type": "git",
"url": "git://github.com/mafintosh/end-of-stream.git" ,"_resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.1.tgz"
}, ,"_integrity": "sha512-1MkrZNvWTKCaigbn+W15elq2BB/L22nqrSY5DKlo3X6+vclJm8Bb5djXJBmEX6fS3+zCh/F4VBK5Z2KxJt4s2Q=="
"scripts": { ,"_from": "end-of-stream@1.4.1"
"test": "node test.js" }
},
"version": "1.4.1"
}

180
node_modules/execa/package.json generated vendored
View file

@ -1,109 +1,73 @@
{ {
"_args": [ "name": "execa",
[ "version": "1.0.0",
"execa@1.0.0", "description": "A better `child_process`",
"C:\\Users\\Administrator\\Documents\\setup-node" "license": "MIT",
] "repository": "sindresorhus/execa",
], "author": {
"_development": true, "name": "Sindre Sorhus",
"_from": "execa@1.0.0", "email": "sindresorhus@gmail.com",
"_id": "execa@1.0.0", "url": "sindresorhus.com"
"_inBundle": false, },
"_integrity": "sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA==", "engines": {
"_location": "/execa", "node": ">=6"
"_phantomChildren": {}, },
"_requested": { "scripts": {
"type": "version", "test": "xo && nyc ava"
"registry": true, },
"raw": "execa@1.0.0", "files": [
"name": "execa", "index.js",
"escapedName": "execa", "lib"
"rawSpec": "1.0.0", ],
"saveSpec": null, "keywords": [
"fetchSpec": "1.0.0" "exec",
}, "child",
"_requiredBy": [ "process",
"/husky", "execute",
"/jest-changed-files", "fork",
"/os-locale", "execfile",
"/sane", "spawn",
"/windows-release" "file",
], "shell",
"_resolved": "https://registry.npmjs.org/execa/-/execa-1.0.0.tgz", "bin",
"_spec": "1.0.0", "binary",
"_where": "C:\\Users\\Administrator\\Documents\\setup-node", "binaries",
"author": { "npm",
"name": "Sindre Sorhus", "path",
"email": "sindresorhus@gmail.com", "local"
"url": "sindresorhus.com" ],
}, "dependencies": {
"bugs": { "cross-spawn": "^6.0.0",
"url": "https://github.com/sindresorhus/execa/issues" "get-stream": "^4.0.0",
}, "is-stream": "^1.1.0",
"dependencies": { "npm-run-path": "^2.0.0",
"cross-spawn": "^6.0.0", "p-finally": "^1.0.0",
"get-stream": "^4.0.0", "signal-exit": "^3.0.0",
"is-stream": "^1.1.0", "strip-eof": "^1.0.0"
"npm-run-path": "^2.0.0", },
"p-finally": "^1.0.0", "devDependencies": {
"signal-exit": "^3.0.0", "ava": "*",
"strip-eof": "^1.0.0" "cat-names": "^1.0.2",
}, "coveralls": "^3.0.1",
"description": "A better `child_process`", "delay": "^3.0.0",
"devDependencies": { "is-running": "^2.0.0",
"ava": "*", "nyc": "^13.0.1",
"cat-names": "^1.0.2", "tempfile": "^2.0.0",
"coveralls": "^3.0.1", "xo": "*"
"delay": "^3.0.0", },
"is-running": "^2.0.0", "nyc": {
"nyc": "^13.0.1", "reporter": [
"tempfile": "^2.0.0", "text",
"xo": "*" "lcov"
}, ],
"engines": { "exclude": [
"node": ">=6" "**/fixtures/**",
}, "**/test.js",
"files": [ "**/test/**"
"index.js", ]
"lib" }
],
"homepage": "https://github.com/sindresorhus/execa#readme", ,"_resolved": "https://registry.npmjs.org/execa/-/execa-1.0.0.tgz"
"keywords": [ ,"_integrity": "sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA=="
"exec", ,"_from": "execa@1.0.0"
"child", }
"process",
"execute",
"fork",
"execfile",
"spawn",
"file",
"shell",
"bin",
"binary",
"binaries",
"npm",
"path",
"local"
],
"license": "MIT",
"name": "execa",
"nyc": {
"reporter": [
"text",
"lcov"
],
"exclude": [
"**/fixtures/**",
"**/test.js",
"**/test/**"
]
},
"repository": {
"type": "git",
"url": "git+https://github.com/sindresorhus/execa.git"
},
"scripts": {
"test": "xo && nyc ava"
},
"version": "1.0.0"
}

130
node_modules/get-stream/package.json generated vendored
View file

@ -1,82 +1,50 @@
{ {
"_args": [ "name": "get-stream",
[ "version": "4.1.0",
"get-stream@4.1.0", "description": "Get a stream as a string, buffer, or array",
"C:\\Users\\Administrator\\Documents\\setup-node" "license": "MIT",
] "repository": "sindresorhus/get-stream",
], "author": {
"_development": true, "name": "Sindre Sorhus",
"_from": "get-stream@4.1.0", "email": "sindresorhus@gmail.com",
"_id": "get-stream@4.1.0", "url": "sindresorhus.com"
"_inBundle": false, },
"_integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", "engines": {
"_location": "/get-stream", "node": ">=6"
"_phantomChildren": {}, },
"_requested": { "scripts": {
"type": "version", "test": "xo && ava"
"registry": true, },
"raw": "get-stream@4.1.0", "files": [
"name": "get-stream", "index.js",
"escapedName": "get-stream", "buffer-stream.js"
"rawSpec": "4.1.0", ],
"saveSpec": null, "keywords": [
"fetchSpec": "4.1.0" "get",
}, "stream",
"_requiredBy": [ "promise",
"/execa" "concat",
], "string",
"_resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", "text",
"_spec": "4.1.0", "buffer",
"_where": "C:\\Users\\Administrator\\Documents\\setup-node", "read",
"author": { "data",
"name": "Sindre Sorhus", "consume",
"email": "sindresorhus@gmail.com", "readable",
"url": "sindresorhus.com" "readablestream",
}, "array",
"bugs": { "object"
"url": "https://github.com/sindresorhus/get-stream/issues" ],
}, "dependencies": {
"dependencies": { "pump": "^3.0.0"
"pump": "^3.0.0" },
}, "devDependencies": {
"description": "Get a stream as a string, buffer, or array", "ava": "*",
"devDependencies": { "into-stream": "^3.0.0",
"ava": "*", "xo": "*"
"into-stream": "^3.0.0", }
"xo": "*"
}, ,"_resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz"
"engines": { ,"_integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w=="
"node": ">=6" ,"_from": "get-stream@4.1.0"
}, }
"files": [
"index.js",
"buffer-stream.js"
],
"homepage": "https://github.com/sindresorhus/get-stream#readme",
"keywords": [
"get",
"stream",
"promise",
"concat",
"string",
"text",
"buffer",
"read",
"data",
"consume",
"readable",
"readablestream",
"array",
"object"
],
"license": "MIT",
"name": "get-stream",
"repository": {
"type": "git",
"url": "git+https://github.com/sindresorhus/get-stream.git"
},
"scripts": {
"test": "xo && ava"
},
"version": "4.1.0"
}

68
node_modules/is-stream/package.json generated vendored
View file

@ -1,54 +1,23 @@
{ {
"_args": [ "name": "is-stream",
[ "version": "1.1.0",
"is-stream@1.1.0", "description": "Check if something is a Node.js stream",
"C:\\Users\\Administrator\\Documents\\setup-node" "license": "MIT",
] "repository": "sindresorhus/is-stream",
],
"_development": true,
"_from": "is-stream@1.1.0",
"_id": "is-stream@1.1.0",
"_inBundle": false,
"_integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=",
"_location": "/is-stream",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "is-stream@1.1.0",
"name": "is-stream",
"escapedName": "is-stream",
"rawSpec": "1.1.0",
"saveSpec": null,
"fetchSpec": "1.1.0"
},
"_requiredBy": [
"/execa"
],
"_resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz",
"_spec": "1.1.0",
"_where": "C:\\Users\\Administrator\\Documents\\setup-node",
"author": { "author": {
"name": "Sindre Sorhus", "name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com", "email": "sindresorhus@gmail.com",
"url": "sindresorhus.com" "url": "sindresorhus.com"
}, },
"bugs": {
"url": "https://github.com/sindresorhus/is-stream/issues"
},
"description": "Check if something is a Node.js stream",
"devDependencies": {
"ava": "*",
"tempfile": "^1.1.0",
"xo": "*"
},
"engines": { "engines": {
"node": ">=0.10.0" "node": ">=0.10.0"
}, },
"scripts": {
"test": "xo && ava"
},
"files": [ "files": [
"index.js" "index.js"
], ],
"homepage": "https://github.com/sindresorhus/is-stream#readme",
"keywords": [ "keywords": [
"stream", "stream",
"type", "type",
@ -61,14 +30,13 @@
"detect", "detect",
"is" "is"
], ],
"license": "MIT", "devDependencies": {
"name": "is-stream", "ava": "*",
"repository": { "tempfile": "^1.1.0",
"type": "git", "xo": "*"
"url": "git+https://github.com/sindresorhus/is-stream.git" }
},
"scripts": { ,"_resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz"
"test": "xo && ava" ,"_integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ="
}, ,"_from": "is-stream@1.1.0"
"version": "1.1.0" }
}

71
node_modules/isexe/package.json generated vendored
View file

@ -1,64 +1,35 @@
{ {
"_args": [ "name": "isexe",
[ "version": "2.0.0",
"isexe@2.0.0",
"C:\\Users\\Administrator\\Documents\\setup-node"
]
],
"_development": true,
"_from": "isexe@2.0.0",
"_id": "isexe@2.0.0",
"_inBundle": false,
"_integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=",
"_location": "/isexe",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "isexe@2.0.0",
"name": "isexe",
"escapedName": "isexe",
"rawSpec": "2.0.0",
"saveSpec": null,
"fetchSpec": "2.0.0"
},
"_requiredBy": [
"/which"
],
"_resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
"_spec": "2.0.0",
"_where": "C:\\Users\\Administrator\\Documents\\setup-node",
"author": {
"name": "Isaac Z. Schlueter",
"email": "i@izs.me",
"url": "http://blog.izs.me/"
},
"bugs": {
"url": "https://github.com/isaacs/isexe/issues"
},
"description": "Minimal module to check if a file is executable.", "description": "Minimal module to check if a file is executable.",
"main": "index.js",
"directories": {
"test": "test"
},
"devDependencies": { "devDependencies": {
"mkdirp": "^0.5.1", "mkdirp": "^0.5.1",
"rimraf": "^2.5.0", "rimraf": "^2.5.0",
"tap": "^10.3.0" "tap": "^10.3.0"
}, },
"directories": { "scripts": {
"test": "test" "test": "tap test/*.js --100",
"preversion": "npm test",
"postversion": "npm publish",
"postpublish": "git push origin --all; git push origin --tags"
}, },
"homepage": "https://github.com/isaacs/isexe#readme", "author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)",
"keywords": [],
"license": "ISC", "license": "ISC",
"main": "index.js",
"name": "isexe",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git+https://github.com/isaacs/isexe.git" "url": "git+https://github.com/isaacs/isexe.git"
}, },
"scripts": { "keywords": [],
"postpublish": "git push origin --all; git push origin --tags", "bugs": {
"postversion": "npm publish", "url": "https://github.com/isaacs/isexe/issues"
"preversion": "npm test",
"test": "tap test/*.js --100"
}, },
"version": "2.0.0" "homepage": "https://github.com/isaacs/isexe#readme"
}
,"_resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz"
,"_integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA="
,"_from": "isexe@2.0.0"
}

80
node_modules/lodash.get/package.json generated vendored
View file

@ -1,69 +1,21 @@
{ {
"_from": "lodash.get@^4.4.2", "name": "lodash.get",
"_id": "lodash.get@4.4.2", "version": "4.4.2",
"_inBundle": false,
"_integrity": "sha1-LRd/ZS+jHpObRDjVNBSZ36OCXpk=",
"_location": "/lodash.get",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "lodash.get@^4.4.2",
"name": "lodash.get",
"escapedName": "lodash.get",
"rawSpec": "^4.4.2",
"saveSpec": null,
"fetchSpec": "^4.4.2"
},
"_requiredBy": [
"/@octokit/rest"
],
"_resolved": "https://registry.npmjs.org/lodash.get/-/lodash.get-4.4.2.tgz",
"_shasum": "2d177f652fa31e939b4438d5341499dfa3825e99",
"_spec": "lodash.get@^4.4.2",
"_where": "C:\\Users\\Administrator\\Documents\\setup-node\\node_modules\\@octokit\\rest",
"author": {
"name": "John-David Dalton",
"email": "john.david.dalton@gmail.com",
"url": "http://allyoucanleet.com/"
},
"bugs": {
"url": "https://github.com/lodash/lodash/issues"
},
"bundleDependencies": false,
"contributors": [
{
"name": "John-David Dalton",
"email": "john.david.dalton@gmail.com",
"url": "http://allyoucanleet.com/"
},
{
"name": "Blaine Bublitz",
"email": "blaine.bublitz@gmail.com",
"url": "https://github.com/phated"
},
{
"name": "Mathias Bynens",
"email": "mathias@qiwi.be",
"url": "https://mathiasbynens.be/"
}
],
"deprecated": false,
"description": "The lodash method `_.get` exported as a module.", "description": "The lodash method `_.get` exported as a module.",
"homepage": "https://lodash.com/", "homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg", "icon": "https://lodash.com/icon.svg",
"keywords": [
"lodash-modularized",
"get"
],
"license": "MIT", "license": "MIT",
"name": "lodash.get", "keywords": "lodash-modularized, get",
"repository": { "author": "John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)",
"type": "git", "contributors": [
"url": "git+https://github.com/lodash/lodash.git" "John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)",
}, "Blaine Bublitz <blaine.bublitz@gmail.com> (https://github.com/phated)",
"scripts": { "Mathias Bynens <mathias@qiwi.be> (https://mathiasbynens.be/)"
"test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" ],
}, "repository": "lodash/lodash",
"version": "4.4.2" "scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" }
}
,"_resolved": "https://registry.npmjs.org/lodash.get/-/lodash.get-4.4.2.tgz"
,"_integrity": "sha1-LRd/ZS+jHpObRDjVNBSZ36OCXpk="
,"_from": "lodash.get@4.4.2"
}

80
node_modules/lodash.set/package.json generated vendored
View file

@ -1,69 +1,21 @@
{ {
"_from": "lodash.set@^4.3.2", "name": "lodash.set",
"_id": "lodash.set@4.3.2", "version": "4.3.2",
"_inBundle": false,
"_integrity": "sha1-2HV7HagH3eJIFrDWqEvqGnYjCyM=",
"_location": "/lodash.set",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "lodash.set@^4.3.2",
"name": "lodash.set",
"escapedName": "lodash.set",
"rawSpec": "^4.3.2",
"saveSpec": null,
"fetchSpec": "^4.3.2"
},
"_requiredBy": [
"/@octokit/rest"
],
"_resolved": "https://registry.npmjs.org/lodash.set/-/lodash.set-4.3.2.tgz",
"_shasum": "d8757b1da807dde24816b0d6a84bea1a76230b23",
"_spec": "lodash.set@^4.3.2",
"_where": "C:\\Users\\Administrator\\Documents\\setup-node\\node_modules\\@octokit\\rest",
"author": {
"name": "John-David Dalton",
"email": "john.david.dalton@gmail.com",
"url": "http://allyoucanleet.com/"
},
"bugs": {
"url": "https://github.com/lodash/lodash/issues"
},
"bundleDependencies": false,
"contributors": [
{
"name": "John-David Dalton",
"email": "john.david.dalton@gmail.com",
"url": "http://allyoucanleet.com/"
},
{
"name": "Blaine Bublitz",
"email": "blaine.bublitz@gmail.com",
"url": "https://github.com/phated"
},
{
"name": "Mathias Bynens",
"email": "mathias@qiwi.be",
"url": "https://mathiasbynens.be/"
}
],
"deprecated": false,
"description": "The lodash method `_.set` exported as a module.", "description": "The lodash method `_.set` exported as a module.",
"homepage": "https://lodash.com/", "homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg", "icon": "https://lodash.com/icon.svg",
"keywords": [
"lodash-modularized",
"set"
],
"license": "MIT", "license": "MIT",
"name": "lodash.set", "keywords": "lodash-modularized, set",
"repository": { "author": "John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)",
"type": "git", "contributors": [
"url": "git+https://github.com/lodash/lodash.git" "John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)",
}, "Blaine Bublitz <blaine.bublitz@gmail.com> (https://github.com/phated)",
"scripts": { "Mathias Bynens <mathias@qiwi.be> (https://mathiasbynens.be/)"
"test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" ],
}, "repository": "lodash/lodash",
"version": "4.3.2" "scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" }
}
,"_resolved": "https://registry.npmjs.org/lodash.set/-/lodash.set-4.3.2.tgz"
,"_integrity": "sha1-2HV7HagH3eJIFrDWqEvqGnYjCyM="
,"_from": "lodash.set@4.3.2"
}

View file

@ -1,69 +1,21 @@
{ {
"_from": "lodash.uniq@^4.5.0", "name": "lodash.uniq",
"_id": "lodash.uniq@4.5.0", "version": "4.5.0",
"_inBundle": false,
"_integrity": "sha1-0CJTc662Uq3BvILklFM5qEJ1R3M=",
"_location": "/lodash.uniq",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "lodash.uniq@^4.5.0",
"name": "lodash.uniq",
"escapedName": "lodash.uniq",
"rawSpec": "^4.5.0",
"saveSpec": null,
"fetchSpec": "^4.5.0"
},
"_requiredBy": [
"/@octokit/rest"
],
"_resolved": "https://registry.npmjs.org/lodash.uniq/-/lodash.uniq-4.5.0.tgz",
"_shasum": "d0225373aeb652adc1bc82e4945339a842754773",
"_spec": "lodash.uniq@^4.5.0",
"_where": "C:\\Users\\Administrator\\Documents\\setup-node\\node_modules\\@octokit\\rest",
"author": {
"name": "John-David Dalton",
"email": "john.david.dalton@gmail.com",
"url": "http://allyoucanleet.com/"
},
"bugs": {
"url": "https://github.com/lodash/lodash/issues"
},
"bundleDependencies": false,
"contributors": [
{
"name": "John-David Dalton",
"email": "john.david.dalton@gmail.com",
"url": "http://allyoucanleet.com/"
},
{
"name": "Blaine Bublitz",
"email": "blaine.bublitz@gmail.com",
"url": "https://github.com/phated"
},
{
"name": "Mathias Bynens",
"email": "mathias@qiwi.be",
"url": "https://mathiasbynens.be/"
}
],
"deprecated": false,
"description": "The lodash method `_.uniq` exported as a module.", "description": "The lodash method `_.uniq` exported as a module.",
"homepage": "https://lodash.com/", "homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg", "icon": "https://lodash.com/icon.svg",
"keywords": [
"lodash-modularized",
"uniq"
],
"license": "MIT", "license": "MIT",
"name": "lodash.uniq", "keywords": "lodash-modularized, uniq",
"repository": { "author": "John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)",
"type": "git", "contributors": [
"url": "git+https://github.com/lodash/lodash.git" "John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)",
}, "Blaine Bublitz <blaine.bublitz@gmail.com> (https://github.com/phated)",
"scripts": { "Mathias Bynens <mathias@qiwi.be> (https://mathiasbynens.be/)"
"test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" ],
}, "repository": "lodash/lodash",
"version": "4.5.0" "scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" }
}
,"_resolved": "https://registry.npmjs.org/lodash.uniq/-/lodash.uniq-4.5.0.tgz"
,"_integrity": "sha1-0CJTc662Uq3BvILklFM5qEJ1R3M="
,"_from": "lodash.uniq@4.5.0"
}

View file

@ -1,71 +1,43 @@
{ {
"_from": "macos-release@^2.2.0", "name": "macos-release",
"_id": "macos-release@2.3.0", "version": "2.3.0",
"_inBundle": false, "description": "Get the name and version of a macOS release from the Darwin version",
"_integrity": "sha512-OHhSbtcviqMPt7yfw5ef5aghS2jzFVKEFyCJndQt2YpSQ9qRVSEv2axSJI1paVThEu+FFGs584h/1YhxjVqajA==", "license": "MIT",
"_location": "/macos-release", "repository": "sindresorhus/macos-release",
"_phantomChildren": {}, "author": {
"_requested": { "name": "Sindre Sorhus",
"type": "range", "email": "sindresorhus@gmail.com",
"registry": true, "url": "sindresorhus.com"
"raw": "macos-release@^2.2.0", },
"name": "macos-release", "engines": {
"escapedName": "macos-release", "node": ">=6"
"rawSpec": "^2.2.0", },
"saveSpec": null, "scripts": {
"fetchSpec": "^2.2.0" "test": "xo && ava && tsd"
}, },
"_requiredBy": [ "files": [
"/os-name" "index.js",
], "index.d.ts"
"_resolved": "https://registry.npmjs.org/macos-release/-/macos-release-2.3.0.tgz", ],
"_shasum": "eb1930b036c0800adebccd5f17bc4c12de8bb71f", "keywords": [
"_spec": "macos-release@^2.2.0", "macos",
"_where": "C:\\Users\\Administrator\\Documents\\setup-node\\node_modules\\os-name", "os",
"author": { "darwin",
"name": "Sindre Sorhus", "operating",
"email": "sindresorhus@gmail.com", "system",
"url": "sindresorhus.com" "platform",
}, "name",
"bugs": { "title",
"url": "https://github.com/sindresorhus/macos-release/issues" "release",
}, "version"
"bundleDependencies": false, ],
"deprecated": false, "devDependencies": {
"description": "Get the name and version of a macOS release from the Darwin version", "ava": "^1.4.1",
"devDependencies": { "tsd": "^0.7.1",
"ava": "^1.4.1", "xo": "^0.24.0"
"tsd": "^0.7.1", }
"xo": "^0.24.0"
}, ,"_resolved": "https://registry.npmjs.org/macos-release/-/macos-release-2.3.0.tgz"
"engines": { ,"_integrity": "sha512-OHhSbtcviqMPt7yfw5ef5aghS2jzFVKEFyCJndQt2YpSQ9qRVSEv2axSJI1paVThEu+FFGs584h/1YhxjVqajA=="
"node": ">=6" ,"_from": "macos-release@2.3.0"
}, }
"files": [
"index.js",
"index.d.ts"
],
"homepage": "https://github.com/sindresorhus/macos-release#readme",
"keywords": [
"macos",
"os",
"darwin",
"operating",
"system",
"platform",
"name",
"title",
"release",
"version"
],
"license": "MIT",
"name": "macos-release",
"repository": {
"type": "git",
"url": "git+https://github.com/sindresorhus/macos-release.git"
},
"scripts": {
"test": "xo && ava && tsd"
},
"version": "2.3.0"
}

66
node_modules/nice-try/package.json generated vendored
View file

@ -1,65 +1,37 @@
{ {
"_args": [ "name": "nice-try",
[ "version": "1.0.5",
"nice-try@1.0.5",
"C:\\Users\\Administrator\\Documents\\setup-node"
]
],
"_development": true,
"_from": "nice-try@1.0.5",
"_id": "nice-try@1.0.5",
"_inBundle": false,
"_integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==",
"_location": "/nice-try",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "nice-try@1.0.5",
"name": "nice-try",
"escapedName": "nice-try",
"rawSpec": "1.0.5",
"saveSpec": null,
"fetchSpec": "1.0.5"
},
"_requiredBy": [
"/cross-spawn"
],
"_resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz",
"_spec": "1.0.5",
"_where": "C:\\Users\\Administrator\\Documents\\setup-node",
"authors": [ "authors": [
"Tobias Reich <tobias@electerious.com>" "Tobias Reich <tobias@electerious.com>"
], ],
"bugs": {
"url": "https://github.com/electerious/nice-try/issues"
},
"description": "Tries to execute a function and discards any error that occurs", "description": "Tries to execute a function and discards any error that occurs",
"devDependencies": { "main": "src/index.js",
"chai": "^4.1.2",
"coveralls": "^3.0.0",
"mocha": "^5.1.1",
"nyc": "^12.0.1"
},
"files": [
"src"
],
"homepage": "https://github.com/electerious/nice-try",
"keywords": [ "keywords": [
"try", "try",
"catch", "catch",
"error" "error"
], ],
"license": "MIT", "license": "MIT",
"main": "src/index.js", "homepage": "https://github.com/electerious/nice-try",
"name": "nice-try",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git+https://github.com/electerious/nice-try.git" "url": "https://github.com/electerious/nice-try.git"
}, },
"files": [
"src"
],
"scripts": { "scripts": {
"coveralls": "nyc report --reporter=text-lcov | coveralls", "coveralls": "nyc report --reporter=text-lcov | coveralls",
"test": "nyc node_modules/mocha/bin/_mocha" "test": "nyc node_modules/mocha/bin/_mocha"
}, },
"version": "1.0.5" "devDependencies": {
} "chai": "^4.1.2",
"coveralls": "^3.0.0",
"nyc": "^12.0.1",
"mocha": "^5.1.1"
}
,"_resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz"
,"_integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ=="
,"_from": "nice-try@1.0.5"
}

101
node_modules/node-fetch/package.json generated vendored
View file

@ -1,38 +1,41 @@
{ {
"_from": "node-fetch@^2.3.0", "name": "node-fetch",
"_id": "node-fetch@2.6.0", "version": "2.6.0",
"_inBundle": false, "description": "A light-weight module that brings window.fetch to node.js",
"_integrity": "sha512-8dG4H5ujfvFiqDmVu9fQ5bOHUC15JMjMY/Zumv26oOvvVJjM67KF8koCWIabKQ1GJIa9r2mMZscBq/TbdOcmNA==", "main": "lib/index",
"_location": "/node-fetch",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "node-fetch@^2.3.0",
"name": "node-fetch",
"escapedName": "node-fetch",
"rawSpec": "^2.3.0",
"saveSpec": null,
"fetchSpec": "^2.3.0"
},
"_requiredBy": [
"/@octokit/request"
],
"_resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.0.tgz",
"_shasum": "e633456386d4aa55863f676a7ab0daa8fdecb0fd",
"_spec": "node-fetch@^2.3.0",
"_where": "C:\\Users\\Administrator\\Documents\\setup-node\\node_modules\\@octokit\\request",
"author": {
"name": "David Frank"
},
"browser": "./browser.js", "browser": "./browser.js",
"module": "lib/index.mjs",
"files": [
"lib/index.js",
"lib/index.mjs",
"lib/index.es.js",
"browser.js"
],
"engines": {
"node": "4.x || >=6.0.0"
},
"scripts": {
"build": "cross-env BABEL_ENV=rollup rollup -c",
"prepare": "npm run build",
"test": "cross-env BABEL_ENV=test mocha --require babel-register --throw-deprecation test/test.js",
"report": "cross-env BABEL_ENV=coverage nyc --reporter lcov --reporter text mocha -R spec test/test.js",
"coverage": "cross-env BABEL_ENV=coverage nyc --reporter json --reporter text mocha -R spec test/test.js && codecov -f coverage/coverage-final.json"
},
"repository": {
"type": "git",
"url": "https://github.com/bitinn/node-fetch.git"
},
"keywords": [
"fetch",
"http",
"promise"
],
"author": "David Frank",
"license": "MIT",
"bugs": { "bugs": {
"url": "https://github.com/bitinn/node-fetch/issues" "url": "https://github.com/bitinn/node-fetch/issues"
}, },
"bundleDependencies": false, "homepage": "https://github.com/bitinn/node-fetch",
"dependencies": {},
"deprecated": false,
"description": "A light-weight module that brings window.fetch to node.js",
"devDependencies": { "devDependencies": {
"@ungap/url-search-params": "^0.1.2", "@ungap/url-search-params": "^0.1.2",
"abort-controller": "^1.1.0", "abort-controller": "^1.1.0",
@ -59,35 +62,9 @@
"string-to-arraybuffer": "^1.0.2", "string-to-arraybuffer": "^1.0.2",
"whatwg-url": "^5.0.0" "whatwg-url": "^5.0.0"
}, },
"engines": { "dependencies": {}
"node": "4.x || >=6.0.0"
}, ,"_resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.0.tgz"
"files": [ ,"_integrity": "sha512-8dG4H5ujfvFiqDmVu9fQ5bOHUC15JMjMY/Zumv26oOvvVJjM67KF8koCWIabKQ1GJIa9r2mMZscBq/TbdOcmNA=="
"lib/index.js", ,"_from": "node-fetch@2.6.0"
"lib/index.mjs", }
"lib/index.es.js",
"browser.js"
],
"homepage": "https://github.com/bitinn/node-fetch",
"keywords": [
"fetch",
"http",
"promise"
],
"license": "MIT",
"main": "lib/index",
"module": "lib/index.mjs",
"name": "node-fetch",
"repository": {
"type": "git",
"url": "git+https://github.com/bitinn/node-fetch.git"
},
"scripts": {
"build": "cross-env BABEL_ENV=rollup rollup -c",
"coverage": "cross-env BABEL_ENV=coverage nyc --reporter json --reporter text mocha -R spec test/test.js && codecov -f coverage/coverage-final.json",
"prepare": "npm run build",
"report": "cross-env BABEL_ENV=coverage nyc --reporter lcov --reporter text mocha -R spec test/test.js",
"test": "cross-env BABEL_ENV=test mocha --require babel-register --throw-deprecation test/test.js"
},
"version": "2.6.0"
}

View file

@ -1,56 +1,23 @@
{ {
"_args": [ "name": "npm-run-path",
[ "version": "2.0.2",
"npm-run-path@2.0.2", "description": "Get your PATH prepended with locally installed binaries",
"C:\\Users\\Administrator\\Documents\\setup-node" "license": "MIT",
] "repository": "sindresorhus/npm-run-path",
],
"_development": true,
"_from": "npm-run-path@2.0.2",
"_id": "npm-run-path@2.0.2",
"_inBundle": false,
"_integrity": "sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=",
"_location": "/npm-run-path",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "npm-run-path@2.0.2",
"name": "npm-run-path",
"escapedName": "npm-run-path",
"rawSpec": "2.0.2",
"saveSpec": null,
"fetchSpec": "2.0.2"
},
"_requiredBy": [
"/execa"
],
"_resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz",
"_spec": "2.0.2",
"_where": "C:\\Users\\Administrator\\Documents\\setup-node",
"author": { "author": {
"name": "Sindre Sorhus", "name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com", "email": "sindresorhus@gmail.com",
"url": "sindresorhus.com" "url": "sindresorhus.com"
}, },
"bugs": {
"url": "https://github.com/sindresorhus/npm-run-path/issues"
},
"dependencies": {
"path-key": "^2.0.0"
},
"description": "Get your PATH prepended with locally installed binaries",
"devDependencies": {
"ava": "*",
"xo": "*"
},
"engines": { "engines": {
"node": ">=4" "node": ">=4"
}, },
"scripts": {
"test": "xo && ava"
},
"files": [ "files": [
"index.js" "index.js"
], ],
"homepage": "https://github.com/sindresorhus/npm-run-path#readme",
"keywords": [ "keywords": [
"npm", "npm",
"run", "run",
@ -65,17 +32,18 @@
"execute", "execute",
"executable" "executable"
], ],
"license": "MIT", "dependencies": {
"name": "npm-run-path", "path-key": "^2.0.0"
"repository": {
"type": "git",
"url": "git+https://github.com/sindresorhus/npm-run-path.git"
}, },
"scripts": { "devDependencies": {
"test": "xo && ava" "ava": "*",
"xo": "*"
}, },
"version": "2.0.2",
"xo": { "xo": {
"esnext": true "esnext": true
} }
}
,"_resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz"
,"_integrity": "sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8="
,"_from": "npm-run-path@2.0.2"
}

View file

@ -1,38 +1,39 @@
{ {
"_from": "octokit-pagination-methods@^1.1.0", "name": "octokit-pagination-methods",
"_id": "octokit-pagination-methods@1.1.0", "version": "1.1.0",
"_inBundle": false, "publishConfig": {
"_integrity": "sha512-fZ4qZdQ2nxJvtcasX7Ghl+WlWS/d9IgnBIwFZXVNNZUmzpno91SX5bc5vuxiuKoCtK78XxGGNuSCrDC7xYB3OQ==", "access": "public",
"_location": "/octokit-pagination-methods", "tag": "latest"
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "octokit-pagination-methods@^1.1.0",
"name": "octokit-pagination-methods",
"escapedName": "octokit-pagination-methods",
"rawSpec": "^1.1.0",
"saveSpec": null,
"fetchSpec": "^1.1.0"
}, },
"_requiredBy": [ "description": "Legacy Octokit pagination methods from v15",
"/@octokit/rest" "main": "index.js",
"directories": {
"test": "test"
},
"scripts": {
"coverage": "tap --coverage-report=html",
"coverage:upload": "npm run test && tap --coverage-report=text-lcov | coveralls",
"pretest": "standard && standard-markdown *.md",
"test": "tap --coverage test.js",
"semantic-release": "semantic-release"
},
"repository": {
"type": "git",
"url": "https://github.com/gr2m/octokit-pagination-methods.git"
},
"keywords": [
"octokit",
"github",
"api",
"rest",
"plugin"
], ],
"_resolved": "https://registry.npmjs.org/octokit-pagination-methods/-/octokit-pagination-methods-1.1.0.tgz", "author": "Gregor Martynus (https://github.com/gr2m)",
"_shasum": "cf472edc9d551055f9ef73f6e42b4dbb4c80bea4", "license": "MIT",
"_spec": "octokit-pagination-methods@^1.1.0",
"_where": "C:\\Users\\Administrator\\Documents\\setup-node\\node_modules\\@octokit\\rest",
"author": {
"name": "Gregor Martynus",
"url": "https://github.com/gr2m"
},
"bugs": { "bugs": {
"url": "https://github.com/gr2m/octokit-pagination-methods/issues" "url": "https://github.com/gr2m/octokit-pagination-methods/issues"
}, },
"bundleDependencies": false, "homepage": "https://github.com/gr2m/octokit-pagination-methods#readme",
"dependencies": {},
"deprecated": false,
"description": "Legacy Octokit pagination methods from v15",
"devDependencies": { "devDependencies": {
"@octokit/rest": "github:octokit/rest.js#next", "@octokit/rest": "github:octokit/rest.js#next",
"coveralls": "^3.0.2", "coveralls": "^3.0.2",
@ -43,34 +44,9 @@
"standard-markdown": "^5.0.1", "standard-markdown": "^5.0.1",
"tap": "^12.0.1" "tap": "^12.0.1"
}, },
"directories": { "dependencies": {}
"test": "test"
}, ,"_resolved": "https://registry.npmjs.org/octokit-pagination-methods/-/octokit-pagination-methods-1.1.0.tgz"
"homepage": "https://github.com/gr2m/octokit-pagination-methods#readme", ,"_integrity": "sha512-fZ4qZdQ2nxJvtcasX7Ghl+WlWS/d9IgnBIwFZXVNNZUmzpno91SX5bc5vuxiuKoCtK78XxGGNuSCrDC7xYB3OQ=="
"keywords": [ ,"_from": "octokit-pagination-methods@1.1.0"
"octokit", }
"github",
"api",
"rest",
"plugin"
],
"license": "MIT",
"main": "index.js",
"name": "octokit-pagination-methods",
"publishConfig": {
"access": "public",
"tag": "latest"
},
"repository": {
"type": "git",
"url": "git+https://github.com/gr2m/octokit-pagination-methods.git"
},
"scripts": {
"coverage": "tap --coverage-report=html",
"coverage:upload": "npm run test && tap --coverage-report=text-lcov | coveralls",
"pretest": "standard && standard-markdown *.md",
"semantic-release": "semantic-release",
"test": "tap --coverage test.js"
},
"version": "1.1.0"
}

77
node_modules/once/package.json generated vendored
View file

@ -1,76 +1,37 @@
{ {
"_args": [ "name": "once",
[ "version": "1.4.0",
"once@1.4.0", "description": "Run a function exactly one time",
"C:\\Users\\Administrator\\Documents\\setup-node" "main": "once.js",
] "directories": {
], "test": "test"
"_development": true,
"_from": "once@1.4.0",
"_id": "once@1.4.0",
"_inBundle": false,
"_integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",
"_location": "/once",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "once@1.4.0",
"name": "once",
"escapedName": "once",
"rawSpec": "1.4.0",
"saveSpec": null,
"fetchSpec": "1.4.0"
},
"_requiredBy": [
"/@octokit/request",
"/@octokit/request-error",
"/@octokit/rest",
"/end-of-stream",
"/glob",
"/inflight",
"/pump"
],
"_resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
"_spec": "1.4.0",
"_where": "C:\\Users\\Administrator\\Documents\\setup-node",
"author": {
"name": "Isaac Z. Schlueter",
"email": "i@izs.me",
"url": "http://blog.izs.me/"
},
"bugs": {
"url": "https://github.com/isaacs/once/issues"
}, },
"dependencies": { "dependencies": {
"wrappy": "1" "wrappy": "1"
}, },
"description": "Run a function exactly one time",
"devDependencies": { "devDependencies": {
"tap": "^7.0.1" "tap": "^7.0.1"
}, },
"directories": { "scripts": {
"test": "test" "test": "tap test/*.js"
}, },
"files": [ "files": [
"once.js" "once.js"
], ],
"homepage": "https://github.com/isaacs/once#readme", "repository": {
"type": "git",
"url": "git://github.com/isaacs/once"
},
"keywords": [ "keywords": [
"once", "once",
"function", "function",
"one", "one",
"single" "single"
], ],
"license": "ISC", "author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)",
"main": "once.js", "license": "ISC"
"name": "once",
"repository": { ,"_resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz"
"type": "git", ,"_integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E="
"url": "git://github.com/isaacs/once.git" ,"_from": "once@1.4.0"
}, }
"scripts": {
"test": "tap test/*.js"
},
"version": "1.4.0"
}

127
node_modules/os-name/package.json generated vendored
View file

@ -1,80 +1,49 @@
{ {
"_from": "os-name@^3.0.0", "name": "os-name",
"_id": "os-name@3.1.0", "version": "3.1.0",
"_inBundle": false, "description": "Get the name of the current operating system. Example: macOS Sierra",
"_integrity": "sha512-h8L+8aNjNcMpo/mAIBPn5PXCM16iyPGjHNWo6U1YO8sJTMHtEtyczI6QJnLoplswm6goopQkqc7OAnjhWcugVg==", "license": "MIT",
"_location": "/os-name", "repository": "sindresorhus/os-name",
"_phantomChildren": {}, "author": {
"_requested": { "name": "Sindre Sorhus",
"type": "range", "email": "sindresorhus@gmail.com",
"registry": true, "url": "sindresorhus.com"
"raw": "os-name@^3.0.0", },
"name": "os-name", "engines": {
"escapedName": "os-name", "node": ">=6"
"rawSpec": "^3.0.0", },
"saveSpec": null, "scripts": {
"fetchSpec": "^3.0.0" "test": "xo && ava && tsd"
}, },
"_requiredBy": [ "files": [
"/@octokit/endpoint/universal-user-agent", "index.js",
"/@octokit/request/universal-user-agent", "index.d.ts"
"/@octokit/rest/universal-user-agent", ],
"/universal-user-agent" "keywords": [
], "os",
"_resolved": "https://registry.npmjs.org/os-name/-/os-name-3.1.0.tgz", "operating",
"_shasum": "dec19d966296e1cd62d701a5a66ee1ddeae70801", "system",
"_spec": "os-name@^3.0.0", "platform",
"_where": "C:\\Users\\Administrator\\Documents\\setup-node\\node_modules\\@octokit\\endpoint\\node_modules\\universal-user-agent", "name",
"author": { "title",
"name": "Sindre Sorhus", "release",
"email": "sindresorhus@gmail.com", "version",
"url": "sindresorhus.com" "macos",
}, "windows",
"bugs": { "linux"
"url": "https://github.com/sindresorhus/os-name/issues" ],
}, "dependencies": {
"bundleDependencies": false, "macos-release": "^2.2.0",
"dependencies": { "windows-release": "^3.1.0"
"macos-release": "^2.2.0", },
"windows-release": "^3.1.0" "devDependencies": {
}, "@types/node": "^11.13.0",
"deprecated": false, "ava": "^1.4.1",
"description": "Get the name of the current operating system. Example: macOS Sierra", "tsd": "^0.7.2",
"devDependencies": { "xo": "^0.24.0"
"@types/node": "^11.13.0", }
"ava": "^1.4.1",
"tsd": "^0.7.2", ,"_resolved": "https://registry.npmjs.org/os-name/-/os-name-3.1.0.tgz"
"xo": "^0.24.0" ,"_integrity": "sha512-h8L+8aNjNcMpo/mAIBPn5PXCM16iyPGjHNWo6U1YO8sJTMHtEtyczI6QJnLoplswm6goopQkqc7OAnjhWcugVg=="
}, ,"_from": "os-name@3.1.0"
"engines": { }
"node": ">=6"
},
"files": [
"index.js",
"index.d.ts"
],
"homepage": "https://github.com/sindresorhus/os-name#readme",
"keywords": [
"os",
"operating",
"system",
"platform",
"name",
"title",
"release",
"version",
"macos",
"windows",
"linux"
],
"license": "MIT",
"name": "os-name",
"repository": {
"type": "git",
"url": "git+https://github.com/sindresorhus/os-name.git"
},
"scripts": {
"test": "xo && ava && tsd"
},
"version": "3.1.0"
}

64
node_modules/p-finally/package.json generated vendored
View file

@ -1,53 +1,23 @@
{ {
"_args": [ "name": "p-finally",
[ "version": "1.0.0",
"p-finally@1.0.0", "description": "`Promise#finally()` ponyfill - Invoked when the promise is settled regardless of outcome",
"C:\\Users\\Administrator\\Documents\\setup-node" "license": "MIT",
] "repository": "sindresorhus/p-finally",
],
"_development": true,
"_from": "p-finally@1.0.0",
"_id": "p-finally@1.0.0",
"_inBundle": false,
"_integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=",
"_location": "/p-finally",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "p-finally@1.0.0",
"name": "p-finally",
"escapedName": "p-finally",
"rawSpec": "1.0.0",
"saveSpec": null,
"fetchSpec": "1.0.0"
},
"_requiredBy": [
"/execa"
],
"_resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz",
"_spec": "1.0.0",
"_where": "C:\\Users\\Administrator\\Documents\\setup-node",
"author": { "author": {
"name": "Sindre Sorhus", "name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com", "email": "sindresorhus@gmail.com",
"url": "sindresorhus.com" "url": "sindresorhus.com"
}, },
"bugs": {
"url": "https://github.com/sindresorhus/p-finally/issues"
},
"description": "`Promise#finally()` ponyfill - Invoked when the promise is settled regardless of outcome",
"devDependencies": {
"ava": "*",
"xo": "*"
},
"engines": { "engines": {
"node": ">=4" "node": ">=4"
}, },
"scripts": {
"test": "xo && ava"
},
"files": [ "files": [
"index.js" "index.js"
], ],
"homepage": "https://github.com/sindresorhus/p-finally#readme",
"keywords": [ "keywords": [
"promise", "promise",
"finally", "finally",
@ -62,17 +32,15 @@
"shim", "shim",
"bluebird" "bluebird"
], ],
"license": "MIT", "devDependencies": {
"name": "p-finally", "ava": "*",
"repository": { "xo": "*"
"type": "git",
"url": "git+https://github.com/sindresorhus/p-finally.git"
}, },
"scripts": {
"test": "xo && ava"
},
"version": "1.0.0",
"xo": { "xo": {
"esnext": true "esnext": true
} }
}
,"_resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz"
,"_integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4="
,"_from": "p-finally@1.0.0"
}

65
node_modules/path-key/package.json generated vendored
View file

@ -1,54 +1,23 @@
{ {
"_args": [ "name": "path-key",
[ "version": "2.0.1",
"path-key@2.0.1", "description": "Get the PATH environment variable key cross-platform",
"C:\\Users\\Administrator\\Documents\\setup-node" "license": "MIT",
] "repository": "sindresorhus/path-key",
],
"_development": true,
"_from": "path-key@2.0.1",
"_id": "path-key@2.0.1",
"_inBundle": false,
"_integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=",
"_location": "/path-key",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "path-key@2.0.1",
"name": "path-key",
"escapedName": "path-key",
"rawSpec": "2.0.1",
"saveSpec": null,
"fetchSpec": "2.0.1"
},
"_requiredBy": [
"/cross-spawn",
"/npm-run-path"
],
"_resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz",
"_spec": "2.0.1",
"_where": "C:\\Users\\Administrator\\Documents\\setup-node",
"author": { "author": {
"name": "Sindre Sorhus", "name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com", "email": "sindresorhus@gmail.com",
"url": "sindresorhus.com" "url": "sindresorhus.com"
}, },
"bugs": {
"url": "https://github.com/sindresorhus/path-key/issues"
},
"description": "Get the PATH environment variable key cross-platform",
"devDependencies": {
"ava": "*",
"xo": "*"
},
"engines": { "engines": {
"node": ">=4" "node": ">=4"
}, },
"scripts": {
"test": "xo && ava"
},
"files": [ "files": [
"index.js" "index.js"
], ],
"homepage": "https://github.com/sindresorhus/path-key#readme",
"keywords": [ "keywords": [
"path", "path",
"key", "key",
@ -60,17 +29,15 @@
"cross-platform", "cross-platform",
"windows" "windows"
], ],
"license": "MIT", "devDependencies": {
"name": "path-key", "ava": "*",
"repository": { "xo": "*"
"type": "git",
"url": "git+https://github.com/sindresorhus/path-key.git"
}, },
"scripts": {
"test": "xo && ava"
},
"version": "2.0.1",
"xo": { "xo": {
"esnext": true "esnext": true
} }
}
,"_resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz"
,"_integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A="
,"_from": "path-key@2.0.1"
}

65
node_modules/pump/package.json generated vendored
View file

@ -1,63 +1,28 @@
{ {
"_args": [ "name": "pump",
[ "version": "3.0.0",
"pump@3.0.0", "repository": "git://github.com/mafintosh/pump.git",
"C:\\Users\\Administrator\\Documents\\setup-node" "license": "MIT",
] "description": "pipe streams together and close all of them if one of them closes",
],
"_development": true,
"_from": "pump@3.0.0",
"_id": "pump@3.0.0",
"_inBundle": false,
"_integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==",
"_location": "/pump",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "pump@3.0.0",
"name": "pump",
"escapedName": "pump",
"rawSpec": "3.0.0",
"saveSpec": null,
"fetchSpec": "3.0.0"
},
"_requiredBy": [
"/get-stream"
],
"_resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz",
"_spec": "3.0.0",
"_where": "C:\\Users\\Administrator\\Documents\\setup-node",
"author": {
"name": "Mathias Buus Madsen",
"email": "mathiasbuus@gmail.com"
},
"browser": { "browser": {
"fs": false "fs": false
}, },
"bugs": {
"url": "https://github.com/mafintosh/pump/issues"
},
"dependencies": {
"end-of-stream": "^1.1.0",
"once": "^1.3.1"
},
"description": "pipe streams together and close all of them if one of them closes",
"homepage": "https://github.com/mafintosh/pump#readme",
"keywords": [ "keywords": [
"streams", "streams",
"pipe", "pipe",
"destroy", "destroy",
"callback" "callback"
], ],
"license": "MIT", "author": "Mathias Buus Madsen <mathiasbuus@gmail.com>",
"name": "pump", "dependencies": {
"repository": { "end-of-stream": "^1.1.0",
"type": "git", "once": "^1.3.1"
"url": "git://github.com/mafintosh/pump.git"
}, },
"scripts": { "scripts": {
"test": "node test-browser.js && node test-node.js" "test": "node test-browser.js && node test-node.js"
}, }
"version": "3.0.0"
} ,"_resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz"
,"_integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww=="
,"_from": "pump@3.0.0"
}

70
node_modules/semver/package.json generated vendored
View file

@ -1,62 +1,32 @@
{ {
"_from": "semver@^6.1.1", "name": "semver",
"_id": "semver@6.1.2", "version": "6.1.2",
"_inBundle": false,
"_integrity": "sha512-z4PqiCpomGtWj8633oeAdXm1Kn1W++3T8epkZYnwiVgIYIJ0QHszhInYSJTYxebByQH7KVCEAn8R9duzZW2PhQ==",
"_location": "/semver",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "semver@^6.1.1",
"name": "semver",
"escapedName": "semver",
"rawSpec": "^6.1.1",
"saveSpec": null,
"fetchSpec": "^6.1.1"
},
"_requiredBy": [
"/",
"/@actions/tool-cache",
"/istanbul-lib-instrument"
],
"_resolved": "https://registry.npmjs.org/semver/-/semver-6.1.2.tgz",
"_shasum": "079960381376a3db62eb2edc8a3bfb10c7cfe318",
"_spec": "semver@^6.1.1",
"_where": "C:\\Users\\Administrator\\Documents\\setup-node",
"bin": {
"semver": "./bin/semver"
},
"bugs": {
"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.",
"main": "semver.js",
"scripts": {
"test": "tap",
"preversion": "npm test",
"postversion": "npm publish",
"postpublish": "git push origin --follow-tags"
},
"devDependencies": { "devDependencies": {
"tap": "^14.1.6" "tap": "^14.1.6"
}, },
"license": "ISC",
"repository": "https://github.com/npm/node-semver",
"bin": {
"semver": "./bin/semver"
},
"files": [ "files": [
"bin", "bin",
"range.bnf", "range.bnf",
"semver.js" "semver.js"
], ],
"homepage": "https://github.com/npm/node-semver#readme",
"license": "ISC",
"main": "semver.js",
"name": "semver",
"repository": {
"type": "git",
"url": "git+https://github.com/npm/node-semver.git"
},
"scripts": {
"postpublish": "git push origin --follow-tags",
"postversion": "npm publish",
"preversion": "npm test",
"test": "tap"
},
"tap": { "tap": {
"check-coverage": true "check-coverage": true
}, }
"version": "6.1.2"
} ,"_resolved": "https://registry.npmjs.org/semver/-/semver-6.1.2.tgz"
,"_integrity": "sha512-z4PqiCpomGtWj8633oeAdXm1Kn1W++3T8epkZYnwiVgIYIJ0QHszhInYSJTYxebByQH7KVCEAn8R9duzZW2PhQ=="
,"_from": "semver@6.1.2"
}

View file

@ -1,75 +1,43 @@
{ {
"_args": [ "name": "shebang-command",
[ "version": "1.2.0",
"shebang-command@1.2.0", "description": "Get the command from a shebang",
"C:\\Users\\Administrator\\Documents\\setup-node" "license": "MIT",
] "repository": "kevva/shebang-command",
],
"_development": true,
"_from": "shebang-command@1.2.0",
"_id": "shebang-command@1.2.0",
"_inBundle": false,
"_integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=",
"_location": "/shebang-command",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "shebang-command@1.2.0",
"name": "shebang-command",
"escapedName": "shebang-command",
"rawSpec": "1.2.0",
"saveSpec": null,
"fetchSpec": "1.2.0"
},
"_requiredBy": [
"/cross-spawn"
],
"_resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz",
"_spec": "1.2.0",
"_where": "C:\\Users\\Administrator\\Documents\\setup-node",
"author": { "author": {
"name": "Kevin Martensson", "name": "Kevin Martensson",
"email": "kevinmartensson@gmail.com", "email": "kevinmartensson@gmail.com",
"url": "github.com/kevva" "url": "github.com/kevva"
}, },
"bugs": {
"url": "https://github.com/kevva/shebang-command/issues"
},
"dependencies": {
"shebang-regex": "^1.0.0"
},
"description": "Get the command from a shebang",
"devDependencies": {
"ava": "*",
"xo": "*"
},
"engines": { "engines": {
"node": ">=0.10.0" "node": ">=0.10.0"
}, },
"scripts": {
"test": "xo && ava"
},
"files": [ "files": [
"index.js" "index.js"
], ],
"homepage": "https://github.com/kevva/shebang-command#readme",
"keywords": [ "keywords": [
"cmd", "cmd",
"command", "command",
"parse", "parse",
"shebang" "shebang"
], ],
"license": "MIT", "dependencies": {
"name": "shebang-command", "shebang-regex": "^1.0.0"
"repository": {
"type": "git",
"url": "git+https://github.com/kevva/shebang-command.git"
}, },
"scripts": { "devDependencies": {
"test": "xo && ava" "ava": "*",
"xo": "*"
}, },
"version": "1.2.0",
"xo": { "xo": {
"ignores": [ "ignores": [
"test.js" "test.js"
] ]
} }
}
,"_resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz"
,"_integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo="
,"_from": "shebang-command@1.2.0"
}

View file

@ -1,52 +1,23 @@
{ {
"_args": [ "name": "shebang-regex",
[ "version": "1.0.0",
"shebang-regex@1.0.0", "description": "Regular expression for matching a shebang",
"C:\\Users\\Administrator\\Documents\\setup-node" "license": "MIT",
] "repository": "sindresorhus/shebang-regex",
],
"_development": true,
"_from": "shebang-regex@1.0.0",
"_id": "shebang-regex@1.0.0",
"_inBundle": false,
"_integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=",
"_location": "/shebang-regex",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "shebang-regex@1.0.0",
"name": "shebang-regex",
"escapedName": "shebang-regex",
"rawSpec": "1.0.0",
"saveSpec": null,
"fetchSpec": "1.0.0"
},
"_requiredBy": [
"/shebang-command"
],
"_resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz",
"_spec": "1.0.0",
"_where": "C:\\Users\\Administrator\\Documents\\setup-node",
"author": { "author": {
"name": "Sindre Sorhus", "name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com", "email": "sindresorhus@gmail.com",
"url": "sindresorhus.com" "url": "sindresorhus.com"
}, },
"bugs": {
"url": "https://github.com/sindresorhus/shebang-regex/issues"
},
"description": "Regular expression for matching a shebang",
"devDependencies": {
"ava": "0.0.4"
},
"engines": { "engines": {
"node": ">=0.10.0" "node": ">=0.10.0"
}, },
"scripts": {
"test": "node test.js"
},
"files": [ "files": [
"index.js" "index.js"
], ],
"homepage": "https://github.com/sindresorhus/shebang-regex#readme",
"keywords": [ "keywords": [
"re", "re",
"regex", "regex",
@ -55,14 +26,11 @@
"match", "match",
"test" "test"
], ],
"license": "MIT", "devDependencies": {
"name": "shebang-regex", "ava": "0.0.4"
"repository": { }
"type": "git",
"url": "git+https://github.com/sindresorhus/shebang-regex.git" ,"_resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz"
}, ,"_integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM="
"scripts": { ,"_from": "shebang-regex@1.0.0"
"test": "node test.js" }
},
"version": "1.0.0"
}

View file

@ -1,42 +1,32 @@
{ {
"_args": [ "name": "signal-exit",
[ "version": "3.0.2",
"signal-exit@3.0.2", "description": "when you want to fire an event no matter how a process exits.",
"C:\\Users\\Administrator\\Documents\\setup-node" "main": "index.js",
] "scripts": {
], "pretest": "standard",
"_development": true, "test": "tap --timeout=240 ./test/*.js --cov",
"_from": "signal-exit@3.0.2", "coverage": "nyc report --reporter=text-lcov | coveralls",
"_id": "signal-exit@3.0.2", "release": "standard-version"
"_inBundle": false,
"_integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=",
"_location": "/signal-exit",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "signal-exit@3.0.2",
"name": "signal-exit",
"escapedName": "signal-exit",
"rawSpec": "3.0.2",
"saveSpec": null,
"fetchSpec": "3.0.2"
}, },
"_requiredBy": [ "files": [
"/execa", "index.js",
"/write-file-atomic" "signals.js"
], ],
"_resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", "repository": {
"_spec": "3.0.2", "type": "git",
"_where": "C:\\Users\\Administrator\\Documents\\setup-node", "url": "https://github.com/tapjs/signal-exit.git"
"author": {
"name": "Ben Coe",
"email": "ben@npmjs.com"
}, },
"keywords": [
"signal",
"exit"
],
"author": "Ben Coe <ben@npmjs.com>",
"license": "ISC",
"bugs": { "bugs": {
"url": "https://github.com/tapjs/signal-exit/issues" "url": "https://github.com/tapjs/signal-exit/issues"
}, },
"description": "when you want to fire an event no matter how a process exits.", "homepage": "https://github.com/tapjs/signal-exit",
"devDependencies": { "devDependencies": {
"chai": "^3.5.0", "chai": "^3.5.0",
"coveralls": "^2.11.10", "coveralls": "^2.11.10",
@ -44,28 +34,9 @@
"standard": "^7.1.2", "standard": "^7.1.2",
"standard-version": "^2.3.0", "standard-version": "^2.3.0",
"tap": "^8.0.1" "tap": "^8.0.1"
}, }
"files": [
"index.js", ,"_resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz"
"signals.js" ,"_integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0="
], ,"_from": "signal-exit@3.0.2"
"homepage": "https://github.com/tapjs/signal-exit", }
"keywords": [
"signal",
"exit"
],
"license": "ISC",
"main": "index.js",
"name": "signal-exit",
"repository": {
"type": "git",
"url": "git+https://github.com/tapjs/signal-exit.git"
},
"scripts": {
"coverage": "nyc report --reporter=text-lcov | coveralls",
"pretest": "standard",
"release": "standard-version",
"test": "tap --timeout=240 ./test/*.js --cov"
},
"version": "3.0.2"
}

66
node_modules/strip-eof/package.json generated vendored
View file

@ -1,53 +1,23 @@
{ {
"_args": [ "name": "strip-eof",
[ "version": "1.0.0",
"strip-eof@1.0.0", "description": "Strip the End-Of-File (EOF) character from a string/buffer",
"C:\\Users\\Administrator\\Documents\\setup-node" "license": "MIT",
] "repository": "sindresorhus/strip-eof",
],
"_development": true,
"_from": "strip-eof@1.0.0",
"_id": "strip-eof@1.0.0",
"_inBundle": false,
"_integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=",
"_location": "/strip-eof",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "strip-eof@1.0.0",
"name": "strip-eof",
"escapedName": "strip-eof",
"rawSpec": "1.0.0",
"saveSpec": null,
"fetchSpec": "1.0.0"
},
"_requiredBy": [
"/execa"
],
"_resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz",
"_spec": "1.0.0",
"_where": "C:\\Users\\Administrator\\Documents\\setup-node",
"author": { "author": {
"name": "Sindre Sorhus", "name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com", "email": "sindresorhus@gmail.com",
"url": "sindresorhus.com" "url": "sindresorhus.com"
}, },
"bugs": {
"url": "https://github.com/sindresorhus/strip-eof/issues"
},
"description": "Strip the End-Of-File (EOF) character from a string/buffer",
"devDependencies": {
"ava": "*",
"xo": "*"
},
"engines": { "engines": {
"node": ">=0.10.0" "node": ">=0.10.0"
}, },
"scripts": {
"test": "xo && ava"
},
"files": [ "files": [
"index.js" "index.js"
], ],
"homepage": "https://github.com/sindresorhus/strip-eof#readme",
"keywords": [ "keywords": [
"strip", "strip",
"trim", "trim",
@ -62,14 +32,12 @@
"string", "string",
"buffer" "buffer"
], ],
"license": "MIT", "devDependencies": {
"name": "strip-eof", "ava": "*",
"repository": { "xo": "*"
"type": "git", }
"url": "git+https://github.com/sindresorhus/strip-eof.git"
}, ,"_resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz"
"scripts": { ,"_integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8="
"test": "xo && ava" ,"_from": "strip-eof@1.0.0"
}, }
"version": "1.0.0"
}

68
node_modules/tunnel/package.json generated vendored
View file

@ -1,48 +1,7 @@
{ {
"_from": "tunnel@0.0.4", "name": "tunnel",
"_id": "tunnel@0.0.4", "version": "0.0.4",
"_inBundle": false,
"_integrity": "sha1-LTeFoVjBdMmhbcLARuxfxfF0IhM=",
"_location": "/tunnel",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "tunnel@0.0.4",
"name": "tunnel",
"escapedName": "tunnel",
"rawSpec": "0.0.4",
"saveSpec": null,
"fetchSpec": "0.0.4"
},
"_requiredBy": [
"/typed-rest-client"
],
"_resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.4.tgz",
"_shasum": "2d3785a158c174c9a16dc2c046ec5fc5f1742213",
"_spec": "tunnel@0.0.4",
"_where": "C:\\Users\\Administrator\\Documents\\setup-node\\node_modules\\typed-rest-client",
"author": {
"name": "Koichi Kobayashi",
"email": "koichik@improvement.jp"
},
"bugs": {
"url": "https://github.com/koichik/node-tunnel/issues"
},
"bundleDependencies": false,
"deprecated": false,
"description": "Node HTTP/HTTPS Agents for tunneling proxies", "description": "Node HTTP/HTTPS Agents for tunneling proxies",
"devDependencies": {
"mocha": "*",
"should": "*"
},
"directories": {
"lib": "./lib"
},
"engines": {
"node": ">=0.6.11 <=0.7.0 || >=0.7.3"
},
"homepage": "https://github.com/koichik/node-tunnel/",
"keywords": [ "keywords": [
"http", "http",
"https", "https",
@ -50,15 +9,30 @@
"proxy", "proxy",
"tunnel" "tunnel"
], ],
"homepage": "https://github.com/koichik/node-tunnel/",
"bugs": "https://github.com/koichik/node-tunnel/issues",
"license": "MIT", "license": "MIT",
"author": "Koichi Kobayashi <koichik@improvement.jp>",
"main": "./index.js", "main": "./index.js",
"name": "tunnel", "directories": {
"lib": "./lib"
},
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git+https://github.com/koichik/node-tunnel.git" "url": "https://github.com/koichik/node-tunnel.git"
}, },
"scripts": { "scripts": {
"test": "./node_modules/mocha/bin/mocha" "test": "./node_modules/mocha/bin/mocha"
}, },
"version": "0.0.4" "devDependencies": {
} "mocha": "*",
"should": "*"
},
"engines": {
"node": ">=0.6.11 <=0.7.0 || >=0.7.3"
}
,"_resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.4.tgz"
,"_integrity": "sha1-LTeFoVjBdMmhbcLARuxfxfF0IhM="
,"_from": "tunnel@0.0.4"
}

Some files were not shown because too many files have changed in this diff Show more