Update action

This commit is contained in:
Anton Medvedev 2021-10-15 22:41:21 +02:00
parent c17d254b53
commit 2c2db8c641
59 changed files with 1430 additions and 4763 deletions

@ -1,6 +1,6 @@
MIT License MIT License
Copyright (c) 2020 Anton Medvedev Copyright (c) 2021 Anton Medvedev
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal

@ -2,29 +2,24 @@
```yaml ```yaml
- name: Deploy - name: Deploy
uses: deployphp/action@master uses: deployphp/action@1
with: with:
private-key: ${{ secrets.PRIVATE_KEY }} private-key: ${{ secrets.PRIVATE_KEY }}
known-hosts: ${{ secrets.KNOWN_HOSTS }} dep: deploy all
ssh-config: ${{ secrets.SSH_CONFIG }}
dep: deploy prod -v
``` ```
## Inputs ## Inputs
- `private-key` - Required. A private key to accessing servers. See [action.yaml](action.yaml).
- `known-hosts` - Optional. Host fingerprints. If omitted `StrictHostKeyChecking=no` will be used unless `ssh-config` is provided.
- `ssh-config` - Optional. SSH configuration.
- `dep` - Required. Arguments to pass to Deployer command.
## Deployer version ## Deployer version
First, the action will check for Deployer bin at those paths: First, the action will check for Deployer binary at those paths:
- `vendor/bin/dep` - `vendor/bin/dep`
- `bin/dep`
- `deployer.phar` - `deployer.phar`
If bin not found, phar version will be downloaded. If the binary not found, phar version will be downloaded from
[deployer.org](https://deployer.org/download).
## Example ## Example

@ -1,24 +1,42 @@
name: 'deployphp/action' name: 'deployphp/action'
description: 'Deploy with Deployer' description: 'Deploy with Deployer'
inputs: inputs:
private-key: private-key:
description: 'Private key'
required: true required: true
known-hosts: description: >
description: 'Known hosts' Private key for connecting to remote hosts. To generate private key:
required: false `ssh-keygen -o -t rsa -C 'action@deployer.org'`.
default: ''
ssh-config:
description: 'SSH configuration'
required: false
default: ''
dep: dep:
description: 'Deployer command' required: true
description: >
The deployer task to run. For example:
`deploy all`.
known-hosts:
required: false required: false
default: '' default: ''
description: >
Content of `~/.ssh/known_hosts` file. The public SSH keys for a
host may be obtained using the utility `ssh-keyscan`. For example,
`ssh-keyscan deployer.org`.
If known-hosts omitted, `StrictHostKeyChecking no` will be added to
`ssh_config`.
ssh-config:
required: false
default: ''
description: >
The SSH configuration.
runs: runs:
using: 'node12' using: 'node12'
main: 'index.js' main: 'index.js'
branding: branding:
color: blue color: blue
icon: send icon: send

@ -1,18 +1,17 @@
const core = require('@actions/core') const core = require('@actions/core')
const fs = require('fs') const fs = require('fs')
const execa = require('execa') const execa = require('execa')
const split = require('argv-split')
void function main() { void async function main() {
try { try {
ssh() await ssh()
dep() await dep()
} catch (err) { } catch (err) {
core.setFailed(err.message) core.setFailed(err.message)
} }
}() }()
function ssh() { async function ssh() {
let ssh = `${process.env['HOME']}/.ssh` let ssh = `${process.env['HOME']}/.ssh`
if (!fs.existsSync(ssh)) { if (!fs.existsSync(ssh)) {
@ -37,14 +36,14 @@ function ssh() {
const sshConfig = core.getInput('ssh-config') const sshConfig = core.getInput('ssh-config')
if (sshConfig !== '') { if (sshConfig !== '') {
fs.writeFile(`${ssh}/config`, sshConfig) fs.writeFileSync(`${ssh}/config`, sshConfig)
fs.chmodSync(`${ssh}/config`, '600') fs.chmodSync(`${ssh}/config`, '600')
} }
} }
function dep() { async function dep() {
let dep let dep
for (let c of ['vendor/bin/dep', 'bin/dep', 'deployer.phar']) { for (let c of ['vendor/bin/dep', 'deployer.phar']) {
if (fs.existsSync(c)) { if (fs.existsSync(c)) {
dep = c dep = c
break break
@ -54,14 +53,15 @@ function dep() {
if (!dep) { if (!dep) {
execa.commandSync('curl -LO https://deployer.org/deployer.phar') execa.commandSync('curl -LO https://deployer.org/deployer.phar')
execa.commandSync('sudo chmod +x deployer.phar') execa.commandSync('sudo chmod +x deployer.phar')
dep = './deployer.phar' dep = 'deployer.phar'
} }
const subprocess = execa(dep, split(core.getInput('dep'))) let p = execa.command(`php ${dep} ${core.getInput('dep')}`)
p.stdout.pipe(process.stdout)
subprocess.stdout.pipe(process.stdout); p.stderr.pipe(process.stderr)
try {
subprocess.catch(err => { await p
} catch (err) {
core.setFailed(err.shortMessage) core.setFailed(err.shortMessage)
}) }
} }

118
node_modules/@actions/core/README.md generated vendored

@ -16,11 +16,14 @@ import * as core from '@actions/core';
#### Inputs/Outputs #### 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. Action inputs can be read with `getInput` which returns a `string` or `getBooleanInput` which parses a boolean based on the [yaml 1.2 specification](https://yaml.org/spec/1.2/spec.html#id2804923). If `required` set to be false, the input should have a default value in `action.yml`.
Outputs can be set with `setOutput` which makes them available to be mapped into inputs of other actions to ensure they are decoupled.
```js ```js
const myInput = core.getInput('inputName', { required: true }); const myInput = core.getInput('inputName', { required: true });
const myBooleanInput = core.getBooleanInput('booleanInputName', { required: true });
const myMultilineInput = core.getMultilineInput('multilineInputName', { required: true });
core.setOutput('outputKey', 'outputVal'); core.setOutput('outputKey', 'outputVal');
``` ```
@ -66,7 +69,6 @@ catch (err) {
Note that `setNeutral` is not yet implemented in actions V2 but equivalent functionality is being planned. 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. 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). 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).
@ -90,6 +92,8 @@ try {
// Do stuff // Do stuff
core.info('Output to the actions build log') core.info('Output to the actions build log')
core.notice('This is a message that will also emit an annotation')
} }
catch (err) { catch (err) {
core.error(`Error ${err}, action may still succeed though`); core.error(`Error ${err}, action may still succeed though`);
@ -113,11 +117,65 @@ const result = await core.group('Do something async', async () => {
}) })
``` ```
#### Annotations
This library has 3 methods that will produce [annotations](https://docs.github.com/en/rest/reference/checks#create-a-check-run).
```js
core.error('This is a bad error. This will also fail the build.')
core.warning('Something went wrong, but it\'s not bad enough to fail the build.')
core.notice('Something happened that you might want to know about.')
```
These will surface to the UI in the Actions page and on Pull Requests. They look something like this:
![Annotations Image](../../docs/assets/annotations.png)
These annotations can also be attached to particular lines and columns of your source files to show exactly where a problem is occuring.
These options are:
```typescript
export interface AnnotationProperties {
/**
* A title for the annotation.
*/
title?: string
/**
* The name of the file for which the annotation should be created.
*/
file?: string
/**
* The start line for the annotation.
*/
startLine?: number
/**
* The end line for the annotation. Defaults to `startLine` when `startLine` is provided.
*/
endLine?: number
/**
* The start column for the annotation. Cannot be sent when `startLine` and `endLine` are different values.
*/
startColumn?: number
/**
* The start column for the annotation. Cannot be sent when `startLine` and `endLine` are different values.
* Defaults to `startColumn` when `startColumn` is provided.
*/
endColumn?: number
}
```
#### Styling output #### Styling output
Colored output is supported in the Action logs via standard [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code). 3/4 bit, 8 bit and 24 bit colors are all supported. Colored output is supported in the Action logs via standard [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code). 3/4 bit, 8 bit and 24 bit colors are all supported.
Foreground colors: Foreground colors:
```js ```js
// 3/4 bit // 3/4 bit
core.info('\u001b[35mThis foreground will be magenta') core.info('\u001b[35mThis foreground will be magenta')
@ -130,6 +188,7 @@ core.info('\u001b[38;2;255;0;0mThis foreground will be bright red')
``` ```
Background colors: Background colors:
```js ```js
// 3/4 bit // 3/4 bit
core.info('\u001b[43mThis background will be yellow'); core.info('\u001b[43mThis background will be yellow');
@ -156,6 +215,7 @@ core.info('\u001b[31;46mRed foreground with a cyan background and \u001b[1mbold
``` ```
> Note: Escape codes reset at the start of each line > Note: Escape codes reset at the start of each line
```js ```js
core.info('\u001b[35mThis foreground will be magenta') core.info('\u001b[35mThis foreground will be magenta')
core.info('This foreground will reset to the default') core.info('This foreground will reset to the default')
@ -172,7 +232,8 @@ core.info(style.color.ansi16m.hex('#abcdef') + 'Hello world!')
You can use this library to save state and get state for sharing information between a given wrapper action: You can use this library to save state and get state for sharing information between a given wrapper action:
**action.yml** **action.yml**:
```yaml ```yaml
name: 'Wrapper action sample' name: 'Wrapper action sample'
inputs: inputs:
@ -193,6 +254,7 @@ core.saveState("pidToKill", 12345);
``` ```
In action's `cleanup.js`: In action's `cleanup.js`:
```js ```js
const core = require('@actions/core'); const core = require('@actions/core');
@ -200,3 +262,51 @@ var pid = core.getState("pidToKill");
process.kill(pid); process.kill(pid);
``` ```
#### OIDC Token
You can use these methods to interact with the GitHub OIDC provider and get a JWT ID token which would help to get access token from third party cloud providers.
**Method Name**: getIDToken()
**Inputs**
audience : optional
**Outputs**
A [JWT](https://jwt.io/) ID Token
In action's `main.ts`:
```js
const core = require('@actions/core');
async function getIDTokenAction(): Promise<void> {
const audience = core.getInput('audience', {required: false})
const id_token1 = await core.getIDToken() // ID Token with default audience
const id_token2 = await core.getIDToken(audience) // ID token with custom audience
// this id_token can be used to get access token from third party cloud providers
}
getIDTokenAction()
```
In action's `actions.yml`:
```yaml
name: 'GetIDToken'
description: 'Get ID token from Github OIDC provider'
inputs:
audience:
description: 'Audience for which the ID token is intended for'
required: false
outputs:
id_token1:
description: 'ID token obtained from OIDC provider'
id_token2:
description: 'ID token obtained from OIDC provider'
runs:
using: 'node12'
main: 'dist/index.js'
```

@ -1,4 +1,4 @@
interface CommandProperties { export interface CommandProperties {
[key: string]: any; [key: string]: any;
} }
/** /**
@ -13,4 +13,3 @@ interface CommandProperties {
*/ */
export declare function issueCommand(command: string, properties: CommandProperties, message: any): 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 {};

@ -1,12 +1,25 @@
"use strict"; "use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
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 (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
result["default"] = mod; __setModuleDefault(result, mod);
return result; return result;
}; };
Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "__esModule", { value: true });
exports.issue = exports.issueCommand = void 0;
const os = __importStar(require("os")); const os = __importStar(require("os"));
const utils_1 = require("./utils"); const utils_1 = require("./utils");
/** /**

@ -1 +1 @@
{"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,EAA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AI,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"}

@ -4,6 +4,8 @@
export interface InputOptions { export interface InputOptions {
/** Optional. Whether the input is required. If required and not present, will throw. Defaults to false */ /** Optional. Whether the input is required. If required and not present, will throw. Defaults to false */
required?: boolean; required?: boolean;
/** Optional. Whether leading/trailing whitespace will be trimmed for the input. Defaults to true */
trimWhitespace?: boolean;
} }
/** /**
* The code to exit an action * The code to exit an action
@ -18,6 +20,37 @@ export declare enum ExitCode {
*/ */
Failure = 1 Failure = 1
} }
/**
* Optional properties that can be sent with annotatation commands (notice, error, and warning)
* See: https://docs.github.com/en/rest/reference/checks#create-a-check-run for more information about annotations.
*/
export interface AnnotationProperties {
/**
* A title for the annotation.
*/
title?: string;
/**
* The path of the file for which the annotation should be created.
*/
file?: string;
/**
* The start line for the annotation.
*/
startLine?: number;
/**
* The end line for the annotation. Defaults to `startLine` when `startLine` is provided.
*/
endLine?: number;
/**
* The start column for the annotation. Cannot be sent when `startLine` and `endLine` are different values.
*/
startColumn?: number;
/**
* The start column for the annotation. Cannot be sent when `startLine` and `endLine` are different values.
* Defaults to `startColumn` when `startColumn` is provided.
*/
endColumn?: number;
}
/** /**
* 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
@ -35,13 +68,35 @@ export declare function setSecret(secret: string): void;
*/ */
export declare function addPath(inputPath: string): void; export declare function addPath(inputPath: string): void;
/** /**
* Gets the value of an input. The value is also trimmed. * Gets the value of an input.
* Unless trimWhitespace is set to false in InputOptions, the value is also trimmed.
* Returns an empty string if the value is not defined.
* *
* @param name name of the input to get * @param name name of the input to get
* @param options optional. See InputOptions. * @param options optional. See InputOptions.
* @returns string * @returns string
*/ */
export declare function getInput(name: string, options?: InputOptions): string; export declare function getInput(name: string, options?: InputOptions): string;
/**
* Gets the values of an multiline input. Each value is also trimmed.
*
* @param name name of the input to get
* @param options optional. See InputOptions.
* @returns string[]
*
*/
export declare function getMultilineInput(name: string, options?: InputOptions): string[];
/**
* Gets the input value of the boolean type in the YAML 1.2 "core schema" specification.
* Support boolean input list: `true | True | TRUE | false | False | FALSE` .
* The return value is also in boolean type.
* ref: https://yaml.org/spec/1.2/spec.html#id2804923
*
* @param name name of the input to get
* @param options optional. See InputOptions.
* @returns boolean
*/
export declare function getBooleanInput(name: string, options?: InputOptions): boolean;
/** /**
* Sets the value of an output. * Sets the value of an output.
* *
@ -73,13 +128,21 @@ export declare function debug(message: string): void;
/** /**
* Adds an error issue * Adds an error issue
* @param message error issue message. Errors will be converted to string via toString() * @param message error issue message. Errors will be converted to string via toString()
* @param properties optional properties to add to the annotation.
*/ */
export declare function error(message: string | Error): void; export declare function error(message: string | Error, properties?: AnnotationProperties): void;
/** /**
* Adds an warning issue * Adds a warning issue
* @param message warning issue message. Errors will be converted to string via toString() * @param message warning issue message. Errors will be converted to string via toString()
* @param properties optional properties to add to the annotation.
*/ */
export declare function warning(message: string | Error): void; export declare function warning(message: string | Error, properties?: AnnotationProperties): void;
/**
* Adds a notice issue
* @param message notice issue message. Errors will be converted to string via toString()
* @param properties optional properties to add to the annotation.
*/
export declare function notice(message: string | Error, properties?: AnnotationProperties): void;
/** /**
* Writes info to log with console.log. * Writes info to log with console.log.
* @param message info message * @param message info message
@ -120,3 +183,4 @@ export declare function saveState(name: string, value: any): void;
* @returns string * @returns string
*/ */
export declare function getState(name: string): string; export declare function getState(name: string): string;
export declare function getIDToken(aud?: string): Promise<string>;

@ -1,4 +1,23 @@
"use strict"; "use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) { return new (P || (P = Promise))(function (resolve, reject) {
@ -8,19 +27,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
step((generator = generator.apply(thisArg, _arguments || [])).next()); 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 });
exports.getIDToken = exports.getState = exports.saveState = exports.group = exports.endGroup = exports.startGroup = exports.info = exports.notice = exports.warning = exports.error = exports.debug = exports.isDebug = exports.setFailed = exports.setCommandEcho = exports.setOutput = exports.getBooleanInput = exports.getMultilineInput = exports.getInput = exports.addPath = exports.setSecret = exports.exportVariable = exports.ExitCode = void 0;
const command_1 = require("./command"); const command_1 = require("./command");
const file_command_1 = require("./file-command"); const file_command_1 = require("./file-command");
const utils_1 = require("./utils"); const utils_1 = require("./utils");
const os = __importStar(require("os")); const os = __importStar(require("os"));
const path = __importStar(require("path")); const path = __importStar(require("path"));
const oidc_utils_1 = require("./oidc-utils");
/** /**
* The code to exit an action * The code to exit an action
*/ */
@ -82,7 +96,9 @@ function addPath(inputPath) {
} }
exports.addPath = addPath; exports.addPath = addPath;
/** /**
* Gets the value of an input. The value is also trimmed. * Gets the value of an input.
* Unless trimWhitespace is set to false in InputOptions, the value is also trimmed.
* Returns an empty string if the value is not defined.
* *
* @param name name of the input to get * @param name name of the input to get
* @param options optional. See InputOptions. * @param options optional. See InputOptions.
@ -93,9 +109,49 @@ function getInput(name, options) {
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}`);
} }
if (options && options.trimWhitespace === false) {
return val;
}
return val.trim(); return val.trim();
} }
exports.getInput = getInput; exports.getInput = getInput;
/**
* Gets the values of an multiline input. Each value is also trimmed.
*
* @param name name of the input to get
* @param options optional. See InputOptions.
* @returns string[]
*
*/
function getMultilineInput(name, options) {
const inputs = getInput(name, options)
.split('\n')
.filter(x => x !== '');
return inputs;
}
exports.getMultilineInput = getMultilineInput;
/**
* Gets the input value of the boolean type in the YAML 1.2 "core schema" specification.
* Support boolean input list: `true | True | TRUE | false | False | FALSE` .
* The return value is also in boolean type.
* ref: https://yaml.org/spec/1.2/spec.html#id2804923
*
* @param name name of the input to get
* @param options optional. See InputOptions.
* @returns boolean
*/
function getBooleanInput(name, options) {
const trueValue = ['true', 'True', 'TRUE'];
const falseValue = ['false', 'False', 'FALSE'];
const val = getInput(name, options);
if (trueValue.includes(val))
return true;
if (falseValue.includes(val))
return false;
throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${name}\n` +
`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``);
}
exports.getBooleanInput = getBooleanInput;
/** /**
* Sets the value of an output. * Sets the value of an output.
* *
@ -151,19 +207,30 @@ exports.debug = debug;
/** /**
* Adds an error issue * Adds an error issue
* @param message error issue message. Errors will be converted to string via toString() * @param message error issue message. Errors will be converted to string via toString()
* @param properties optional properties to add to the annotation.
*/ */
function error(message) { function error(message, properties = {}) {
command_1.issue('error', message instanceof Error ? message.toString() : message); command_1.issueCommand('error', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message);
} }
exports.error = error; exports.error = error;
/** /**
* Adds an warning issue * Adds a warning issue
* @param message warning issue message. Errors will be converted to string via toString() * @param message warning issue message. Errors will be converted to string via toString()
* @param properties optional properties to add to the annotation.
*/ */
function warning(message) { function warning(message, properties = {}) {
command_1.issue('warning', message instanceof Error ? message.toString() : message); command_1.issueCommand('warning', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message);
} }
exports.warning = warning; exports.warning = warning;
/**
* Adds a notice issue
* @param message notice issue message. Errors will be converted to string via toString()
* @param properties optional properties to add to the annotation.
*/
function notice(message, properties = {}) {
command_1.issueCommand('notice', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message);
}
exports.notice = notice;
/** /**
* Writes info to log with console.log. * Writes info to log with console.log.
* @param message info message * @param message info message
@ -236,4 +303,10 @@ function getState(name) {
return process.env[`STATE_${name}`] || ''; return process.env[`STATE_${name}`] || '';
} }
exports.getState = getState; exports.getState = getState;
function getIDToken(aud) {
return __awaiter(this, void 0, void 0, function* () {
return yield oidc_utils_1.OidcClient.getIDToken(aud);
});
}
exports.getIDToken = getIDToken;
//# sourceMappingURL=core.js.map //# sourceMappingURL=core.js.map

@ -1 +1 @@
{"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,EA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;;;;;;;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;AAED,SAAsB,UAAU,CAAC,GAAY;;QAC3C,OAAO,MAAM,uBAAU,CAAC,UAAU,CAAC,GAAG,CAAC,CAAA;IACzC,CAAC;CAAA;AAFD,gCAEC"}

@ -1,13 +1,26 @@
"use strict"; "use strict";
// For internal use, subject to change. // For internal use, subject to change.
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
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 (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
result["default"] = mod; __setModuleDefault(result, mod);
return result; return result;
}; };
Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "__esModule", { value: true });
exports.issueCommand = void 0;
// We use any as a valid input type // We use any as a valid input type
/* eslint-disable @typescript-eslint/no-explicit-any */ /* eslint-disable @typescript-eslint/no-explicit-any */
const fs = __importStar(require("fs")); const fs = __importStar(require("fs"));

@ -1 +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"} {"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"}

@ -1,5 +1,14 @@
import { AnnotationProperties } from './core';
import { CommandProperties } from './command';
/** /**
* Sanitizes an input into a string so it can be passed into issueCommand safely * Sanitizes an input into a string so it can be passed into issueCommand safely
* @param input input to sanitize into a string * @param input input to sanitize into a string
*/ */
export declare function toCommandValue(input: any): string; export declare function toCommandValue(input: any): string;
/**
*
* @param annotationProperties
* @returns The command properties to send with the actual annotation command
* See IssueCommandProperties: https://github.com/actions/runner/blob/main/src/Runner.Worker/ActionCommandManager.cs#L646
*/
export declare function toCommandProperties(annotationProperties: AnnotationProperties): CommandProperties;

@ -2,6 +2,7 @@
// We use any as a valid input type // We use any as a valid input type
/* 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 });
exports.toCommandProperties = exports.toCommandValue = void 0;
/** /**
* Sanitizes an input into a string so it can be passed into issueCommand safely * Sanitizes an input into a string so it can be passed into issueCommand safely
* @param input input to sanitize into a string * @param input input to sanitize into a string
@ -16,4 +17,24 @@ function toCommandValue(input) {
return JSON.stringify(input); return JSON.stringify(input);
} }
exports.toCommandValue = toCommandValue; exports.toCommandValue = toCommandValue;
/**
*
* @param annotationProperties
* @returns The command properties to send with the actual annotation command
* See IssueCommandProperties: https://github.com/actions/runner/blob/main/src/Runner.Worker/ActionCommandManager.cs#L646
*/
function toCommandProperties(annotationProperties) {
if (!Object.keys(annotationProperties).length) {
return {};
}
return {
title: annotationProperties.title,
file: annotationProperties.file,
line: annotationProperties.startLine,
endLine: annotationProperties.endLine,
col: annotationProperties.startColumn,
endColumn: annotationProperties.endColumn
};
}
exports.toCommandProperties = toCommandProperties;
//# sourceMappingURL=utils.js.map //# sourceMappingURL=utils.js.map

@ -1 +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"} {"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";AAAA,mCAAmC;AACnC,uDAAuD;;;AAKvD;;;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;AAED;;;;;GAKG;AACH,SAAgB,mBAAmB,CACjC,oBAA0C;IAE1C,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC,MAAM,EAAE;QAC7C,OAAO,EAAE,CAAA;KACV;IAED,OAAO;QACL,KAAK,EAAE,oBAAoB,CAAC,KAAK;QACjC,IAAI,EAAE,oBAAoB,CAAC,IAAI;QAC/B,IAAI,EAAE,oBAAoB,CAAC,SAAS;QACpC,OAAO,EAAE,oBAAoB,CAAC,OAAO;QACrC,GAAG,EAAE,oBAAoB,CAAC,WAAW;QACrC,SAAS,EAAE,oBAAoB,CAAC,SAAS;KAC1C,CAAA;AACH,CAAC;AAfD,kDAeC"}

@ -1,38 +1,16 @@
{ {
"_from": "@actions/core@1.2.7",
"_id": "@actions/core@1.2.7",
"_inBundle": false,
"_integrity": "sha512-kzLFD5BgEvq6ubcxdgPbRKGD2Qrgya/5j+wh4LZzqT915I0V3rED+MvjH6NXghbvk1MXknpNNQ3uKjXSEN00Ig==",
"_location": "/@actions/core",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "@actions/core@1.2.7",
"name": "@actions/core", "name": "@actions/core",
"escapedName": "@actions%2fcore", "version": "1.6.0",
"scope": "@actions",
"rawSpec": "1.2.7",
"saveSpec": null,
"fetchSpec": "1.2.7"
},
"_requiredBy": [
"#USER",
"/"
],
"_resolved": "https://registry.npmjs.org/@actions/core/-/core-1.2.7.tgz",
"_shasum": "594f8c45b213f0146e4be7eda8ae5cf4e198e5ab",
"_spec": "@actions/core@1.2.7",
"_where": "/Users/andrei/Projects/forks/deployphp-action",
"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__"
@ -41,15 +19,6 @@
"lib", "lib",
"!.DS_Store" "!.DS_Store"
], ],
"homepage": "https://github.com/actions/toolkit/tree/main/packages/core",
"keywords": [
"github",
"actions",
"core"
],
"license": "MIT",
"main": "lib/core.js",
"name": "@actions/core",
"publishConfig": { "publishConfig": {
"access": "public" "access": "public"
}, },
@ -63,6 +32,13 @@
"test": "echo \"Error: run tests from root\" && exit 1", "test": "echo \"Error: run tests from root\" && exit 1",
"tsc": "tsc" "tsc": "tsc"
}, },
"types": "lib/core.d.ts", "bugs": {
"version": "1.2.7" "url": "https://github.com/actions/toolkit/issues"
},
"dependencies": {
"@actions/http-client": "^1.0.11"
},
"devDependencies": {
"@types/node": "^12.0.2"
}
} }

5
node_modules/argv-split/.babelrc generated vendored

@ -1,5 +0,0 @@
{
"presets": [
"es2015"
]
}

1
node_modules/argv-split/.npmignore generated vendored

@ -1 +0,0 @@
/index.js

@ -1,9 +0,0 @@
language: node_js
node_js:
# - "0.10"
# - "0.11"
# - "0.12"
# - "4.2"
- "5.0"
- "6"
- "7"

21
node_modules/argv-split/LICENSE-MIT generated vendored

@ -1,21 +0,0 @@
Copyright (c) 2013 kaelzhang <i@kael.me>, contributors
http://kael.me/
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

110
node_modules/argv-split/README.md generated vendored

@ -1,110 +0,0 @@
[![Build Status](https://travis-ci.org/kaelzhang/node-argv-split.svg?branch=master)](https://travis-ci.org/kaelzhang/node-argv-split)
[![Dependency Status](https://gemnasium.com/kaelzhang/node-argv-split.svg)](https://gemnasium.com/kaelzhang/node-argv-split)
# argv-split
Split argv(argument vector) and handle special cases, such as quoted or escaped values.
## Why?
```js
const split = require('split')
const mkdir = 'mkdir "foo bar"'
mkdir.split(' ') // ['mkdir', '"foo', 'bar"'] -> Oops!
split(mkdir) // ['mkdir', 'foo bar'] -> Oh yeah!
const mkdir2 = 'mkdir foo\\ bar'.split(' ')
mkdir2.split(' ') // ['mkdir', 'foo\\', 'bar'] -> Oops!
split(mkdir2) // ['mkdir', 'foo bar'] -> Oh yeah!
```
## `argv-split` handles all special cases with complete unit tests.
```sh
# shell command: javascript array:
foo a\ b # ['foo', 'a b']
foo \' # ['foo', '\\\'']
foo \" # ['foo', '\\"']
foo "a b" # ['foo', 'a b']
foo "a\ b" # ['foo', 'a\\ b']
foo '\' # ['foo', '\\']
foo --abc="a b" # ['foo', '--abc=a b']
foo --abc=a\ b # ['foo', '--abc=a b']
# argv-split also handles carriage returns
foo \
--abc=a\ b # ['foo', '--abc=a b']
# etc
```
```js
split('foo \\\n --abc=a\\ b') // ['foo', '--abc=a b']
```
## Error Codes
### `UNMATCHED_SINGLE`
If a command missed the closing single quote, the error will throw:
Shell command:
```sh
foo --abc 'abc
```
```js
try {
split('foo --abc \'abc')
} catch (e) {
console.log(e.code) // 'UNMATCHED_SINGLE'
}
```
### `UNMATCHED_DOUBLE`
If a command missed the closing double quote, the error will throw:
```sh
foo --abc "abc
```
### `ESCAPED_EOF`
If a command unexpectedly ends with a `\`, the error will throw:
```sh
foo --abc a\# if there is nothing after \, the error will throw
foo --abc a\ # if there is a whitespace after, then -> ['foo', '--abc', 'a ']
```
### `NON_STRING`
If the argument passed to `split` is not a string, the error will throw
```js
split(undefined)
```
## Install
```sh
$ npm install argv-split --save
```
### split(string)
Splits a string, and balance quoted parts. The usage is quite simple, see examples above.
Returns `Array`
### ~~split.join()~~
Temporarily removed in `2.0.0`, and will be added in `2.1.0`
## License
MIT

73
node_modules/argv-split/package.json generated vendored

@ -1,73 +0,0 @@
{
"_from": "argv-split",
"_id": "argv-split@2.0.1",
"_inBundle": false,
"_integrity": "sha1-viZBF3kNvVzNY+w/RJoYBIFKxMU=",
"_location": "/argv-split",
"_phantomChildren": {},
"_requested": {
"type": "tag",
"registry": true,
"raw": "argv-split",
"name": "argv-split",
"escapedName": "argv-split",
"rawSpec": "",
"saveSpec": null,
"fetchSpec": "latest"
},
"_requiredBy": [
"#USER",
"/"
],
"_resolved": "https://registry.npmjs.org/argv-split/-/argv-split-2.0.1.tgz",
"_shasum": "be264117790dbd5ccd63ec3f449a1804814ac4c5",
"_spec": "argv-split",
"_where": "/Users/anton/dev/action",
"author": {
"name": "Kael"
},
"ava": {
"require": "babel-register",
"babel": {
"babelrc": true
},
"files": [
"test/*.js"
]
},
"bugs": {
"url": "https://github.com/kaelzhang/node-argv-split/issues"
},
"bundleDependencies": false,
"deprecated": false,
"description": "Split argv(argument vector) and handle special cases, such as quoted values.",
"devDependencies": {
"ava": "^0.18.2",
"babel-cli": "^6.16.0",
"babel-preset-es2015": "^6.16.0"
},
"engines": {
"node": ">=0.10.0"
},
"homepage": "https://github.com/kaelzhang/node-argv-split#readme",
"keywords": [
"argv",
"argument-vector",
"split",
"quote",
"quoted-value",
"balance"
],
"license": "MIT",
"main": "split.js",
"name": "argv-split",
"repository": {
"type": "git",
"url": "git://github.com/kaelzhang/node-argv-split.git"
},
"scripts": {
"build": "babel index.js --out-file split.js",
"test": "npm run build && node --harmony ./node_modules/.bin/ava --verbose --timeout=10s"
},
"version": "2.0.1"
}

214
node_modules/argv-split/split.js generated vendored

@ -1,214 +0,0 @@
'use strict';
var _CHARS;
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
module.exports = split;
// split.join = join
// Flags Characters
// 0 1 2 3 4 5
// ------------------------------------------------------------------------
// \ ' " normal space \n
// e,sq n/a n/a n/a n/a n/a n/a
// 0 ue,sq a \ suq a " a + a _ EOF
// 1 e,dq a \,ue a \',ue a ",ue a \+,ue a \_,ue ue
// 2 ue,dq e a ' duq a + a _ EOF
// 3 e,uq a \,ue a \',ue a \",ue a \+,ue a _,ue ue
// 4 ue,uq e sq dq a + tp EOF
var MATRIX = {
// object is more readable than multi-dim array.
0: [a, suq, a, a, a, EOF],
1: [eaue, aue, eaue, aue, aue, ue],
2: [e, a, duq, a, a, EOF],
3: [eaue, aue, aue, aue, eaue, ue],
4: [e, sq, dq, a, tp, EOF]
};
// - a: add
// - e: turn on escape mode
// - ue: turn off escape mode
// - q: turn on quote mode
// - sq: single quoted
// - dq: double quoted
// - uq: turn off quote mode
// - tp: try to push if there is something in the stash
// - EOF: end of file(input)
var escaped = false; // 1
var single_quoted = false; // 2
var double_quoted = false; // 4
var ended = false;
var FLAGS = {
2: 0,
5: 1,
4: 2,
1: 3,
0: 4
};
function y() {
var sum = 0;
if (escaped) {
sum++;
}
if (single_quoted) {
sum += 2;
}
if (double_quoted) {
sum += 4;
}
return FLAGS[sum];
}
var BACK_SLASH = '\\';
var SINGLE_QUOTE = "'";
var DOUBLE_QUOTE = '"';
var WHITE_SPACE = ' ';
var CARRIAGE_RETURN = '\n';
function x() {
return c in CHARS ? CHARS[c] : CHARS.NORMAL;
}
var CHARS = (_CHARS = {}, _defineProperty(_CHARS, BACK_SLASH, 0), _defineProperty(_CHARS, SINGLE_QUOTE, 1), _defineProperty(_CHARS, DOUBLE_QUOTE, 2), _defineProperty(_CHARS, 'NORMAL', 3), _defineProperty(_CHARS, WHITE_SPACE, 4), _defineProperty(_CHARS, CARRIAGE_RETURN, 5), _CHARS);
var c = '';
var stash = '';
var ret = [];
function reset() {
escaped = false;
single_quoted = false;
double_quoted = false;
ended = false;
c = '';
stash = '';
ret.length = 0;
}
function a() {
stash += c;
}
function sq() {
single_quoted = true;
}
function suq() {
single_quoted = false;
}
function dq() {
double_quoted = true;
}
function duq() {
double_quoted = false;
}
function e() {
escaped = true;
}
function ue() {
escaped = false;
}
// add a backslash and a normal char, and turn off escaping
function aue() {
stash += BACK_SLASH + c;
escaped = false;
}
// add a escaped char and turn off escaping
function eaue() {
stash += c;
escaped = false;
}
// try to push
function tp() {
if (stash) {
ret.push(stash);
stash = '';
}
}
function EOF() {
ended = true;
}
function split(str) {
if (typeof str !== 'string') {
type_error('Str must be a string. Received ' + str, 'NON_STRING');
}
reset();
var length = str.length;
var i = -1;
while (++i < length) {
c = str[i];
MATRIX[y()][x()]();
if (ended) {
break;
}
}
if (single_quoted) {
error('unmatched single quote', 'UNMATCHED_SINGLE');
}
if (double_quoted) {
error('unmatched double quote', 'UNMATCHED_DOUBLE');
}
if (escaped) {
error('unexpected end with \\', 'ESCAPED_EOF');
}
tp();
return ret;
}
function error(message, code) {
var err = new Error(message);
err.code = code;
throw err;
}
function type_error(message, code) {
var err = new TypeError(message);
err.code = code;
throw err;
}
// function join (args, options = {}) {
// const quote = options.quote || "'"
// return args.map(function (arg) {
// if (!arg) {
// return
// }
// return /\c+/.test(arg)
// // a b c -> 'a b c'
// // a 'b' -> 'a \'b\''
// ? quote + arg.replace("'", "\\'") + quote
// : arg
// }).join(WHITE_SPACE)
// }

1
node_modules/argv-split/test.js generated vendored

@ -1 +0,0 @@
console.log(process.argv)

@ -1,108 +0,0 @@
'use strict'
const test = require('ava')
const split = require('..')
;[
{
d: 'normal',
a: 'a b c',
e: ['a', 'b', 'c']
},
{
d: 'double-quoted',
a: '"a b c"',
e: ['a b c']
},
{
d: 'double-quoted, and trailing normal',
a: '"a b" c',
e: ['a b', 'c']
},
{
d: 'double-quoted, and heading normal',
a: 'c "a b"',
e: ['c', 'a b']
},
{
d: 'single-quoted',
a: "'a b c'",
e: ['a b c']
},
{
d: 'single-quoted, and trailing normal',
a: "'a b' c",
e: ['a b', 'c']
},
{
d: 'single-quoted, and heading normal',
a: "c 'a b'",
e: ['c', 'a b']
},
{
d: 'escaped whitespaces',
a: 'a\\ b',
e: ['a b']
},
{
d: 'escaped whitespaces, and trailing normal',
a: 'a\\ b c',
e: ['a b', 'c']
},
{
d: 'escaped whitespaces, and heading normal',
a: 'c a\\ b',
e: ['c', 'a b']
},
{
d: 'non-starting single quote',
a: "a' b'",
e: ['a b']
},
{
d: 'non-staring single quote with =',
a: "--foo='bar baz'",
e: ['--foo=bar baz']
},
{
d: 'non-starting double quote',
a: 'a" b"',
e: ['a b']
},
{
d: 'non-starting double quote with =',
a: '--foo="bar baz"',
e: ['--foo=bar baz']
},
{
d: 'double-quoted escaped double quote',
a: '"bar\\" baz"',
e: ['bar" baz']
},
{
d: 'single-quoted escaped double quote, should not over unescaped',
a: '\'bar\\" baz\'',
e: ['bar\\" baz']
},
{
d: 'signle-quoted escaped single quote, should throw',
a: "'bar\' baz'",
throws: true
}
].forEach(({d, a, e, throws, only}) => {
const t = only
? test.only
: test
t(d, t => {
if (throws) {
t.throws(() => {
split(a)
})
return
}
// console.log(split(a), e)
t.deepEqual(split(a), e)
})
})

2825
node_modules/argv-split/yarn.lock generated vendored

File diff suppressed because it is too large Load Diff

109
node_modules/cross-spawn/package.json generated vendored

@ -1,35 +1,47 @@
{ {
"_from": "cross-spawn@^7.0.0",
"_id": "cross-spawn@7.0.3",
"_inBundle": false,
"_integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==",
"_location": "/cross-spawn",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "cross-spawn@^7.0.0",
"name": "cross-spawn", "name": "cross-spawn",
"escapedName": "cross-spawn", "version": "7.0.3",
"rawSpec": "^7.0.0", "description": "Cross platform child_process#spawn and child_process#spawnSync",
"saveSpec": null, "keywords": [
"fetchSpec": "^7.0.0" "spawn",
}, "spawnSync",
"_requiredBy": [ "windows",
"/execa" "cross-platform",
"path-ext",
"shebang",
"cmd",
"execute"
], ],
"_resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", "author": "André Cruz <andre@moxy.studio>",
"_shasum": "f73a85b9d5d41d045551c177e2882d4ac85728a6", "homepage": "https://github.com/moxystudio/node-cross-spawn",
"_spec": "cross-spawn@^7.0.0", "repository": {
"_where": "/Users/anton/dev/action/node_modules/execa", "type": "git",
"author": { "url": "git@github.com:moxystudio/node-cross-spawn.git"
"name": "André Cruz",
"email": "andre@moxy.studio"
}, },
"bugs": { "license": "MIT",
"url": "https://github.com/moxystudio/node-cross-spawn/issues" "main": "index.js",
"files": [
"lib"
],
"scripts": {
"lint": "eslint .",
"test": "jest --env node --coverage",
"prerelease": "npm t && npm run lint",
"release": "standard-version",
"postrelease": "git push --follow-tags origin HEAD && npm publish"
},
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.js": [
"eslint --fix",
"git add"
]
}, },
"bundleDependencies": false,
"commitlint": { "commitlint": {
"extends": [ "extends": [
"@commitlint/config-conventional" "@commitlint/config-conventional"
@ -40,8 +52,6 @@
"shebang-command": "^2.0.0", "shebang-command": "^2.0.0",
"which": "^2.0.1" "which": "^2.0.1"
}, },
"deprecated": false,
"description": "Cross platform child_process#spawn and child_process#spawnSync",
"devDependencies": { "devDependencies": {
"@commitlint/cli": "^8.1.0", "@commitlint/cli": "^8.1.0",
"@commitlint/config-conventional": "^8.1.0", "@commitlint/config-conventional": "^8.1.0",
@ -59,46 +69,5 @@
}, },
"engines": { "engines": {
"node": ">= 8" "node": ">= 8"
},
"files": [
"lib"
],
"homepage": "https://github.com/moxystudio/node-cross-spawn",
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
"pre-commit": "lint-staged"
} }
},
"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": {
"lint": "eslint .",
"postrelease": "git push --follow-tags origin HEAD && npm publish",
"prerelease": "npm t && npm run lint",
"release": "standard-version",
"test": "jest --env node --coverage"
},
"version": "7.0.3"
} }

14
node_modules/execa/index.d.ts generated vendored

@ -252,10 +252,20 @@ declare namespace execa {
interface ExecaReturnBase<StdoutStderrType> { interface ExecaReturnBase<StdoutStderrType> {
/** /**
The file and arguments that were run. The file and arguments that were run, for logging purposes.
This is not escaped and should not be executed directly as a process, including using `execa()` or `execa.command()`.
*/ */
command: string; command: string;
/**
Same as `command` but escaped.
This is meant to be copy and pasted into a shell, for debugging purposes.
Since the escaping is fairly basic, this should not be executed directly as a process, including using `execa()` or `execa.command()`.
*/
escapedCommand: string;
/** /**
The numeric exit code of the process that was run. The numeric exit code of the process that was run.
*/ */
@ -497,7 +507,7 @@ declare const execa: {
If the file or an argument contains spaces, they must be escaped with backslashes. This matters especially if `command` is not a constant but a variable, for example with `__dirname` or `process.cwd()`. Except for spaces, no escaping/quoting is needed. If the file or an argument contains spaces, they must be escaped with backslashes. This matters especially if `command` is not a constant but a variable, for example with `__dirname` or `process.cwd()`. Except for spaces, no escaping/quoting is needed.
The `shell` option must be used if the `command` uses shell-specific features, as opposed to being a simple `file` followed by its `arguments`. The `shell` option must be used if the `command` uses shell-specific features (for example, `&&` or `||`), as opposed to being a simple `file` followed by its `arguments`.
@param command - The program/script to execute and its arguments. @param command - The program/script to execute and its arguments.
@returns A [`child_process` instance](https://nodejs.org/api/child_process.html#child_process_class_childprocess), which is enhanced to also be a `Promise` for a result `Object` with `stdout` and `stderr` properties. @returns A [`child_process` instance](https://nodejs.org/api/child_process.html#child_process_class_childprocess), which is enhanced to also be a `Promise` for a result `Object` with `stdout` and `stderr` properties.

18
node_modules/execa/index.js generated vendored

@ -7,10 +7,10 @@ const npmRunPath = require('npm-run-path');
const onetime = require('onetime'); const onetime = require('onetime');
const makeError = require('./lib/error'); const makeError = require('./lib/error');
const normalizeStdio = require('./lib/stdio'); const normalizeStdio = require('./lib/stdio');
const {spawnedKill, spawnedCancel, setupTimeout, setExitHandler} = require('./lib/kill'); const {spawnedKill, spawnedCancel, setupTimeout, validateTimeout, setExitHandler} = require('./lib/kill');
const {handleInput, getSpawnedResult, makeAllStream, validateInputSync} = require('./lib/stream.js'); const {handleInput, getSpawnedResult, makeAllStream, validateInputSync} = require('./lib/stream');
const {mergePromise, getSpawnedPromise} = require('./lib/promise.js'); const {mergePromise, getSpawnedPromise} = require('./lib/promise');
const {joinCommand, parseCommand} = require('./lib/command.js'); const {joinCommand, parseCommand, getEscapedCommand} = require('./lib/command');
const DEFAULT_MAX_BUFFER = 1000 * 1000 * 100; const DEFAULT_MAX_BUFFER = 1000 * 1000 * 100;
@ -74,6 +74,9 @@ const handleOutput = (options, value, error) => {
const execa = (file, args, options) => { const execa = (file, args, options) => {
const parsed = handleArguments(file, args, options); const parsed = handleArguments(file, args, options);
const command = joinCommand(file, args); const command = joinCommand(file, args);
const escapedCommand = getEscapedCommand(file, args);
validateTimeout(parsed.options);
let spawned; let spawned;
try { try {
@ -87,6 +90,7 @@ const execa = (file, args, options) => {
stderr: '', stderr: '',
all: '', all: '',
command, command,
escapedCommand,
parsed, parsed,
timedOut: false, timedOut: false,
isCanceled: false, isCanceled: false,
@ -119,6 +123,7 @@ const execa = (file, args, options) => {
stderr, stderr,
all, all,
command, command,
escapedCommand,
parsed, parsed,
timedOut, timedOut,
isCanceled: context.isCanceled, isCanceled: context.isCanceled,
@ -134,6 +139,7 @@ const execa = (file, args, options) => {
return { return {
command, command,
escapedCommand,
exitCode: 0, exitCode: 0,
stdout, stdout,
stderr, stderr,
@ -159,6 +165,7 @@ module.exports = execa;
module.exports.sync = (file, args, options) => { module.exports.sync = (file, args, options) => {
const parsed = handleArguments(file, args, options); const parsed = handleArguments(file, args, options);
const command = joinCommand(file, args); const command = joinCommand(file, args);
const escapedCommand = getEscapedCommand(file, args);
validateInputSync(parsed.options); validateInputSync(parsed.options);
@ -172,6 +179,7 @@ module.exports.sync = (file, args, options) => {
stderr: '', stderr: '',
all: '', all: '',
command, command,
escapedCommand,
parsed, parsed,
timedOut: false, timedOut: false,
isCanceled: false, isCanceled: false,
@ -190,6 +198,7 @@ module.exports.sync = (file, args, options) => {
signal: result.signal, signal: result.signal,
exitCode: result.status, exitCode: result.status,
command, command,
escapedCommand,
parsed, parsed,
timedOut: result.error && result.error.code === 'ETIMEDOUT', timedOut: result.error && result.error.code === 'ETIMEDOUT',
isCanceled: false, isCanceled: false,
@ -205,6 +214,7 @@ module.exports.sync = (file, args, options) => {
return { return {
command, command,
escapedCommand,
exitCode: 0, exitCode: 0,
stdout, stdout,
stderr, stderr,

30
node_modules/execa/lib/command.js generated vendored

@ -1,14 +1,33 @@
'use strict'; 'use strict';
const SPACES_REGEXP = / +/g; const normalizeArgs = (file, args = []) => {
const joinCommand = (file, args = []) => {
if (!Array.isArray(args)) { if (!Array.isArray(args)) {
return file; return [file];
} }
return [file, ...args].join(' '); return [file, ...args];
}; };
const NO_ESCAPE_REGEXP = /^[\w.-]+$/;
const DOUBLE_QUOTES_REGEXP = /"/g;
const escapeArg = arg => {
if (typeof arg !== 'string' || NO_ESCAPE_REGEXP.test(arg)) {
return arg;
}
return `"${arg.replace(DOUBLE_QUOTES_REGEXP, '\\"')}"`;
};
const joinCommand = (file, args) => {
return normalizeArgs(file, args).join(' ');
};
const getEscapedCommand = (file, args) => {
return normalizeArgs(file, args).map(arg => escapeArg(arg)).join(' ');
};
const SPACES_REGEXP = / +/g;
// Handle `execa.command()` // Handle `execa.command()`
const parseCommand = command => { const parseCommand = command => {
const tokens = []; const tokens = [];
@ -28,5 +47,6 @@ const parseCommand = command => {
module.exports = { module.exports = {
joinCommand, joinCommand,
getEscapedCommand,
parseCommand parseCommand
}; };

2
node_modules/execa/lib/error.js generated vendored

@ -33,6 +33,7 @@ const makeError = ({
signal, signal,
exitCode, exitCode,
command, command,
escapedCommand,
timedOut, timedOut,
isCanceled, isCanceled,
killed, killed,
@ -61,6 +62,7 @@ const makeError = ({
error.shortMessage = shortMessage; error.shortMessage = shortMessage;
error.command = command; error.command = command;
error.escapedCommand = escapedCommand;
error.exitCode = exitCode; error.exitCode = exitCode;
error.signal = signal; error.signal = signal;
error.signalDescription = signalDescription; error.signalDescription = signalDescription;

11
node_modules/execa/lib/kill.js generated vendored

@ -71,10 +71,6 @@ const setupTimeout = (spawned, {timeout, killSignal = 'SIGTERM'}, spawnedPromise
return spawnedPromise; return spawnedPromise;
} }
if (!Number.isFinite(timeout) || timeout < 0) {
throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${timeout}\` (${typeof timeout})`);
}
let timeoutId; let timeoutId;
const timeoutPromise = new Promise((resolve, reject) => { const timeoutPromise = new Promise((resolve, reject) => {
timeoutId = setTimeout(() => { timeoutId = setTimeout(() => {
@ -89,6 +85,12 @@ const setupTimeout = (spawned, {timeout, killSignal = 'SIGTERM'}, spawnedPromise
return Promise.race([timeoutPromise, safeSpawnedPromise]); return Promise.race([timeoutPromise, safeSpawnedPromise]);
}; };
const validateTimeout = ({timeout}) => {
if (timeout !== undefined && (!Number.isFinite(timeout) || timeout < 0)) {
throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${timeout}\` (${typeof timeout})`);
}
};
// `cleanup` option handling // `cleanup` option handling
const setExitHandler = async (spawned, {cleanup, detached}, timedPromise) => { const setExitHandler = async (spawned, {cleanup, detached}, timedPromise) => {
if (!cleanup || detached) { if (!cleanup || detached) {
@ -108,5 +110,6 @@ module.exports = {
spawnedKill, spawnedKill,
spawnedCancel, spawnedCancel,
setupTimeout, setupTimeout,
validateTimeout,
setExitHandler setExitHandler
}; };

2
node_modules/execa/lib/stream.js generated vendored

@ -6,7 +6,7 @@ const mergeStream = require('merge-stream');
// `input` option // `input` option
const handleInput = (spawned, input) => { const handleInput = (spawned, input) => {
// Checking for stdin is workaround for https://github.com/nodejs/node/issues/26852 // Checking for stdin is workaround for https://github.com/nodejs/node/issues/26852
// TODO: Remove `|| spawned.stdin === undefined` once we drop support for Node.js <=12.2.0 // @todo remove `|| spawned.stdin === undefined` once we drop support for Node.js <=12.2.0
if (input === undefined || spawned.stdin === undefined) { if (input === undefined || spawned.stdin === undefined) {
return; return;
} }

99
node_modules/execa/package.json generated vendored

@ -1,71 +1,26 @@
{ {
"_from": "execa@5.0.0",
"_id": "execa@5.0.0",
"_inBundle": false,
"_integrity": "sha512-ov6w/2LCiuyO4RLYGdpFGjkcs0wMTgGE8PrkTHikeUy5iJekXyPIKUjifk5CsE0pt7sMCrMZ3YNqoCj6idQOnQ==",
"_location": "/execa",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "execa@5.0.0",
"name": "execa", "name": "execa",
"escapedName": "execa", "version": "5.1.1",
"rawSpec": "5.0.0", "description": "Process execution for humans",
"saveSpec": null, "license": "MIT",
"fetchSpec": "5.0.0" "repository": "sindresorhus/execa",
}, "funding": "https://github.com/sindresorhus/execa?sponsor=1",
"_requiredBy": [
"#USER",
"/"
],
"_resolved": "https://registry.npmjs.org/execa/-/execa-5.0.0.tgz",
"_shasum": "4029b0007998a841fbd1032e5f4de86a3c1e3376",
"_spec": "execa@5.0.0",
"_where": "/Users/andrei/Projects/forks/deployphp-action",
"author": { "author": {
"name": "Sindre Sorhus", "name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com", "email": "sindresorhus@gmail.com",
"url": "https://sindresorhus.com" "url": "https://sindresorhus.com"
}, },
"bugs": {
"url": "https://github.com/sindresorhus/execa/issues"
},
"bundleDependencies": false,
"dependencies": {
"cross-spawn": "^7.0.3",
"get-stream": "^6.0.0",
"human-signals": "^2.1.0",
"is-stream": "^2.0.0",
"merge-stream": "^2.0.0",
"npm-run-path": "^4.0.1",
"onetime": "^5.1.2",
"signal-exit": "^3.0.3",
"strip-final-newline": "^2.0.0"
},
"deprecated": false,
"description": "Process execution for humans",
"devDependencies": {
"@types/node": "^14.14.10",
"ava": "^2.4.0",
"get-node": "^11.0.1",
"is-running": "^2.1.0",
"nyc": "^15.1.0",
"p-event": "^4.2.0",
"tempfile": "^3.0.0",
"tsd": "^0.13.1",
"xo": "^0.35.0"
},
"engines": { "engines": {
"node": ">=10" "node": ">=10"
}, },
"scripts": {
"test": "xo && nyc ava && tsd"
},
"files": [ "files": [
"index.js", "index.js",
"index.d.ts", "index.d.ts",
"lib" "lib"
], ],
"funding": "https://github.com/sindresorhus/execa?sponsor=1",
"homepage": "https://github.com/sindresorhus/execa#readme",
"keywords": [ "keywords": [
"exec", "exec",
"child", "child",
@ -83,21 +38,37 @@
"path", "path",
"local" "local"
], ],
"license": "MIT", "dependencies": {
"name": "execa", "cross-spawn": "^7.0.3",
"get-stream": "^6.0.0",
"human-signals": "^2.1.0",
"is-stream": "^2.0.0",
"merge-stream": "^2.0.0",
"npm-run-path": "^4.0.1",
"onetime": "^5.1.2",
"signal-exit": "^3.0.3",
"strip-final-newline": "^2.0.0"
},
"devDependencies": {
"@types/node": "^14.14.10",
"ava": "^2.4.0",
"get-node": "^11.0.1",
"is-running": "^2.1.0",
"nyc": "^15.1.0",
"p-event": "^4.2.0",
"tempfile": "^3.0.0",
"tsd": "^0.13.1",
"xo": "^0.35.0"
},
"nyc": { "nyc": {
"reporter": [
"text",
"lcov"
],
"exclude": [ "exclude": [
"**/fixtures/**", "**/fixtures/**",
"**/test.js", "**/test.js",
"**/test/**" "**/test/**"
] ]
}, }
"repository": {
"type": "git",
"url": "git+https://github.com/sindresorhus/execa.git"
},
"scripts": {
"test": "xo && nyc ava && tsd"
},
"version": "5.0.0"
} }

19
node_modules/execa/readme.md generated vendored

@ -1,7 +1,7 @@
<img src="media/logo.svg" width="400"> <img src="media/logo.svg" width="400">
<br> <br>
[![Coverage Status](https://codecov.io/gh/sindresorhus/execa/branch/master/graph/badge.svg)](https://codecov.io/gh/sindresorhus/execa) [![Coverage Status](https://codecov.io/gh/sindresorhus/execa/branch/main/graph/badge.svg)](https://codecov.io/gh/sindresorhus/execa)
> Process execution for humans > Process execution for humans
@ -68,6 +68,7 @@ const execa = require('execa');
originalMessage: 'spawn unknown ENOENT', originalMessage: 'spawn unknown ENOENT',
shortMessage: 'Command failed with ENOENT: unknown command spawn unknown ENOENT', shortMessage: 'Command failed with ENOENT: unknown command spawn unknown ENOENT',
command: 'unknown command', command: 'unknown command',
escapedCommand: 'unknown command',
stdout: '', stdout: '',
stderr: '', stderr: '',
all: '', all: '',
@ -121,6 +122,7 @@ try {
originalMessage: 'spawnSync unknown ENOENT', originalMessage: 'spawnSync unknown ENOENT',
shortMessage: 'Command failed with ENOENT: unknown command spawnSync unknown ENOENT', shortMessage: 'Command failed with ENOENT: unknown command spawnSync unknown ENOENT',
command: 'unknown command', command: 'unknown command',
escapedCommand: 'unknown command',
stdout: '', stdout: '',
stderr: '', stderr: '',
all: '', all: '',
@ -200,7 +202,7 @@ Same as [`execa()`](#execafile-arguments-options) except both file and arguments
If the file or an argument contains spaces, they must be escaped with backslashes. This matters especially if `command` is not a constant but a variable, for example with `__dirname` or `process.cwd()`. Except for spaces, no escaping/quoting is needed. If the file or an argument contains spaces, they must be escaped with backslashes. This matters especially if `command` is not a constant but a variable, for example with `__dirname` or `process.cwd()`. Except for spaces, no escaping/quoting is needed.
The [`shell` option](#shell) must be used if the `command` uses shell-specific features, as opposed to being a simple `file` followed by its `arguments`. The [`shell` option](#shell) must be used if the `command` uses shell-specific features (for example, `&&` or `||`), as opposed to being a simple `file` followed by its `arguments`.
### execa.commandSync(command, options?) ### execa.commandSync(command, options?)
@ -234,7 +236,18 @@ The child process [fails](#failed) when:
Type: `string` Type: `string`
The file and arguments that were run. The file and arguments that were run, for logging purposes.
This is not escaped and should not be executed directly as a process, including using [`execa()`](#execafile-arguments-options) or [`execa.command()`](#execacommandcommand-options).
#### escapedCommand
Type: `string`
Same as [`command`](#command) but escaped.
This is meant to be copy and pasted into a shell, for debugging purposes.
Since the escaping is fairly basic, this should not be executed directly as a process, including using [`execa()`](#execafile-arguments-options) or [`execa.command()`](#execacommandcommand-options).
#### exitCode #### exitCode

62
node_modules/get-stream/package.json generated vendored

@ -1,55 +1,26 @@
{ {
"_from": "get-stream@^6.0.0",
"_id": "get-stream@6.0.1",
"_inBundle": false,
"_integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==",
"_location": "/get-stream",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "get-stream@^6.0.0",
"name": "get-stream", "name": "get-stream",
"escapedName": "get-stream", "version": "6.0.1",
"rawSpec": "^6.0.0", "description": "Get a stream as a string, buffer, or array",
"saveSpec": null, "license": "MIT",
"fetchSpec": "^6.0.0" "repository": "sindresorhus/get-stream",
}, "funding": "https://github.com/sponsors/sindresorhus",
"_requiredBy": [
"/execa"
],
"_resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz",
"_shasum": "a262d8eef67aced57c2852ad6167526a43cbf7b7",
"_spec": "get-stream@^6.0.0",
"_where": "/Users/andrei/Projects/forks/deployphp-action/node_modules/execa",
"author": { "author": {
"name": "Sindre Sorhus", "name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com", "email": "sindresorhus@gmail.com",
"url": "https://sindresorhus.com" "url": "https://sindresorhus.com"
}, },
"bugs": {
"url": "https://github.com/sindresorhus/get-stream/issues"
},
"bundleDependencies": false,
"deprecated": false,
"description": "Get a stream as a string, buffer, or array",
"devDependencies": {
"@types/node": "^14.0.27",
"ava": "^2.4.0",
"into-stream": "^5.0.0",
"tsd": "^0.13.1",
"xo": "^0.24.0"
},
"engines": { "engines": {
"node": ">=10" "node": ">=10"
}, },
"scripts": {
"test": "xo && ava && tsd"
},
"files": [ "files": [
"index.js", "index.js",
"index.d.ts", "index.d.ts",
"buffer-stream.js" "buffer-stream.js"
], ],
"funding": "https://github.com/sponsors/sindresorhus",
"homepage": "https://github.com/sindresorhus/get-stream#readme",
"keywords": [ "keywords": [
"get", "get",
"stream", "stream",
@ -66,14 +37,11 @@
"array", "array",
"object" "object"
], ],
"license": "MIT", "devDependencies": {
"name": "get-stream", "@types/node": "^14.0.27",
"repository": { "ava": "^2.4.0",
"type": "git", "into-stream": "^5.0.0",
"url": "git+https://github.com/sindresorhus/get-stream.git" "tsd": "^0.13.1",
}, "xo": "^0.24.0"
"scripts": { }
"test": "xo && ava && tsd"
},
"version": "6.0.1"
} }

@ -1,64 +1,20 @@
{ {
"_from": "human-signals@^2.1.0",
"_id": "human-signals@2.1.0",
"_inBundle": false,
"_integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==",
"_location": "/human-signals",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "human-signals@^2.1.0",
"name": "human-signals", "name": "human-signals",
"escapedName": "human-signals", "version": "2.1.0",
"rawSpec": "^2.1.0", "main": "build/src/main.js",
"saveSpec": null,
"fetchSpec": "^2.1.0"
},
"_requiredBy": [
"/execa"
],
"_resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz",
"_shasum": "dc91fcba42e4d06e4abaed33b3e7a3c02f514ea0",
"_spec": "human-signals@^2.1.0",
"_where": "/Users/andrei/Projects/forks/deployphp-action/node_modules/execa",
"author": {
"name": "ehmicky",
"email": "ehmicky@gmail.com",
"url": "https://github.com/ehmicky"
},
"bugs": {
"url": "https://github.com/ehmicky/human-signals/issues"
},
"bundleDependencies": false,
"dependencies": {},
"deprecated": false,
"description": "Human-friendly process signals",
"devDependencies": {
"@ehmicky/dev-tasks": "^0.31.9",
"ajv": "^6.12.0",
"ava": "^3.5.0",
"gulp": "^4.0.2",
"husky": "^4.2.3",
"test-each": "^2.0.0"
},
"directories": {
"lib": "src",
"test": "test"
},
"engines": {
"node": ">=10.17.0"
},
"files": [ "files": [
"build/src", "build/src",
"!~" "!~"
], ],
"homepage": "https://git.io/JeluP", "scripts": {
"test": "gulp test"
},
"husky": { "husky": {
"hooks": { "hooks": {
"pre-push": "gulp check --full" "pre-push": "gulp check --full"
} }
}, },
"description": "Human-friendly process signals",
"keywords": [ "keywords": [
"signal", "signal",
"signals", "signals",
@ -82,15 +38,27 @@
"nodejs" "nodejs"
], ],
"license": "Apache-2.0", "license": "Apache-2.0",
"main": "build/src/main.js", "homepage": "https://git.io/JeluP",
"name": "human-signals", "repository": "ehmicky/human-signals",
"repository": { "bugs": {
"type": "git", "url": "https://github.com/ehmicky/human-signals/issues"
"url": "git+https://github.com/ehmicky/human-signals.git"
}, },
"scripts": { "author": "ehmicky <ehmicky@gmail.com> (https://github.com/ehmicky)",
"test": "gulp test" "directories": {
"lib": "src",
"test": "test"
}, },
"types": "build/src/main.d.ts", "types": "build/src/main.d.ts",
"version": "2.1.0" "dependencies": {},
"devDependencies": {
"@ehmicky/dev-tasks": "^0.31.9",
"ajv": "^6.12.0",
"ava": "^3.5.0",
"gulp": "^4.0.2",
"husky": "^4.2.3",
"test-each": "^2.0.0"
},
"engines": {
"node": ">=10.17.0"
}
} }

1
node_modules/is-stream/index.d.ts generated vendored

@ -1,4 +1,3 @@
/// <reference types="node"/>
import * as stream from 'stream'; import * as stream from 'stream';
declare const isStream: { declare const isStream: {

3
node_modules/is-stream/index.js generated vendored

@ -23,7 +23,6 @@ isStream.duplex = stream =>
isStream.transform = stream => isStream.transform = stream =>
isStream.duplex(stream) && isStream.duplex(stream) &&
typeof stream._transform === 'function' && typeof stream._transform === 'function';
typeof stream._transformState === 'object';
module.exports = isStream; module.exports = isStream;

2
node_modules/is-stream/license generated vendored

@ -1,6 +1,6 @@
MIT License MIT License
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com) Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
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:

63
node_modules/is-stream/package.json generated vendored

@ -1,53 +1,25 @@
{ {
"_from": "is-stream@^2.0.0",
"_id": "is-stream@2.0.0",
"_inBundle": false,
"_integrity": "sha512-XCoy+WlUr7d1+Z8GgSuXmpuUFC9fOhRXglJMx+dwLKTkL44Cjd4W1Z5P+BQZpr+cR93aGP4S/s7Ftw6Nd/kiEw==",
"_location": "/is-stream",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "is-stream@^2.0.0",
"name": "is-stream", "name": "is-stream",
"escapedName": "is-stream", "version": "2.0.1",
"rawSpec": "^2.0.0", "description": "Check if something is a Node.js stream",
"saveSpec": null, "license": "MIT",
"fetchSpec": "^2.0.0" "repository": "sindresorhus/is-stream",
}, "funding": "https://github.com/sponsors/sindresorhus",
"_requiredBy": [
"/execa"
],
"_resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.0.tgz",
"_shasum": "bde9c32680d6fae04129d6ac9d921ce7815f78e3",
"_spec": "is-stream@^2.0.0",
"_where": "/Users/anton/dev/action/node_modules/execa",
"author": { "author": {
"name": "Sindre Sorhus", "name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com", "email": "sindresorhus@gmail.com",
"url": "sindresorhus.com" "url": "https://sindresorhus.com"
},
"bugs": {
"url": "https://github.com/sindresorhus/is-stream/issues"
},
"bundleDependencies": false,
"deprecated": false,
"description": "Check if something is a Node.js stream",
"devDependencies": {
"@types/node": "^11.13.6",
"ava": "^1.4.1",
"tempy": "^0.3.0",
"tsd": "^0.7.2",
"xo": "^0.24.0"
}, },
"engines": { "engines": {
"node": ">=8" "node": ">=8"
}, },
"scripts": {
"test": "xo && ava && tsd"
},
"files": [ "files": [
"index.js", "index.js",
"index.d.ts" "index.d.ts"
], ],
"homepage": "https://github.com/sindresorhus/is-stream#readme",
"keywords": [ "keywords": [
"stream", "stream",
"type", "type",
@ -60,14 +32,11 @@
"detect", "detect",
"is" "is"
], ],
"license": "MIT", "devDependencies": {
"name": "is-stream", "@types/node": "^11.13.6",
"repository": { "ava": "^1.4.1",
"type": "git", "tempy": "^0.3.0",
"url": "git+https://github.com/sindresorhus/is-stream.git" "tsd": "^0.7.2",
}, "xo": "^0.24.0"
"scripts": { }
"test": "xo && ava && tsd"
},
"version": "2.0.0"
} }

19
node_modules/is-stream/readme.md generated vendored

@ -1,15 +1,13 @@
# is-stream [![Build Status](https://travis-ci.org/sindresorhus/is-stream.svg?branch=master)](https://travis-ci.org/sindresorhus/is-stream) # is-stream
> Check if something is a [Node.js stream](https://nodejs.org/api/stream.html) > Check if something is a [Node.js stream](https://nodejs.org/api/stream.html)
## Install ## Install
``` ```
$ npm install is-stream $ npm install is-stream
``` ```
## Usage ## Usage
```js ```js
@ -23,7 +21,6 @@ isStream({});
//=> false //=> false
``` ```
## API ## API
### isStream(stream) ### isStream(stream)
@ -46,12 +43,18 @@ Returns a `boolean` for whether it's a [`stream.Duplex`](https://nodejs.org/api/
Returns a `boolean` for whether it's a [`stream.Transform`](https://nodejs.org/api/stream.html#stream_class_stream_transform). Returns a `boolean` for whether it's a [`stream.Transform`](https://nodejs.org/api/stream.html#stream_class_stream_transform).
## Related ## Related
- [is-file-stream](https://github.com/jamestalmage/is-file-stream) - Detect if a stream is a file stream - [is-file-stream](https://github.com/jamestalmage/is-file-stream) - Detect if a stream is a file stream
---
## License <div align="center">
<b>
MIT © [Sindre Sorhus](https://sindresorhus.com) <a href="https://tidelift.com/subscription/pkg/npm-is-stream?utm_source=npm-is-stream&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
</b>
<br>
<sub>
Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
</sub>
</div>

59
node_modules/isexe/package.json generated vendored

@ -1,60 +1,31 @@
{ {
"_from": "isexe@^2.0.0",
"_id": "isexe@2.0.0",
"_inBundle": false,
"_integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=",
"_location": "/isexe",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "isexe@^2.0.0",
"name": "isexe", "name": "isexe",
"escapedName": "isexe", "version": "2.0.0",
"rawSpec": "^2.0.0",
"saveSpec": null,
"fetchSpec": "^2.0.0"
},
"_requiredBy": [
"/which"
],
"_resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
"_shasum": "e8fbf374dc556ff8947a10dcb0572d633f2cfa10",
"_spec": "isexe@^2.0.0",
"_where": "/Users/anton/dev/action/node_modules/which",
"author": {
"name": "Isaac Z. Schlueter",
"email": "i@izs.me",
"url": "http://blog.izs.me/"
},
"bugs": {
"url": "https://github.com/isaacs/isexe/issues"
},
"bundleDependencies": false,
"deprecated": false,
"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"
} }

@ -1,54 +1,19 @@
{ {
"_from": "merge-stream@^2.0.0",
"_id": "merge-stream@2.0.0",
"_inBundle": false,
"_integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==",
"_location": "/merge-stream",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "merge-stream@^2.0.0",
"name": "merge-stream", "name": "merge-stream",
"escapedName": "merge-stream", "version": "2.0.0",
"rawSpec": "^2.0.0",
"saveSpec": null,
"fetchSpec": "^2.0.0"
},
"_requiredBy": [
"/execa"
],
"_resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz",
"_shasum": "52823629a14dd00c9770fb6ad47dc6310f2c1f60",
"_spec": "merge-stream@^2.0.0",
"_where": "/Users/anton/dev/action/node_modules/execa",
"author": {
"name": "Stephen Sugden",
"email": "me@stephensugden.com"
},
"bugs": {
"url": "https://github.com/grncdr/merge-stream/issues"
},
"bundleDependencies": false,
"dependencies": {},
"deprecated": false,
"description": "Create a stream that emits events from multiple other streams", "description": "Create a stream that emits events from multiple other streams",
"devDependencies": {
"from2": "^2.0.3",
"istanbul": "^0.4.5"
},
"files": [ "files": [
"index.js" "index.js"
], ],
"homepage": "https://github.com/grncdr/merge-stream#readme",
"license": "MIT",
"name": "merge-stream",
"repository": {
"type": "git",
"url": "git+https://github.com/grncdr/merge-stream.git"
},
"scripts": { "scripts": {
"test": "istanbul cover test.js && istanbul check-cover --statements 100 --branches 100" "test": "istanbul cover test.js && istanbul check-cover --statements 100 --branches 100"
}, },
"version": "2.0.0" "repository": "grncdr/merge-stream",
"author": "Stephen Sugden <me@stephensugden.com>",
"license": "MIT",
"dependencies": {},
"devDependencies": {
"from2": "^2.0.3",
"istanbul": "^0.4.5"
}
} }

56
node_modules/mimic-fn/package.json generated vendored

@ -1,51 +1,24 @@
{ {
"_from": "mimic-fn@^2.1.0",
"_id": "mimic-fn@2.1.0",
"_inBundle": false,
"_integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==",
"_location": "/mimic-fn",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "mimic-fn@^2.1.0",
"name": "mimic-fn", "name": "mimic-fn",
"escapedName": "mimic-fn", "version": "2.1.0",
"rawSpec": "^2.1.0", "description": "Make a function mimic another one",
"saveSpec": null, "license": "MIT",
"fetchSpec": "^2.1.0" "repository": "sindresorhus/mimic-fn",
},
"_requiredBy": [
"/onetime"
],
"_resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz",
"_shasum": "7ed2c2ccccaf84d3ffcb7a69b57711fc2083401b",
"_spec": "mimic-fn@^2.1.0",
"_where": "/Users/anton/dev/action/node_modules/onetime",
"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/mimic-fn/issues"
},
"bundleDependencies": false,
"deprecated": false,
"description": "Make a function mimic another one",
"devDependencies": {
"ava": "^1.4.1",
"tsd": "^0.7.1",
"xo": "^0.24.0"
},
"engines": { "engines": {
"node": ">=6" "node": ">=6"
}, },
"scripts": {
"test": "xo && ava && tsd"
},
"files": [ "files": [
"index.js", "index.js",
"index.d.ts" "index.d.ts"
], ],
"homepage": "https://github.com/sindresorhus/mimic-fn#readme",
"keywords": [ "keywords": [
"function", "function",
"mimic", "mimic",
@ -61,14 +34,9 @@
"infer", "infer",
"change" "change"
], ],
"license": "MIT", "devDependencies": {
"name": "mimic-fn", "ava": "^1.4.1",
"repository": { "tsd": "^0.7.1",
"type": "git", "xo": "^0.24.0"
"url": "git+https://github.com/sindresorhus/mimic-fn.git" }
},
"scripts": {
"test": "xo && ava && tsd"
},
"version": "2.1.0"
} }

@ -1,54 +1,24 @@
{ {
"_from": "npm-run-path@^4.0.0",
"_id": "npm-run-path@4.0.1",
"_inBundle": false,
"_integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==",
"_location": "/npm-run-path",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "npm-run-path@^4.0.0",
"name": "npm-run-path", "name": "npm-run-path",
"escapedName": "npm-run-path", "version": "4.0.1",
"rawSpec": "^4.0.0", "description": "Get your PATH prepended with locally installed binaries",
"saveSpec": null, "license": "MIT",
"fetchSpec": "^4.0.0" "repository": "sindresorhus/npm-run-path",
},
"_requiredBy": [
"/execa"
],
"_resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz",
"_shasum": "b7ecd1e5ed53da8e37a55e1c2269e0b97ed748ea",
"_spec": "npm-run-path@^4.0.0",
"_where": "/Users/anton/dev/action/node_modules/execa",
"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"
},
"bundleDependencies": false,
"dependencies": {
"path-key": "^3.0.0"
},
"deprecated": false,
"description": "Get your PATH prepended with locally installed binaries",
"devDependencies": {
"ava": "^1.4.1",
"tsd": "^0.7.2",
"xo": "^0.24.0"
},
"engines": { "engines": {
"node": ">=8" "node": ">=8"
}, },
"scripts": {
"test": "xo && ava && tsd"
},
"files": [ "files": [
"index.js", "index.js",
"index.d.ts" "index.d.ts"
], ],
"homepage": "https://github.com/sindresorhus/npm-run-path#readme",
"keywords": [ "keywords": [
"npm", "npm",
"run", "run",
@ -63,14 +33,12 @@
"execute", "execute",
"executable" "executable"
], ],
"license": "MIT", "dependencies": {
"name": "npm-run-path", "path-key": "^3.0.0"
"repository": {
"type": "git",
"url": "git+https://github.com/sindresorhus/npm-run-path.git"
}, },
"scripts": { "devDependencies": {
"test": "xo && ava && tsd" "ava": "^1.4.1",
}, "tsd": "^0.7.2",
"version": "4.0.1" "xo": "^0.24.0"
}
} }

62
node_modules/onetime/package.json generated vendored

@ -1,55 +1,25 @@
{ {
"_from": "onetime@^5.1.0",
"_id": "onetime@5.1.2",
"_inBundle": false,
"_integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==",
"_location": "/onetime",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "onetime@^5.1.0",
"name": "onetime", "name": "onetime",
"escapedName": "onetime", "version": "5.1.2",
"rawSpec": "^5.1.0", "description": "Ensure a function is only called once",
"saveSpec": null, "license": "MIT",
"fetchSpec": "^5.1.0" "repository": "sindresorhus/onetime",
}, "funding": "https://github.com/sponsors/sindresorhus",
"_requiredBy": [
"/execa"
],
"_resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz",
"_shasum": "d0e96ebb56b07476df1dd9c4806e5237985ca45e",
"_spec": "onetime@^5.1.0",
"_where": "/Users/anton/dev/action/node_modules/execa",
"author": { "author": {
"name": "Sindre Sorhus", "name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com", "email": "sindresorhus@gmail.com",
"url": "https://sindresorhus.com" "url": "https://sindresorhus.com"
}, },
"bugs": {
"url": "https://github.com/sindresorhus/onetime/issues"
},
"bundleDependencies": false,
"dependencies": {
"mimic-fn": "^2.1.0"
},
"deprecated": false,
"description": "Ensure a function is only called once",
"devDependencies": {
"ava": "^1.4.1",
"tsd": "^0.7.1",
"xo": "^0.24.0"
},
"engines": { "engines": {
"node": ">=6" "node": ">=6"
}, },
"scripts": {
"test": "xo && ava && tsd"
},
"files": [ "files": [
"index.js", "index.js",
"index.d.ts" "index.d.ts"
], ],
"funding": "https://github.com/sponsors/sindresorhus",
"homepage": "https://github.com/sindresorhus/onetime#readme",
"keywords": [ "keywords": [
"once", "once",
"function", "function",
@ -62,14 +32,12 @@
"called", "called",
"prevent" "prevent"
], ],
"license": "MIT", "dependencies": {
"name": "onetime", "mimic-fn": "^2.1.0"
"repository": {
"type": "git",
"url": "git+https://github.com/sindresorhus/onetime.git"
}, },
"scripts": { "devDependencies": {
"test": "xo && ava && tsd" "ava": "^1.4.1",
}, "tsd": "^0.7.1",
"version": "5.1.2" "xo": "^0.24.0"
}
} }

59
node_modules/path-key/package.json generated vendored

@ -1,53 +1,24 @@
{ {
"_from": "path-key@^3.1.0",
"_id": "path-key@3.1.1",
"_inBundle": false,
"_integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",
"_location": "/path-key",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "path-key@^3.1.0",
"name": "path-key", "name": "path-key",
"escapedName": "path-key", "version": "3.1.1",
"rawSpec": "^3.1.0", "description": "Get the PATH environment variable key cross-platform",
"saveSpec": null, "license": "MIT",
"fetchSpec": "^3.1.0" "repository": "sindresorhus/path-key",
},
"_requiredBy": [
"/cross-spawn",
"/npm-run-path"
],
"_resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",
"_shasum": "581f6ade658cbba65a0d3380de7753295054f375",
"_spec": "path-key@^3.1.0",
"_where": "/Users/anton/dev/action/node_modules/cross-spawn",
"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"
},
"bundleDependencies": false,
"deprecated": false,
"description": "Get the PATH environment variable key cross-platform",
"devDependencies": {
"@types/node": "^11.13.0",
"ava": "^1.4.1",
"tsd": "^0.7.2",
"xo": "^0.24.0"
},
"engines": { "engines": {
"node": ">=8" "node": ">=8"
}, },
"scripts": {
"test": "xo && ava && tsd"
},
"files": [ "files": [
"index.js", "index.js",
"index.d.ts" "index.d.ts"
], ],
"homepage": "https://github.com/sindresorhus/path-key#readme",
"keywords": [ "keywords": [
"path", "path",
"key", "key",
@ -59,14 +30,10 @@
"cross-platform", "cross-platform",
"windows" "windows"
], ],
"license": "MIT", "devDependencies": {
"name": "path-key", "@types/node": "^11.13.0",
"repository": { "ava": "^1.4.1",
"type": "git", "tsd": "^0.7.2",
"url": "git+https://github.com/sindresorhus/path-key.git" "xo": "^0.24.0"
}, }
"scripts": {
"test": "xo && ava && tsd"
},
"version": "3.1.1"
} }

@ -1,66 +1,34 @@
{ {
"_from": "shebang-command@^2.0.0",
"_id": "shebang-command@2.0.0",
"_inBundle": false,
"_integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",
"_location": "/shebang-command",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "shebang-command@^2.0.0",
"name": "shebang-command", "name": "shebang-command",
"escapedName": "shebang-command", "version": "2.0.0",
"rawSpec": "^2.0.0", "description": "Get the command from a shebang",
"saveSpec": null, "license": "MIT",
"fetchSpec": "^2.0.0" "repository": "kevva/shebang-command",
},
"_requiredBy": [
"/cross-spawn"
],
"_resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",
"_shasum": "ccd0af4f8835fbdc265b82461aaf0c36663f34ea",
"_spec": "shebang-command@^2.0.0",
"_where": "/Users/anton/dev/action/node_modules/cross-spawn",
"author": { "author": {
"name": "Kevin Mårtensson", "name": "Kevin Mårtensson",
"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"
},
"bundleDependencies": false,
"dependencies": {
"shebang-regex": "^3.0.0"
},
"deprecated": false,
"description": "Get the command from a shebang",
"devDependencies": {
"ava": "^2.3.0",
"xo": "^0.24.0"
},
"engines": { "engines": {
"node": ">=8" "node": ">=8"
}, },
"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": "^3.0.0"
"repository": {
"type": "git",
"url": "git+https://github.com/kevva/shebang-command.git"
}, },
"scripts": { "devDependencies": {
"test": "xo && ava" "ava": "^2.3.0",
}, "xo": "^0.24.0"
"version": "2.0.0" }
} }

@ -1,51 +1,24 @@
{ {
"_from": "shebang-regex@^3.0.0",
"_id": "shebang-regex@3.0.0",
"_inBundle": false,
"_integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",
"_location": "/shebang-regex",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "shebang-regex@^3.0.0",
"name": "shebang-regex", "name": "shebang-regex",
"escapedName": "shebang-regex", "version": "3.0.0",
"rawSpec": "^3.0.0", "description": "Regular expression for matching a shebang line",
"saveSpec": null, "license": "MIT",
"fetchSpec": "^3.0.0" "repository": "sindresorhus/shebang-regex",
},
"_requiredBy": [
"/shebang-command"
],
"_resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz",
"_shasum": "ae16f1644d873ecad843b0307b143362d4c42172",
"_spec": "shebang-regex@^3.0.0",
"_where": "/Users/anton/dev/action/node_modules/shebang-command",
"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"
},
"bundleDependencies": false,
"deprecated": false,
"description": "Regular expression for matching a shebang line",
"devDependencies": {
"ava": "^1.4.1",
"tsd": "^0.7.2",
"xo": "^0.24.0"
},
"engines": { "engines": {
"node": ">=8" "node": ">=8"
}, },
"scripts": {
"test": "xo && ava && tsd"
},
"files": [ "files": [
"index.js", "index.js",
"index.d.ts" "index.d.ts"
], ],
"homepage": "https://github.com/sindresorhus/shebang-regex#readme",
"keywords": [ "keywords": [
"regex", "regex",
"regexp", "regexp",
@ -54,14 +27,9 @@
"test", "test",
"line" "line"
], ],
"license": "MIT", "devDependencies": {
"name": "shebang-regex", "ava": "^1.4.1",
"repository": { "tsd": "^0.7.2",
"type": "git", "xo": "^0.24.0"
"url": "git+https://github.com/sindresorhus/shebang-regex.git" }
},
"scripts": {
"test": "xo && ava && tsd"
},
"version": "3.0.0"
} }

@ -1,35 +0,0 @@
# Changelog
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
### [3.0.3](https://github.com/tapjs/signal-exit/compare/v3.0.2...v3.0.3) (2020-03-26)
### Bug Fixes
* patch `SIGHUP` to `SIGINT` when on Windows ([cfd1046](https://github.com/tapjs/signal-exit/commit/cfd1046079af4f0e44f93c69c237a09de8c23ef2))
* **ci:** use Travis for Windows builds ([007add7](https://github.com/tapjs/signal-exit/commit/007add793d2b5ae3c382512103adbf321768a0b8))
<a name="3.0.1"></a>
## [3.0.1](https://github.com/tapjs/signal-exit/compare/v3.0.0...v3.0.1) (2016-09-08)
### Bug Fixes
* do not listen on SIGBUS, SIGFPE, SIGSEGV and SIGILL ([#40](https://github.com/tapjs/signal-exit/issues/40)) ([5b105fb](https://github.com/tapjs/signal-exit/commit/5b105fb))
<a name="3.0.0"></a>
# [3.0.0](https://github.com/tapjs/signal-exit/compare/v2.1.2...v3.0.0) (2016-06-13)
### Bug Fixes
* get our test suite running on Windows ([#23](https://github.com/tapjs/signal-exit/issues/23)) ([6f3eda8](https://github.com/tapjs/signal-exit/commit/6f3eda8))
* hooking SIGPROF was interfering with profilers see [#21](https://github.com/tapjs/signal-exit/issues/21) ([#24](https://github.com/tapjs/signal-exit/issues/24)) ([1248a4c](https://github.com/tapjs/signal-exit/commit/1248a4c))
### BREAKING CHANGES
* signal-exit no longer wires into SIGPROF

2
node_modules/signal-exit/README.md generated vendored

@ -30,7 +30,7 @@ The return value of the function is a function that will remove the
handler. handler.
Note that the function *only* fires for signals if the signal would Note that the function *only* fires for signals if the signal would
cause the proces to exit. That is, there are no other listeners, and cause the process to exit. That is, there are no other listeners, and
it is a fatal signal. it is a fatal signal.
## Options ## Options

37
node_modules/signal-exit/index.js generated vendored

@ -1,6 +1,12 @@
// Note: since nyc uses this module to output coverage, any lines // Note: since nyc uses this module to output coverage, any lines
// that are in the direct sync flow of nyc's outputCoverage are // that are in the direct sync flow of nyc's outputCoverage are
// ignored, since we can never get coverage for them. // ignored, since we can never get coverage for them.
// grab a reference to node's real process object right away
var process = global.process
// some kind of non-node environment, just no-op
if (typeof process !== 'object' || !process) {
module.exports = function () {}
} else {
var assert = require('assert') var assert = require('assert')
var signals = require('./signals.js') var signals = require('./signals.js')
var isWin = /^win/i.test(process.platform) var isWin = /^win/i.test(process.platform)
@ -30,6 +36,9 @@ if (!emitter.infinite) {
} }
module.exports = function (cb, opts) { module.exports = function (cb, opts) {
if (global.process !== process) {
return
}
assert.equal(typeof cb, 'function', 'a callback must be provided for exit handler') assert.equal(typeof cb, 'function', 'a callback must be provided for exit handler')
if (loaded === false) { if (loaded === false) {
@ -53,9 +62,8 @@ module.exports = function (cb, opts) {
return remove return remove
} }
module.exports.unload = unload var unload = function unload () {
function unload () { if (!loaded || global.process !== process) {
if (!loaded) {
return return
} }
loaded = false loaded = false
@ -69,8 +77,9 @@ function unload () {
process.reallyExit = originalProcessReallyExit process.reallyExit = originalProcessReallyExit
emitter.count -= 1 emitter.count -= 1
} }
module.exports.unload = unload
function emit (event, code, signal) { var emit = function emit (event, code, signal) {
if (emitter.emitted[event]) { if (emitter.emitted[event]) {
return return
} }
@ -82,6 +91,9 @@ function emit (event, code, signal) {
var sigListeners = {} var sigListeners = {}
signals.forEach(function (sig) { signals.forEach(function (sig) {
sigListeners[sig] = function listener () { sigListeners[sig] = function listener () {
if (process !== global.process) {
return
}
// If there are no other listeners, an exit is coming! // If there are no other listeners, an exit is coming!
// Simplest way: remove us and then re-send the signal. // Simplest way: remove us and then re-send the signal.
// We know that this will kill the process, so we can // We know that this will kill the process, so we can
@ -107,12 +119,10 @@ module.exports.signals = function () {
return signals return signals
} }
module.exports.load = load
var loaded = false var loaded = false
function load () { var load = function load () {
if (loaded) { if (loaded || process !== global.process) {
return return
} }
loaded = true loaded = true
@ -135,9 +145,13 @@ function load () {
process.emit = processEmit process.emit = processEmit
process.reallyExit = processReallyExit process.reallyExit = processReallyExit
} }
module.exports.load = load
var originalProcessReallyExit = process.reallyExit var originalProcessReallyExit = process.reallyExit
function processReallyExit (code) { var processReallyExit = function processReallyExit (code) {
if (process !== global.process) {
return
}
process.exitCode = code || 0 process.exitCode = code || 0
emit('exit', process.exitCode, null) emit('exit', process.exitCode, null)
/* istanbul ignore next */ /* istanbul ignore next */
@ -147,8 +161,8 @@ function processReallyExit (code) {
} }
var originalProcessEmit = process.emit var originalProcessEmit = process.emit
function processEmit (ev, arg) { var processEmit = function processEmit (ev, arg) {
if (ev === 'exit') { if (ev === 'exit' && process === global.process) {
if (arg !== undefined) { if (arg !== undefined) {
process.exitCode = arg process.exitCode = arg
} }
@ -161,3 +175,4 @@ function processEmit (ev, arg) {
return originalProcessEmit.apply(this, arguments) return originalProcessEmit.apply(this, arguments)
} }
} }
}

@ -1,66 +1,36 @@
{ {
"_from": "signal-exit@^3.0.2",
"_id": "signal-exit@3.0.3",
"_inBundle": false,
"_integrity": "sha512-VUJ49FC8U1OxwZLxIbTTrDvLnf/6TDgxZcK8wxR8zs13xpx7xbG60ndBlhNrFi2EMuFRoeDoJO7wthSLq42EjA==",
"_location": "/signal-exit",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "signal-exit@^3.0.2",
"name": "signal-exit", "name": "signal-exit",
"escapedName": "signal-exit", "version": "3.0.5",
"rawSpec": "^3.0.2",
"saveSpec": null,
"fetchSpec": "^3.0.2"
},
"_requiredBy": [
"/execa"
],
"_resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.3.tgz",
"_shasum": "a1410c2edd8f077b08b4e253c8eacfcaf057461c",
"_spec": "signal-exit@^3.0.2",
"_where": "/Users/anton/dev/action/node_modules/execa",
"author": {
"name": "Ben Coe",
"email": "ben@npmjs.com"
},
"bugs": {
"url": "https://github.com/tapjs/signal-exit/issues"
},
"bundleDependencies": false,
"deprecated": false,
"description": "when you want to fire an event no matter how a process exits.", "description": "when you want to fire an event no matter how a process exits.",
"devDependencies": { "main": "index.js",
"chai": "^3.5.0", "scripts": {
"coveralls": "^2.11.10", "test": "tap --timeout=240 ./test/*.js --cov",
"nyc": "^8.1.0", "coverage": "nyc report --reporter=text-lcov | coveralls",
"standard": "^8.1.0", "release": "standard-version"
"standard-version": "^2.3.0",
"tap": "^8.0.1"
}, },
"files": [ "files": [
"index.js", "index.js",
"signals.js" "signals.js"
], ],
"homepage": "https://github.com/tapjs/signal-exit", "repository": {
"type": "git",
"url": "https://github.com/tapjs/signal-exit.git"
},
"keywords": [ "keywords": [
"signal", "signal",
"exit" "exit"
], ],
"author": "Ben Coe <ben@npmjs.com>",
"license": "ISC", "license": "ISC",
"main": "index.js", "bugs": {
"name": "signal-exit", "url": "https://github.com/tapjs/signal-exit/issues"
"repository": {
"type": "git",
"url": "git+https://github.com/tapjs/signal-exit.git"
}, },
"scripts": { "homepage": "https://github.com/tapjs/signal-exit",
"coverage": "nyc report --reporter=text-lcov | coveralls", "devDependencies": {
"pretest": "standard", "chai": "^3.5.0",
"release": "standard-version", "coveralls": "^3.1.1",
"test": "tap --timeout=240 ./test/*.js --cov" "nyc": "^15.1.0",
}, "standard-version": "^9.3.1",
"version": "3.0.3" "tap": "^15.0.10"
}
} }

@ -1,49 +1,23 @@
{ {
"_from": "strip-final-newline@^2.0.0",
"_id": "strip-final-newline@2.0.0",
"_inBundle": false,
"_integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==",
"_location": "/strip-final-newline",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "strip-final-newline@^2.0.0",
"name": "strip-final-newline", "name": "strip-final-newline",
"escapedName": "strip-final-newline", "version": "2.0.0",
"rawSpec": "^2.0.0", "description": "Strip the final newline character from a string/buffer",
"saveSpec": null, "license": "MIT",
"fetchSpec": "^2.0.0" "repository": "sindresorhus/strip-final-newline",
},
"_requiredBy": [
"/execa"
],
"_resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz",
"_shasum": "89b852fb2fcbe936f6f4b3187afb0a12c1ab58ad",
"_spec": "strip-final-newline@^2.0.0",
"_where": "/Users/anton/dev/action/node_modules/execa",
"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-final-newline/issues"
},
"bundleDependencies": false,
"deprecated": false,
"description": "Strip the final newline character from a string/buffer",
"devDependencies": {
"ava": "^0.25.0",
"xo": "^0.23.0"
},
"engines": { "engines": {
"node": ">=6" "node": ">=6"
}, },
"scripts": {
"test": "xo && ava"
},
"files": [ "files": [
"index.js" "index.js"
], ],
"homepage": "https://github.com/sindresorhus/strip-final-newline#readme",
"keywords": [ "keywords": [
"strip", "strip",
"trim", "trim",
@ -59,14 +33,8 @@
"string", "string",
"buffer" "buffer"
], ],
"license": "MIT", "devDependencies": {
"name": "strip-final-newline", "ava": "^0.25.0",
"repository": { "xo": "^0.23.0"
"type": "git", }
"url": "git+https://github.com/sindresorhus/strip-final-newline.git"
},
"scripts": {
"test": "xo && ava"
},
"version": "2.0.0"
} }

75
node_modules/which/package.json generated vendored

@ -1,76 +1,43 @@
{ {
"_from": "which@^2.0.1", "author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me)",
"_id": "which@2.0.2",
"_inBundle": false,
"_integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
"_location": "/which",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "which@^2.0.1",
"name": "which", "name": "which",
"escapedName": "which", "description": "Like which(1) unix command. Find the first instance of an executable in the PATH.",
"rawSpec": "^2.0.1", "version": "2.0.2",
"saveSpec": null, "repository": {
"fetchSpec": "^2.0.1" "type": "git",
}, "url": "git://github.com/isaacs/node-which.git"
"_requiredBy": [
"/cross-spawn"
],
"_resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
"_shasum": "7c6a8dd0a636a0327e10b59c9286eee93f3f51b1",
"_spec": "which@^2.0.1",
"_where": "/Users/anton/dev/action/node_modules/cross-spawn",
"author": {
"name": "Isaac Z. Schlueter",
"email": "i@izs.me",
"url": "http://blog.izs.me"
}, },
"main": "which.js",
"bin": { "bin": {
"node-which": "bin/node-which" "node-which": "./bin/node-which"
}, },
"bugs": { "license": "ISC",
"url": "https://github.com/isaacs/node-which/issues"
},
"bundleDependencies": false,
"dependencies": { "dependencies": {
"isexe": "^2.0.0" "isexe": "^2.0.0"
}, },
"deprecated": false,
"description": "Like which(1) unix command. Find the first instance of an executable in the PATH.",
"devDependencies": { "devDependencies": {
"mkdirp": "^0.5.0", "mkdirp": "^0.5.0",
"rimraf": "^2.6.2", "rimraf": "^2.6.2",
"tap": "^14.6.9" "tap": "^14.6.9"
}, },
"engines": { "scripts": {
"node": ">= 8" "test": "tap",
"preversion": "npm test",
"postversion": "npm publish",
"prepublish": "npm run changelog",
"prechangelog": "bash gen-changelog.sh",
"changelog": "git add CHANGELOG.md",
"postchangelog": "git commit -m 'update changelog - '${npm_package_version}",
"postpublish": "git push origin --follow-tags"
}, },
"files": [ "files": [
"which.js", "which.js",
"bin/node-which" "bin/node-which"
], ],
"homepage": "https://github.com/isaacs/node-which#readme",
"license": "ISC",
"main": "which.js",
"name": "which",
"repository": {
"type": "git",
"url": "git://github.com/isaacs/node-which.git"
},
"scripts": {
"changelog": "git add CHANGELOG.md",
"postchangelog": "git commit -m 'update changelog - '${npm_package_version}",
"postpublish": "git push origin --follow-tags",
"postversion": "npm publish",
"prechangelog": "bash gen-changelog.sh",
"prepublish": "npm run changelog",
"preversion": "npm test",
"test": "tap"
},
"tap": { "tap": {
"check-coverage": true "check-coverage": true
}, },
"version": "2.0.2" "engines": {
"node": ">= 8"
}
} }

243
package-lock.json generated

@ -1,16 +1,220 @@
{ {
"name": "action",
"lockfileVersion": 2,
"requires": true, "requires": true,
"lockfileVersion": 1, "packages": {
"": {
"dependencies": {
"@actions/core": "^1.6.0",
"execa": "^5.1.1"
},
"engines": {
"node": ">=12"
}
},
"node_modules/@actions/core": {
"version": "1.6.0",
"resolved": "https://registry.npmjs.org/@actions/core/-/core-1.6.0.tgz",
"integrity": "sha512-NB1UAZomZlCV/LmJqkLhNTqtKfFXJZAUPcfl/zqG7EfsQdeUJtaWO98SGbuQ3pydJ3fHl2CvI/51OKYlCYYcaw==",
"dependencies": {
"@actions/http-client": "^1.0.11"
}
},
"node_modules/@actions/http-client": {
"version": "1.0.11",
"resolved": "https://registry.npmjs.org/@actions/http-client/-/http-client-1.0.11.tgz",
"integrity": "sha512-VRYHGQV1rqnROJqdMvGUbY/Kn8vriQe/F9HR2AlYHzmKuM/p3kjNuXhmdBfcVgsvRWTz5C5XW5xvndZrVBuAYg==",
"dependencies": {
"tunnel": "0.0.6"
}
},
"node_modules/cross-spawn": {
"version": "7.0.3",
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",
"integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==",
"dependencies": {
"path-key": "^3.1.0",
"shebang-command": "^2.0.0",
"which": "^2.0.1"
},
"engines": {
"node": ">= 8"
}
},
"node_modules/execa": {
"version": "5.1.1",
"resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz",
"integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==",
"dependencies": {
"cross-spawn": "^7.0.3",
"get-stream": "^6.0.0",
"human-signals": "^2.1.0",
"is-stream": "^2.0.0",
"merge-stream": "^2.0.0",
"npm-run-path": "^4.0.1",
"onetime": "^5.1.2",
"signal-exit": "^3.0.3",
"strip-final-newline": "^2.0.0"
},
"engines": {
"node": ">=10"
},
"funding": {
"url": "https://github.com/sindresorhus/execa?sponsor=1"
}
},
"node_modules/get-stream": {
"version": "6.0.1",
"resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz",
"integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==",
"engines": {
"node": ">=10"
},
"funding": {
"url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/human-signals": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz",
"integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==",
"engines": {
"node": ">=10.17.0"
}
},
"node_modules/is-stream": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz",
"integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==",
"engines": {
"node": ">=8"
},
"funding": {
"url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/isexe": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
"integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA="
},
"node_modules/merge-stream": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz",
"integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w=="
},
"node_modules/mimic-fn": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz",
"integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==",
"engines": {
"node": ">=6"
}
},
"node_modules/npm-run-path": {
"version": "4.0.1",
"resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz",
"integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==",
"dependencies": {
"path-key": "^3.0.0"
},
"engines": {
"node": ">=8"
}
},
"node_modules/onetime": {
"version": "5.1.2",
"resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz",
"integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==",
"dependencies": {
"mimic-fn": "^2.1.0"
},
"engines": {
"node": ">=6"
},
"funding": {
"url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/path-key": {
"version": "3.1.1",
"resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",
"integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",
"engines": {
"node": ">=8"
}
},
"node_modules/shebang-command": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",
"integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",
"dependencies": {
"shebang-regex": "^3.0.0"
},
"engines": {
"node": ">=8"
}
},
"node_modules/shebang-regex": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz",
"integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",
"engines": {
"node": ">=8"
}
},
"node_modules/signal-exit": {
"version": "3.0.5",
"resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.5.tgz",
"integrity": "sha512-KWcOiKeQj6ZyXx7zq4YxSMgHRlod4czeBQZrPb8OKcohcqAXShm7E20kEMle9WBt26hFcAf0qLOcp5zmY7kOqQ=="
},
"node_modules/strip-final-newline": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz",
"integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==",
"engines": {
"node": ">=6"
}
},
"node_modules/tunnel": {
"version": "0.0.6",
"resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.6.tgz",
"integrity": "sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==",
"engines": {
"node": ">=0.6.11 <=0.7.0 || >=0.7.3"
}
},
"node_modules/which": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
"integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
"dependencies": {
"isexe": "^2.0.0"
},
"bin": {
"node-which": "bin/node-which"
},
"engines": {
"node": ">= 8"
}
}
},
"dependencies": { "dependencies": {
"@actions/core": { "@actions/core": {
"version": "1.2.7", "version": "1.6.0",
"resolved": "https://registry.npmjs.org/@actions/core/-/core-1.2.7.tgz", "resolved": "https://registry.npmjs.org/@actions/core/-/core-1.6.0.tgz",
"integrity": "sha512-kzLFD5BgEvq6ubcxdgPbRKGD2Qrgya/5j+wh4LZzqT915I0V3rED+MvjH6NXghbvk1MXknpNNQ3uKjXSEN00Ig==" "integrity": "sha512-NB1UAZomZlCV/LmJqkLhNTqtKfFXJZAUPcfl/zqG7EfsQdeUJtaWO98SGbuQ3pydJ3fHl2CvI/51OKYlCYYcaw==",
"requires": {
"@actions/http-client": "^1.0.11"
}
}, },
"argv-split": { "@actions/http-client": {
"version": "2.0.1", "version": "1.0.11",
"resolved": "https://registry.npmjs.org/argv-split/-/argv-split-2.0.1.tgz", "resolved": "https://registry.npmjs.org/@actions/http-client/-/http-client-1.0.11.tgz",
"integrity": "sha1-viZBF3kNvVzNY+w/RJoYBIFKxMU=" "integrity": "sha512-VRYHGQV1rqnROJqdMvGUbY/Kn8vriQe/F9HR2AlYHzmKuM/p3kjNuXhmdBfcVgsvRWTz5C5XW5xvndZrVBuAYg==",
"requires": {
"tunnel": "0.0.6"
}
}, },
"cross-spawn": { "cross-spawn": {
"version": "7.0.3", "version": "7.0.3",
@ -23,9 +227,9 @@
} }
}, },
"execa": { "execa": {
"version": "5.0.0", "version": "5.1.1",
"resolved": "https://registry.npmjs.org/execa/-/execa-5.0.0.tgz", "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz",
"integrity": "sha512-ov6w/2LCiuyO4RLYGdpFGjkcs0wMTgGE8PrkTHikeUy5iJekXyPIKUjifk5CsE0pt7sMCrMZ3YNqoCj6idQOnQ==", "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==",
"requires": { "requires": {
"cross-spawn": "^7.0.3", "cross-spawn": "^7.0.3",
"get-stream": "^6.0.0", "get-stream": "^6.0.0",
@ -49,9 +253,9 @@
"integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==" "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw=="
}, },
"is-stream": { "is-stream": {
"version": "2.0.0", "version": "2.0.1",
"resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.0.tgz", "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz",
"integrity": "sha512-XCoy+WlUr7d1+Z8GgSuXmpuUFC9fOhRXglJMx+dwLKTkL44Cjd4W1Z5P+BQZpr+cR93aGP4S/s7Ftw6Nd/kiEw==" "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg=="
}, },
"isexe": { "isexe": {
"version": "2.0.0", "version": "2.0.0",
@ -103,15 +307,20 @@
"integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==" "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A=="
}, },
"signal-exit": { "signal-exit": {
"version": "3.0.3", "version": "3.0.5",
"resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.3.tgz", "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.5.tgz",
"integrity": "sha512-VUJ49FC8U1OxwZLxIbTTrDvLnf/6TDgxZcK8wxR8zs13xpx7xbG60ndBlhNrFi2EMuFRoeDoJO7wthSLq42EjA==" "integrity": "sha512-KWcOiKeQj6ZyXx7zq4YxSMgHRlod4czeBQZrPb8OKcohcqAXShm7E20kEMle9WBt26hFcAf0qLOcp5zmY7kOqQ=="
}, },
"strip-final-newline": { "strip-final-newline": {
"version": "2.0.0", "version": "2.0.0",
"resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz",
"integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==" "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA=="
}, },
"tunnel": {
"version": "0.0.6",
"resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.6.tgz",
"integrity": "sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg=="
},
"which": { "which": {
"version": "2.0.2", "version": "2.0.2",
"resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",

@ -1,8 +1,10 @@
{ {
"private": true, "private": true,
"dependencies": { "dependencies": {
"@actions/core": "^1.2.7", "@actions/core": "^1.6.0",
"argv-split": "^2.0.1", "execa": "^5.1.1"
"execa": "^5.0.0" },
"engines": {
"node": ">=12"
} }
} }