diff --git a/node_modules/.bin/semver b/node_modules/.bin/semver new file mode 120000 index 0000000..317eb29 --- /dev/null +++ b/node_modules/.bin/semver @@ -0,0 +1 @@ +../semver/bin/semver \ No newline at end of file diff --git a/node_modules/.bin/which b/node_modules/.bin/which new file mode 120000 index 0000000..f62471c --- /dev/null +++ b/node_modules/.bin/which @@ -0,0 +1 @@ +../which/bin/which \ No newline at end of file diff --git a/node_modules/@actions/core/LICENSE.md b/node_modules/@actions/core/LICENSE.md new file mode 100644 index 0000000..e5a73f4 --- /dev/null +++ b/node_modules/@actions/core/LICENSE.md @@ -0,0 +1,7 @@ +Copyright 2019 GitHub + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +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. \ No newline at end of file diff --git a/node_modules/@actions/core/README.md b/node_modules/@actions/core/README.md index 597525c..58a8287 100644 --- a/node_modules/@actions/core/README.md +++ b/node_modules/@actions/core/README.md @@ -1,7 +1,97 @@ -# `@actions/core` - -> Core functions for setting results, logging, registering secrets and exporting variables across actions - -## Usage - -See [src/core.ts](src/core.ts). +# `@actions/core` + +> Core functions for setting results, logging, registering secrets and exporting variables across actions + +## Usage + +#### Inputs/Outputs + +You can use this library to get inputs or set outputs: + +```js +const core = require('@actions/core'); + +const myInput = core.getInput('inputName', { required: true }); + +// Do stuff + +core.setOutput('outputKey', 'outputVal'); +``` + +#### Exporting variables + +You can also export variables for future steps. Variables get set in the environment. + +```js +const core = require('@actions/core'); + +// Do stuff + +core.exportVariable('envVar', 'Val'); +``` + +#### PATH Manipulation + +You can explicitly add items to the path for all remaining steps in a workflow: + +```js +const core = require('@actions/core'); + +core.addPath('pathToTool'); +``` + +#### Exit codes + +You should use this library to set the failing exit code for your action: + +```js +const core = require('@actions/core'); + +try { + // Do stuff +} +catch (err) { + // setFailed logs the message and sets a failing exit code + core.setFailed(`Action failed with error ${err}`); +} + +``` + +#### Logging + +Finally, this library provides some utilities for logging. Note that debug logging is hidden from the logs by default. This behavior can be toggled by enabling the [Step Debug Logs](../../docs/action-debugging.md#step-debug-logs). + +```js +const core = require('@actions/core'); + +const myInput = core.getInput('input'); +try { + core.debug('Inside try block'); + + if (!myInput) { + core.warning('myInput was not set'); + } + + // Do stuff +} +catch (err) { + core.error(`Error ${err}, action may still succeed though`); +} +``` + +This library can also wrap chunks of output in foldable groups. + +```js +const core = require('@actions/core') + +// Manually wrap output +core.startGroup('Do some function') +doSomeFunction() +core.endGroup() + +// Wrap an asynchronous function call +const result = await core.group('Do something async', async () => { + const response = await doSomeHTTPRequest() + return response +}) +``` \ No newline at end of file diff --git a/node_modules/@actions/core/lib/command.d.ts b/node_modules/@actions/core/lib/command.d.ts index c06fcff..7f6fecb 100644 --- a/node_modules/@actions/core/lib/command.d.ts +++ b/node_modules/@actions/core/lib/command.d.ts @@ -1,16 +1,16 @@ -interface CommandProperties { - [key: string]: string; -} -/** - * Commands - * - * Command Format: - * ##[name key=value;key=value]message - * - * Examples: - * ##[warning]This is the user warning message - * ##[set-secret name=mypassword]definatelyNotAPassword! - */ -export declare function issueCommand(command: string, properties: CommandProperties, message: string): void; -export declare function issue(name: string, message: string): void; -export {}; +interface CommandProperties { + [key: string]: string; +} +/** + * Commands + * + * Command Format: + * ##[name key=value;key=value]message + * + * Examples: + * ##[warning]This is the user warning message + * ##[set-secret name=mypassword]definitelyNotAPassword! + */ +export declare function issueCommand(command: string, properties: CommandProperties, message: string): void; +export declare function issue(name: string, message?: string): void; +export {}; diff --git a/node_modules/@actions/core/lib/command.js b/node_modules/@actions/core/lib/command.js index 707660c..f2297f5 100644 --- a/node_modules/@actions/core/lib/command.js +++ b/node_modules/@actions/core/lib/command.js @@ -1,66 +1,66 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const os = require("os"); -/** - * Commands - * - * Command Format: - * ##[name key=value;key=value]message - * - * Examples: - * ##[warning]This is the user warning message - * ##[set-secret name=mypassword]definatelyNotAPassword! - */ -function issueCommand(command, properties, message) { - const cmd = new Command(command, properties, message); - process.stdout.write(cmd.toString() + os.EOL); -} -exports.issueCommand = issueCommand; -function issue(name, message) { - issueCommand(name, {}, message); -} -exports.issue = issue; -const CMD_PREFIX = '##['; -class Command { - constructor(command, properties, message) { - if (!command) { - command = 'missing.command'; - } - this.command = command; - this.properties = properties; - this.message = message; - } - toString() { - let cmdStr = CMD_PREFIX + this.command; - if (this.properties && Object.keys(this.properties).length > 0) { - cmdStr += ' '; - for (const key in this.properties) { - if (this.properties.hasOwnProperty(key)) { - const val = this.properties[key]; - if (val) { - // safely append the val - avoid blowing up when attempting to - // call .replace() if message is not a string for some reason - cmdStr += `${key}=${escape(`${val || ''}`)};`; - } - } - } - } - cmdStr += ']'; - // safely append the message - avoid blowing up when attempting to - // call .replace() if message is not a string for some reason - const message = `${this.message || ''}`; - cmdStr += escapeData(message); - return cmdStr; - } -} -function escapeData(s) { - return s.replace(/\r/g, '%0D').replace(/\n/g, '%0A'); -} -function escape(s) { - return s - .replace(/\r/g, '%0D') - .replace(/\n/g, '%0A') - .replace(/]/g, '%5D') - .replace(/;/g, '%3B'); -} +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const os = require("os"); +/** + * Commands + * + * Command Format: + * ##[name key=value;key=value]message + * + * Examples: + * ##[warning]This is the user warning message + * ##[set-secret name=mypassword]definitelyNotAPassword! + */ +function issueCommand(command, properties, message) { + const cmd = new Command(command, properties, message); + process.stdout.write(cmd.toString() + os.EOL); +} +exports.issueCommand = issueCommand; +function issue(name, message = '') { + issueCommand(name, {}, message); +} +exports.issue = issue; +const CMD_PREFIX = '##['; +class Command { + constructor(command, properties, message) { + if (!command) { + command = 'missing.command'; + } + this.command = command; + this.properties = properties; + this.message = message; + } + toString() { + let cmdStr = CMD_PREFIX + this.command; + if (this.properties && Object.keys(this.properties).length > 0) { + cmdStr += ' '; + for (const key in this.properties) { + if (this.properties.hasOwnProperty(key)) { + const val = this.properties[key]; + if (val) { + // safely append the val - avoid blowing up when attempting to + // call .replace() if message is not a string for some reason + cmdStr += `${key}=${escape(`${val || ''}`)};`; + } + } + } + } + cmdStr += ']'; + // safely append the message - avoid blowing up when attempting to + // call .replace() if message is not a string for some reason + const message = `${this.message || ''}`; + cmdStr += escapeData(message); + return cmdStr; + } +} +function escapeData(s) { + return s.replace(/\r/g, '%0D').replace(/\n/g, '%0A'); +} +function escape(s) { + return s + .replace(/\r/g, '%0D') + .replace(/\n/g, '%0A') + .replace(/]/g, '%5D') + .replace(/;/g, '%3B'); +} //# sourceMappingURL=command.js.map \ No newline at end of file diff --git a/node_modules/@actions/core/lib/command.js.map b/node_modules/@actions/core/lib/command.js.map index 28ea330..6d3dacc 100644 --- a/node_modules/@actions/core/lib/command.js.map +++ b/node_modules/@actions/core/lib/command.js.map @@ -1 +1 @@ -{"version":3,"file":"command.js","sourceRoot":"","sources":["../src/command.ts"],"names":[],"mappings":";;AAAA,yBAAwB;AAQxB;;;;;;;;;GASG;AACH,SAAgB,YAAY,CAC1B,OAAe,EACf,UAA6B,EAC7B,OAAe;IAEf,MAAM,GAAG,GAAG,IAAI,OAAO,CAAC,OAAO,EAAE,UAAU,EAAE,OAAO,CAAC,CAAA;IACrD,OAAO,CAAC,MAA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EAAE,KAAK,CAAC,CAAA;AACzB,CAAC"} \ No newline at end of file diff --git a/node_modules/@actions/core/lib/core.d.ts b/node_modules/@actions/core/lib/core.d.ts index d2bf3fd..b741d43 100644 --- a/node_modules/@actions/core/lib/core.d.ts +++ b/node_modules/@actions/core/lib/core.d.ts @@ -1,81 +1,94 @@ -/** - * Interface for getInput options - */ -export interface InputOptions { - /** Optional. Whether the input is required. If required and not present, will throw. Defaults to false */ - required?: boolean; -} -/** - * The code to exit an action - */ -export declare enum ExitCode { - /** - * A code indicating that the action was successful - */ - Success = 0, - /** - * A code indicating that the action was a failure - */ - Failure = 1, - /** - * A code indicating that the action is complete, but neither succeeded nor failed - */ - Neutral = 78 -} -/** - * sets env variable for this action and future actions in the job - * @param name the name of the variable to set - * @param val the value of the variable - */ -export declare function exportVariable(name: string, val: string): void; -/** - * exports the variable and registers a secret which will get masked from logs - * @param name the name of the variable to set - * @param val value of the secret - */ -export declare function exportSecret(name: string, val: string): void; -/** - * Prepends inputPath to the PATH (for this action and future actions) - * @param inputPath - */ -export declare function addPath(inputPath: string): void; -/** - * Gets the value of an input. The value is also trimmed. - * - * @param name name of the input to get - * @param options optional. See InputOptions. - * @returns string - */ -export declare function getInput(name: string, options?: InputOptions): string; -/** - * Sets the value of an output. - * - * @param name name of the output to set - * @param value value to store - */ -export declare function setOutput(name: string, value: string): void; -/** - * Sets the action status to neutral - */ -export declare function setNeutral(): void; -/** - * Sets the action status to failed. - * When the action exits it will be with an exit code of 1 - * @param message add error issue message - */ -export declare function setFailed(message: string): void; -/** - * Writes debug message to user log - * @param message debug message - */ -export declare function debug(message: string): void; -/** - * Adds an error issue - * @param message error issue message - */ -export declare function error(message: string): void; -/** - * Adds an warning issue - * @param message warning issue message - */ -export declare function warning(message: string): void; +/** + * Interface for getInput options + */ +export interface InputOptions { + /** Optional. Whether the input is required. If required and not present, will throw. Defaults to false */ + required?: boolean; +} +/** + * The code to exit an action + */ +export declare enum ExitCode { + /** + * A code indicating that the action was successful + */ + Success = 0, + /** + * A code indicating that the action was a failure + */ + Failure = 1 +} +/** + * sets env variable for this action and future actions in the job + * @param name the name of the variable to set + * @param val the value of the variable + */ +export declare function exportVariable(name: string, val: string): void; +/** + * exports the variable and registers a secret which will get masked from logs + * @param name the name of the variable to set + * @param val value of the secret + */ +export declare function exportSecret(name: string, val: string): void; +/** + * Prepends inputPath to the PATH (for this action and future actions) + * @param inputPath + */ +export declare function addPath(inputPath: string): void; +/** + * Gets the value of an input. The value is also trimmed. + * + * @param name name of the input to get + * @param options optional. See InputOptions. + * @returns string + */ +export declare function getInput(name: string, options?: InputOptions): string; +/** + * Sets the value of an output. + * + * @param name name of the output to set + * @param value value to store + */ +export declare function setOutput(name: string, value: string): void; +/** + * Sets the action status to failed. + * When the action exits it will be with an exit code of 1 + * @param message add error issue message + */ +export declare function setFailed(message: string): void; +/** + * Writes debug message to user log + * @param message debug message + */ +export declare function debug(message: string): void; +/** + * Adds an error issue + * @param message error issue message + */ +export declare function error(message: string): void; +/** + * Adds an warning issue + * @param message warning issue message + */ +export declare function warning(message: string): void; +/** + * Begin an output group. + * + * Output until the next `groupEnd` will be foldable in this group + * + * @param name The name of the output group + */ +export declare function startGroup(name: string): void; +/** + * End an output group. + */ +export declare function endGroup(): void; +/** + * Wrap an asynchronous function call in a group. + * + * Returns the same type as the function itself. + * + * @param name The name of the group + * @param fn The function to wrap in the group + */ +export declare function group(name: string, fn: () => Promise): Promise; diff --git a/node_modules/@actions/core/lib/core.js b/node_modules/@actions/core/lib/core.js index fed37f3..54ce8e8 100644 --- a/node_modules/@actions/core/lib/core.js +++ b/node_modules/@actions/core/lib/core.js @@ -1,127 +1,168 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const command_1 = require("./command"); -const path = require("path"); -/** - * The code to exit an action - */ -var ExitCode; -(function (ExitCode) { - /** - * A code indicating that the action was successful - */ - ExitCode[ExitCode["Success"] = 0] = "Success"; - /** - * A code indicating that the action was a failure - */ - ExitCode[ExitCode["Failure"] = 1] = "Failure"; - /** - * A code indicating that the action is complete, but neither succeeded nor failed - */ - ExitCode[ExitCode["Neutral"] = 78] = "Neutral"; -})(ExitCode = exports.ExitCode || (exports.ExitCode = {})); -//----------------------------------------------------------------------- -// Variables -//----------------------------------------------------------------------- -/** - * sets env variable for this action and future actions in the job - * @param name the name of the variable to set - * @param val the value of the variable - */ -function exportVariable(name, val) { - process.env[name] = val; - command_1.issueCommand('set-env', { name }, val); -} -exports.exportVariable = exportVariable; -/** - * exports the variable and registers a secret which will get masked from logs - * @param name the name of the variable to set - * @param val value of the secret - */ -function exportSecret(name, val) { - exportVariable(name, val); - command_1.issueCommand('set-secret', {}, val); -} -exports.exportSecret = exportSecret; -/** - * Prepends inputPath to the PATH (for this action and future actions) - * @param inputPath - */ -function addPath(inputPath) { - command_1.issueCommand('add-path', {}, inputPath); - process.env['PATH'] = `${inputPath}${path.delimiter}${process.env['PATH']}`; -} -exports.addPath = addPath; -/** - * Gets the value of an input. The value is also trimmed. - * - * @param name name of the input to get - * @param options optional. See InputOptions. - * @returns string - */ -function getInput(name, options) { - const val = process.env[`INPUT_${name.replace(' ', '_').toUpperCase()}`] || ''; - if (options && options.required && !val) { - throw new Error(`Input required and not supplied: ${name}`); - } - return val.trim(); -} -exports.getInput = getInput; -/** - * Sets the value of an output. - * - * @param name name of the output to set - * @param value value to store - */ -function setOutput(name, value) { - command_1.issueCommand('set-output', { name }, value); -} -exports.setOutput = setOutput; -//----------------------------------------------------------------------- -// Results -//----------------------------------------------------------------------- -/** - * Sets the action status to neutral - */ -function setNeutral() { - process.exitCode = ExitCode.Neutral; -} -exports.setNeutral = setNeutral; -/** - * Sets the action status to failed. - * When the action exits it will be with an exit code of 1 - * @param message add error issue message - */ -function setFailed(message) { - process.exitCode = ExitCode.Failure; - error(message); -} -exports.setFailed = setFailed; -//----------------------------------------------------------------------- -// Logging Commands -//----------------------------------------------------------------------- -/** - * Writes debug message to user log - * @param message debug message - */ -function debug(message) { - command_1.issueCommand('debug', {}, message); -} -exports.debug = debug; -/** - * Adds an error issue - * @param message error issue message - */ -function error(message) { - command_1.issue('error', message); -} -exports.error = error; -/** - * Adds an warning issue - * @param message warning issue message - */ -function warning(message) { - command_1.issue('warning', message); -} -exports.warning = warning; +"use strict"; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const command_1 = require("./command"); +const path = require("path"); +/** + * The code to exit an action + */ +var ExitCode; +(function (ExitCode) { + /** + * A code indicating that the action was successful + */ + ExitCode[ExitCode["Success"] = 0] = "Success"; + /** + * A code indicating that the action was a failure + */ + ExitCode[ExitCode["Failure"] = 1] = "Failure"; +})(ExitCode = exports.ExitCode || (exports.ExitCode = {})); +//----------------------------------------------------------------------- +// Variables +//----------------------------------------------------------------------- +/** + * sets env variable for this action and future actions in the job + * @param name the name of the variable to set + * @param val the value of the variable + */ +function exportVariable(name, val) { + process.env[name] = val; + command_1.issueCommand('set-env', { name }, val); +} +exports.exportVariable = exportVariable; +/** + * exports the variable and registers a secret which will get masked from logs + * @param name the name of the variable to set + * @param val value of the secret + */ +function exportSecret(name, val) { + exportVariable(name, val); + // the runner will error with not implemented + // leaving the function but raising the error earlier + command_1.issueCommand('set-secret', {}, val); + throw new Error('Not implemented.'); +} +exports.exportSecret = exportSecret; +/** + * Prepends inputPath to the PATH (for this action and future actions) + * @param inputPath + */ +function addPath(inputPath) { + command_1.issueCommand('add-path', {}, inputPath); + process.env['PATH'] = `${inputPath}${path.delimiter}${process.env['PATH']}`; +} +exports.addPath = addPath; +/** + * Gets the value of an input. The value is also trimmed. + * + * @param name name of the input to get + * @param options optional. See InputOptions. + * @returns string + */ +function getInput(name, options) { + const val = process.env[`INPUT_${name.replace(' ', '_').toUpperCase()}`] || ''; + if (options && options.required && !val) { + throw new Error(`Input required and not supplied: ${name}`); + } + return val.trim(); +} +exports.getInput = getInput; +/** + * Sets the value of an output. + * + * @param name name of the output to set + * @param value value to store + */ +function setOutput(name, value) { + command_1.issueCommand('set-output', { name }, value); +} +exports.setOutput = setOutput; +//----------------------------------------------------------------------- +// Results +//----------------------------------------------------------------------- +/** + * Sets the action status to failed. + * When the action exits it will be with an exit code of 1 + * @param message add error issue message + */ +function setFailed(message) { + process.exitCode = ExitCode.Failure; + error(message); +} +exports.setFailed = setFailed; +//----------------------------------------------------------------------- +// Logging Commands +//----------------------------------------------------------------------- +/** + * Writes debug message to user log + * @param message debug message + */ +function debug(message) { + command_1.issueCommand('debug', {}, message); +} +exports.debug = debug; +/** + * Adds an error issue + * @param message error issue message + */ +function error(message) { + command_1.issue('error', message); +} +exports.error = error; +/** + * Adds an warning issue + * @param message warning issue message + */ +function warning(message) { + command_1.issue('warning', message); +} +exports.warning = warning; +/** + * Begin an output group. + * + * Output until the next `groupEnd` will be foldable in this group + * + * @param name The name of the output group + */ +function startGroup(name) { + command_1.issue('group', name); +} +exports.startGroup = startGroup; +/** + * End an output group. + */ +function endGroup() { + command_1.issue('endgroup'); +} +exports.endGroup = endGroup; +/** + * Wrap an asynchronous function call in a group. + * + * Returns the same type as the function itself. + * + * @param name The name of the group + * @param fn The function to wrap in the group + */ +function group(name, fn) { + return __awaiter(this, void 0, void 0, function* () { + startGroup(name); + let result; + try { + result = yield fn(); + } + finally { + endGroup(); + } + return result; + }); +} +exports.group = group; //# sourceMappingURL=core.js.map \ No newline at end of file diff --git a/node_modules/@actions/core/lib/core.js.map b/node_modules/@actions/core/lib/core.js.map index a202e23..e47240e 100644 --- a/node_modules/@actions/core/lib/core.js.map +++ b/node_modules/@actions/core/lib/core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,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"} \ No newline at end of file diff --git a/node_modules/@actions/core/package.json b/node_modules/@actions/core/package.json index 8622bc2..997d304 100644 --- a/node_modules/@actions/core/package.json +++ b/node_modules/@actions/core/package.json @@ -1,35 +1,34 @@ { - "_args": [ - [ - "@actions/core@file:toolkit/actions-core-0.0.0.tgz", - "/Users/rachmari/github-repos/hello-world-javascript-action" - ] - ], - "_from": "@actions/core@file:toolkit/actions-core-0.0.0.tgz", - "_id": "@actions/core@file:toolkit/actions-core-0.0.0.tgz", + "_from": "@actions/core", + "_id": "@actions/core@1.1.0", "_inBundle": false, - "_integrity": "sha512-P+mC79gXC2yvyU0+RDctxKUI1Q3tNruB+aSmFI47j2H0DylxtDEgycW9WXwt/zCY62lfwfvBoGKpuJRvFHDqpw==", + "_integrity": "sha512-KKpo3xzo0Zsikni9tbOsEQkxZBGDsYSJZNkTvmo0gPSXrc98TBOcdTvKwwjitjkjHkreTggWdB1ACiAFVgsuzA==", "_location": "/@actions/core", "_phantomChildren": {}, "_requested": { - "type": "file", - "where": "/Users/rachmari/github-repos/hello-world-javascript-action", - "raw": "@actions/core@file:toolkit/actions-core-0.0.0.tgz", + "type": "tag", + "registry": true, + "raw": "@actions/core", "name": "@actions/core", "escapedName": "@actions%2fcore", "scope": "@actions", - "rawSpec": "file:toolkit/actions-core-0.0.0.tgz", - "saveSpec": "file:toolkit/actions-core-0.0.0.tgz", - "fetchSpec": "/Users/rachmari/github-repos/hello-world-javascript-action/toolkit/actions-core-0.0.0.tgz" + "rawSpec": "", + "saveSpec": null, + "fetchSpec": "latest" }, "_requiredBy": [ + "#USER", "/" ], - "_spec": "file:toolkit/actions-core-0.0.0.tgz", + "_resolved": "https://registry.npmjs.org/@actions/core/-/core-1.1.0.tgz", + "_shasum": "25c3aff43a20f9c5a04e2a3439898a49ba8d3625", + "_spec": "@actions/core", "_where": "/Users/rachmari/github-repos/hello-world-javascript-action", "bugs": { "url": "https://github.com/actions/toolkit/issues" }, + "bundleDependencies": false, + "deprecated": false, "description": "Actions core lib", "devDependencies": { "@types/node": "^12.0.2" @@ -41,10 +40,12 @@ "files": [ "lib" ], + "gitHead": "a2ab4bcf78e4f7080f0d45856e6eeba16f0bbc52", "homepage": "https://github.com/actions/toolkit/tree/master/packages/core", "keywords": [ - "core", - "actions" + "github", + "actions", + "core" ], "license": "MIT", "main": "lib/core.js", @@ -60,5 +61,5 @@ "test": "echo \"Error: run tests from root\" && exit 1", "tsc": "tsc" }, - "version": "0.0.0" + "version": "1.1.0" } diff --git a/node_modules/@actions/github/LICENSE.md b/node_modules/@actions/github/LICENSE.md new file mode 100644 index 0000000..e5a73f4 --- /dev/null +++ b/node_modules/@actions/github/LICENSE.md @@ -0,0 +1,7 @@ +Copyright 2019 GitHub + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +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. \ No newline at end of file diff --git a/node_modules/@actions/github/README.md b/node_modules/@actions/github/README.md index 76da823..b431256 100644 --- a/node_modules/@actions/github/README.md +++ b/node_modules/@actions/github/README.md @@ -1,47 +1,50 @@ -# `@actions/github` - -> A hydrated Octokit client. - -## Usage - -Returns an [Octokit SDK] client. See https://octokit.github.io/rest.js for the API. - -``` -const github = require('@actions/github'); - -// This should be a token with access to your repository scoped in as a secret. -const myToken = process.env.GITHUB_TOKEN - -const octokit = new github.GitHub(myToken) - -const pulls = await octokit.pulls.get({ - owner: 'octokit', - repo: 'rest.js', - pull_number: 123, - mediaType: { - format: 'diff' - } -}) - -console.log(pulls) -``` - -You can also make GraphQL requests: - -``` -const result = await octokit.graphql(query, variables) -``` - -Finally, you can get the context of the current action: - -``` -const github = require('@actions/github'); - -const context = github.context - -const newIssue = await octokit.issues.create({ - ...context.repo, - title: 'New issue!', - body: 'Hello Universe!' -}) -``` \ No newline at end of file +# `@actions/github` + +> A hydrated Octokit client. + +## Usage + +Returns an Octokit client. See https://octokit.github.io/rest.js for the API. + +```js +const github = require('@actions/github'); +const core = require('@actions/core'); + +// This should be a token with access to your repository scoped in as a secret. +const myToken = core.getInput('myToken'); + +const octokit = new github.GitHub(myToken); + +const { data: pullRequest } = await octokit.pulls.get({ + owner: 'octokit', + repo: 'rest.js', + pull_number: 123, + mediaType: { + format: 'diff' + } +}); + +console.log(pullRequest); +``` + +You can pass client options (except `auth`, which is handled by the token argument), as specified by [Octokit](https://octokit.github.io/rest.js/), as a second argument to the `GitHub` constructor. + +You can also make GraphQL requests. See https://github.com/octokit/graphql.js for the API. + +```js +const result = await octokit.graphql(query, variables); +``` + +Finally, you can get the context of the current action: + +```js +const github = require('@actions/github'); + +const context = github.context; + +const newIssue = await octokit.issues.create({ + ...context.repo, + title: 'New issue!', + body: 'Hello Universe!' +}); +``` diff --git a/node_modules/@actions/github/lib/context.d.ts b/node_modules/@actions/github/lib/context.d.ts index 7837aa8..3ee7583 100644 --- a/node_modules/@actions/github/lib/context.d.ts +++ b/node_modules/@actions/github/lib/context.d.ts @@ -1,26 +1,26 @@ -import { WebhookPayload } from './interfaces'; -export declare class Context { - /** - * Webhook payload object that triggered the workflow - */ - payload: WebhookPayload; - eventName: string; - sha: string; - ref: string; - workflow: string; - action: string; - actor: string; - /** - * Hydrate the context from the environment - */ - constructor(); - readonly issue: { - owner: string; - repo: string; - number: number; - }; - readonly repo: { - owner: string; - repo: string; - }; -} +import { WebhookPayload } from './interfaces'; +export declare class Context { + /** + * Webhook payload object that triggered the workflow + */ + payload: WebhookPayload; + eventName: string; + sha: string; + ref: string; + workflow: string; + action: string; + actor: string; + /** + * Hydrate the context from the environment + */ + constructor(); + readonly issue: { + owner: string; + repo: string; + number: number; + }; + readonly repo: { + owner: string; + repo: string; + }; +} diff --git a/node_modules/@actions/github/lib/context.js b/node_modules/@actions/github/lib/context.js index 0a56fb9..0df128f 100644 --- a/node_modules/@actions/github/lib/context.js +++ b/node_modules/@actions/github/lib/context.js @@ -1,38 +1,45 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -/* eslint-disable @typescript-eslint/no-require-imports */ -class Context { - /** - * Hydrate the context from the environment - */ - constructor() { - this.payload = process.env.GITHUB_EVENT_PATH - ? require(process.env.GITHUB_EVENT_PATH) - : {}; - this.eventName = process.env.GITHUB_EVENT_NAME; - this.sha = process.env.GITHUB_SHA; - this.ref = process.env.GITHUB_REF; - this.workflow = process.env.GITHUB_WORKFLOW; - this.action = process.env.GITHUB_ACTION; - this.actor = process.env.GITHUB_ACTOR; - } - get issue() { - const payload = this.payload; - return Object.assign({}, this.repo, { number: (payload.issue || payload.pullRequest || payload).number }); - } - get repo() { - if (process.env.GITHUB_REPOSITORY) { - const [owner, repo] = process.env.GITHUB_REPOSITORY.split('/'); - return { owner, repo }; - } - if (this.payload.repository) { - return { - owner: this.payload.repository.owner.login, - repo: this.payload.repository.name - }; - } - throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'"); - } -} -exports.Context = Context; +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const fs_1 = require("fs"); +const os_1 = require("os"); +class Context { + /** + * Hydrate the context from the environment + */ + constructor() { + this.payload = {}; + if (process.env.GITHUB_EVENT_PATH) { + if (fs_1.existsSync(process.env.GITHUB_EVENT_PATH)) { + this.payload = JSON.parse(fs_1.readFileSync(process.env.GITHUB_EVENT_PATH, { encoding: 'utf8' })); + } + else { + process.stdout.write(`GITHUB_EVENT_PATH ${process.env.GITHUB_EVENT_PATH} does not exist${os_1.EOL}`); + } + } + this.eventName = process.env.GITHUB_EVENT_NAME; + this.sha = process.env.GITHUB_SHA; + this.ref = process.env.GITHUB_REF; + this.workflow = process.env.GITHUB_WORKFLOW; + this.action = process.env.GITHUB_ACTION; + this.actor = process.env.GITHUB_ACTOR; + } + get issue() { + const payload = this.payload; + return Object.assign(Object.assign({}, this.repo), { number: (payload.issue || payload.pullRequest || payload).number }); + } + get repo() { + if (process.env.GITHUB_REPOSITORY) { + const [owner, repo] = process.env.GITHUB_REPOSITORY.split('/'); + return { owner, repo }; + } + if (this.payload.repository) { + return { + owner: this.payload.repository.owner.login, + repo: this.payload.repository.name + }; + } + throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'"); + } +} +exports.Context = Context; //# sourceMappingURL=context.js.map \ No newline at end of file diff --git a/node_modules/@actions/github/lib/context.js.map b/node_modules/@actions/github/lib/context.js.map index c63ca9e..24eabd8 100644 --- a/node_modules/@actions/github/lib/context.js.map +++ b/node_modules/@actions/github/lib/context.js.map @@ -1 +1 @@ -{"version":3,"file":"context.js","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":";;AAGA,0DAA0D;AAE1D,MAAa,OAAO;IAalB;;OAEG;IACH;QACE,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,iBAAiB;YAC1C,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC;YACxC,CAAC,CAAC,EAAE,CAAA;QACN,IAAI,CAAC,SAAS,GAAG,OAAO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C,GAAG,CAAC,iBAAiB,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;YAC9D,OAAO,EAAC,KAAK,EAAE,IAAI,EAAC,CAAA;SACrB;QAED,IAAI,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE;YAC3B,OAAO;gBACL,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,KAAK;gBAC1C,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI;aACnC,CAAA;SACF;QAED,MAAM,IAAI,KAAK,CACb,kFAAkF,CACnF,CAAA;IACH,CAAC;CACF;AAjED,0BAiEC"} \ No newline at end of file diff --git a/node_modules/@actions/github/lib/github.d.ts b/node_modules/@actions/github/lib/github.d.ts index a7d30c3..7c5b9f2 100644 --- a/node_modules/@actions/github/lib/github.d.ts +++ b/node_modules/@actions/github/lib/github.d.ts @@ -1,6 +1,8 @@ -import { GraphQlQueryResponse, Variables } from '@octokit/graphql'; -import Octokit from '@octokit/rest'; -export declare class GitHub extends Octokit { - graphql: (query: string, variables?: Variables) => Promise; - constructor(token: string); -} +import { GraphQlQueryResponse, Variables } from '@octokit/graphql'; +import Octokit from '@octokit/rest'; +import * as Context from './context'; +export declare const context: Context.Context; +export declare class GitHub extends Octokit { + graphql: (query: string, variables?: Variables) => Promise; + constructor(token: string, opts?: Omit); +} diff --git a/node_modules/@actions/github/lib/github.js b/node_modules/@actions/github/lib/github.js index 5cf0ddc..d5c782f 100644 --- a/node_modules/@actions/github/lib/github.js +++ b/node_modules/@actions/github/lib/github.js @@ -1,29 +1,29 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -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 }); -// Originally pulled from https://github.com/JasonEtco/actions-toolkit/blob/master/src/github.ts -const graphql_1 = require("@octokit/graphql"); -const rest_1 = __importDefault(require("@octokit/rest")); -const Context = __importStar(require("./context")); -// We need this in order to extend Octokit -rest_1.default.prototype = new rest_1.default(); -module.exports.context = new Context.Context(); -class GitHub extends rest_1.default { - constructor(token) { - super({ auth: `token ${token}` }); - this.graphql = graphql_1.defaults({ - headers: { authorization: `token ${token}` } - }); - } -} -exports.GitHub = GitHub; +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +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 }); +// Originally pulled from https://github.com/JasonEtco/actions-toolkit/blob/master/src/github.ts +const graphql_1 = require("@octokit/graphql"); +const rest_1 = __importDefault(require("@octokit/rest")); +const Context = __importStar(require("./context")); +// We need this in order to extend Octokit +rest_1.default.prototype = new rest_1.default(); +exports.context = new Context.Context(); +class GitHub extends rest_1.default { + constructor(token, opts = {}) { + super(Object.assign(Object.assign({}, opts), { auth: `token ${token}` })); + this.graphql = graphql_1.defaults({ + headers: { authorization: `token ${token}` } + }); + } +} +exports.GitHub = GitHub; //# sourceMappingURL=github.js.map \ No newline at end of file diff --git a/node_modules/@actions/github/lib/github.js.map b/node_modules/@actions/github/lib/github.js.map index 5d3b51f..0c268e8 100644 --- a/node_modules/@actions/github/lib/github.js.map +++ b/node_modules/@actions/github/lib/github.js.map @@ -1 +1 @@ -{"version":3,"file":"github.js","sourceRoot":"","sources":["../src/github.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gGAAgG;AAChG,8CAA0E;AAC1E,yDAAmC;AACnC,mDAAoC;AAEpC,0CAA0C;AAC1C,cAAO,CAAC,SAAS,GAAG,IAAI,cAAO,EAAE,CAAA;AAEjC,MAAM,CAAC,OAAO,CAAC,OAAO,GAAG,IAAI,OAAO,CAAC,OAAO,EAAE,CAAA;AAE9C,MAAa,MAAO,SAAQ,cAAO;IAMjC,YAAY,KAAa;QACvB,KAAK,CAAC,EAAC,IAAI,EAAE,SAAS,KAAK,EAAE,EAAC,CAAC,CAAA;QAC/B,IAAI,CAAC,OAAO,GAAG,kBAAQ,CAAC;YACtB,OAAO,EAAE,EAAC,aAAa,EAAE,SAAS,KAAK,EAAE,EAAC;SAC3C,CAAC,CAAA;IACJ,CAAC;CACF;AAZD,wBAYC"} \ No newline at end of file +{"version":3,"file":"github.js","sourceRoot":"","sources":["../src/github.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gGAAgG;AAChG,8CAA0E;AAC1E,yDAAmC;AACnC,mDAAoC;AAEpC,0CAA0C;AAC1C,cAAO,CAAC,SAAS,GAAG,IAAI,cAAO,EAAE,CAAA;AAEpB,QAAA,OAAO,GAAG,IAAI,OAAO,CAAC,OAAO,EAAE,CAAA;AAE5C,MAAa,MAAO,SAAQ,cAAO;IAMjC,YAAY,KAAa,EAAE,OAAsC,EAAE;QACjE,KAAK,iCAAK,IAAI,KAAE,IAAI,EAAE,SAAS,KAAK,EAAE,IAAE,CAAA;QACxC,IAAI,CAAC,OAAO,GAAG,kBAAQ,CAAC;YACtB,OAAO,EAAE,EAAC,aAAa,EAAE,SAAS,KAAK,EAAE,EAAC;SAC3C,CAAC,CAAA;IACJ,CAAC;CACF;AAZD,wBAYC"} \ No newline at end of file diff --git a/node_modules/@actions/github/lib/interfaces.d.ts b/node_modules/@actions/github/lib/interfaces.d.ts index c00dc86..23788cc 100644 --- a/node_modules/@actions/github/lib/interfaces.d.ts +++ b/node_modules/@actions/github/lib/interfaces.d.ts @@ -1,36 +1,36 @@ -export interface PayloadRepository { - [key: string]: any; - fullName?: string; - name: string; - owner: { - [key: string]: any; - login: string; - name?: string; - }; - htmlUrl?: string; -} -export interface WebhookPayload { - [key: string]: any; - repository?: PayloadRepository; - issue?: { - [key: string]: any; - number: number; - html_url?: string; - body?: string; - }; - pullRequest?: { - [key: string]: any; - number: number; - htmlUrl?: string; - body?: string; - }; - sender?: { - [key: string]: any; - type: string; - }; - action?: string; - installation?: { - id: number; - [key: string]: any; - }; -} +export interface PayloadRepository { + [key: string]: any; + full_name?: string; + name: string; + owner: { + [key: string]: any; + login: string; + name?: string; + }; + html_url?: string; +} +export interface WebhookPayload { + [key: string]: any; + repository?: PayloadRepository; + issue?: { + [key: string]: any; + number: number; + html_url?: string; + body?: string; + }; + pull_request?: { + [key: string]: any; + number: number; + html_url?: string; + body?: string; + }; + sender?: { + [key: string]: any; + type: string; + }; + action?: string; + installation?: { + id: number; + [key: string]: any; + }; +} diff --git a/node_modules/@actions/github/lib/interfaces.js b/node_modules/@actions/github/lib/interfaces.js index cdc7850..a660b5e 100644 --- a/node_modules/@actions/github/lib/interfaces.js +++ b/node_modules/@actions/github/lib/interfaces.js @@ -1,4 +1,4 @@ -"use strict"; -/* eslint-disable @typescript-eslint/no-explicit-any */ -Object.defineProperty(exports, "__esModule", { value: true }); +"use strict"; +/* eslint-disable @typescript-eslint/no-explicit-any */ +Object.defineProperty(exports, "__esModule", { value: true }); //# sourceMappingURL=interfaces.js.map \ No newline at end of file diff --git a/node_modules/@actions/github/package.json b/node_modules/@actions/github/package.json index cc56ff0..eb4aeb5 100644 --- a/node_modules/@actions/github/package.json +++ b/node_modules/@actions/github/package.json @@ -1,39 +1,38 @@ { - "_args": [ - [ - "@actions/github@file:toolkit/actions-github-0.0.0.tgz", - "/Users/rachmari/github-repos/hello-world-javascript-action" - ] - ], - "_from": "@actions/github@file:toolkit/actions-github-0.0.0.tgz", - "_id": "@actions/github@file:toolkit/actions-github-0.0.0.tgz", + "_from": "@actions/github", + "_id": "@actions/github@1.1.0", "_inBundle": false, - "_integrity": "sha512-K13pi9kbZqFnvhe8m6uqfz4kCnB4Ki6fzv4XBae1zDZfn2Si+Qx6j1pAfXSo7QI2+ZWAX/g0paFgcJsS6ZTWZA==", + "_integrity": "sha512-cHf6PyoNMdei13jEdGPhKprIMFmjVVW/dnM5/9QmQDJ1ZTaGVyezUSCUIC/ySNLRvDUpeFwPYMdThSEJldSbUw==", "_location": "/@actions/github", "_phantomChildren": {}, "_requested": { - "type": "file", - "where": "/Users/rachmari/github-repos/hello-world-javascript-action", - "raw": "@actions/github@file:toolkit/actions-github-0.0.0.tgz", + "type": "tag", + "registry": true, + "raw": "@actions/github", "name": "@actions/github", "escapedName": "@actions%2fgithub", "scope": "@actions", - "rawSpec": "file:toolkit/actions-github-0.0.0.tgz", - "saveSpec": "file:toolkit/actions-github-0.0.0.tgz", - "fetchSpec": "/Users/rachmari/github-repos/hello-world-javascript-action/toolkit/actions-github-0.0.0.tgz" + "rawSpec": "", + "saveSpec": null, + "fetchSpec": "latest" }, "_requiredBy": [ + "#USER", "/" ], - "_spec": "file:toolkit/actions-github-0.0.0.tgz", + "_resolved": "https://registry.npmjs.org/@actions/github/-/github-1.1.0.tgz", + "_shasum": "06f34e6b0cf07eb2b3641de3e680dbfae6bcd400", + "_spec": "@actions/github", "_where": "/Users/rachmari/github-repos/hello-world-javascript-action", "bugs": { "url": "https://github.com/actions/toolkit/issues" }, + "bundleDependencies": false, "dependencies": { "@octokit/graphql": "^2.0.1", "@octokit/rest": "^16.15.0" }, + "deprecated": false, "description": "Actions github lib", "devDependencies": { "jest": "^24.7.1" @@ -45,6 +44,7 @@ "files": [ "lib" ], + "gitHead": "a2ab4bcf78e4f7080f0d45856e6eeba16f0bbc52", "homepage": "https://github.com/actions/toolkit/tree/master/packages/github", "keywords": [ "github", @@ -65,5 +65,5 @@ "test": "jest", "tsc": "tsc" }, - "version": "0.0.0" + "version": "1.1.0" } diff --git a/node_modules/@octokit/endpoint/dist-node/index.js b/node_modules/@octokit/endpoint/dist-node/index.js index 127b9ac..fe72119 100644 --- a/node_modules/@octokit/endpoint/dist-node/index.js +++ b/node_modules/@octokit/endpoint/dist-node/index.js @@ -4,10 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true }); function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } -var deepmerge = _interopDefault(require('deepmerge')); var isPlainObject = _interopDefault(require('is-plain-object')); -var urlTemplate = _interopDefault(require('url-template')); -var getUserAgent = _interopDefault(require('universal-user-agent')); +var universalUserAgent = require('universal-user-agent'); function lowercaseKeys(object) { if (!object) { @@ -20,6 +18,22 @@ function lowercaseKeys(object) { }, {}); } +function mergeDeep(defaults, options) { + const result = Object.assign({}, defaults); + Object.keys(options).forEach(key => { + if (isPlainObject(options[key])) { + if (!(key in defaults)) Object.assign(result, { + [key]: options[key] + });else result[key] = mergeDeep(defaults[key], options[key]); + } else { + Object.assign(result, { + [key]: options[key] + }); + } + }); + return result; +} + function merge(defaults, route, options) { if (typeof route === "string") { let [method, url] = route.split(" "); @@ -35,9 +49,7 @@ function merge(defaults, route, options) { options.headers = lowercaseKeys(options.headers); - const mergedOptions = deepmerge.all([defaults, options].filter(Boolean), { - isMergeableObject: isPlainObject - }); // mediaType.previews arrays are merged, instead of overwritten + const mergedOptions = mergeDeep(defaults || {}, options); // mediaType.previews arrays are merged, instead of overwritten if (defaults && defaults.mediaType.previews.length) { mergedOptions.mediaType.previews = defaults.mediaType.previews.filter(preview => !mergedOptions.mediaType.previews.includes(preview)).concat(mergedOptions.mediaType.previews); @@ -87,6 +99,173 @@ function omit(object, keysToOmit) { }, {}); } +// Based on https://github.com/bramstein/url-template, licensed under BSD +// TODO: create separate package. +// +// Copyright (c) 2012-2014, Bram Stein +// All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// 1. Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// 2. Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer in the +// documentation and/or other materials provided with the distribution. +// 3. The name of the author may not be used to endorse or promote products +// derived from this software without specific prior written permission. +// THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +// EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +// INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +// OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +// EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +/* istanbul ignore file */ +function encodeReserved(str) { + return str.split(/(%[0-9A-Fa-f]{2})/g).map(function (part) { + if (!/%[0-9A-Fa-f]/.test(part)) { + part = encodeURI(part).replace(/%5B/g, "[").replace(/%5D/g, "]"); + } + + return part; + }).join(""); +} + +function encodeUnreserved(str) { + return encodeURIComponent(str).replace(/[!'()*]/g, function (c) { + return "%" + c.charCodeAt(0).toString(16).toUpperCase(); + }); +} + +function encodeValue(operator, value, key) { + value = operator === "+" || operator === "#" ? encodeReserved(value) : encodeUnreserved(value); + + if (key) { + return encodeUnreserved(key) + "=" + value; + } else { + return value; + } +} + +function isDefined(value) { + return value !== undefined && value !== null; +} + +function isKeyOperator(operator) { + return operator === ";" || operator === "&" || operator === "?"; +} + +function getValues(context, operator, key, modifier) { + var value = context[key], + result = []; + + if (isDefined(value) && value !== "") { + if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") { + value = value.toString(); + + if (modifier && modifier !== "*") { + value = value.substring(0, parseInt(modifier, 10)); + } + + result.push(encodeValue(operator, value, isKeyOperator(operator) ? key : "")); + } else { + if (modifier === "*") { + if (Array.isArray(value)) { + value.filter(isDefined).forEach(function (value) { + result.push(encodeValue(operator, value, isKeyOperator(operator) ? key : "")); + }); + } else { + Object.keys(value).forEach(function (k) { + if (isDefined(value[k])) { + result.push(encodeValue(operator, value[k], k)); + } + }); + } + } else { + const tmp = []; + + if (Array.isArray(value)) { + value.filter(isDefined).forEach(function (value) { + tmp.push(encodeValue(operator, value)); + }); + } else { + Object.keys(value).forEach(function (k) { + if (isDefined(value[k])) { + tmp.push(encodeUnreserved(k)); + tmp.push(encodeValue(operator, value[k].toString())); + } + }); + } + + if (isKeyOperator(operator)) { + result.push(encodeUnreserved(key) + "=" + tmp.join(",")); + } else if (tmp.length !== 0) { + result.push(tmp.join(",")); + } + } + } + } else { + if (operator === ";") { + if (isDefined(value)) { + result.push(encodeUnreserved(key)); + } + } else if (value === "" && (operator === "&" || operator === "?")) { + result.push(encodeUnreserved(key) + "="); + } else if (value === "") { + result.push(""); + } + } + + return result; +} + +function parseUrl(template) { + return { + expand: expand.bind(null, template) + }; +} + +function expand(template, context) { + var operators = ["+", "#", ".", "/", ";", "?", "&"]; + return template.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g, function (_, expression, literal) { + if (expression) { + let operator = ""; + const values = []; + + if (operators.indexOf(expression.charAt(0)) !== -1) { + operator = expression.charAt(0); + expression = expression.substr(1); + } + + expression.split(/,/g).forEach(function (variable) { + var tmp = /([^:\*]*)(?::(\d+)|(\*))?/.exec(variable); + values.push(getValues(context, operator, tmp[1], tmp[2] || tmp[3])); + }); + + if (operator && operator !== "+") { + var separator = ","; + + if (operator === "?") { + separator = "&"; + } else if (operator !== "#") { + separator = operator; + } + + return (values.length !== 0 ? operator : "") + values.join(separator); + } else { + return values.join(","); + } + } else { + return encodeReserved(literal); + } + }); +} + function parse(options) { // https://fetch.spec.whatwg.org/#methods let method = options.method.toUpperCase(); // replace :varname with {varname} to make it RFC 6570 compatible @@ -97,7 +276,7 @@ function parse(options) { let parameters = omit(options, ["method", "baseUrl", "url", "headers", "request", "mediaType"]); // extract variable names from URL to calculate remaining variables later const urlVariableNames = extractUrlVariableNames(url); - url = urlTemplate.parse(url).expand(parameters); + url = parseUrl(url).expand(parameters); if (!/^http/.test(url)) { url = options.baseUrl + url; @@ -178,7 +357,7 @@ function withDefaults(oldDefaults, newDefaults) { const VERSION = "0.0.0-development"; -const userAgent = `octokit-endpoint.js/${VERSION} ${getUserAgent()}`; +const userAgent = `octokit-endpoint.js/${VERSION} ${universalUserAgent.getUserAgent()}`; const DEFAULTS = { method: "GET", baseUrl: "https://api.github.com", @@ -195,3 +374,4 @@ const DEFAULTS = { const endpoint = withDefaults(null, DEFAULTS); exports.endpoint = endpoint; +//# sourceMappingURL=index.js.map diff --git a/node_modules/@octokit/endpoint/dist-node/index.js.map b/node_modules/@octokit/endpoint/dist-node/index.js.map new file mode 100644 index 0000000..ef44981 --- /dev/null +++ b/node_modules/@octokit/endpoint/dist-node/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sources":["../dist-src/util/lowercase-keys.js","../dist-src/util/merge-deep.js","../dist-src/merge.js","../dist-src/util/add-query-parameters.js","../dist-src/util/extract-url-variable-names.js","../dist-src/util/omit.js","../dist-src/util/url-template.js","../dist-src/parse.js","../dist-src/endpoint-with-defaults.js","../dist-src/with-defaults.js","../dist-src/version.js","../dist-src/defaults.js","../dist-src/index.js"],"sourcesContent":["export function lowercaseKeys(object) {\n if (!object) {\n return {};\n }\n return Object.keys(object).reduce((newObj, key) => {\n newObj[key.toLowerCase()] = object[key];\n return newObj;\n }, {});\n}\n","import isPlainObject from \"is-plain-object\";\nexport function mergeDeep(defaults, options) {\n const result = Object.assign({}, defaults);\n Object.keys(options).forEach(key => {\n if (isPlainObject(options[key])) {\n if (!(key in defaults))\n Object.assign(result, { [key]: options[key] });\n else\n result[key] = mergeDeep(defaults[key], options[key]);\n }\n else {\n Object.assign(result, { [key]: options[key] });\n }\n });\n return result;\n}\n","import { lowercaseKeys } from \"./util/lowercase-keys\";\nimport { mergeDeep } from \"./util/merge-deep\";\nexport function merge(defaults, route, options) {\n if (typeof route === \"string\") {\n let [method, url] = route.split(\" \");\n options = Object.assign(url ? { method, url } : { url: method }, options);\n }\n else {\n options = route || {};\n }\n // lowercase header names before merging with defaults to avoid duplicates\n options.headers = lowercaseKeys(options.headers);\n const mergedOptions = mergeDeep(defaults || {}, options);\n // mediaType.previews arrays are merged, instead of overwritten\n if (defaults && defaults.mediaType.previews.length) {\n mergedOptions.mediaType.previews = defaults.mediaType.previews\n .filter(preview => !mergedOptions.mediaType.previews.includes(preview))\n .concat(mergedOptions.mediaType.previews);\n }\n mergedOptions.mediaType.previews = mergedOptions.mediaType.previews.map((preview) => preview.replace(/-preview/, \"\"));\n return mergedOptions;\n}\n","export function addQueryParameters(url, parameters) {\n const separator = /\\?/.test(url) ? \"&\" : \"?\";\n const names = Object.keys(parameters);\n if (names.length === 0) {\n return url;\n }\n return (url +\n separator +\n names\n .map(name => {\n if (name === \"q\") {\n return (\"q=\" +\n parameters\n .q.split(\"+\")\n .map(encodeURIComponent)\n .join(\"+\"));\n }\n return `${name}=${encodeURIComponent(parameters[name])}`;\n })\n .join(\"&\"));\n}\n","const urlVariableRegex = /\\{[^}]+\\}/g;\nfunction removeNonChars(variableName) {\n return variableName.replace(/^\\W+|\\W+$/g, \"\").split(/,/);\n}\nexport function extractUrlVariableNames(url) {\n const matches = url.match(urlVariableRegex);\n if (!matches) {\n return [];\n }\n return matches.map(removeNonChars).reduce((a, b) => a.concat(b), []);\n}\n","export function omit(object, keysToOmit) {\n return Object.keys(object)\n .filter(option => !keysToOmit.includes(option))\n .reduce((obj, key) => {\n obj[key] = object[key];\n return obj;\n }, {});\n}\n","// Based on https://github.com/bramstein/url-template, licensed under BSD\n// TODO: create separate package.\n//\n// Copyright (c) 2012-2014, Bram Stein\n// All rights reserved.\n// Redistribution and use in source and binary forms, with or without\n// modification, are permitted provided that the following conditions\n// are met:\n// 1. Redistributions of source code must retain the above copyright\n// notice, this list of conditions and the following disclaimer.\n// 2. Redistributions in binary form must reproduce the above copyright\n// notice, this list of conditions and the following disclaimer in the\n// documentation and/or other materials provided with the distribution.\n// 3. The name of the author may not be used to endorse or promote products\n// derived from this software without specific prior written permission.\n// THIS SOFTWARE IS PROVIDED BY THE AUTHOR \"AS IS\" AND ANY EXPRESS OR IMPLIED\n// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF\n// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO\n// EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,\n// INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\n// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\n// OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\n// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\n// EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n/* istanbul ignore file */\nfunction encodeReserved(str) {\n return str\n .split(/(%[0-9A-Fa-f]{2})/g)\n .map(function (part) {\n if (!/%[0-9A-Fa-f]/.test(part)) {\n part = encodeURI(part)\n .replace(/%5B/g, \"[\")\n .replace(/%5D/g, \"]\");\n }\n return part;\n })\n .join(\"\");\n}\nfunction encodeUnreserved(str) {\n return encodeURIComponent(str).replace(/[!'()*]/g, function (c) {\n return (\"%\" +\n c\n .charCodeAt(0)\n .toString(16)\n .toUpperCase());\n });\n}\nfunction encodeValue(operator, value, key) {\n value =\n operator === \"+\" || operator === \"#\"\n ? encodeReserved(value)\n : encodeUnreserved(value);\n if (key) {\n return encodeUnreserved(key) + \"=\" + value;\n }\n else {\n return value;\n }\n}\nfunction isDefined(value) {\n return value !== undefined && value !== null;\n}\nfunction isKeyOperator(operator) {\n return operator === \";\" || operator === \"&\" || operator === \"?\";\n}\nfunction getValues(context, operator, key, modifier) {\n var value = context[key], result = [];\n if (isDefined(value) && value !== \"\") {\n if (typeof value === \"string\" ||\n typeof value === \"number\" ||\n typeof value === \"boolean\") {\n value = value.toString();\n if (modifier && modifier !== \"*\") {\n value = value.substring(0, parseInt(modifier, 10));\n }\n result.push(encodeValue(operator, value, isKeyOperator(operator) ? key : \"\"));\n }\n else {\n if (modifier === \"*\") {\n if (Array.isArray(value)) {\n value.filter(isDefined).forEach(function (value) {\n result.push(encodeValue(operator, value, isKeyOperator(operator) ? key : \"\"));\n });\n }\n else {\n Object.keys(value).forEach(function (k) {\n if (isDefined(value[k])) {\n result.push(encodeValue(operator, value[k], k));\n }\n });\n }\n }\n else {\n const tmp = [];\n if (Array.isArray(value)) {\n value.filter(isDefined).forEach(function (value) {\n tmp.push(encodeValue(operator, value));\n });\n }\n else {\n Object.keys(value).forEach(function (k) {\n if (isDefined(value[k])) {\n tmp.push(encodeUnreserved(k));\n tmp.push(encodeValue(operator, value[k].toString()));\n }\n });\n }\n if (isKeyOperator(operator)) {\n result.push(encodeUnreserved(key) + \"=\" + tmp.join(\",\"));\n }\n else if (tmp.length !== 0) {\n result.push(tmp.join(\",\"));\n }\n }\n }\n }\n else {\n if (operator === \";\") {\n if (isDefined(value)) {\n result.push(encodeUnreserved(key));\n }\n }\n else if (value === \"\" && (operator === \"&\" || operator === \"?\")) {\n result.push(encodeUnreserved(key) + \"=\");\n }\n else if (value === \"\") {\n result.push(\"\");\n }\n }\n return result;\n}\nexport function parseUrl(template) {\n return {\n expand: expand.bind(null, template)\n };\n}\nfunction expand(template, context) {\n var operators = [\"+\", \"#\", \".\", \"/\", \";\", \"?\", \"&\"];\n return template.replace(/\\{([^\\{\\}]+)\\}|([^\\{\\}]+)/g, function (_, expression, literal) {\n if (expression) {\n let operator = \"\";\n const values = [];\n if (operators.indexOf(expression.charAt(0)) !== -1) {\n operator = expression.charAt(0);\n expression = expression.substr(1);\n }\n expression.split(/,/g).forEach(function (variable) {\n var tmp = /([^:\\*]*)(?::(\\d+)|(\\*))?/.exec(variable);\n values.push(getValues(context, operator, tmp[1], tmp[2] || tmp[3]));\n });\n if (operator && operator !== \"+\") {\n var separator = \",\";\n if (operator === \"?\") {\n separator = \"&\";\n }\n else if (operator !== \"#\") {\n separator = operator;\n }\n return (values.length !== 0 ? operator : \"\") + values.join(separator);\n }\n else {\n return values.join(\",\");\n }\n }\n else {\n return encodeReserved(literal);\n }\n });\n}\n","import { addQueryParameters } from \"./util/add-query-parameters\";\nimport { extractUrlVariableNames } from \"./util/extract-url-variable-names\";\nimport { omit } from \"./util/omit\";\nimport { parseUrl } from \"./util/url-template\";\nexport function parse(options) {\n // https://fetch.spec.whatwg.org/#methods\n let method = options.method.toUpperCase();\n // replace :varname with {varname} to make it RFC 6570 compatible\n let url = options.url.replace(/:([a-z]\\w+)/g, \"{+$1}\");\n let headers = Object.assign({}, options.headers);\n let body;\n let parameters = omit(options, [\n \"method\",\n \"baseUrl\",\n \"url\",\n \"headers\",\n \"request\",\n \"mediaType\"\n ]);\n // extract variable names from URL to calculate remaining variables later\n const urlVariableNames = extractUrlVariableNames(url);\n url = parseUrl(url).expand(parameters);\n if (!/^http/.test(url)) {\n url = options.baseUrl + url;\n }\n const omittedParameters = Object.keys(options)\n .filter(option => urlVariableNames.includes(option))\n .concat(\"baseUrl\");\n const remainingParameters = omit(parameters, omittedParameters);\n const isBinaryRequset = /application\\/octet-stream/i.test(headers.accept);\n if (!isBinaryRequset) {\n if (options.mediaType.format) {\n // e.g. application/vnd.github.v3+json => application/vnd.github.v3.raw\n headers.accept = headers.accept\n .split(/,/)\n .map(preview => preview.replace(/application\\/vnd(\\.\\w+)(\\.v3)?(\\.\\w+)?(\\+json)?$/, `application/vnd$1$2.${options.mediaType.format}`))\n .join(\",\");\n }\n if (options.mediaType.previews.length) {\n const previewsFromAcceptHeader = headers.accept.match(/[\\w-]+(?=-preview)/g) || [];\n headers.accept = previewsFromAcceptHeader\n .concat(options.mediaType.previews)\n .map(preview => {\n const format = options.mediaType.format\n ? `.${options.mediaType.format}`\n : \"+json\";\n return `application/vnd.github.${preview}-preview${format}`;\n })\n .join(\",\");\n }\n }\n // for GET/HEAD requests, set URL query parameters from remaining parameters\n // for PATCH/POST/PUT/DELETE requests, set request body from remaining parameters\n if ([\"GET\", \"HEAD\"].includes(method)) {\n url = addQueryParameters(url, remainingParameters);\n }\n else {\n if (\"data\" in remainingParameters) {\n body = remainingParameters.data;\n }\n else {\n if (Object.keys(remainingParameters).length) {\n body = remainingParameters;\n }\n else {\n headers[\"content-length\"] = 0;\n }\n }\n }\n // default content-type for JSON if body is set\n if (!headers[\"content-type\"] && typeof body !== \"undefined\") {\n headers[\"content-type\"] = \"application/json; charset=utf-8\";\n }\n // GitHub expects 'content-length: 0' header for PUT/PATCH requests without body.\n // fetch does not allow to set `content-length` header, but we can set body to an empty string\n if ([\"PATCH\", \"PUT\"].includes(method) && typeof body === \"undefined\") {\n body = \"\";\n }\n // Only return body/request keys if present\n return Object.assign({ method, url, headers }, typeof body !== \"undefined\" ? { body } : null, options.request ? { request: options.request } : null);\n}\n","import { merge } from \"./merge\";\nimport { parse } from \"./parse\";\nexport function endpointWithDefaults(defaults, route, options) {\n return parse(merge(defaults, route, options));\n}\n","import { endpointWithDefaults } from \"./endpoint-with-defaults\";\nimport { merge } from \"./merge\";\nimport { parse } from \"./parse\";\nexport function withDefaults(oldDefaults, newDefaults) {\n const DEFAULTS = merge(oldDefaults, newDefaults);\n const endpoint = endpointWithDefaults.bind(null, DEFAULTS);\n return Object.assign(endpoint, {\n DEFAULTS,\n defaults: withDefaults.bind(null, DEFAULTS),\n merge: merge.bind(null, DEFAULTS),\n parse\n });\n}\n","export const VERSION = \"0.0.0-development\";\n","import { getUserAgent } from \"universal-user-agent\";\nimport { VERSION } from \"./version\";\nconst userAgent = `octokit-endpoint.js/${VERSION} ${getUserAgent()}`;\nexport const DEFAULTS = {\n method: \"GET\",\n baseUrl: \"https://api.github.com\",\n headers: {\n accept: \"application/vnd.github.v3+json\",\n \"user-agent\": userAgent\n },\n mediaType: {\n format: \"\",\n previews: []\n }\n};\n","import { withDefaults } from \"./with-defaults\";\nimport { DEFAULTS } from \"./defaults\";\nexport const endpoint = withDefaults(null, DEFAULTS);\n"],"names":["lowercaseKeys","object","Object","keys","reduce","newObj","key","toLowerCase","mergeDeep","defaults","options","result","assign","forEach","isPlainObject","merge","route","method","url","split","headers","mergedOptions","mediaType","previews","length","filter","preview","includes","concat","map","replace","addQueryParameters","parameters","separator","test","names","name","q","encodeURIComponent","join","urlVariableRegex","removeNonChars","variableName","extractUrlVariableNames","matches","match","a","b","omit","keysToOmit","option","obj","encodeReserved","str","part","encodeURI","encodeUnreserved","c","charCodeAt","toString","toUpperCase","encodeValue","operator","value","isDefined","undefined","isKeyOperator","getValues","context","modifier","substring","parseInt","push","Array","isArray","k","tmp","parseUrl","template","expand","bind","operators","_","expression","literal","values","indexOf","charAt","substr","variable","exec","parse","body","urlVariableNames","baseUrl","omittedParameters","remainingParameters","isBinaryRequset","accept","format","previewsFromAcceptHeader","data","request","endpointWithDefaults","withDefaults","oldDefaults","newDefaults","DEFAULTS","endpoint","VERSION","userAgent","getUserAgent"],"mappings":";;;;;;;;;AAAO,SAASA,aAAT,CAAuBC,MAAvB,EAA+B;MAC9B,CAACA,MAAL,EAAa;WACF,EAAP;;;SAEGC,MAAM,CAACC,IAAP,CAAYF,MAAZ,EAAoBG,MAApB,CAA2B,CAACC,MAAD,EAASC,GAAT,KAAiB;IAC/CD,MAAM,CAACC,GAAG,CAACC,WAAJ,EAAD,CAAN,GAA4BN,MAAM,CAACK,GAAD,CAAlC;WACOD,MAAP;GAFG,EAGJ,EAHI,CAAP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int/dist-src/defaults.js index 0fa09cc..0266b49 100644 --- a/node_modules/@octokit/endpoint/dist-src/defaults.js +++ b/node_modules/@octokit/endpoint/dist-src/defaults.js @@ -1,4 +1,4 @@ -import getUserAgent from "universal-user-agent"; +import { getUserAgent } from "universal-user-agent"; import { VERSION } from "./version"; const userAgent = `octokit-endpoint.js/${VERSION} ${getUserAgent()}`; export const DEFAULTS = { diff --git a/node_modules/@octokit/endpoint/dist-src/merge.js b/node_modules/@octokit/endpoint/dist-src/merge.js index 8a4cfd8..91ed1ae 100644 --- a/node_modules/@octokit/endpoint/dist-src/merge.js +++ b/node_modules/@octokit/endpoint/dist-src/merge.js @@ -1,6 +1,5 @@ -import deepmerge from "deepmerge"; -import isPlainObject from "is-plain-object"; import { lowercaseKeys } from "./util/lowercase-keys"; +import { mergeDeep } from "./util/merge-deep"; export function merge(defaults, route, options) { if (typeof route === "string") { let [method, url] = route.split(" "); @@ -11,9 +10,7 @@ export function merge(defaults, route, options) { } // lowercase header names before merging with defaults to avoid duplicates options.headers = lowercaseKeys(options.headers); - const mergedOptions = deepmerge.all([defaults, options].filter(Boolean), { - isMergeableObject: isPlainObject - }); + const mergedOptions = mergeDeep(defaults || {}, options); // mediaType.previews arrays are merged, instead of overwritten if (defaults && defaults.mediaType.previews.length) { mergedOptions.mediaType.previews = defaults.mediaType.previews diff --git a/node_modules/@octokit/endpoint/dist-src/parse.js b/node_modules/@octokit/endpoint/dist-src/parse.js index e83b521..8cf649f 100644 --- a/node_modules/@octokit/endpoint/dist-src/parse.js +++ b/node_modules/@octokit/endpoint/dist-src/parse.js @@ -1,7 +1,7 @@ -import urlTemplate from "url-template"; import { addQueryParameters } from "./util/add-query-parameters"; import { extractUrlVariableNames } from "./util/extract-url-variable-names"; import { omit } from "./util/omit"; +import { parseUrl } from "./util/url-template"; export function parse(options) { // https://fetch.spec.whatwg.org/#methods let method = options.method.toUpperCase(); @@ -19,7 +19,7 @@ export function parse(options) { ]); // extract variable names from URL to calculate remaining variables later const urlVariableNames = extractUrlVariableNames(url); - url = urlTemplate.parse(url).expand(parameters); + url = parseUrl(url).expand(parameters); if (!/^http/.test(url)) { url = options.baseUrl + url; } diff --git a/node_modules/@octokit/endpoint/dist-src/util/merge-deep.js b/node_modules/@octokit/endpoint/dist-src/util/merge-deep.js new file mode 100644 index 0000000..d1c5402 --- /dev/null +++ b/node_modules/@octokit/endpoint/dist-src/util/merge-deep.js @@ -0,0 +1,16 @@ +import isPlainObject from "is-plain-object"; +export function mergeDeep(defaults, options) { + const result = Object.assign({}, defaults); + Object.keys(options).forEach(key => { + if (isPlainObject(options[key])) { + if (!(key in defaults)) + Object.assign(result, { [key]: options[key] }); + else + result[key] = mergeDeep(defaults[key], options[key]); + } + else { + Object.assign(result, { [key]: options[key] }); + } + }); + return result; +} diff --git a/node_modules/@octokit/endpoint/dist-src/util/url-template.js b/node_modules/@octokit/endpoint/dist-src/util/url-template.js new file mode 100644 index 0000000..f6d9885 --- /dev/null +++ b/node_modules/@octokit/endpoint/dist-src/util/url-template.js @@ -0,0 +1,170 @@ +// Based on https://github.com/bramstein/url-template, licensed under BSD +// TODO: create separate package. +// +// Copyright (c) 2012-2014, Bram Stein +// All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// 1. Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// 2. Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer in the +// documentation and/or other materials provided with the distribution. +// 3. The name of the author may not be used to endorse or promote products +// derived from this software without specific prior written permission. +// THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +// EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +// INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +// OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +// EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/* istanbul ignore file */ +function encodeReserved(str) { + return str + .split(/(%[0-9A-Fa-f]{2})/g) + .map(function (part) { + if (!/%[0-9A-Fa-f]/.test(part)) { + part = encodeURI(part) + .replace(/%5B/g, "[") + .replace(/%5D/g, "]"); + } + return part; + }) + .join(""); +} +function encodeUnreserved(str) { + return encodeURIComponent(str).replace(/[!'()*]/g, function (c) { + return ("%" + + c + .charCodeAt(0) + .toString(16) + .toUpperCase()); + }); +} +function encodeValue(operator, value, key) { + value = + operator === "+" || operator === "#" + ? encodeReserved(value) + : encodeUnreserved(value); + if (key) { + return encodeUnreserved(key) + "=" + value; + } + else { + return value; + } +} +function isDefined(value) { + return value !== undefined && value !== null; +} +function isKeyOperator(operator) { + return operator === ";" || operator === "&" || operator === "?"; +} +function getValues(context, operator, key, modifier) { + var value = context[key], result = []; + if (isDefined(value) && value !== "") { + if (typeof value === "string" || + typeof value === "number" || + typeof value === "boolean") { + value = value.toString(); + if (modifier && modifier !== "*") { + value = value.substring(0, parseInt(modifier, 10)); + } + result.push(encodeValue(operator, value, isKeyOperator(operator) ? key : "")); + } + else { + if (modifier === "*") { + if (Array.isArray(value)) { + value.filter(isDefined).forEach(function (value) { + result.push(encodeValue(operator, value, isKeyOperator(operator) ? key : "")); + }); + } + else { + Object.keys(value).forEach(function (k) { + if (isDefined(value[k])) { + result.push(encodeValue(operator, value[k], k)); + } + }); + } + } + else { + const tmp = []; + if (Array.isArray(value)) { + value.filter(isDefined).forEach(function (value) { + tmp.push(encodeValue(operator, value)); + }); + } + else { + Object.keys(value).forEach(function (k) { + if (isDefined(value[k])) { + tmp.push(encodeUnreserved(k)); + tmp.push(encodeValue(operator, value[k].toString())); + } + }); + } + if (isKeyOperator(operator)) { + result.push(encodeUnreserved(key) + "=" + tmp.join(",")); + } + else if (tmp.length !== 0) { + result.push(tmp.join(",")); + } + } + } + } + else { + if (operator === ";") { + if (isDefined(value)) { + result.push(encodeUnreserved(key)); + } + } + else if (value === "" && (operator === "&" || operator === "?")) { + result.push(encodeUnreserved(key) + "="); + } + else if (value === "") { + result.push(""); + } + } + return result; +} +export function parseUrl(template) { + return { + expand: expand.bind(null, template) + }; +} +function expand(template, context) { + var operators = ["+", "#", ".", "/", ";", "?", "&"]; + return template.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g, function (_, expression, literal) { + if (expression) { + let operator = ""; + const values = []; + if (operators.indexOf(expression.charAt(0)) !== -1) { + operator = expression.charAt(0); + expression = expression.substr(1); + } + expression.split(/,/g).forEach(function (variable) { + var tmp = /([^:\*]*)(?::(\d+)|(\*))?/.exec(variable); + values.push(getValues(context, operator, tmp[1], tmp[2] || tmp[3])); + }); + if (operator && operator !== "+") { + var separator = ","; + if (operator === "?") { + separator = "&"; + } + else if (operator !== "#") { + separator = operator; + } + return (values.length !== 0 ? operator : "") + values.join(separator); + } + else { + return values.join(","); + } + } + else { + return encodeReserved(literal); + } + }); +} diff --git a/node_modules/@octokit/endpoint/dist-types/util/lowercase-keys.d.ts b/node_modules/@octokit/endpoint/dist-types/util/lowercase-keys.d.ts index 2196dd4..1daf307 100644 --- a/node_modules/@octokit/endpoint/dist-types/util/lowercase-keys.d.ts +++ b/node_modules/@octokit/endpoint/dist-types/util/lowercase-keys.d.ts @@ -1,3 +1,5 @@ export declare function lowercaseKeys(object?: { [key: string]: any; -}): {}; +}): { + [key: string]: any; +}; diff --git a/node_modules/@octokit/endpoint/dist-types/util/merge-deep.d.ts b/node_modules/@octokit/endpoint/dist-types/util/merge-deep.d.ts new file mode 100644 index 0000000..914411c --- /dev/null +++ b/node_modules/@octokit/endpoint/dist-types/util/merge-deep.d.ts @@ -0,0 +1 @@ +export declare function mergeDeep(defaults: any, options: any): object; diff --git a/node_modules/@octokit/endpoint/dist-types/util/url-template.d.ts b/node_modules/@octokit/endpoint/dist-types/util/url-template.d.ts new file mode 100644 index 0000000..5d967ca --- /dev/null +++ b/node_modules/@octokit/endpoint/dist-types/util/url-template.d.ts @@ -0,0 +1,3 @@ +export declare function parseUrl(template: string): { + expand: (context: object) => string; +}; diff --git a/node_modules/@octokit/endpoint/dist-web/index.js b/node_modules/@octokit/endpoint/dist-web/index.js index aff43a7..cb6a4bf 100644 --- a/node_modules/@octokit/endpoint/dist-web/index.js +++ b/node_modules/@octokit/endpoint/dist-web/index.js @@ -1,233 +1,377 @@ -import deepmerge from 'deepmerge'; import isPlainObject from 'is-plain-object'; -import urlTemplate from 'url-template'; -import getUserAgent from 'universal-user-agent'; - -function _slicedToArray(arr, i) { - return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); -} - -function _arrayWithHoles(arr) { - if (Array.isArray(arr)) return arr; -} - -function _iterableToArrayLimit(arr, i) { - var _arr = []; - var _n = true; - var _d = false; - var _e = undefined; - - try { - for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { - _arr.push(_s.value); - - if (i && _arr.length === i) break; - } - } catch (err) { - _d = true; - _e = err; - } finally { - try { - if (!_n && _i["return"] != null) _i["return"](); - } finally { - if (_d) throw _e; - } - } - - return _arr; -} - -function _nonIterableRest() { - throw new TypeError("Invalid attempt to destructure non-iterable instance"); -} +import { getUserAgent } from 'universal-user-agent'; function lowercaseKeys(object) { - if (!object) { - return {}; - } + if (!object) { + return {}; + } + return Object.keys(object).reduce((newObj, key) => { + newObj[key.toLowerCase()] = object[key]; + return newObj; + }, {}); +} - return Object.keys(object).reduce((newObj, key) => { - newObj[key.toLowerCase()] = object[key]; - return newObj; - }, {}); +function mergeDeep(defaults, options) { + const result = Object.assign({}, defaults); + Object.keys(options).forEach(key => { + if (isPlainObject(options[key])) { + if (!(key in defaults)) + Object.assign(result, { [key]: options[key] }); + else + result[key] = mergeDeep(defaults[key], options[key]); + } + else { + Object.assign(result, { [key]: options[key] }); + } + }); + return result; } function merge(defaults, route, options) { - if (typeof route === "string") { - let _route$split = route.split(" "), - _route$split2 = _slicedToArray(_route$split, 2), - method = _route$split2[0], - url = _route$split2[1]; - - options = Object.assign(url ? { - method, - url - } : { - url: method - }, options); - } else { - options = route || {}; - } // lowercase header names before merging with defaults to avoid duplicates - - - options.headers = lowercaseKeys(options.headers); - const mergedOptions = deepmerge.all([defaults, options].filter(Boolean), { - isMergeableObject: isPlainObject - }); // mediaType.previews arrays are merged, instead of overwritten - - if (defaults && defaults.mediaType.previews.length) { - mergedOptions.mediaType.previews = defaults.mediaType.previews.filter(preview => !mergedOptions.mediaType.previews.includes(preview)).concat(mergedOptions.mediaType.previews); - } - - mergedOptions.mediaType.previews = mergedOptions.mediaType.previews.map(preview => preview.replace(/-preview/, "")); - return mergedOptions; + if (typeof route === "string") { + let [method, url] = route.split(" "); + options = Object.assign(url ? { method, url } : { url: method }, options); + } + else { + options = route || {}; + } + // lowercase header names before merging with defaults to avoid duplicates + options.headers = lowercaseKeys(options.headers); + const mergedOptions = mergeDeep(defaults || {}, options); + // mediaType.previews arrays are merged, instead of overwritten + if (defaults && defaults.mediaType.previews.length) { + mergedOptions.mediaType.previews = defaults.mediaType.previews + .filter(preview => !mergedOptions.mediaType.previews.includes(preview)) + .concat(mergedOptions.mediaType.previews); + } + mergedOptions.mediaType.previews = mergedOptions.mediaType.previews.map((preview) => preview.replace(/-preview/, "")); + return mergedOptions; } function addQueryParameters(url, parameters) { - const separator = /\?/.test(url) ? "&" : "?"; - const names = Object.keys(parameters); - - if (names.length === 0) { - return url; - } - - return url + separator + names.map(name => { - if (name === "q") { - return "q=" + parameters.q.split("+").map(encodeURIComponent).join("+"); + const separator = /\?/.test(url) ? "&" : "?"; + const names = Object.keys(parameters); + if (names.length === 0) { + return url; } - - return "".concat(name, "=").concat(encodeURIComponent(parameters[name])); - }).join("&"); + return (url + + separator + + names + .map(name => { + if (name === "q") { + return ("q=" + + parameters + .q.split("+") + .map(encodeURIComponent) + .join("+")); + } + return `${name}=${encodeURIComponent(parameters[name])}`; + }) + .join("&")); } const urlVariableRegex = /\{[^}]+\}/g; - function removeNonChars(variableName) { - return variableName.replace(/^\W+|\W+$/g, "").split(/,/); + return variableName.replace(/^\W+|\W+$/g, "").split(/,/); } - function extractUrlVariableNames(url) { - const matches = url.match(urlVariableRegex); - - if (!matches) { - return []; - } - - return matches.map(removeNonChars).reduce((a, b) => a.concat(b), []); + const matches = url.match(urlVariableRegex); + if (!matches) { + return []; + } + return matches.map(removeNonChars).reduce((a, b) => a.concat(b), []); } function omit(object, keysToOmit) { - return Object.keys(object).filter(option => !keysToOmit.includes(option)).reduce((obj, key) => { - obj[key] = object[key]; - return obj; - }, {}); + return Object.keys(object) + .filter(option => !keysToOmit.includes(option)) + .reduce((obj, key) => { + obj[key] = object[key]; + return obj; + }, {}); +} + +// Based on https://github.com/bramstein/url-template, licensed under BSD +// TODO: create separate package. +// +// Copyright (c) 2012-2014, Bram Stein +// All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// 1. Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// 2. Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer in the +// documentation and/or other materials provided with the distribution. +// 3. The name of the author may not be used to endorse or promote products +// derived from this software without specific prior written permission. +// THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +// EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +// INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY +// OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +// EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +/* istanbul ignore file */ +function encodeReserved(str) { + return str + .split(/(%[0-9A-Fa-f]{2})/g) + .map(function (part) { + if (!/%[0-9A-Fa-f]/.test(part)) { + part = encodeURI(part) + .replace(/%5B/g, "[") + .replace(/%5D/g, "]"); + } + return part; + }) + .join(""); +} +function encodeUnreserved(str) { + return encodeURIComponent(str).replace(/[!'()*]/g, function (c) { + return ("%" + + c + .charCodeAt(0) + .toString(16) + .toUpperCase()); + }); +} +function encodeValue(operator, value, key) { + value = + operator === "+" || operator === "#" + ? encodeReserved(value) + : encodeUnreserved(value); + if (key) { + return encodeUnreserved(key) + "=" + value; + } + else { + return value; + } +} +function isDefined(value) { + return value !== undefined && value !== null; +} +function isKeyOperator(operator) { + return operator === ";" || operator === "&" || operator === "?"; +} +function getValues(context, operator, key, modifier) { + var value = context[key], result = []; + if (isDefined(value) && value !== "") { + if (typeof value === "string" || + typeof value === "number" || + typeof value === "boolean") { + value = value.toString(); + if (modifier && modifier !== "*") { + value = value.substring(0, parseInt(modifier, 10)); + } + result.push(encodeValue(operator, value, isKeyOperator(operator) ? key : "")); + } + else { + if (modifier === "*") { + if (Array.isArray(value)) { + value.filter(isDefined).forEach(function (value) { + result.push(encodeValue(operator, value, isKeyOperator(operator) ? key : "")); + }); + } + else { + Object.keys(value).forEach(function (k) { + if (isDefined(value[k])) { + result.push(encodeValue(operator, value[k], k)); + } + }); + } + } + else { + const tmp = []; + if (Array.isArray(value)) { + value.filter(isDefined).forEach(function (value) { + tmp.push(encodeValue(operator, value)); + }); + } + else { + Object.keys(value).forEach(function (k) { + if (isDefined(value[k])) { + tmp.push(encodeUnreserved(k)); + tmp.push(encodeValue(operator, value[k].toString())); + } + }); + } + if (isKeyOperator(operator)) { + result.push(encodeUnreserved(key) + "=" + tmp.join(",")); + } + else if (tmp.length !== 0) { + result.push(tmp.join(",")); + } + } + } + } + else { + if (operator === ";") { + if (isDefined(value)) { + result.push(encodeUnreserved(key)); + } + } + else if (value === "" && (operator === "&" || operator === "?")) { + result.push(encodeUnreserved(key) + "="); + } + else if (value === "") { + result.push(""); + } + } + return result; +} +function parseUrl(template) { + return { + expand: expand.bind(null, template) + }; +} +function expand(template, context) { + var operators = ["+", "#", ".", "/", ";", "?", "&"]; + return template.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g, function (_, expression, literal) { + if (expression) { + let operator = ""; + const values = []; + if (operators.indexOf(expression.charAt(0)) !== -1) { + operator = expression.charAt(0); + expression = expression.substr(1); + } + expression.split(/,/g).forEach(function (variable) { + var tmp = /([^:\*]*)(?::(\d+)|(\*))?/.exec(variable); + values.push(getValues(context, operator, tmp[1], tmp[2] || tmp[3])); + }); + if (operator && operator !== "+") { + var separator = ","; + if (operator === "?") { + separator = "&"; + } + else if (operator !== "#") { + separator = operator; + } + return (values.length !== 0 ? operator : "") + values.join(separator); + } + else { + return values.join(","); + } + } + else { + return encodeReserved(literal); + } + }); } function parse(options) { - // https://fetch.spec.whatwg.org/#methods - let method = options.method.toUpperCase(); // replace :varname with {varname} to make it RFC 6570 compatible - - let url = options.url.replace(/:([a-z]\w+)/g, "{+$1}"); - let headers = Object.assign({}, options.headers); - let body; - let parameters = omit(options, ["method", "baseUrl", "url", "headers", "request", "mediaType"]); // extract variable names from URL to calculate remaining variables later - - const urlVariableNames = extractUrlVariableNames(url); - url = urlTemplate.parse(url).expand(parameters); - - if (!/^http/.test(url)) { - url = options.baseUrl + url; - } - - const omittedParameters = Object.keys(options).filter(option => urlVariableNames.includes(option)).concat("baseUrl"); - const remainingParameters = omit(parameters, omittedParameters); - const isBinaryRequset = /application\/octet-stream/i.test(headers.accept); - - if (!isBinaryRequset) { - if (options.mediaType.format) { - // e.g. application/vnd.github.v3+json => application/vnd.github.v3.raw - headers.accept = headers.accept.split(/,/).map(preview => preview.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/, "application/vnd$1$2.".concat(options.mediaType.format))).join(","); + // https://fetch.spec.whatwg.org/#methods + let method = options.method.toUpperCase(); + // replace :varname with {varname} to make it RFC 6570 compatible + let url = options.url.replace(/:([a-z]\w+)/g, "{+$1}"); + let headers = Object.assign({}, options.headers); + let body; + let parameters = omit(options, [ + "method", + "baseUrl", + "url", + "headers", + "request", + "mediaType" + ]); + // extract variable names from URL to calculate remaining variables later + const urlVariableNames = extractUrlVariableNames(url); + url = parseUrl(url).expand(parameters); + if (!/^http/.test(url)) { + url = options.baseUrl + url; } - - if (options.mediaType.previews.length) { - const previewsFromAcceptHeader = headers.accept.match(/[\w-]+(?=-preview)/g) || []; - headers.accept = previewsFromAcceptHeader.concat(options.mediaType.previews).map(preview => { - const format = options.mediaType.format ? ".".concat(options.mediaType.format) : "+json"; - return "application/vnd.github.".concat(preview, "-preview").concat(format); - }).join(","); + const omittedParameters = Object.keys(options) + .filter(option => urlVariableNames.includes(option)) + .concat("baseUrl"); + const remainingParameters = omit(parameters, omittedParameters); + const isBinaryRequset = /application\/octet-stream/i.test(headers.accept); + if (!isBinaryRequset) { + if (options.mediaType.format) { + // e.g. application/vnd.github.v3+json => application/vnd.github.v3.raw + headers.accept = headers.accept + .split(/,/) + .map(preview => preview.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/, `application/vnd$1$2.${options.mediaType.format}`)) + .join(","); + } + if (options.mediaType.previews.length) { + const previewsFromAcceptHeader = headers.accept.match(/[\w-]+(?=-preview)/g) || []; + headers.accept = previewsFromAcceptHeader + .concat(options.mediaType.previews) + .map(preview => { + const format = options.mediaType.format + ? `.${options.mediaType.format}` + : "+json"; + return `application/vnd.github.${preview}-preview${format}`; + }) + .join(","); + } } - } // for GET/HEAD requests, set URL query parameters from remaining parameters - // for PATCH/POST/PUT/DELETE requests, set request body from remaining parameters - - - if (["GET", "HEAD"].includes(method)) { - url = addQueryParameters(url, remainingParameters); - } else { - if ("data" in remainingParameters) { - body = remainingParameters.data; - } else { - if (Object.keys(remainingParameters).length) { - body = remainingParameters; - } else { - headers["content-length"] = 0; - } + // for GET/HEAD requests, set URL query parameters from remaining parameters + // for PATCH/POST/PUT/DELETE requests, set request body from remaining parameters + if (["GET", "HEAD"].includes(method)) { + url = addQueryParameters(url, remainingParameters); } - } // default content-type for JSON if body is set - - - if (!headers["content-type"] && typeof body !== "undefined") { - headers["content-type"] = "application/json; charset=utf-8"; - } // GitHub expects 'content-length: 0' header for PUT/PATCH requests without body. - // fetch does not allow to set `content-length` header, but we can set body to an empty string - - - if (["PATCH", "PUT"].includes(method) && typeof body === "undefined") { - body = ""; - } // Only return body/request keys if present - - - return Object.assign({ - method, - url, - headers - }, typeof body !== "undefined" ? { - body - } : null, options.request ? { - request: options.request - } : null); + else { + if ("data" in remainingParameters) { + body = remainingParameters.data; + } + else { + if (Object.keys(remainingParameters).length) { + body = remainingParameters; + } + else { + headers["content-length"] = 0; + } + } + } + // default content-type for JSON if body is set + if (!headers["content-type"] && typeof body !== "undefined") { + headers["content-type"] = "application/json; charset=utf-8"; + } + // GitHub expects 'content-length: 0' header for PUT/PATCH requests without body. + // fetch does not allow to set `content-length` header, but we can set body to an empty string + if (["PATCH", "PUT"].includes(method) && typeof body === "undefined") { + body = ""; + } + // Only return body/request keys if present + return Object.assign({ method, url, headers }, typeof body !== "undefined" ? { body } : null, options.request ? { request: options.request } : null); } function endpointWithDefaults(defaults, route, options) { - return parse(merge(defaults, route, options)); + return parse(merge(defaults, route, options)); } function withDefaults(oldDefaults, newDefaults) { - const DEFAULTS = merge(oldDefaults, newDefaults); - const endpoint = endpointWithDefaults.bind(null, DEFAULTS); - return Object.assign(endpoint, { - DEFAULTS, - defaults: withDefaults.bind(null, DEFAULTS), - merge: merge.bind(null, DEFAULTS), - parse - }); + const DEFAULTS = merge(oldDefaults, newDefaults); + const endpoint = endpointWithDefaults.bind(null, DEFAULTS); + return Object.assign(endpoint, { + DEFAULTS, + defaults: withDefaults.bind(null, DEFAULTS), + merge: merge.bind(null, DEFAULTS), + parse + }); } const VERSION = "0.0.0-development"; -const userAgent = "octokit-endpoint.js/".concat(VERSION, " ").concat(getUserAgent()); +const userAgent = `octokit-endpoint.js/${VERSION} ${getUserAgent()}`; const DEFAULTS = { - method: "GET", - baseUrl: "https://api.github.com", - headers: { - accept: "application/vnd.github.v3+json", - "user-agent": userAgent - }, - mediaType: { - format: "", - previews: [] - } + method: "GET", + baseUrl: "https://api.github.com", + headers: { + accept: "application/vnd.github.v3+json", + "user-agent": userAgent + }, + mediaType: { + format: "", + previews: [] + } }; const endpoint = withDefaults(null, DEFAULTS); export { endpoint }; +//# sourceMappingURL=index.js.map diff --git a/node_modules/@octokit/endpoint/dist-web/index.js.map b/node_modules/@octokit/endpoint/dist-web/index.js.map new file mode 100644 index 0000000..1d52186 --- /dev/null +++ b/node_modules/@octokit/endpoint/dist-web/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sources":["../dist-src/util/lowercase-keys.js","../dist-src/util/merge-deep.js","../dist-src/merge.js","../dist-src/util/add-query-parameters.js","../dist-src/util/extract-url-variable-names.js","../dist-src/util/omit.js","../dist-src/util/url-template.js","../dist-src/parse.js","../dist-src/endpoint-with-defaults.js","../dist-src/with-defaults.js","../dist-src/version.js","../dist-src/defaults.js","../dist-src/index.js"],"sourcesContent":["export function lowercaseKeys(object) {\n if (!object) {\n return {};\n }\n return Object.keys(object).reduce((newObj, key) => {\n newObj[key.toLowerCase()] = object[key];\n return newObj;\n }, {});\n}\n","import isPlainObject from \"is-plain-object\";\nexport function mergeDeep(defaults, options) {\n const result = Object.assign({}, defaults);\n Object.keys(options).forEach(key => {\n if (isPlainObject(options[key])) {\n if (!(key in defaults))\n Object.assign(result, { [key]: options[key] });\n else\n result[key] = mergeDeep(defaults[key], options[key]);\n }\n else {\n Object.assign(result, { [key]: options[key] });\n }\n });\n return result;\n}\n","import { lowercaseKeys } from \"./util/lowercase-keys\";\nimport { mergeDeep } from \"./util/merge-deep\";\nexport function merge(defaults, route, options) {\n if (typeof route === \"string\") {\n let [method, url] = route.split(\" \");\n options = Object.assign(url ? { method, url } : { url: method }, options);\n }\n else {\n options = route || {};\n }\n // lowercase header names before merging with defaults to avoid duplicates\n options.headers = lowercaseKeys(options.headers);\n const mergedOptions = mergeDeep(defaults || {}, options);\n // mediaType.previews arrays are merged, instead of overwritten\n if (defaults && defaults.mediaType.previews.length) {\n mergedOptions.mediaType.previews = defaults.mediaType.previews\n .filter(preview => !mergedOptions.mediaType.previews.includes(preview))\n .concat(mergedOptions.mediaType.previews);\n }\n mergedOptions.mediaType.previews = mergedOptions.mediaType.previews.map((preview) => preview.replace(/-preview/, \"\"));\n return mergedOptions;\n}\n","export function addQueryParameters(url, parameters) {\n const separator = /\\?/.test(url) ? \"&\" : \"?\";\n const names = Object.keys(parameters);\n if (names.length === 0) {\n return url;\n }\n return (url +\n separator +\n names\n .map(name => {\n if (name === \"q\") {\n return (\"q=\" +\n parameters\n .q.split(\"+\")\n .map(encodeURIComponent)\n .join(\"+\"));\n }\n return `${name}=${encodeURIComponent(parameters[name])}`;\n })\n .join(\"&\"));\n}\n","const urlVariableRegex = /\\{[^}]+\\}/g;\nfunction removeNonChars(variableName) {\n return variableName.replace(/^\\W+|\\W+$/g, \"\").split(/,/);\n}\nexport function extractUrlVariableNames(url) {\n const matches = url.match(urlVariableRegex);\n if (!matches) {\n return [];\n }\n return matches.map(removeNonChars).reduce((a, b) => a.concat(b), []);\n}\n","export function omit(object, keysToOmit) {\n return Object.keys(object)\n .filter(option => !keysToOmit.includes(option))\n .reduce((obj, key) => {\n obj[key] = object[key];\n return obj;\n }, {});\n}\n","// Based on https://github.com/bramstein/url-template, licensed under BSD\n// TODO: create separate package.\n//\n// Copyright (c) 2012-2014, Bram Stein\n// All rights reserved.\n// Redistribution and use in source and binary forms, with or without\n// modification, are permitted provided that the following conditions\n// are met:\n// 1. Redistributions of source code must retain the above copyright\n// notice, this list of conditions and the following disclaimer.\n// 2. Redistributions in binary form must reproduce the above copyright\n// notice, this list of conditions and the following disclaimer in the\n// documentation and/or other materials provided with the distribution.\n// 3. The name of the author may not be used to endorse or promote products\n// derived from this software without specific prior written permission.\n// THIS SOFTWARE IS PROVIDED BY THE AUTHOR \"AS IS\" AND ANY EXPRESS OR IMPLIED\n// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF\n// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO\n// EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,\n// INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\n// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\n// OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\n// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\n// EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n/* istanbul ignore file */\nfunction encodeReserved(str) {\n return str\n .split(/(%[0-9A-Fa-f]{2})/g)\n .map(function (part) {\n if (!/%[0-9A-Fa-f]/.test(part)) {\n part = encodeURI(part)\n .replace(/%5B/g, \"[\")\n .replace(/%5D/g, \"]\");\n }\n return part;\n })\n .join(\"\");\n}\nfunction encodeUnreserved(str) {\n return encodeURIComponent(str).replace(/[!'()*]/g, function (c) {\n return (\"%\" +\n c\n .charCodeAt(0)\n .toString(16)\n .toUpperCase());\n });\n}\nfunction encodeValue(operator, value, key) {\n value =\n operator === \"+\" || operator === \"#\"\n ? encodeReserved(value)\n : encodeUnreserved(value);\n if (key) {\n return encodeUnreserved(key) + \"=\" + value;\n }\n else {\n return value;\n }\n}\nfunction isDefined(value) {\n return value !== undefined && value !== null;\n}\nfunction isKeyOperator(operator) {\n return operator === \";\" || operator === \"&\" || operator === \"?\";\n}\nfunction getValues(context, operator, key, modifier) {\n var value = context[key], result = [];\n if (isDefined(value) && value !== \"\") {\n if (typeof value === \"string\" ||\n typeof value === \"number\" ||\n typeof value === \"boolean\") {\n value = value.toString();\n if (modifier && modifier !== \"*\") {\n value = value.substring(0, parseInt(modifier, 10));\n }\n result.push(encodeValue(operator, value, isKeyOperator(operator) ? key : \"\"));\n }\n else {\n if (modifier === \"*\") {\n if (Array.isArray(value)) {\n value.filter(isDefined).forEach(function (value) {\n result.push(encodeValue(operator, value, isKeyOperator(operator) ? key : \"\"));\n });\n }\n else {\n Object.keys(value).forEach(function (k) {\n if (isDefined(value[k])) {\n result.push(encodeValue(operator, value[k], k));\n }\n });\n }\n }\n else {\n const tmp = [];\n if (Array.isArray(value)) {\n value.filter(isDefined).forEach(function (value) {\n tmp.push(encodeValue(operator, value));\n });\n }\n else {\n Object.keys(value).forEach(function (k) {\n if (isDefined(value[k])) {\n tmp.push(encodeUnreserved(k));\n tmp.push(encodeValue(operator, value[k].toString()));\n }\n });\n }\n if (isKeyOperator(operator)) {\n result.push(encodeUnreserved(key) + \"=\" + tmp.join(\",\"));\n }\n else if (tmp.length !== 0) {\n result.push(tmp.join(\",\"));\n }\n }\n }\n }\n else {\n if (operator === \";\") {\n if (isDefined(value)) {\n result.push(encodeUnreserved(key));\n }\n }\n else if (value === \"\" && (operator === \"&\" || operator === \"?\")) {\n result.push(encodeUnreserved(key) + \"=\");\n }\n else if (value === \"\") {\n result.push(\"\");\n }\n }\n return result;\n}\nexport function parseUrl(template) {\n return {\n expand: expand.bind(null, template)\n };\n}\nfunction expand(template, context) {\n var operators = [\"+\", \"#\", \".\", \"/\", \";\", \"?\", \"&\"];\n return template.replace(/\\{([^\\{\\}]+)\\}|([^\\{\\}]+)/g, function (_, expression, literal) {\n if (expression) {\n let operator = \"\";\n const values = [];\n if (operators.indexOf(expression.charAt(0)) !== -1) {\n operator = expression.charAt(0);\n expression = expression.substr(1);\n }\n expression.split(/,/g).forEach(function (variable) {\n var tmp = /([^:\\*]*)(?::(\\d+)|(\\*))?/.exec(variable);\n values.push(getValues(context, operator, tmp[1], tmp[2] || tmp[3]));\n });\n if (operator && operator !== \"+\") {\n var separator = \",\";\n if (operator === \"?\") {\n separator = \"&\";\n }\n else if (operator !== \"#\") {\n separator = operator;\n }\n return (values.length !== 0 ? operator : \"\") + values.join(separator);\n }\n else {\n return values.join(\",\");\n }\n }\n else {\n return encodeReserved(literal);\n }\n });\n}\n","import { addQueryParameters } from \"./util/add-query-parameters\";\nimport { extractUrlVariableNames } from \"./util/extract-url-variable-names\";\nimport { omit } from \"./util/omit\";\nimport { parseUrl } from \"./util/url-template\";\nexport function parse(options) {\n // https://fetch.spec.whatwg.org/#methods\n let method = options.method.toUpperCase();\n // replace :varname with {varname} to make it RFC 6570 compatible\n let url = options.url.replace(/:([a-z]\\w+)/g, \"{+$1}\");\n let headers = Object.assign({}, options.headers);\n let body;\n let parameters = omit(options, [\n \"method\",\n \"baseUrl\",\n \"url\",\n \"headers\",\n \"request\",\n \"mediaType\"\n ]);\n // extract variable names from URL to calculate remaining variables later\n const urlVariableNames = extractUrlVariableNames(url);\n url = parseUrl(url).expand(parameters);\n if (!/^http/.test(url)) {\n url = options.baseUrl + url;\n }\n const omittedParameters = Object.keys(options)\n .filter(option => urlVariableNames.includes(option))\n .concat(\"baseUrl\");\n const remainingParameters = omit(parameters, omittedParameters);\n const isBinaryRequset = /application\\/octet-stream/i.test(headers.accept);\n if (!isBinaryRequset) {\n if (options.mediaType.format) {\n // e.g. application/vnd.github.v3+json => application/vnd.github.v3.raw\n headers.accept = headers.accept\n .split(/,/)\n .map(preview => preview.replace(/application\\/vnd(\\.\\w+)(\\.v3)?(\\.\\w+)?(\\+json)?$/, `application/vnd$1$2.${options.mediaType.format}`))\n .join(\",\");\n }\n if (options.mediaType.previews.length) {\n const previewsFromAcceptHeader = headers.accept.match(/[\\w-]+(?=-preview)/g) || [];\n headers.accept = previewsFromAcceptHeader\n .concat(options.mediaType.previews)\n .map(preview => {\n const format = options.mediaType.format\n ? `.${options.mediaType.format}`\n : \"+json\";\n return `application/vnd.github.${preview}-preview${format}`;\n })\n .join(\",\");\n }\n }\n // for GET/HEAD requests, set URL query parameters from remaining parameters\n // for PATCH/POST/PUT/DELETE requests, set request body from remaining parameters\n if ([\"GET\", \"HEAD\"].includes(method)) {\n url = addQueryParameters(url, remainingParameters);\n }\n else {\n if (\"data\" in remainingParameters) {\n body = remainingParameters.data;\n }\n else {\n if (Object.keys(remainingParameters).length) {\n body = remainingParameters;\n }\n else {\n headers[\"content-length\"] = 0;\n }\n }\n }\n // default content-type for JSON if body is set\n if (!headers[\"content-type\"] && typeof body !== \"undefined\") {\n headers[\"content-type\"] = \"application/json; charset=utf-8\";\n }\n // GitHub expects 'content-length: 0' header for PUT/PATCH requests without body.\n // fetch does not allow to set `content-length` header, but we can set body to an empty string\n if ([\"PATCH\", \"PUT\"].includes(method) && typeof body === \"undefined\") {\n body = \"\";\n }\n // Only return body/request keys if present\n return Object.assign({ method, url, headers }, typeof body !== \"undefined\" ? { body } : null, options.request ? { request: options.request } : null);\n}\n","import { merge } from \"./merge\";\nimport { parse } from \"./parse\";\nexport function endpointWithDefaults(defaults, route, options) {\n return parse(merge(defaults, route, options));\n}\n","import { endpointWithDefaults } from \"./endpoint-with-defaults\";\nimport { merge } from \"./merge\";\nimport { parse } from \"./parse\";\nexport function withDefaults(oldDefaults, newDefaults) {\n const DEFAULTS = merge(oldDefaults, newDefaults);\n const endpoint = endpointWithDefaults.bind(null, DEFAULTS);\n return Object.assign(endpoint, {\n DEFAULTS,\n defaults: withDefaults.bind(null, DEFAULTS),\n merge: merge.bind(null, DEFAULTS),\n parse\n });\n}\n","export const VERSION = \"0.0.0-development\";\n","import { getUserAgent } from \"universal-user-agent\";\nimport { VERSION } from \"./version\";\nconst userAgent = `octokit-endpoint.js/${VERSION} ${getUserAgent()}`;\nexport const DEFAULTS = {\n method: \"GET\",\n baseUrl: \"https://api.github.com\",\n headers: {\n accept: \"application/vnd.github.v3+json\",\n \"user-agent\": userAgent\n },\n mediaType: {\n format: \"\",\n previews: []\n }\n};\n","import { withDefaults } from \"./with-defaults\";\nimport { DEFAULTS } from \"./defaults\";\nexport const endpoint = withDefaults(null, DEFAULTS);\n"],"names":[],"mappings":";;;AAAO,SAAS,aAAa,CAAC,MAAM,EAAE;IAClC,IAAI,CAAC,MAAM,EAAE;QACT,OAAO,EAAE,CAAC;KACb;IACD,OAAO,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,GAAG,KAAK;QAC/C,MAAM,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;QACxC,OAAO,MAAM,CAAC;KACjB,EAAE,EAAE,CAAC,CAAC;CACV;;ACPM,SAAS,SAAS,CAAC,QAAQ,EAAE,OAAO,EAAE;IACzC,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,QAAQ,CAAC,CAAC;IAC3C,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,GAAG,IAAI;QAChC,IAAI,aAAa,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE;YAC7B,IAAI,EAAE,G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AC,CAAC,CAAC;AACrE,AAAO,MAAM,QAAQ,GAAG;IACpB,MAAM,EAAE,KAAK;IACb,OAAO,EAAE,wBAAwB;IACjC,OAAO,EAAE;QACL,MAAM,EAAE,gCAAgC;QACxC,YAAY,EAAE,SAAS;KAC1B;IACD,SAAS,EAAE;QACP,MAAM,EAAE,EAAE;QACV,QAAQ,EAAE,EAAE;KACf;CACJ,CAAC;;ACZU,MAAC,QAAQ,GAAG,YAAY,CAAC,IAAI,EAAE,QAAQ,CAAC;;;;"} \ No newline at end of file diff --git a/node_modules/@octokit/endpoint/node_modules/universal-user-agent/.travis.yml b/node_modules/@octokit/endpoint/node_modules/universal-user-agent/.travis.yml deleted file mode 100644 index ebafc54..0000000 --- a/node_modules/@octokit/endpoint/node_modules/universal-user-agent/.travis.yml +++ /dev/null @@ -1,35 +0,0 @@ -language: node_js -cache: npm - -# Trigger a push build on master and greenkeeper branches + PRs build on every branches -# Avoid double build on PRs (See https://github.com/travis-ci/travis-ci/issues/1147) -branches: - only: - - master - - /^greenkeeper.*$/ - -stages: - - test - - name: release - if: branch = master AND type IN (push) - -jobs: - include: - - stage: test - node_js: 12 - script: npm run test - - node_js: 8 - script: npm run test - - node_js: 10 - env: Node 10 & coverage upload - script: - - npm run test - - npm run coverage:upload - - node_js: lts/* - env: browser tests - script: npm run test:browser - - - stage: release - node_js: lts/* - env: semantic-release - script: npm run semantic-release diff --git a/node_modules/@octokit/endpoint/node_modules/universal-user-agent/README.md b/node_modules/@octokit/endpoint/node_modules/universal-user-agent/README.md index 59e809e..d00d14c 100644 --- a/node_modules/@octokit/endpoint/node_modules/universal-user-agent/README.md +++ b/node_modules/@octokit/endpoint/node_modules/universal-user-agent/README.md @@ -4,13 +4,13 @@ [![@latest](https://img.shields.io/npm/v/universal-user-agent.svg)](https://www.npmjs.com/package/universal-user-agent) [![Build Status](https://travis-ci.com/gr2m/universal-user-agent.svg?branch=master)](https://travis-ci.com/gr2m/universal-user-agent) -[![Coverage Status](https://coveralls.io/repos/github/gr2m/universal-user-agent/badge.svg)](https://coveralls.io/github/gr2m/universal-user-agent) [![Greenkeeper](https://badges.greenkeeper.io/gr2m/universal-user-agent.svg)](https://greenkeeper.io/) ```js -const getUserAgent = require('universal-user-agent') -const userAgent = getUserAgent() +const { getUserAgent } = require("universal-user-agent"); +// or import { getUserAgent } from "universal-user-agent"; +const userAgent = getUserAgent(); // userAgent will look like this // in browser: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:61.0) Gecko/20100101 Firefox/61.0" // in node: Node.js/v8.9.4 (macOS High Sierra; x64) diff --git a/node_modules/@octokit/endpoint/node_modules/universal-user-agent/browser.js b/node_modules/@octokit/endpoint/node_modules/universal-user-agent/browser.js deleted file mode 100644 index eb12744..0000000 --- a/node_modules/@octokit/endpoint/node_modules/universal-user-agent/browser.js +++ /dev/null @@ -1,6 +0,0 @@ -module.exports = getUserAgentBrowser - -function getUserAgentBrowser () { - /* global navigator */ - return navigator.userAgent -} diff --git a/node_modules/@octokit/endpoint/node_modules/universal-user-agent/cypress.json b/node_modules/@octokit/endpoint/node_modules/universal-user-agent/cypress.json deleted file mode 100644 index a1ff4b8..0000000 --- a/node_modules/@octokit/endpoint/node_modules/universal-user-agent/cypress.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "integrationFolder": "test", - "video": false -} diff --git a/node_modules/@octokit/endpoint/node_modules/universal-user-agent/dist-node/index.js b/node_modules/@octokit/endpoint/node_modules/universal-user-agent/dist-node/index.js new file mode 100644 index 0000000..80a0710 --- /dev/null +++ b/node_modules/@octokit/endpoint/node_modules/universal-user-agent/dist-node/index.js @@ -0,0 +1,22 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } + +var osName = _interopDefault(require('os-name')); + +function getUserAgent() { + try { + return `Node.js/${process.version.substr(1)} (${osName()}; ${process.arch})`; + } catch (error) { + if (/wmic os get Caption/.test(error.message)) { + return "Windows "; + } + + throw error; + } +} + +exports.getUserAgent = getUserAgent; +//# sourceMappingURL=index.js.map diff --git a/node_modules/@octokit/endpoint/node_modules/universal-user-agent/dist-node/index.js.map b/node_modules/@octokit/endpoint/node_modules/universal-user-agent/dist-node/index.js.map new file mode 100644 index 0000000..aff09ec --- /dev/null +++ b/node_modules/@octokit/endpoint/node_modules/universal-user-agent/dist-node/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sources":["../dist-src/node.js"],"sourcesContent":["import osName from \"os-name\";\nexport function getUserAgent() {\n try {\n return `Node.js/${process.version.substr(1)} (${osName()}; ${process.arch})`;\n }\n catch (error) {\n if (/wmic os get Caption/.test(error.message)) {\n return \"Windows \";\n }\n throw error;\n }\n}\n"],"names":["getUserAgent","process","version","substr","osName","arch","error","test","message"],"mappings":";;;;;;;;AACO,SAASA,YAAT,GAAwB;MACvB;WACQ,WAAUC,OAAO,CAACC,OAAR,CAAgBC,MAAhB,CAAuB,CAAvB,CAA0B,KAAIC,MAAM,EAAG,KAAIH,OAAO,CAACI,IAAK,GAA1E;GADJ,CAGA,OAAOC,KAAP,EAAc;QACN,sBAAsBC,IAAtB,CAA2BD,KAAK,CAACE,OAAjC,CAAJ,EAA+C;aACpC,gCAAP;;;UAEEF,KAAN;;;;;;"} \ No newline at end of file diff --git a/node_modules/@octokit/endpoint/node_modules/universal-user-agent/dist-src/browser.js b/node_modules/@octokit/endpoint/node_modules/universal-user-agent/dist-src/browser.js new file mode 100644 index 0000000..6f52232 --- /dev/null +++ b/node_modules/@octokit/endpoint/node_modules/universal-user-agent/dist-src/browser.js @@ -0,0 +1,3 @@ +export function getUserAgent() { + return navigator.userAgent; +} diff --git a/node_modules/@octokit/endpoint/node_modules/universal-user-agent/dist-src/index.js b/node_modules/@octokit/endpoint/node_modules/universal-user-agent/dist-src/index.js new file mode 100644 index 0000000..c6253f5 --- /dev/null +++ b/node_modules/@octokit/endpoint/node_modules/universal-user-agent/dist-src/index.js @@ -0,0 +1 @@ +export { getUserAgent } from "./node"; diff --git a/node_modules/@octokit/endpoint/node_modules/universal-user-agent/dist-src/node.js b/node_modules/@octokit/endpoint/node_modules/universal-user-agent/dist-src/node.js new file mode 100644 index 0000000..8b70a03 --- /dev/null +++ b/node_modules/@octokit/endpoint/node_modules/universal-user-agent/dist-src/node.js @@ -0,0 +1,12 @@ +import osName from "os-name"; +export function getUserAgent() { + try { + return `Node.js/${process.version.substr(1)} (${osName()}; ${process.arch})`; + } + catch (error) { + if (/wmic os get Caption/.test(error.message)) { + return "Windows "; + } + throw error; + } +} diff --git a/node_modules/@octokit/endpoint/node_modules/universal-user-agent/dist-types/browser.d.ts b/node_modules/@octokit/endpoint/node_modules/universal-user-agent/dist-types/browser.d.ts new file mode 100644 index 0000000..a7bb1c4 --- /dev/null +++ b/node_modules/@octokit/endpoint/node_modules/universal-user-agent/dist-types/browser.d.ts @@ -0,0 +1 @@ +export declare function getUserAgent(): string; diff --git a/node_modules/@octokit/endpoint/node_modules/universal-user-agent/dist-types/index.d.ts b/node_modules/@octokit/endpoint/node_modules/universal-user-agent/dist-types/index.d.ts new file mode 100644 index 0000000..c6253f5 --- /dev/null +++ b/node_modules/@octokit/endpoint/node_modules/universal-user-agent/dist-types/index.d.ts @@ -0,0 +1 @@ +export { getUserAgent } from "./node"; diff --git a/node_modules/@octokit/endpoint/node_modules/universal-user-agent/dist-types/node.d.ts b/node_modules/@octokit/endpoint/node_modules/universal-user-agent/dist-types/node.d.ts new file mode 100644 index 0000000..a7bb1c4 --- /dev/null +++ b/node_modules/@octokit/endpoint/node_modules/universal-user-agent/dist-types/node.d.ts @@ -0,0 +1 @@ +export declare function getUserAgent(): string; diff --git a/node_modules/@octokit/endpoint/node_modules/universal-user-agent/dist-web/index.js b/node_modules/@octokit/endpoint/node_modules/universal-user-agent/dist-web/index.js new file mode 100644 index 0000000..11ec79b --- /dev/null +++ b/node_modules/@octokit/endpoint/node_modules/universal-user-agent/dist-web/index.js @@ -0,0 +1,6 @@ +function getUserAgent() { + return navigator.userAgent; +} + +export { getUserAgent }; +//# sourceMappingURL=index.js.map diff --git a/node_modules/@octokit/endpoint/node_modules/universal-user-agent/dist-web/index.js.map b/node_modules/@octokit/endpoint/node_modules/universal-user-agent/dist-web/index.js.map new file mode 100644 index 0000000..549407e --- /dev/null +++ b/node_modules/@octokit/endpoint/node_modules/universal-user-agent/dist-web/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sources":["../dist-src/browser.js"],"sourcesContent":["export function getUserAgent() {\n return navigator.userAgent;\n}\n"],"names":[],"mappings":"AAAO,SAAS,YAAY,GAAG;IAC3B,OAAO,SAAS,CAAC,SAAS,CAAC;CAC9B;;;;"} \ No newline at end of file diff --git a/node_modules/@octokit/endpoint/node_modules/universal-user-agent/index.d.ts b/node_modules/@octokit/endpoint/node_modules/universal-user-agent/index.d.ts deleted file mode 100644 index 04dfc04..0000000 --- a/node_modules/@octokit/endpoint/node_modules/universal-user-agent/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export default function getUserAgentNode(): string; diff --git a/node_modules/@octokit/endpoint/node_modules/universal-user-agent/index.js b/node_modules/@octokit/endpoint/node_modules/universal-user-agent/index.js deleted file mode 100644 index ef2d06b..0000000 --- a/node_modules/@octokit/endpoint/node_modules/universal-user-agent/index.js +++ /dev/null @@ -1,15 +0,0 @@ -module.exports = getUserAgentNode - -const osName = require('os-name') - -function getUserAgentNode () { - try { - return `Node.js/${process.version.substr(1)} (${osName()}; ${process.arch})` - } catch (error) { - if (/wmic os get Caption/.test(error.message)) { - return 'Windows ' - } - - throw error - } -} diff --git a/node_modules/@octokit/endpoint/node_modules/universal-user-agent/package.json b/node_modules/@octokit/endpoint/node_modules/universal-user-agent/package.json index 61f955e..7574730 100644 --- a/node_modules/@octokit/endpoint/node_modules/universal-user-agent/package.json +++ b/node_modules/@octokit/endpoint/node_modules/universal-user-agent/package.json @@ -1,85 +1,65 @@ { - "_args": [ - [ - "universal-user-agent@3.0.0", - "/Users/rachmari/github-repos/hello-world-javascript-action" - ] - ], - "_from": "universal-user-agent@3.0.0", - "_id": "universal-user-agent@3.0.0", + "_from": "universal-user-agent@^4.0.0", + "_id": "universal-user-agent@4.0.0", "_inBundle": false, - "_integrity": "sha512-T3siHThqoj5X0benA5H0qcDnrKGXzU8TKoX15x/tQHw1hQBvIEBHjxQ2klizYsqBOO/Q+WuxoQUihadeeqDnoA==", + "_integrity": "sha512-eM8knLpev67iBDizr/YtqkJsF3GK8gzDc6st/WKzrTuPtcsOKW/0IdL4cnMBsU69pOx0otavLWBDGTwg+dB0aA==", "_location": "/@octokit/endpoint/universal-user-agent", "_phantomChildren": {}, "_requested": { - "type": "version", + "type": "range", "registry": true, - "raw": "universal-user-agent@3.0.0", + "raw": "universal-user-agent@^4.0.0", "name": "universal-user-agent", "escapedName": "universal-user-agent", - "rawSpec": "3.0.0", + "rawSpec": "^4.0.0", "saveSpec": null, - "fetchSpec": "3.0.0" + "fetchSpec": "^4.0.0" }, "_requiredBy": [ "/@octokit/endpoint" ], - "_resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-3.0.0.tgz", - "_spec": "3.0.0", - "_where": "/Users/rachmari/github-repos/hello-world-javascript-action", - "author": { - "name": "Gregor Martynus", - "url": "https://github.com/gr2m" - }, - "browser": "browser.js", + "_resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-4.0.0.tgz", + "_shasum": "27da2ec87e32769619f68a14996465ea1cb9df16", + "_spec": "universal-user-agent@^4.0.0", + "_where": "/Users/rachmari/github-repos/hello-world-javascript-action/node_modules/@octokit/endpoint", "bugs": { "url": "https://github.com/gr2m/universal-user-agent/issues" }, + "bundleDependencies": false, "dependencies": { - "os-name": "^3.0.0" + "os-name": "^3.1.0" }, + "deprecated": false, "description": "Get a user agent string in both browser and node", "devDependencies": { - "chai": "^4.1.2", - "coveralls": "^3.0.2", - "cypress": "^3.1.0", - "mocha": "^6.0.0", - "nyc": "^14.0.0", - "proxyquire": "^2.1.0", + "@gr2m/pika-plugin-build-web": "^0.6.0-issue-84.1", + "@pika/pack": "^0.5.0", + "@pika/plugin-build-node": "^0.6.0", + "@pika/plugin-ts-standard-pkg": "^0.6.0", + "@types/jest": "^24.0.18", + "jest": "^24.9.0", + "prettier": "^1.18.2", "semantic-release": "^15.9.15", - "sinon": "^7.2.4", - "sinon-chai": "^3.2.0", - "standard": "^13.0.1", - "test": "^0.6.0", - "travis-deploy-once": "^5.0.7" + "ts-jest": "^24.0.2", + "typescript": "^3.6.2" }, + "files": [ + "dist-*/", + "bin/" + ], "homepage": "https://github.com/gr2m/universal-user-agent#readme", "keywords": [], "license": "ISC", - "main": "index.js", + "main": "dist-node/index.js", + "module": "dist-web/index.js", "name": "universal-user-agent", + "pika": true, "repository": { "type": "git", "url": "git+https://github.com/gr2m/universal-user-agent.git" }, - "scripts": { - "coverage": "nyc report --reporter=html && open coverage/index.html", - "coverage:upload": "nyc report --reporter=text-lcov | coveralls", - "pretest": "standard", - "semantic-release": "semantic-release", - "test": "nyc mocha \"test/*-test.js\"", - "test:browser": "cypress run --browser chrome", - "travis-deploy-once": "travis-deploy-once" - }, - "standard": { - "globals": [ - "describe", - "it", - "beforeEach", - "afterEach", - "expect" - ] - }, - "types": "index.d.ts", - "version": "3.0.0" + "sideEffects": false, + "source": "dist-src/index.js", + "types": "dist-types/index.d.ts", + "version": "4.0.0" } diff --git a/node_modules/@octokit/endpoint/node_modules/universal-user-agent/test/smoke-test.js b/node_modules/@octokit/endpoint/node_modules/universal-user-agent/test/smoke-test.js deleted file mode 100644 index d71b2d5..0000000 --- a/node_modules/@octokit/endpoint/node_modules/universal-user-agent/test/smoke-test.js +++ /dev/null @@ -1,57 +0,0 @@ -// make tests run in both Node & Express -if (!global.cy) { - const chai = require('chai') - const sinon = require('sinon') - const sinonChai = require('sinon-chai') - chai.use(sinonChai) - global.expect = chai.expect - - let sandbox - beforeEach(() => { - sandbox = sinon.createSandbox() - global.cy = { - stub: function () { - return sandbox.stub.apply(sandbox, arguments) - }, - log () { - console.log.apply(console, arguments) - } - } - }) - - afterEach(() => { - sandbox.restore() - }) -} - -const getUserAgent = require('..') - -describe('smoke', () => { - it('works', () => { - expect(getUserAgent()).to.be.a('string') - expect(getUserAgent().length).to.be.above(10) - }) - - if (!process.browser) { // test on node only - const proxyquire = require('proxyquire').noCallThru() - it('works around wmic error on Windows (#5)', () => { - const getUserAgent = proxyquire('..', { - 'os-name': () => { - throw new Error('Command failed: wmic os get Caption') - } - }) - - expect(getUserAgent()).to.equal('Windows ') - }) - - it('does not swallow unexpected errors', () => { - const getUserAgent = proxyquire('..', { - 'os-name': () => { - throw new Error('oops') - } - }) - - expect(getUserAgent).to.throw('oops') - }) - } -}) diff --git a/node_modules/@octokit/endpoint/package.json b/node_modules/@octokit/endpoint/package.json index b2f3df6..797c47a 100644 --- a/node_modules/@octokit/endpoint/package.json +++ b/node_modules/@octokit/endpoint/package.json @@ -1,58 +1,50 @@ { - "_args": [ - [ - "@octokit/endpoint@5.3.2", - "/Users/rachmari/github-repos/hello-world-javascript-action" - ] - ], - "_from": "@octokit/endpoint@5.3.2", - "_id": "@octokit/endpoint@5.3.2", + "_from": "@octokit/endpoint@^5.1.0", + "_id": "@octokit/endpoint@5.3.5", "_inBundle": false, - "_integrity": "sha512-gRjteEM9I6f4D8vtwU2iGUTn9RX/AJ0SVXiqBUEuYEWVGGAVjSXdT0oNmghH5lvQNWs8mwt6ZaultuG6yXivNw==", + "_integrity": "sha512-f8KqzIrnzPLiezDsZZPB+K8v8YSv6aKFl7eOu59O46lmlW4HagWl1U6NWl6LmT8d1w7NsKBI3paVtzcnRGO1gw==", "_location": "/@octokit/endpoint", "_phantomChildren": { "os-name": "3.1.0" }, "_requested": { - "type": "version", + "type": "range", "registry": true, - "raw": "@octokit/endpoint@5.3.2", + "raw": "@octokit/endpoint@^5.1.0", "name": "@octokit/endpoint", "escapedName": "@octokit%2fendpoint", "scope": "@octokit", - "rawSpec": "5.3.2", + "rawSpec": "^5.1.0", "saveSpec": null, - "fetchSpec": "5.3.2" + "fetchSpec": "^5.1.0" }, "_requiredBy": [ "/@octokit/request" ], - "_resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-5.3.2.tgz", - "_spec": "5.3.2", - "_where": "/Users/rachmari/github-repos/hello-world-javascript-action", + "_resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-5.3.5.tgz", + "_shasum": "2822c3b01107806dbdce3863b6205e3eff4289ed", + "_spec": "@octokit/endpoint@^5.1.0", + "_where": "/Users/rachmari/github-repos/hello-world-javascript-action/node_modules/@octokit/request", "bugs": { "url": "https://github.com/octokit/endpoint.js/issues" }, + "bundleDependencies": false, "dependencies": { - "deepmerge": "4.0.0", "is-plain-object": "^3.0.0", - "universal-user-agent": "^3.0.0", - "url-template": "^2.0.8" + "universal-user-agent": "^4.0.0" }, + "deprecated": false, "description": "Turns REST API endpoints into generic request options", "devDependencies": { "@octokit/routes": "20.9.2", - "@pika/pack": "^0.4.0", - "@pika/plugin-build-node": "^0.4.0", - "@pika/plugin-build-web": "^0.4.0", - "@pika/plugin-ts-standard-pkg": "^0.4.0", + "@pika/pack": "^0.5.0", + "@pika/plugin-build-node": "^0.6.0", + "@pika/plugin-build-web": "^0.6.0", + "@pika/plugin-ts-standard-pkg": "^0.6.0", "@types/jest": "^24.0.11", - "@types/url-template": "^2.0.28", - "glob": "^7.1.3", "handlebars": "^4.1.2", "jest": "^24.7.1", "lodash.set": "^4.3.2", - "nyc": "^14.0.0", "pascal-case": "^2.0.1", "prettier": "1.18.2", "semantic-release": "^15.13.8", @@ -87,5 +79,5 @@ "sideEffects": false, "source": "dist-src/index.js", "types": "dist-types/index.d.ts", - "version": "5.3.2" + "version": "5.3.5" } diff --git a/node_modules/@octokit/graphql/package.json b/node_modules/@octokit/graphql/package.json index 9d513c2..613cb52 100644 --- a/node_modules/@octokit/graphql/package.json +++ b/node_modules/@octokit/graphql/package.json @@ -1,33 +1,28 @@ { - "_args": [ - [ - "@octokit/graphql@2.1.3", - "/Users/rachmari/github-repos/hello-world-javascript-action" - ] - ], - "_from": "@octokit/graphql@2.1.3", + "_from": "@octokit/graphql@^2.0.1", "_id": "@octokit/graphql@2.1.3", "_inBundle": false, "_integrity": "sha512-XoXJqL2ondwdnMIW3wtqJWEwcBfKk37jO/rYkoxNPEVeLBDGsGO1TCWggrAlq3keGt/O+C/7VepXnukUxwt5vA==", "_location": "/@octokit/graphql", "_phantomChildren": {}, "_requested": { - "type": "version", + "type": "range", "registry": true, - "raw": "@octokit/graphql@2.1.3", + "raw": "@octokit/graphql@^2.0.1", "name": "@octokit/graphql", "escapedName": "@octokit%2fgraphql", "scope": "@octokit", - "rawSpec": "2.1.3", + "rawSpec": "^2.0.1", "saveSpec": null, - "fetchSpec": "2.1.3" + "fetchSpec": "^2.0.1" }, "_requiredBy": [ "/@actions/github" ], "_resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-2.1.3.tgz", - "_spec": "2.1.3", - "_where": "/Users/rachmari/github-repos/hello-world-javascript-action", + "_shasum": "60c058a0ed5fa242eca6f938908d95fd1a2f4b92", + "_spec": "@octokit/graphql@^2.0.1", + "_where": "/Users/rachmari/github-repos/hello-world-javascript-action/node_modules/@actions/github", "author": { "name": "Gregor Martynus", "url": "https://github.com/gr2m" @@ -35,6 +30,7 @@ "bugs": { "url": "https://github.com/octokit/graphql.js/issues" }, + "bundleDependencies": false, "bundlesize": [ { "path": "./dist/octokit-graphql.min.js.gz", @@ -45,6 +41,7 @@ "@octokit/request": "^5.0.0", "universal-user-agent": "^2.0.3" }, + "deprecated": false, "description": "GitHub GraphQL API client for browsers and Node", "devDependencies": { "chai": "^4.2.0", diff --git a/node_modules/@octokit/request-error/package.json b/node_modules/@octokit/request-error/package.json index 7e5ce6a..5660b29 100644 --- a/node_modules/@octokit/request-error/package.json +++ b/node_modules/@octokit/request-error/package.json @@ -1,41 +1,38 @@ { - "_args": [ - [ - "@octokit/request-error@1.0.4", - "/Users/rachmari/github-repos/hello-world-javascript-action" - ] - ], - "_from": "@octokit/request-error@1.0.4", + "_from": "@octokit/request-error@^1.0.1", "_id": "@octokit/request-error@1.0.4", "_inBundle": false, "_integrity": "sha512-L4JaJDXn8SGT+5G0uX79rZLv0MNJmfGa4vb4vy1NnpjSnWDLJRy6m90udGwvMmavwsStgbv2QNkPzzTCMmL+ig==", "_location": "/@octokit/request-error", "_phantomChildren": {}, "_requested": { - "type": "version", + "type": "range", "registry": true, - "raw": "@octokit/request-error@1.0.4", + "raw": "@octokit/request-error@^1.0.1", "name": "@octokit/request-error", "escapedName": "@octokit%2frequest-error", "scope": "@octokit", - "rawSpec": "1.0.4", + "rawSpec": "^1.0.1", "saveSpec": null, - "fetchSpec": "1.0.4" + "fetchSpec": "^1.0.1" }, "_requiredBy": [ "/@octokit/request", "/@octokit/rest" ], "_resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-1.0.4.tgz", - "_spec": "1.0.4", - "_where": "/Users/rachmari/github-repos/hello-world-javascript-action", + "_shasum": "15e1dc22123ba4a9a4391914d80ec1e5303a23be", + "_spec": "@octokit/request-error@^1.0.1", + "_where": "/Users/rachmari/github-repos/hello-world-javascript-action/node_modules/@octokit/request", "bugs": { "url": "https://github.com/octokit/request-error.js/issues" }, + "bundleDependencies": false, "dependencies": { "deprecation": "^2.0.0", "once": "^1.4.0" }, + "deprecated": false, "description": "Error class for Octokit request errors", "devDependencies": { "@pika/pack": "^0.3.7", diff --git a/node_modules/@octokit/request/README.md b/node_modules/@octokit/request/README.md index 81e599b..4cf0bd9 100644 --- a/node_modules/@octokit/request/README.md +++ b/node_modules/@octokit/request/README.md @@ -42,13 +42,17 @@ request("POST /repos/:owner/:repo/issues/:number/labels", { mediaType: { previews: ["symmetra"] }, - owner: "ocotkit", + owner: "octokit", repo: "request.js", number: 1, labels: ["🐛 bug"] }); ``` +👶 [Small bundle size](https://bundlephobia.com/result?p=@octokit/request@5.0.3) (\<4kb minified + gzipped) + +😎 [Authenticate](#authentication) with any of [GitHubs Authentication Strategies](https://github.com/octokit/auth.js). + 👍 Sensible defaults - `baseUrl`: `https://api.github.com` @@ -59,8 +63,6 @@ request("POST /repos/:owner/:repo/issues/:number/labels", { 🧐 Simple to debug: Sets `error.request` to request options causing the error (with redacted credentials). -👶 Small bundle size (\<5kb minified + gzipped) - ## Usage @@ -110,6 +112,8 @@ console.log(`${result.data.length} repos found.`); ### GraphQL example +For GraphQL request we recommend using [`@octokit/graphql`](https://github.com/octokit/graphql.js#readme) + ```js const result = await request("POST /graphql", { headers: { @@ -144,6 +148,45 @@ const result = await request({ }); ``` +## Authentication + +The simplest way to authenticate a request is to set the `Authorization` header directly, e.g. to a [personal access token](https://github.com/settings/tokens/). + +```js +const requestWithAuth = request.defaults({ + headers: { + authorization: "token 0000000000000000000000000000000000000001" + } +}); +const result = await request("GET /user"); +``` + +For more complex authentication strategies such as GitHub Apps or Basic, we recommend the according authentication library exported by [`@octokit/auth`](https://github.com/octokit/auth.js). + +```js +const { createAppAuth } = require("@octokit/auth-app"); +const auth = createAppAuth({ + id: process.env.APP_ID, + privateKey: process.env.PRIVATE_KEY, + installationId: 123 +}); +const requestWithAuth = request.defaults({ + request: { + hook: auth.hook + }, + mediaType: { + previews: ["machine-man"] + } +}); + +const { data: app } = await requestWithAuth("GET /app"); +const { data: app } = await requestWithAuth("POST /repos/:owner/:repo/issues", { + owner: "octocat", + repo: "hello-world", + title: "Hello from the engine room" +}); +``` + ## request() `request(route, options)` or `request(options)`. @@ -425,10 +468,10 @@ const options = request.endpoint("GET /orgs/:org/repos", { All of the [`@octokit/endpoint`](https://github.com/octokit/endpoint.js) API can be used: -- [`ocotkitRequest.endpoint()`](#endpoint) -- [`ocotkitRequest.endpoint.defaults()`](#endpointdefaults) -- [`ocotkitRequest.endpoint.merge()`](#endpointdefaults) -- [`ocotkitRequest.endpoint.parse()`](#endpointmerge) +- [`octokitRequest.endpoint()`](#endpoint) +- [`octokitRequest.endpoint.defaults()`](#endpointdefaults) +- [`octokitRequest.endpoint.merge()`](#endpointdefaults) +- [`octokitRequest.endpoint.parse()`](#endpointmerge) ## Special cases diff --git a/node_modules/@octokit/request/dist-node/index.js b/node_modules/@octokit/request/dist-node/index.js index 2e6d51a..d1bdaa6 100644 --- a/node_modules/@octokit/request/dist-node/index.js +++ b/node_modules/@octokit/request/dist-node/index.js @@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true }); function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } var endpoint = require('@octokit/endpoint'); -var getUserAgent = _interopDefault(require('universal-user-agent')); +var universalUserAgent = require('universal-user-agent'); var isPlainObject = _interopDefault(require('is-plain-object')); var nodeFetch = _interopDefault(require('node-fetch')); var requestError = require('@octokit/request-error'); @@ -136,8 +136,9 @@ function withDefaults(oldEndpoint, newDefaults) { const request = withDefaults(endpoint.endpoint, { headers: { - "user-agent": `octokit-request.js/${VERSION} ${getUserAgent()}` + "user-agent": `octokit-request.js/${VERSION} ${universalUserAgent.getUserAgent()}` } }); exports.request = request; +//# sourceMappingURL=index.js.map diff --git a/node_modules/@octokit/request/dist-node/index.js.map b/node_modules/@octokit/request/dist-node/index.js.map new file mode 100644 index 0000000..1bdc65b --- /dev/null +++ b/node_modules/@octokit/request/dist-node/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sources":["../dist-src/version.js","../dist-src/get-buffer-response.js","../dist-src/fetch-wrapper.js","../dist-src/with-defaults.js","../dist-src/index.js"],"sourcesContent":["export const VERSION = \"0.0.0-development\";\n","export default function getBufferResponse(response) {\n return response.arrayBuffer();\n}\n","import isPlainObject from \"is-plain-object\";\nimport nodeFetch from \"node-fetch\";\nimport { RequestError } from \"@octokit/request-error\";\nimport getBuffer from \"./get-buffer-response\";\nexport default function fetchWrapper(requestOptions) {\n if (isPlainObject(requestOptions.body) ||\n Array.isArray(requestOptions.body)) {\n requestOptions.body = JSON.stringify(requestOptions.body);\n }\n let headers = {};\n let status;\n let url;\n const fetch = (requestOptions.request && requestOptions.request.fetch) || nodeFetch;\n return fetch(requestOptions.url, Object.assign({\n method: requestOptions.method,\n body: requestOptions.body,\n headers: requestOptions.headers,\n redirect: requestOptions.redirect\n }, requestOptions.request))\n .then(response => {\n url = response.url;\n status = response.status;\n for (const keyAndValue of response.headers) {\n headers[keyAndValue[0]] = keyAndValue[1];\n }\n if (status === 204 || status === 205) {\n return;\n }\n // GitHub API returns 200 for HEAD requsets\n if (requestOptions.method === \"HEAD\") {\n if (status < 400) {\n return;\n }\n throw new RequestError(response.statusText, status, {\n headers,\n request: requestOptions\n });\n }\n if (status === 304) {\n throw new RequestError(\"Not modified\", status, {\n headers,\n request: requestOptions\n });\n }\n if (status >= 400) {\n return response\n .text()\n .then(message => {\n const error = new RequestError(message, status, {\n headers,\n request: requestOptions\n });\n try {\n Object.assign(error, JSON.parse(error.message));\n }\n catch (e) {\n // ignore, see octokit/rest.js#684\n }\n throw error;\n });\n }\n const contentType = response.headers.get(\"content-type\");\n if (/application\\/json/.test(contentType)) {\n return response.json();\n }\n if (!contentType || /^text\\/|charset=utf-8$/.test(contentType)) {\n return response.text();\n }\n return getBuffer(response);\n })\n .then(data => {\n return {\n status,\n url,\n headers,\n data\n };\n })\n .catch(error => {\n if (error instanceof RequestError) {\n throw error;\n }\n throw new RequestError(error.message, 500, {\n headers,\n request: requestOptions\n });\n });\n}\n","import fetchWrapper from \"./fetch-wrapper\";\nexport default function withDefaults(oldEndpoint, newDefaults) {\n const endpoint = oldEndpoint.defaults(newDefaults);\n const newApi = function (route, parameters) {\n const endpointOptions = endpoint.merge(route, parameters);\n if (!endpointOptions.request || !endpointOptions.request.hook) {\n return fetchWrapper(endpoint.parse(endpointOptions));\n }\n const request = (route, parameters) => {\n return fetchWrapper(endpoint.parse(endpoint.merge(route, parameters)));\n };\n Object.assign(request, {\n endpoint,\n defaults: withDefaults.bind(null, endpoint)\n });\n return endpointOptions.request.hook(request, endpointOptions);\n };\n return Object.assign(newApi, {\n endpoint,\n defaults: withDefaults.bind(null, endpoint)\n });\n}\n","import { endpoint } from \"@octokit/endpoint\";\nimport { getUserAgent } from \"universal-user-agent\";\nimport { VERSION } from \"./version\";\nimport withDefaults from \"./with-defaults\";\nexport const request = withDefaults(endpoint, {\n headers: {\n \"user-agent\": `octokit-request.js/${VERSION} ${getUserAgent()}`\n }\n});\n"],"names":["VERSION","getBufferResponse","response","arrayBuffer","fetchWrapper","requestOptions","isPlainObject","body","Array","isArray","JSON","stringify","headers","status","url","fetch","request","nodeFetch","Object","assign","method","redirect","then","keyAndValue","RequestError","statusText","text","message","error","parse","e","contentType","get","test","json","getBuffer","data","catch","withDefaults","oldEndpoint","newDefaults","endpoint","defaults","newApi","route","parameters","endpointOptions","merge","hook","bind","getUserAgent"],"mappings":";;;;;;;;;;;;AAAO,MAAMA,OAAO,GAAG,mBAAhB;;ACAQ,SAASC,iBAAT,CAA2BC,QAA3B,EAAqC;SACzCA,QAAQ,CAACC,WAAT,EAAP;;;ACGW,SAASC,YAAT,CAAsBC,cAAtB,EAAsC;MAC7CC,aAAa,CAACD,cAAc,CAACE,IAAhB,CAAb,IACAC,KAAK,CAACC,OAAN,CAAcJ,cAAc,CAACE,IAA7B,CADJ,EACwC;IACpCF,cAAc,CAACE,IAAf,GAAsBG,IAAI,CAACC,SAAL,CAAeN,cAAc,CAACE,IAA9B,CAAtB;;;MAEAK,OAAO,GAAG,EAAd;MACIC,MAAJ;MACIC,GAAJ;QACMC,KAAK,GAAIV,cAAc,CAACW,OAAf,IAA0BX,cAAc,CAACW,OAAf,CAAuBD,KAAlD,IAA4DE,SAA1E;SACOF,KAAK,CAACV,cAAc,CAACS,GAAhB,EAAqBI,MAAM,CAACC,MAAP,CAAc;IAC3CC,MAAM,EAAEf,cAAc,CAACe,MADoB;IAE3Cb,IAAI,EAAEF,cAAc,CAACE,IAFsB;IAG3CK,OAAO,EAAEP,cAAc,CAACO,OAHmB;IAI3CS,QAAQ,EAAEhB,cAAc,CAACgB;GAJI,E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R,QAAxB;KAFd;WAIOK,eAAe,CAAC9B,OAAhB,CAAwBgC,IAAxB,CAA6BhC,OAA7B,EAAsC8B,eAAtC,CAAP;GAZJ;;SAcO5B,MAAM,CAACC,MAAP,CAAcwB,MAAd,EAAsB;IACzBF,QADyB;IAEzBC,QAAQ,EAAEJ,YAAY,CAACW,IAAb,CAAkB,IAAlB,EAAwBR,QAAxB;GAFP,CAAP;;;MCbSzB,OAAO,GAAGsB,YAAY,CAACG,iBAAD,EAAW;EAC1C7B,OAAO,EAAE;kBACU,sBAAqBZ,OAAQ,IAAGkD,+BAAY,EAAG;;CAFnC,CAA5B;;;;"} \ No newline at end of file diff --git a/node_modules/@octokit/request/dist-src/index.js b/node_modules/@octokit/request/dist-src/index.js index ef12752..6a36142 100644 --- a/node_modules/@octokit/request/dist-src/index.js +++ b/node_modules/@octokit/request/dist-src/index.js @@ -1,5 +1,5 @@ import { endpoint } from "@octokit/endpoint"; -import getUserAgent from "universal-user-agent"; +import { getUserAgent } from "universal-user-agent"; import { VERSION } from "./version"; import withDefaults from "./with-defaults"; export const request = withDefaults(endpoint, { diff --git a/node_modules/@octokit/request/dist-web/index.js b/node_modules/@octokit/request/dist-web/index.js index 3d3ad18..1c3732c 100644 --- a/node_modules/@octokit/request/dist-web/index.js +++ b/node_modules/@octokit/request/dist-web/index.js @@ -1,5 +1,5 @@ import { endpoint } from '@octokit/endpoint'; -import getUserAgent from 'universal-user-agent'; +import { getUserAgent } from 'universal-user-agent'; import isPlainObject from 'is-plain-object'; import nodeFetch from 'node-fetch'; import { RequestError } from '@octokit/request-error'; @@ -124,3 +124,4 @@ const request = withDefaults(endpoint, { }); export { request }; +//# sourceMappingURL=index.js.map diff --git a/node_modules/@octokit/request/dist-web/index.js.map b/node_modules/@octokit/request/dist-web/index.js.map new file mode 100644 index 0000000..35561ce --- /dev/null +++ b/node_modules/@octokit/request/dist-web/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sources":["../dist-src/version.js","../dist-src/get-buffer-response.js","../dist-src/fetch-wrapper.js","../dist-src/with-defaults.js","../dist-src/index.js"],"sourcesContent":["export const VERSION = \"0.0.0-development\";\n","export default function getBufferResponse(response) {\n return response.arrayBuffer();\n}\n","import isPlainObject from \"is-plain-object\";\nimport nodeFetch from \"node-fetch\";\nimport { RequestError } from \"@octokit/request-error\";\nimport getBuffer from \"./get-buffer-response\";\nexport default function fetchWrapper(requestOptions) {\n if (isPlainObject(requestOptions.body) ||\n Array.isArray(requestOptions.body)) {\n requestOptions.body = JSON.stringify(requestOptions.body);\n }\n let headers = {};\n let status;\n let url;\n const fetch = (requestOptions.request && requestOptions.request.fetch) || nodeFetch;\n return fetch(requestOptions.url, Object.assign({\n method: requestOptions.method,\n body: requestOptions.body,\n headers: requestOptions.headers,\n redirect: requestOptions.redirect\n }, requestOptions.request))\n .then(response => {\n url = response.url;\n status = response.status;\n for (const keyAndValue of response.headers) {\n headers[keyAndValue[0]] = keyAndValue[1];\n }\n if (status === 204 || status === 205) {\n return;\n }\n // GitHub API returns 200 for HEAD requsets\n if (requestOptions.method === \"HEAD\") {\n if (status < 400) {\n return;\n }\n throw new RequestError(response.statusText, status, {\n headers,\n request: requestOptions\n });\n }\n if (status === 304) {\n throw new RequestError(\"Not modified\", status, {\n headers,\n request: requestOptions\n });\n }\n if (status >= 400) {\n return response\n .text()\n .then(message => {\n const error = new RequestError(message, status, {\n headers,\n request: requestOptions\n });\n try {\n Object.assign(error, JSON.parse(error.message));\n }\n catch (e) {\n // ignore, see octokit/rest.js#684\n }\n throw error;\n });\n }\n const contentType = response.headers.get(\"content-type\");\n if (/application\\/json/.test(contentType)) {\n return response.json();\n }\n if (!contentType || /^text\\/|charset=utf-8$/.test(contentType)) {\n return response.text();\n }\n return getBuffer(response);\n })\n .then(data => {\n return {\n status,\n url,\n headers,\n data\n };\n })\n .catch(error => {\n if (error instanceof RequestError) {\n throw error;\n }\n throw new RequestError(error.message, 500, {\n headers,\n request: requestOptions\n });\n });\n}\n","import fetchWrapper from \"./fetch-wrapper\";\nexport default function withDefaults(oldEndpoint, newDefaults) {\n const endpoint = oldEndpoint.defaults(newDefaults);\n const newApi = function (route, parameters) {\n const endpointOptions = endpoint.merge(route, parameters);\n if (!endpointOptions.request || !endpointOptions.request.hook) {\n return fetchWrapper(endpoint.parse(endpointOptions));\n }\n const request = (route, parameters) => {\n return fetchWrapper(endpoint.parse(endpoint.merge(route, parameters)));\n };\n Object.assign(request, {\n endpoint,\n defaults: withDefaults.bind(null, endpoint)\n });\n return endpointOptions.request.hook(request, endpointOptions);\n };\n return Object.assign(newApi, {\n endpoint,\n defaults: withDefaults.bind(null, endpoint)\n });\n}\n","import { endpoint } from \"@octokit/endpoint\";\nimport { getUserAgent } from \"universal-user-agent\";\nimport { VERSION } from \"./version\";\nimport withDefaults from \"./with-defaults\";\nexport const request = withDefaults(endpoint, {\n headers: {\n \"user-agent\": `octokit-request.js/${VERSION} ${getUserAgent()}`\n }\n});\n"],"names":["getBuffer"],"mappings":";;;;;;AAAO,MAAM,OAAO,GAAG,mBAAmB,CAAC;;ACA5B,SAAS,iBAAiB,CAAC,QAAQ,EAAE;IAChD,OAAO,QAAQ,CAAC,WAAW,EAAE,CAAC;CACjC;;ACEc,SAAS,YAAY,CAAC,cAAc,EAAE;IACjD,IAAI,aAAa,CAAC,cAAc,CAAC,IAAI,CAAC;QAClC,KAAK,CAAC,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE;QACpC,cAAc,CAAC,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;KAC7D;IACD,IAAI,OAAO,GAAG,EAAE,CAAC;IACjB,IAAI,MAAM,CAAC;IACX,IAAI,GAAG,CAAC;IACR,MAAM,KAAK,GAAG,CAAC,cAAc,CAAC,OAAO,IAAI,cAAc,CAAC,OAAO,CAAC,KAAK,KAAK,SAAS,CAAC;IACpF,OAAO,KAAK,CAAC,cAAc,CAAC,GAAG,EAAE,MAAM,CAAC,M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C,CAAC;SACxD;QACD,MAAM,OAAO,GAAG,CAAC,KAAK,EAAE,UAAU,KAAK;YACnC,OAAO,YAAY,CAAC,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC;SAC1E,CAAC;QACF,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE;YACnB,QAAQ;YACR,QAAQ,EAAE,YAAY,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC;SAC9C,CAAC,CAAC;QACH,OAAO,eAAe,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,eAAe,CAAC,CAAC;KACjE,CAAC;IACF,OAAO,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE;QACzB,QAAQ;QACR,QAAQ,EAAE,YAAY,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC;KAC9C,CAAC,CAAC;CACN;;ACjBW,MAAC,OAAO,GAAG,YAAY,CAAC,QAAQ,EAAE;IAC1C,OAAO,EAAE;QACL,YAAY,EAAE,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAC,EAAE,YAAY,EAAE,CAAC,CAAC;KAClE;CACJ,CAAC;;;;"} \ No newline at end of file diff --git a/node_modules/@octokit/request/node_modules/universal-user-agent/.travis.yml b/node_modules/@octokit/request/node_modules/universal-user-agent/.travis.yml deleted file mode 100644 index ebafc54..0000000 --- a/node_modules/@octokit/request/node_modules/universal-user-agent/.travis.yml +++ /dev/null @@ -1,35 +0,0 @@ -language: node_js -cache: npm - -# Trigger a push build on master and greenkeeper branches + PRs build on every branches -# Avoid double build on PRs (See https://github.com/travis-ci/travis-ci/issues/1147) -branches: - only: - - master - - /^greenkeeper.*$/ - -stages: - - test - - name: release - if: branch = master AND type IN (push) - -jobs: - include: - - stage: test - node_js: 12 - script: npm run test - - node_js: 8 - script: npm run test - - node_js: 10 - env: Node 10 & coverage upload - script: - - npm run test - - npm run coverage:upload - - node_js: lts/* - env: browser tests - script: npm run test:browser - - - stage: release - node_js: lts/* - env: semantic-release - script: npm run semantic-release diff --git a/node_modules/@octokit/request/node_modules/universal-user-agent/README.md b/node_modules/@octokit/request/node_modules/universal-user-agent/README.md index 59e809e..d00d14c 100644 --- a/node_modules/@octokit/request/node_modules/universal-user-agent/README.md +++ b/node_modules/@octokit/request/node_modules/universal-user-agent/README.md @@ -4,13 +4,13 @@ [![@latest](https://img.shields.io/npm/v/universal-user-agent.svg)](https://www.npmjs.com/package/universal-user-agent) [![Build Status](https://travis-ci.com/gr2m/universal-user-agent.svg?branch=master)](https://travis-ci.com/gr2m/universal-user-agent) -[![Coverage Status](https://coveralls.io/repos/github/gr2m/universal-user-agent/badge.svg)](https://coveralls.io/github/gr2m/universal-user-agent) [![Greenkeeper](https://badges.greenkeeper.io/gr2m/universal-user-agent.svg)](https://greenkeeper.io/) ```js -const getUserAgent = require('universal-user-agent') -const userAgent = getUserAgent() +const { getUserAgent } = require("universal-user-agent"); +// or import { getUserAgent } from "universal-user-agent"; +const userAgent = getUserAgent(); // userAgent will look like this // in browser: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:61.0) Gecko/20100101 Firefox/61.0" // in node: Node.js/v8.9.4 (macOS High Sierra; x64) diff --git a/node_modules/@octokit/request/node_modules/universal-user-agent/browser.js b/node_modules/@octokit/request/node_modules/universal-user-agent/browser.js deleted file mode 100644 index eb12744..0000000 --- a/node_modules/@octokit/request/node_modules/universal-user-agent/browser.js +++ /dev/null @@ -1,6 +0,0 @@ -module.exports = getUserAgentBrowser - -function getUserAgentBrowser () { - /* global navigator */ - return navigator.userAgent -} diff --git a/node_modules/@octokit/request/node_modules/universal-user-agent/cypress.json b/node_modules/@octokit/request/node_modules/universal-user-agent/cypress.json deleted file mode 100644 index a1ff4b8..0000000 --- a/node_modules/@octokit/request/node_modules/universal-user-agent/cypress.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "integrationFolder": "test", - "video": false -} diff --git a/node_modules/@octokit/request/node_modules/universal-user-agent/dist-node/index.js b/node_modules/@octokit/request/node_modules/universal-user-agent/dist-node/index.js new file mode 100644 index 0000000..80a0710 --- /dev/null +++ b/node_modules/@octokit/request/node_modules/universal-user-agent/dist-node/index.js @@ -0,0 +1,22 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } + +var osName = _interopDefault(require('os-name')); + +function getUserAgent() { + try { + return `Node.js/${process.version.substr(1)} (${osName()}; ${process.arch})`; + } catch (error) { + if (/wmic os get Caption/.test(error.message)) { + return "Windows "; + } + + throw error; + } +} + +exports.getUserAgent = getUserAgent; +//# sourceMappingURL=index.js.map diff --git a/node_modules/@octokit/request/node_modules/universal-user-agent/dist-node/index.js.map b/node_modules/@octokit/request/node_modules/universal-user-agent/dist-node/index.js.map new file mode 100644 index 0000000..aff09ec --- /dev/null +++ b/node_modules/@octokit/request/node_modules/universal-user-agent/dist-node/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sources":["../dist-src/node.js"],"sourcesContent":["import osName from \"os-name\";\nexport function getUserAgent() {\n try {\n return `Node.js/${process.version.substr(1)} (${osName()}; ${process.arch})`;\n }\n catch (error) {\n if (/wmic os get Caption/.test(error.message)) {\n return \"Windows \";\n }\n throw error;\n }\n}\n"],"names":["getUserAgent","process","version","substr","osName","arch","error","test","message"],"mappings":";;;;;;;;AACO,SAASA,YAAT,GAAwB;MACvB;WACQ,WAAUC,OAAO,CAACC,OAAR,CAAgBC,MAAhB,CAAuB,CAAvB,CAA0B,KAAIC,MAAM,EAAG,KAAIH,OAAO,CAACI,IAAK,GAA1E;GADJ,CAGA,OAAOC,KAAP,EAAc;QACN,sBAAsBC,IAAtB,CAA2BD,KAAK,CAACE,OAAjC,CAAJ,EAA+C;aACpC,gCAAP;;;UAEEF,KAAN;;;;;;"} \ No newline at end of file diff --git a/node_modules/@octokit/request/node_modules/universal-user-agent/dist-src/browser.js b/node_modules/@octokit/request/node_modules/universal-user-agent/dist-src/browser.js new file mode 100644 index 0000000..6f52232 --- /dev/null +++ b/node_modules/@octokit/request/node_modules/universal-user-agent/dist-src/browser.js @@ -0,0 +1,3 @@ +export function getUserAgent() { + return navigator.userAgent; +} diff --git a/node_modules/@octokit/request/node_modules/universal-user-agent/dist-src/index.js b/node_modules/@octokit/request/node_modules/universal-user-agent/dist-src/index.js new file mode 100644 index 0000000..c6253f5 --- /dev/null +++ b/node_modules/@octokit/request/node_modules/universal-user-agent/dist-src/index.js @@ -0,0 +1 @@ +export { getUserAgent } from "./node"; diff --git a/node_modules/@octokit/request/node_modules/universal-user-agent/dist-src/node.js b/node_modules/@octokit/request/node_modules/universal-user-agent/dist-src/node.js new file mode 100644 index 0000000..8b70a03 --- /dev/null +++ b/node_modules/@octokit/request/node_modules/universal-user-agent/dist-src/node.js @@ -0,0 +1,12 @@ +import osName from "os-name"; +export function getUserAgent() { + try { + return `Node.js/${process.version.substr(1)} (${osName()}; ${process.arch})`; + } + catch (error) { + if (/wmic os get Caption/.test(error.message)) { + return "Windows "; + } + throw error; + } +} diff --git a/node_modules/@octokit/request/node_modules/universal-user-agent/dist-types/browser.d.ts b/node_modules/@octokit/request/node_modules/universal-user-agent/dist-types/browser.d.ts new file mode 100644 index 0000000..a7bb1c4 --- /dev/null +++ b/node_modules/@octokit/request/node_modules/universal-user-agent/dist-types/browser.d.ts @@ -0,0 +1 @@ +export declare function getUserAgent(): string; diff --git a/node_modules/@octokit/request/node_modules/universal-user-agent/dist-types/index.d.ts b/node_modules/@octokit/request/node_modules/universal-user-agent/dist-types/index.d.ts new file mode 100644 index 0000000..c6253f5 --- /dev/null +++ b/node_modules/@octokit/request/node_modules/universal-user-agent/dist-types/index.d.ts @@ -0,0 +1 @@ +export { getUserAgent } from "./node"; diff --git a/node_modules/@octokit/request/node_modules/universal-user-agent/dist-types/node.d.ts b/node_modules/@octokit/request/node_modules/universal-user-agent/dist-types/node.d.ts new file mode 100644 index 0000000..a7bb1c4 --- /dev/null +++ b/node_modules/@octokit/request/node_modules/universal-user-agent/dist-types/node.d.ts @@ -0,0 +1 @@ +export declare function getUserAgent(): string; diff --git a/node_modules/@octokit/request/node_modules/universal-user-agent/dist-web/index.js b/node_modules/@octokit/request/node_modules/universal-user-agent/dist-web/index.js new file mode 100644 index 0000000..11ec79b --- /dev/null +++ b/node_modules/@octokit/request/node_modules/universal-user-agent/dist-web/index.js @@ -0,0 +1,6 @@ +function getUserAgent() { + return navigator.userAgent; +} + +export { getUserAgent }; +//# sourceMappingURL=index.js.map diff --git a/node_modules/@octokit/request/node_modules/universal-user-agent/dist-web/index.js.map b/node_modules/@octokit/request/node_modules/universal-user-agent/dist-web/index.js.map new file mode 100644 index 0000000..549407e --- /dev/null +++ b/node_modules/@octokit/request/node_modules/universal-user-agent/dist-web/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sources":["../dist-src/browser.js"],"sourcesContent":["export function getUserAgent() {\n return navigator.userAgent;\n}\n"],"names":[],"mappings":"AAAO,SAAS,YAAY,GAAG;IAC3B,OAAO,SAAS,CAAC,SAAS,CAAC;CAC9B;;;;"} \ No newline at end of file diff --git a/node_modules/@octokit/request/node_modules/universal-user-agent/index.d.ts b/node_modules/@octokit/request/node_modules/universal-user-agent/index.d.ts deleted file mode 100644 index 04dfc04..0000000 --- a/node_modules/@octokit/request/node_modules/universal-user-agent/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export default function getUserAgentNode(): string; diff --git a/node_modules/@octokit/request/node_modules/universal-user-agent/index.js b/node_modules/@octokit/request/node_modules/universal-user-agent/index.js deleted file mode 100644 index ef2d06b..0000000 --- a/node_modules/@octokit/request/node_modules/universal-user-agent/index.js +++ /dev/null @@ -1,15 +0,0 @@ -module.exports = getUserAgentNode - -const osName = require('os-name') - -function getUserAgentNode () { - try { - return `Node.js/${process.version.substr(1)} (${osName()}; ${process.arch})` - } catch (error) { - if (/wmic os get Caption/.test(error.message)) { - return 'Windows ' - } - - throw error - } -} diff --git a/node_modules/@octokit/request/node_modules/universal-user-agent/package.json b/node_modules/@octokit/request/node_modules/universal-user-agent/package.json index 86a980d..160a441 100644 --- a/node_modules/@octokit/request/node_modules/universal-user-agent/package.json +++ b/node_modules/@octokit/request/node_modules/universal-user-agent/package.json @@ -1,85 +1,65 @@ { - "_args": [ - [ - "universal-user-agent@3.0.0", - "/Users/rachmari/github-repos/hello-world-javascript-action" - ] - ], - "_from": "universal-user-agent@3.0.0", - "_id": "universal-user-agent@3.0.0", + "_from": "universal-user-agent@^4.0.0", + "_id": "universal-user-agent@4.0.0", "_inBundle": false, - "_integrity": "sha512-T3siHThqoj5X0benA5H0qcDnrKGXzU8TKoX15x/tQHw1hQBvIEBHjxQ2klizYsqBOO/Q+WuxoQUihadeeqDnoA==", + "_integrity": "sha512-eM8knLpev67iBDizr/YtqkJsF3GK8gzDc6st/WKzrTuPtcsOKW/0IdL4cnMBsU69pOx0otavLWBDGTwg+dB0aA==", "_location": "/@octokit/request/universal-user-agent", "_phantomChildren": {}, "_requested": { - "type": "version", + "type": "range", "registry": true, - "raw": "universal-user-agent@3.0.0", + "raw": "universal-user-agent@^4.0.0", "name": "universal-user-agent", "escapedName": "universal-user-agent", - "rawSpec": "3.0.0", + "rawSpec": "^4.0.0", "saveSpec": null, - "fetchSpec": "3.0.0" + "fetchSpec": "^4.0.0" }, "_requiredBy": [ "/@octokit/request" ], - "_resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-3.0.0.tgz", - "_spec": "3.0.0", - "_where": "/Users/rachmari/github-repos/hello-world-javascript-action", - "author": { - "name": "Gregor Martynus", - "url": "https://github.com/gr2m" - }, - "browser": "browser.js", + "_resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-4.0.0.tgz", + "_shasum": "27da2ec87e32769619f68a14996465ea1cb9df16", + "_spec": "universal-user-agent@^4.0.0", + "_where": "/Users/rachmari/github-repos/hello-world-javascript-action/node_modules/@octokit/request", "bugs": { "url": "https://github.com/gr2m/universal-user-agent/issues" }, + "bundleDependencies": false, "dependencies": { - "os-name": "^3.0.0" + "os-name": "^3.1.0" }, + "deprecated": false, "description": "Get a user agent string in both browser and node", "devDependencies": { - "chai": "^4.1.2", - "coveralls": "^3.0.2", - "cypress": "^3.1.0", - "mocha": "^6.0.0", - "nyc": "^14.0.0", - "proxyquire": "^2.1.0", + "@gr2m/pika-plugin-build-web": "^0.6.0-issue-84.1", + "@pika/pack": "^0.5.0", + "@pika/plugin-build-node": "^0.6.0", + "@pika/plugin-ts-standard-pkg": "^0.6.0", + "@types/jest": "^24.0.18", + "jest": "^24.9.0", + "prettier": "^1.18.2", "semantic-release": "^15.9.15", - "sinon": "^7.2.4", - "sinon-chai": "^3.2.0", - "standard": "^13.0.1", - "test": "^0.6.0", - "travis-deploy-once": "^5.0.7" + "ts-jest": "^24.0.2", + "typescript": "^3.6.2" }, + "files": [ + "dist-*/", + "bin/" + ], "homepage": "https://github.com/gr2m/universal-user-agent#readme", "keywords": [], "license": "ISC", - "main": "index.js", + "main": "dist-node/index.js", + "module": "dist-web/index.js", "name": "universal-user-agent", + "pika": true, "repository": { "type": "git", "url": "git+https://github.com/gr2m/universal-user-agent.git" }, - "scripts": { - "coverage": "nyc report --reporter=html && open coverage/index.html", - "coverage:upload": "nyc report --reporter=text-lcov | coveralls", - "pretest": "standard", - "semantic-release": "semantic-release", - "test": "nyc mocha \"test/*-test.js\"", - "test:browser": "cypress run --browser chrome", - "travis-deploy-once": "travis-deploy-once" - }, - "standard": { - "globals": [ - "describe", - "it", - "beforeEach", - "afterEach", - "expect" - ] - }, - "types": "index.d.ts", - "version": "3.0.0" + "sideEffects": false, + "source": "dist-src/index.js", + "types": "dist-types/index.d.ts", + "version": "4.0.0" } diff --git a/node_modules/@octokit/request/node_modules/universal-user-agent/test/smoke-test.js b/node_modules/@octokit/request/node_modules/universal-user-agent/test/smoke-test.js deleted file mode 100644 index d71b2d5..0000000 --- a/node_modules/@octokit/request/node_modules/universal-user-agent/test/smoke-test.js +++ /dev/null @@ -1,57 +0,0 @@ -// make tests run in both Node & Express -if (!global.cy) { - const chai = require('chai') - const sinon = require('sinon') - const sinonChai = require('sinon-chai') - chai.use(sinonChai) - global.expect = chai.expect - - let sandbox - beforeEach(() => { - sandbox = sinon.createSandbox() - global.cy = { - stub: function () { - return sandbox.stub.apply(sandbox, arguments) - }, - log () { - console.log.apply(console, arguments) - } - } - }) - - afterEach(() => { - sandbox.restore() - }) -} - -const getUserAgent = require('..') - -describe('smoke', () => { - it('works', () => { - expect(getUserAgent()).to.be.a('string') - expect(getUserAgent().length).to.be.above(10) - }) - - if (!process.browser) { // test on node only - const proxyquire = require('proxyquire').noCallThru() - it('works around wmic error on Windows (#5)', () => { - const getUserAgent = proxyquire('..', { - 'os-name': () => { - throw new Error('Command failed: wmic os get Caption') - } - }) - - expect(getUserAgent()).to.equal('Windows ') - }) - - it('does not swallow unexpected errors', () => { - const getUserAgent = proxyquire('..', { - 'os-name': () => { - throw new Error('oops') - } - }) - - expect(getUserAgent).to.throw('oops') - }) - } -}) diff --git a/node_modules/@octokit/request/package.json b/node_modules/@octokit/request/package.json index 2df7e46..810ecf7 100644 --- a/node_modules/@octokit/request/package.json +++ b/node_modules/@octokit/request/package.json @@ -1,39 +1,35 @@ { - "_args": [ - [ - "@octokit/request@5.0.2", - "/Users/rachmari/github-repos/hello-world-javascript-action" - ] - ], - "_from": "@octokit/request@5.0.2", - "_id": "@octokit/request@5.0.2", + "_from": "@octokit/request@^5.0.0", + "_id": "@octokit/request@5.1.0", "_inBundle": false, - "_integrity": "sha512-z1BQr43g4kOL4ZrIVBMHwi68Yg9VbkRUyuAgqCp1rU3vbYa69+2gIld/+gHclw15bJWQnhqqyEb7h5a5EqgZ0A==", + "_integrity": "sha512-I15T9PwjFs4tbWyhtFU2Kq7WDPidYMvRB7spmxoQRZfxSmiqullG+Nz+KbSmpkfnlvHwTr1e31R5WReFRKMXjg==", "_location": "/@octokit/request", "_phantomChildren": { "os-name": "3.1.0" }, "_requested": { - "type": "version", + "type": "range", "registry": true, - "raw": "@octokit/request@5.0.2", + "raw": "@octokit/request@^5.0.0", "name": "@octokit/request", "escapedName": "@octokit%2frequest", "scope": "@octokit", - "rawSpec": "5.0.2", + "rawSpec": "^5.0.0", "saveSpec": null, - "fetchSpec": "5.0.2" + "fetchSpec": "^5.0.0" }, "_requiredBy": [ "/@octokit/graphql", "/@octokit/rest" ], - "_resolved": "https://registry.npmjs.org/@octokit/request/-/request-5.0.2.tgz", - "_spec": "5.0.2", - "_where": "/Users/rachmari/github-repos/hello-world-javascript-action", + "_resolved": "https://registry.npmjs.org/@octokit/request/-/request-5.1.0.tgz", + "_shasum": "5609dcc7b5323e529f29d535214383d9eaf0c05c", + "_spec": "@octokit/request@^5.0.0", + "_where": "/Users/rachmari/github-repos/hello-world-javascript-action/node_modules/@octokit/graphql", "bugs": { "url": "https://github.com/octokit/request.js/issues" }, + "bundleDependencies": false, "dependencies": { "@octokit/endpoint": "^5.1.0", "@octokit/request-error": "^1.0.1", @@ -41,21 +37,25 @@ "is-plain-object": "^3.0.0", "node-fetch": "^2.3.0", "once": "^1.4.0", - "universal-user-agent": "^3.0.0" + "universal-user-agent": "^4.0.0" }, + "deprecated": false, "description": "Send parameterized requests to GitHub’s APIs with sensible defaults in browsers and Node", "devDependencies": { - "@pika/pack": "^0.4.0", - "@pika/plugin-build-node": "^0.5.1", - "@pika/plugin-build-web": "^0.5.1", - "@pika/plugin-ts-standard-pkg": "^0.5.1", + "@octokit/auth-app": "^2.1.2", + "@pika/pack": "^0.5.0", + "@pika/plugin-build-node": "^0.6.0", + "@pika/plugin-build-web": "^0.6.0", + "@pika/plugin-ts-standard-pkg": "^0.6.0", "@types/fetch-mock": "^7.2.4", "@types/jest": "^24.0.12", + "@types/lolex": "^3.1.1", "@types/node": "^12.0.3", "@types/node-fetch": "^2.3.3", "@types/once": "^1.4.0", "fetch-mock": "^7.2.0", "jest": "^24.7.1", + "lolex": "^4.2.0", "prettier": "^1.17.0", "semantic-release": "^15.10.5", "semantic-release-plugin-update-version-in-files": "^1.0.0", @@ -88,5 +88,5 @@ "sideEffects": false, "source": "dist-src/index.js", "types": "dist-types/index.d.ts", - "version": "5.0.2" + "version": "5.1.0" } diff --git a/node_modules/@octokit/rest/lib/parse-client-options.js b/node_modules/@octokit/rest/lib/parse-client-options.js index bacea8f..42e4ab8 100644 --- a/node_modules/@octokit/rest/lib/parse-client-options.js +++ b/node_modules/@octokit/rest/lib/parse-client-options.js @@ -1,7 +1,7 @@ module.exports = parseOptions const { Deprecation } = require('deprecation') -const getUserAgent = require('universal-user-agent') +const { getUserAgent } = require('universal-user-agent') const once = require('once') const pkg = require('../package.json') diff --git a/node_modules/@octokit/rest/node_modules/universal-user-agent/.travis.yml b/node_modules/@octokit/rest/node_modules/universal-user-agent/.travis.yml deleted file mode 100644 index ebafc54..0000000 --- a/node_modules/@octokit/rest/node_modules/universal-user-agent/.travis.yml +++ /dev/null @@ -1,35 +0,0 @@ -language: node_js -cache: npm - -# Trigger a push build on master and greenkeeper branches + PRs build on every branches -# Avoid double build on PRs (See https://github.com/travis-ci/travis-ci/issues/1147) -branches: - only: - - master - - /^greenkeeper.*$/ - -stages: - - test - - name: release - if: branch = master AND type IN (push) - -jobs: - include: - - stage: test - node_js: 12 - script: npm run test - - node_js: 8 - script: npm run test - - node_js: 10 - env: Node 10 & coverage upload - script: - - npm run test - - npm run coverage:upload - - node_js: lts/* - env: browser tests - script: npm run test:browser - - - stage: release - node_js: lts/* - env: semantic-release - script: npm run semantic-release diff --git a/node_modules/@octokit/rest/node_modules/universal-user-agent/README.md b/node_modules/@octokit/rest/node_modules/universal-user-agent/README.md index 59e809e..d00d14c 100644 --- a/node_modules/@octokit/rest/node_modules/universal-user-agent/README.md +++ b/node_modules/@octokit/rest/node_modules/universal-user-agent/README.md @@ -4,13 +4,13 @@ [![@latest](https://img.shields.io/npm/v/universal-user-agent.svg)](https://www.npmjs.com/package/universal-user-agent) [![Build Status](https://travis-ci.com/gr2m/universal-user-agent.svg?branch=master)](https://travis-ci.com/gr2m/universal-user-agent) -[![Coverage Status](https://coveralls.io/repos/github/gr2m/universal-user-agent/badge.svg)](https://coveralls.io/github/gr2m/universal-user-agent) [![Greenkeeper](https://badges.greenkeeper.io/gr2m/universal-user-agent.svg)](https://greenkeeper.io/) ```js -const getUserAgent = require('universal-user-agent') -const userAgent = getUserAgent() +const { getUserAgent } = require("universal-user-agent"); +// or import { getUserAgent } from "universal-user-agent"; +const userAgent = getUserAgent(); // userAgent will look like this // in browser: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:61.0) Gecko/20100101 Firefox/61.0" // in node: Node.js/v8.9.4 (macOS High Sierra; x64) diff --git a/node_modules/@octokit/rest/node_modules/universal-user-agent/browser.js b/node_modules/@octokit/rest/node_modules/universal-user-agent/browser.js deleted file mode 100644 index eb12744..0000000 --- a/node_modules/@octokit/rest/node_modules/universal-user-agent/browser.js +++ /dev/null @@ -1,6 +0,0 @@ -module.exports = getUserAgentBrowser - -function getUserAgentBrowser () { - /* global navigator */ - return navigator.userAgent -} diff --git a/node_modules/@octokit/rest/node_modules/universal-user-agent/cypress.json b/node_modules/@octokit/rest/node_modules/universal-user-agent/cypress.json deleted file mode 100644 index a1ff4b8..0000000 --- a/node_modules/@octokit/rest/node_modules/universal-user-agent/cypress.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "integrationFolder": "test", - "video": false -} diff --git a/node_modules/@octokit/rest/node_modules/universal-user-agent/dist-node/index.js b/node_modules/@octokit/rest/node_modules/universal-user-agent/dist-node/index.js new file mode 100644 index 0000000..80a0710 --- /dev/null +++ b/node_modules/@octokit/rest/node_modules/universal-user-agent/dist-node/index.js @@ -0,0 +1,22 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } + +var osName = _interopDefault(require('os-name')); + +function getUserAgent() { + try { + return `Node.js/${process.version.substr(1)} (${osName()}; ${process.arch})`; + } catch (error) { + if (/wmic os get Caption/.test(error.message)) { + return "Windows "; + } + + throw error; + } +} + +exports.getUserAgent = getUserAgent; +//# sourceMappingURL=index.js.map diff --git a/node_modules/@octokit/rest/node_modules/universal-user-agent/dist-node/index.js.map b/node_modules/@octokit/rest/node_modules/universal-user-agent/dist-node/index.js.map new file mode 100644 index 0000000..aff09ec --- /dev/null +++ b/node_modules/@octokit/rest/node_modules/universal-user-agent/dist-node/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sources":["../dist-src/node.js"],"sourcesContent":["import osName from \"os-name\";\nexport function getUserAgent() {\n try {\n return `Node.js/${process.version.substr(1)} (${osName()}; ${process.arch})`;\n }\n catch (error) {\n if (/wmic os get Caption/.test(error.message)) {\n return \"Windows \";\n }\n throw error;\n }\n}\n"],"names":["getUserAgent","process","version","substr","osName","arch","error","test","message"],"mappings":";;;;;;;;AACO,SAASA,YAAT,GAAwB;MACvB;WACQ,WAAUC,OAAO,CAACC,OAAR,CAAgBC,MAAhB,CAAuB,CAAvB,CAA0B,KAAIC,MAAM,EAAG,KAAIH,OAAO,CAACI,IAAK,GAA1E;GADJ,CAGA,OAAOC,KAAP,EAAc;QACN,sBAAsBC,IAAtB,CAA2BD,KAAK,CAACE,OAAjC,CAAJ,EAA+C;aACpC,gCAAP;;;UAEEF,KAAN;;;;;;"} \ No newline at end of file diff --git a/node_modules/@octokit/rest/node_modules/universal-user-agent/dist-src/browser.js b/node_modules/@octokit/rest/node_modules/universal-user-agent/dist-src/browser.js new file mode 100644 index 0000000..6f52232 --- /dev/null +++ b/node_modules/@octokit/rest/node_modules/universal-user-agent/dist-src/browser.js @@ -0,0 +1,3 @@ +export function getUserAgent() { + return navigator.userAgent; +} diff --git a/node_modules/@octokit/rest/node_modules/universal-user-agent/dist-src/index.js b/node_modules/@octokit/rest/node_modules/universal-user-agent/dist-src/index.js new file mode 100644 index 0000000..c6253f5 --- /dev/null +++ b/node_modules/@octokit/rest/node_modules/universal-user-agent/dist-src/index.js @@ -0,0 +1 @@ +export { getUserAgent } from "./node"; diff --git a/node_modules/@octokit/rest/node_modules/universal-user-agent/dist-src/node.js b/node_modules/@octokit/rest/node_modules/universal-user-agent/dist-src/node.js new file mode 100644 index 0000000..8b70a03 --- /dev/null +++ b/node_modules/@octokit/rest/node_modules/universal-user-agent/dist-src/node.js @@ -0,0 +1,12 @@ +import osName from "os-name"; +export function getUserAgent() { + try { + return `Node.js/${process.version.substr(1)} (${osName()}; ${process.arch})`; + } + catch (error) { + if (/wmic os get Caption/.test(error.message)) { + return "Windows "; + } + throw error; + } +} diff --git a/node_modules/@octokit/rest/node_modules/universal-user-agent/dist-types/browser.d.ts b/node_modules/@octokit/rest/node_modules/universal-user-agent/dist-types/browser.d.ts new file mode 100644 index 0000000..a7bb1c4 --- /dev/null +++ b/node_modules/@octokit/rest/node_modules/universal-user-agent/dist-types/browser.d.ts @@ -0,0 +1 @@ +export declare function getUserAgent(): string; diff --git a/node_modules/@octokit/rest/node_modules/universal-user-agent/dist-types/index.d.ts b/node_modules/@octokit/rest/node_modules/universal-user-agent/dist-types/index.d.ts new file mode 100644 index 0000000..c6253f5 --- /dev/null +++ b/node_modules/@octokit/rest/node_modules/universal-user-agent/dist-types/index.d.ts @@ -0,0 +1 @@ +export { getUserAgent } from "./node"; diff --git a/node_modules/@octokit/rest/node_modules/universal-user-agent/dist-types/node.d.ts b/node_modules/@octokit/rest/node_modules/universal-user-agent/dist-types/node.d.ts new file mode 100644 index 0000000..a7bb1c4 --- /dev/null +++ b/node_modules/@octokit/rest/node_modules/universal-user-agent/dist-types/node.d.ts @@ -0,0 +1 @@ +export declare function getUserAgent(): string; diff --git a/node_modules/@octokit/rest/node_modules/universal-user-agent/dist-web/index.js b/node_modules/@octokit/rest/node_modules/universal-user-agent/dist-web/index.js new file mode 100644 index 0000000..11ec79b --- /dev/null +++ b/node_modules/@octokit/rest/node_modules/universal-user-agent/dist-web/index.js @@ -0,0 +1,6 @@ +function getUserAgent() { + return navigator.userAgent; +} + +export { getUserAgent }; +//# sourceMappingURL=index.js.map diff --git a/node_modules/@octokit/rest/node_modules/universal-user-agent/dist-web/index.js.map b/node_modules/@octokit/rest/node_modules/universal-user-agent/dist-web/index.js.map new file mode 100644 index 0000000..549407e --- /dev/null +++ b/node_modules/@octokit/rest/node_modules/universal-user-agent/dist-web/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sources":["../dist-src/browser.js"],"sourcesContent":["export function getUserAgent() {\n return navigator.userAgent;\n}\n"],"names":[],"mappings":"AAAO,SAAS,YAAY,GAAG;IAC3B,OAAO,SAAS,CAAC,SAAS,CAAC;CAC9B;;;;"} \ No newline at end of file diff --git a/node_modules/@octokit/rest/node_modules/universal-user-agent/index.d.ts b/node_modules/@octokit/rest/node_modules/universal-user-agent/index.d.ts deleted file mode 100644 index 04dfc04..0000000 --- a/node_modules/@octokit/rest/node_modules/universal-user-agent/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export default function getUserAgentNode(): string; diff --git a/node_modules/@octokit/rest/node_modules/universal-user-agent/index.js b/node_modules/@octokit/rest/node_modules/universal-user-agent/index.js deleted file mode 100644 index ef2d06b..0000000 --- a/node_modules/@octokit/rest/node_modules/universal-user-agent/index.js +++ /dev/null @@ -1,15 +0,0 @@ -module.exports = getUserAgentNode - -const osName = require('os-name') - -function getUserAgentNode () { - try { - return `Node.js/${process.version.substr(1)} (${osName()}; ${process.arch})` - } catch (error) { - if (/wmic os get Caption/.test(error.message)) { - return 'Windows ' - } - - throw error - } -} diff --git a/node_modules/@octokit/rest/node_modules/universal-user-agent/package.json b/node_modules/@octokit/rest/node_modules/universal-user-agent/package.json index 0ab686c..2382399 100644 --- a/node_modules/@octokit/rest/node_modules/universal-user-agent/package.json +++ b/node_modules/@octokit/rest/node_modules/universal-user-agent/package.json @@ -1,85 +1,65 @@ { - "_args": [ - [ - "universal-user-agent@3.0.0", - "/Users/rachmari/github-repos/hello-world-javascript-action" - ] - ], - "_from": "universal-user-agent@3.0.0", - "_id": "universal-user-agent@3.0.0", + "_from": "universal-user-agent@^4.0.0", + "_id": "universal-user-agent@4.0.0", "_inBundle": false, - "_integrity": "sha512-T3siHThqoj5X0benA5H0qcDnrKGXzU8TKoX15x/tQHw1hQBvIEBHjxQ2klizYsqBOO/Q+WuxoQUihadeeqDnoA==", + "_integrity": "sha512-eM8knLpev67iBDizr/YtqkJsF3GK8gzDc6st/WKzrTuPtcsOKW/0IdL4cnMBsU69pOx0otavLWBDGTwg+dB0aA==", "_location": "/@octokit/rest/universal-user-agent", "_phantomChildren": {}, "_requested": { - "type": "version", + "type": "range", "registry": true, - "raw": "universal-user-agent@3.0.0", + "raw": "universal-user-agent@^4.0.0", "name": "universal-user-agent", "escapedName": "universal-user-agent", - "rawSpec": "3.0.0", + "rawSpec": "^4.0.0", "saveSpec": null, - "fetchSpec": "3.0.0" + "fetchSpec": "^4.0.0" }, "_requiredBy": [ "/@octokit/rest" ], - "_resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-3.0.0.tgz", - "_spec": "3.0.0", - "_where": "/Users/rachmari/github-repos/hello-world-javascript-action", - "author": { - "name": "Gregor Martynus", - "url": "https://github.com/gr2m" - }, - "browser": "browser.js", + "_resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-4.0.0.tgz", + "_shasum": "27da2ec87e32769619f68a14996465ea1cb9df16", + "_spec": "universal-user-agent@^4.0.0", + "_where": "/Users/rachmari/github-repos/hello-world-javascript-action/node_modules/@octokit/rest", "bugs": { "url": "https://github.com/gr2m/universal-user-agent/issues" }, + "bundleDependencies": false, "dependencies": { - "os-name": "^3.0.0" + "os-name": "^3.1.0" }, + "deprecated": false, "description": "Get a user agent string in both browser and node", "devDependencies": { - "chai": "^4.1.2", - "coveralls": "^3.0.2", - "cypress": "^3.1.0", - "mocha": "^6.0.0", - "nyc": "^14.0.0", - "proxyquire": "^2.1.0", + "@gr2m/pika-plugin-build-web": "^0.6.0-issue-84.1", + "@pika/pack": "^0.5.0", + "@pika/plugin-build-node": "^0.6.0", + "@pika/plugin-ts-standard-pkg": "^0.6.0", + "@types/jest": "^24.0.18", + "jest": "^24.9.0", + "prettier": "^1.18.2", "semantic-release": "^15.9.15", - "sinon": "^7.2.4", - "sinon-chai": "^3.2.0", - "standard": "^13.0.1", - "test": "^0.6.0", - "travis-deploy-once": "^5.0.7" + "ts-jest": "^24.0.2", + "typescript": "^3.6.2" }, + "files": [ + "dist-*/", + "bin/" + ], "homepage": "https://github.com/gr2m/universal-user-agent#readme", "keywords": [], "license": "ISC", - "main": "index.js", + "main": "dist-node/index.js", + "module": "dist-web/index.js", "name": "universal-user-agent", + "pika": true, "repository": { "type": "git", "url": "git+https://github.com/gr2m/universal-user-agent.git" }, - "scripts": { - "coverage": "nyc report --reporter=html && open coverage/index.html", - "coverage:upload": "nyc report --reporter=text-lcov | coveralls", - "pretest": "standard", - "semantic-release": "semantic-release", - "test": "nyc mocha \"test/*-test.js\"", - "test:browser": "cypress run --browser chrome", - "travis-deploy-once": "travis-deploy-once" - }, - "standard": { - "globals": [ - "describe", - "it", - "beforeEach", - "afterEach", - "expect" - ] - }, - "types": "index.d.ts", - "version": "3.0.0" + "sideEffects": false, + "source": "dist-src/index.js", + "types": "dist-types/index.d.ts", + "version": "4.0.0" } diff --git a/node_modules/@octokit/rest/node_modules/universal-user-agent/test/smoke-test.js b/node_modules/@octokit/rest/node_modules/universal-user-agent/test/smoke-test.js deleted file mode 100644 index d71b2d5..0000000 --- a/node_modules/@octokit/rest/node_modules/universal-user-agent/test/smoke-test.js +++ /dev/null @@ -1,57 +0,0 @@ -// make tests run in both Node & Express -if (!global.cy) { - const chai = require('chai') - const sinon = require('sinon') - const sinonChai = require('sinon-chai') - chai.use(sinonChai) - global.expect = chai.expect - - let sandbox - beforeEach(() => { - sandbox = sinon.createSandbox() - global.cy = { - stub: function () { - return sandbox.stub.apply(sandbox, arguments) - }, - log () { - console.log.apply(console, arguments) - } - } - }) - - afterEach(() => { - sandbox.restore() - }) -} - -const getUserAgent = require('..') - -describe('smoke', () => { - it('works', () => { - expect(getUserAgent()).to.be.a('string') - expect(getUserAgent().length).to.be.above(10) - }) - - if (!process.browser) { // test on node only - const proxyquire = require('proxyquire').noCallThru() - it('works around wmic error on Windows (#5)', () => { - const getUserAgent = proxyquire('..', { - 'os-name': () => { - throw new Error('Command failed: wmic os get Caption') - } - }) - - expect(getUserAgent()).to.equal('Windows ') - }) - - it('does not swallow unexpected errors', () => { - const getUserAgent = proxyquire('..', { - 'os-name': () => { - throw new Error('oops') - } - }) - - expect(getUserAgent).to.throw('oops') - }) - } -}) diff --git a/node_modules/@octokit/rest/package.json b/node_modules/@octokit/rest/package.json index 6ef0927..98b0bbe 100644 --- a/node_modules/@octokit/rest/package.json +++ b/node_modules/@octokit/rest/package.json @@ -1,35 +1,30 @@ { - "_args": [ - [ - "@octokit/rest@16.28.7", - "/Users/rachmari/github-repos/hello-world-javascript-action" - ] - ], - "_from": "@octokit/rest@16.28.7", - "_id": "@octokit/rest@16.28.7", + "_from": "@octokit/rest@^16.15.0", + "_id": "@octokit/rest@16.28.9", "_inBundle": false, - "_integrity": "sha512-cznFSLEhh22XD3XeqJw51OLSfyL2fcFKUO+v2Ep9MTAFfFLS1cK1Zwd1yEgQJmJoDnj4/vv3+fGGZweG+xsbIA==", + "_integrity": "sha512-IKGnX+Tvzt7XHhs8f4ajqxyJvYAMNX5nWfoJm4CQj8LZToMiaJgutf5KxxpxoC3y5w7JTJpW5rnWnF4TsIvCLA==", "_location": "/@octokit/rest", "_phantomChildren": { "os-name": "3.1.0" }, "_requested": { - "type": "version", + "type": "range", "registry": true, - "raw": "@octokit/rest@16.28.7", + "raw": "@octokit/rest@^16.15.0", "name": "@octokit/rest", "escapedName": "@octokit%2frest", "scope": "@octokit", - "rawSpec": "16.28.7", + "rawSpec": "^16.15.0", "saveSpec": null, - "fetchSpec": "16.28.7" + "fetchSpec": "^16.15.0" }, "_requiredBy": [ "/@actions/github" ], - "_resolved": "https://registry.npmjs.org/@octokit/rest/-/rest-16.28.7.tgz", - "_spec": "16.28.7", - "_where": "/Users/rachmari/github-repos/hello-world-javascript-action", + "_resolved": "https://registry.npmjs.org/@octokit/rest/-/rest-16.28.9.tgz", + "_shasum": "ac8c5f3ff305e9e0a0989a5245e4286f057a95d7", + "_spec": "@octokit/rest@^16.15.0", + "_where": "/Users/rachmari/github-repos/hello-world-javascript-action/node_modules/@actions/github", "author": { "name": "Gregor Martynus", "url": "https://github.com/gr2m" @@ -37,6 +32,7 @@ "bugs": { "url": "https://github.com/octokit/rest.js/issues" }, + "bundleDependencies": false, "bundlesize": [ { "path": "./dist/octokit-rest.min.js.gz", @@ -73,9 +69,9 @@ "lodash.uniq": "^4.5.0", "octokit-pagination-methods": "^1.1.0", "once": "^1.4.0", - "universal-user-agent": "^3.0.0", - "url-template": "^2.0.8" + "universal-user-agent": "^4.0.0" }, + "deprecated": false, "description": "GitHub REST API client for Node.js", "devDependencies": { "@gimenete/type-writer": "^0.1.3", @@ -102,8 +98,8 @@ "semantic-release": "^15.0.0", "sinon": "^7.2.4", "sinon-chai": "^3.0.0", - "sort-keys": "^3.0.0", - "standard": "^13.0.1", + "sort-keys": "^4.0.0", + "standard": "^14.0.2", "string-to-arraybuffer": "^1.0.0", "string-to-jsdoc-comment": "^1.0.0", "typescript": "^3.3.1", @@ -185,5 +181,5 @@ ] }, "types": "index.d.ts", - "version": "16.28.7" + "version": "16.28.9" } diff --git a/node_modules/@octokit/rest/plugins/authentication-deprecated/before-request.js b/node_modules/@octokit/rest/plugins/authentication-deprecated/before-request.js index d47ccda..357fbbb 100644 --- a/node_modules/@octokit/rest/plugins/authentication-deprecated/before-request.js +++ b/node_modules/@octokit/rest/plugins/authentication-deprecated/before-request.js @@ -10,20 +10,20 @@ function authenticationBeforeRequest (state, options) { if (state.auth.type === 'basic') { const hash = btoa(`${state.auth.username}:${state.auth.password}`) - options.headers['authorization'] = `Basic ${hash}` + options.headers.authorization = `Basic ${hash}` return } if (state.auth.type === 'token') { - options.headers['authorization'] = `token ${state.auth.token}` + options.headers.authorization = `token ${state.auth.token}` return } if (state.auth.type === 'app') { - options.headers['authorization'] = `Bearer ${state.auth.token}` - const acceptHeaders = options.headers['accept'].split(',') + options.headers.authorization = `Bearer ${state.auth.token}` + const acceptHeaders = options.headers.accept.split(',') .concat('application/vnd.github.machine-man-preview+json') - options.headers['accept'] = uniq(acceptHeaders).filter(Boolean).join(',') + options.headers.accept = uniq(acceptHeaders).filter(Boolean).join(',') return } diff --git a/node_modules/@octokit/rest/plugins/authentication/before-request.js b/node_modules/@octokit/rest/plugins/authentication/before-request.js index 21f0db7..7d29694 100644 --- a/node_modules/@octokit/rest/plugins/authentication/before-request.js +++ b/node_modules/@octokit/rest/plugins/authentication/before-request.js @@ -6,13 +6,13 @@ const withAuthorizationPrefix = require('./with-authorization-prefix') function authenticationBeforeRequest (state, options) { if (typeof state.auth === 'string') { - options.headers['authorization'] = withAuthorizationPrefix(state.auth) + options.headers.authorization = withAuthorizationPrefix(state.auth) // https://developer.github.com/v3/previews/#integrations - if (/^bearer /i.test(state.auth) && !/machine-man/.test(options.headers['accept'])) { - const acceptHeaders = options.headers['accept'].split(',') + if (/^bearer /i.test(state.auth) && !/machine-man/.test(options.headers.accept)) { + const acceptHeaders = options.headers.accept.split(',') .concat('application/vnd.github.machine-man-preview+json') - options.headers['accept'] = acceptHeaders.filter(Boolean).join(',') + options.headers.accept = acceptHeaders.filter(Boolean).join(',') } return @@ -20,7 +20,7 @@ function authenticationBeforeRequest (state, options) { if (state.auth.username) { const hash = btoa(`${state.auth.username}:${state.auth.password}`) - options.headers['authorization'] = `Basic ${hash}` + options.headers.authorization = `Basic ${hash}` if (state.otp) { options.headers['x-github-otp'] = state.otp } @@ -40,7 +40,7 @@ function authenticationBeforeRequest (state, options) { // as well as "/applications/123/tokens/token456" if (/\/applications\/:?[\w_]+\/tokens\/:?[\w_]+($|\?)/.test(options.url)) { const hash = btoa(`${state.auth.clientId}:${state.auth.clientSecret}`) - options.headers['authorization'] = `Basic ${hash}` + options.headers.authorization = `Basic ${hash}` return } @@ -56,6 +56,6 @@ function authenticationBeforeRequest (state, options) { }) .then((authorization) => { - options.headers['authorization'] = withAuthorizationPrefix(authorization) + options.headers.authorization = withAuthorizationPrefix(authorization) }) } diff --git a/node_modules/@octokit/rest/plugins/log/index.js b/node_modules/@octokit/rest/plugins/log/index.js index 721bf5f..6e56f38 100644 --- a/node_modules/@octokit/rest/plugins/log/index.js +++ b/node_modules/@octokit/rest/plugins/log/index.js @@ -2,7 +2,7 @@ module.exports = octokitDebug function octokitDebug (octokit) { octokit.hook.wrap('request', (request, options) => { - octokit.log.debug(`request`, options) + octokit.log.debug('request', options) const start = Date.now() const requestOptions = octokit.request.endpoint.parse(options) const path = requestOptions.url.replace(options.baseUrl, '') diff --git a/node_modules/atob-lite/package.json b/node_modules/atob-lite/package.json index fc52c3f..39f9f6e 100644 --- a/node_modules/atob-lite/package.json +++ b/node_modules/atob-lite/package.json @@ -1,32 +1,27 @@ { - "_args": [ - [ - "atob-lite@2.0.0", - "/Users/rachmari/github-repos/hello-world-javascript-action" - ] - ], - "_from": "atob-lite@2.0.0", + "_from": "atob-lite@^2.0.0", "_id": "atob-lite@2.0.0", "_inBundle": false, "_integrity": "sha1-D+9a1G8b16hQLGVyfwNn1e5D1pY=", "_location": "/atob-lite", "_phantomChildren": {}, "_requested": { - "type": "version", + "type": "range", "registry": true, - "raw": "atob-lite@2.0.0", + "raw": "atob-lite@^2.0.0", "name": "atob-lite", "escapedName": "atob-lite", - "rawSpec": "2.0.0", + "rawSpec": "^2.0.0", "saveSpec": null, - "fetchSpec": "2.0.0" + "fetchSpec": "^2.0.0" }, "_requiredBy": [ "/@octokit/rest" ], "_resolved": "https://registry.npmjs.org/atob-lite/-/atob-lite-2.0.0.tgz", - "_spec": "2.0.0", - "_where": "/Users/rachmari/github-repos/hello-world-javascript-action", + "_shasum": "0fef5ad46f1bd7a8502c65727f0367d5ee43d696", + "_spec": "atob-lite@^2.0.0", + "_where": "/Users/rachmari/github-repos/hello-world-javascript-action/node_modules/@octokit/rest", "author": { "name": "Hugh Kennedy", "email": "hughskennedy@gmail.com", @@ -36,7 +31,9 @@ "bugs": { "url": "https://github.com/hughsk/atob-lite/issues" }, + "bundleDependencies": false, "dependencies": {}, + "deprecated": false, "description": "Smallest/simplest possible means of using atob with both Node and browserify", "devDependencies": { "browserify": "^10.2.4", diff --git a/node_modules/before-after-hook/package.json b/node_modules/before-after-hook/package.json index 09ba3b4..9e9cd9f 100644 --- a/node_modules/before-after-hook/package.json +++ b/node_modules/before-after-hook/package.json @@ -1,39 +1,36 @@ { - "_args": [ - [ - "before-after-hook@2.1.0", - "/Users/rachmari/github-repos/hello-world-javascript-action" - ] - ], - "_from": "before-after-hook@2.1.0", + "_from": "before-after-hook@^2.0.0", "_id": "before-after-hook@2.1.0", "_inBundle": false, "_integrity": "sha512-IWIbu7pMqyw3EAJHzzHbWa85b6oud/yfKYg5rqB5hNE8CeMi3nX+2C2sj0HswfblST86hpVEOAb9x34NZd6P7A==", "_location": "/before-after-hook", "_phantomChildren": {}, "_requested": { - "type": "version", + "type": "range", "registry": true, - "raw": "before-after-hook@2.1.0", + "raw": "before-after-hook@^2.0.0", "name": "before-after-hook", "escapedName": "before-after-hook", - "rawSpec": "2.1.0", + "rawSpec": "^2.0.0", "saveSpec": null, - "fetchSpec": "2.1.0" + "fetchSpec": "^2.0.0" }, "_requiredBy": [ "/@octokit/rest" ], "_resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-2.1.0.tgz", - "_spec": "2.1.0", - "_where": "/Users/rachmari/github-repos/hello-world-javascript-action", + "_shasum": "b6c03487f44e24200dd30ca5e6a1979c5d2fb635", + "_spec": "before-after-hook@^2.0.0", + "_where": "/Users/rachmari/github-repos/hello-world-javascript-action/node_modules/@octokit/rest", "author": { "name": "Gregor Martynus" }, "bugs": { "url": "https://github.com/gr2m/before-after-hook/issues" }, + "bundleDependencies": false, "dependencies": {}, + "deprecated": false, "description": "asynchronous before/error/after hooks for internal functionality", "devDependencies": { "browserify": "^16.0.0", diff --git a/node_modules/btoa-lite/package.json b/node_modules/btoa-lite/package.json index 19103d0..105ea9e 100644 --- a/node_modules/btoa-lite/package.json +++ b/node_modules/btoa-lite/package.json @@ -1,32 +1,27 @@ { - "_args": [ - [ - "btoa-lite@1.0.0", - "/Users/rachmari/github-repos/hello-world-javascript-action" - ] - ], - "_from": "btoa-lite@1.0.0", + "_from": "btoa-lite@^1.0.0", "_id": "btoa-lite@1.0.0", "_inBundle": false, "_integrity": "sha1-M3dm2hWAEhD92VbCLpxokaudAzc=", "_location": "/btoa-lite", "_phantomChildren": {}, "_requested": { - "type": "version", + "type": "range", "registry": true, - "raw": "btoa-lite@1.0.0", + "raw": "btoa-lite@^1.0.0", "name": "btoa-lite", "escapedName": "btoa-lite", - "rawSpec": "1.0.0", + "rawSpec": "^1.0.0", "saveSpec": null, - "fetchSpec": "1.0.0" + "fetchSpec": "^1.0.0" }, "_requiredBy": [ "/@octokit/rest" ], "_resolved": "https://registry.npmjs.org/btoa-lite/-/btoa-lite-1.0.0.tgz", - "_spec": "1.0.0", - "_where": "/Users/rachmari/github-repos/hello-world-javascript-action", + "_shasum": "337766da15801210fdd956c22e9c6891ab9d0337", + "_spec": "btoa-lite@^1.0.0", + "_where": "/Users/rachmari/github-repos/hello-world-javascript-action/node_modules/@octokit/rest", "author": { "name": "Hugh Kennedy", "email": "hughskennedy@gmail.com", @@ -36,7 +31,9 @@ "bugs": { "url": "https://github.com/hughsk/btoa-lite/issues" }, + "bundleDependencies": false, "dependencies": {}, + "deprecated": false, "description": "Smallest/simplest possible means of using btoa with both Node and browserify", "devDependencies": { "browserify": "^10.2.4", diff --git a/node_modules/cross-spawn/package.json b/node_modules/cross-spawn/package.json index 08265a9..a7a92a1 100644 --- a/node_modules/cross-spawn/package.json +++ b/node_modules/cross-spawn/package.json @@ -1,32 +1,27 @@ { - "_args": [ - [ - "cross-spawn@6.0.5", - "/Users/rachmari/github-repos/hello-world-javascript-action" - ] - ], - "_from": "cross-spawn@6.0.5", + "_from": "cross-spawn@^6.0.0", "_id": "cross-spawn@6.0.5", "_inBundle": false, "_integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", "_location": "/cross-spawn", "_phantomChildren": {}, "_requested": { - "type": "version", + "type": "range", "registry": true, - "raw": "cross-spawn@6.0.5", + "raw": "cross-spawn@^6.0.0", "name": "cross-spawn", "escapedName": "cross-spawn", - "rawSpec": "6.0.5", + "rawSpec": "^6.0.0", "saveSpec": null, - "fetchSpec": "6.0.5" + "fetchSpec": "^6.0.0" }, "_requiredBy": [ "/execa" ], "_resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", - "_spec": "6.0.5", - "_where": "/Users/rachmari/github-repos/hello-world-javascript-action", + "_shasum": "4a5ec7c64dfae22c3a14124dbacdee846d80cbc4", + "_spec": "cross-spawn@^6.0.0", + "_where": "/Users/rachmari/github-repos/hello-world-javascript-action/node_modules/execa", "author": { "name": "André Cruz", "email": "andre@moxy.studio" @@ -34,6 +29,7 @@ "bugs": { "url": "https://github.com/moxystudio/node-cross-spawn/issues" }, + "bundleDependencies": false, "commitlint": { "extends": [ "@commitlint/config-conventional" @@ -46,6 +42,7 @@ "shebang-command": "^1.2.0", "which": "^1.2.9" }, + "deprecated": false, "description": "Cross platform child_process#spawn and child_process#spawnSync", "devDependencies": { "@commitlint/cli": "^6.0.0", diff --git a/node_modules/deepmerge/changelog.md b/node_modules/deepmerge/changelog.md deleted file mode 100644 index 7bd34c7..0000000 --- a/node_modules/deepmerge/changelog.md +++ /dev/null @@ -1,133 +0,0 @@ -# [4.0.0](https://github.com/TehShrike/deepmerge/releases/tag/v4.0.0) - -- The `main` entry point in `package.json` is now a CommonJS module instead of a UMD module [#155](https://github.com/TehShrike/deepmerge/pull/155) - -# [3.3.0](https://github.com/TehShrike/deepmerge/releases/tag/v3.3.0) - -- Enumerable Symbol properties are now copied [#151](https://github.com/TehShrike/deepmerge/pull/151) - -# [3.2.1](https://github.com/TehShrike/deepmerge/releases/tag/v3.2.1) - -- bumping dev dependency versions to try to shut up bogus security warnings from Github/npm [#149](https://github.com/TehShrike/deepmerge/pull/149) - -# [3.2.0](https://github.com/TehShrike/deepmerge/releases/tag/v3.2.0) - -- feature: added the [`customMerge`](https://github.com/TehShrike/deepmerge#custommerge) option [#133](https://github.com/TehShrike/deepmerge/pull/133) - -# [3.1.0](https://github.com/TehShrike/deepmerge/releases/tag/v3.1.0) - -- typescript typing: make the `all` function generic [#129](https://github.com/TehShrike/deepmerge/pull/129) - -# [3.0.0](https://github.com/TehShrike/deepmerge/releases/tag/v3.0.0) - -- drop ES module build [#123](https://github.com/TehShrike/deepmerge/issues/123) - -# [2.2.1](https://github.com/TehShrike/deepmerge/releases/tag/v2.2.1) - -- bug: typescript export type was wrong [#121](https://github.com/TehShrike/deepmerge/pull/121) - -# [2.2.0](https://github.com/TehShrike/deepmerge/releases/tag/v2.2.0) - -- feature: added TypeScript typings [#119](https://github.com/TehShrike/deepmerge/pull/119) - -# [2.1.1](https://github.com/TehShrike/deepmerge/releases/tag/v2.1.1) - -- documentation: Rename "methods" to "api", note ESM syntax [#103](https://github.com/TehShrike/deepmerge/pull/103) -- documentation: Fix grammar [#107](https://github.com/TehShrike/deepmerge/pull/107) -- documentation: Restructure headers for clarity + some wording tweaks [108](https://github.com/TehShrike/deepmerge/pull/108) + [109](https://github.com/TehShrike/deepmerge/pull/109) - - -# [2.1.0](https://github.com/TehShrike/deepmerge/releases/tag/v2.1.0) - -- feature: Support a custom `isMergeableObject` function [#96](https://github.com/TehShrike/deepmerge/pull/96) -- documentation: note a Webpack bug that some users might need to work around [#100](https://github.com/TehShrike/deepmerge/pull/100) - -# [2.0.1](https://github.com/TehShrike/deepmerge/releases/tag/v2.0.1) - -- documentation: fix the old array merge algorithm in the readme. [#84](https://github.com/TehShrike/deepmerge/pull/84) - -# [2.0.0](https://github.com/TehShrike/deepmerge/releases/tag/v2.0.0) - -- breaking: the array merge algorithm has changed from a complicated thing to `target.concat(source).map(element => cloneUnlessOtherwiseSpecified(element, optionsArgument))` -- breaking: The `clone` option now defaults to `true` -- feature: `merge.all` now accepts an array of any size, even 0 or 1 elements - -See [pull request 77](https://github.com/TehShrike/deepmerge/pull/77). - -# [1.5.2](https://github.com/TehShrike/deepmerge/releases/tag/v1.5.2) - -- fix: no longer attempts to merge React elements [#76](https://github.com/TehShrike/deepmerge/issues/76) - -# [1.5.1](https://github.com/TehShrike/deepmerge/releases/tag/v1.5.1) - -- bower support: officially dropping bower support. If you use bower, please depend on the [unpkg distribution](https://unpkg.com/deepmerge/dist/umd.js). See [#63](https://github.com/TehShrike/deepmerge/issues/63) - -# [1.5.0](https://github.com/TehShrike/deepmerge/releases/tag/v1.5.0) - -- bug fix: merging objects into arrays was allowed, and doesn't make any sense. [#65](https://github.com/TehShrike/deepmerge/issues/65) published as a feature release instead of a patch because it is a decent behavior change. - -# [1.4.4](https://github.com/TehShrike/deepmerge/releases/tag/v1.4.4) - -- bower support: updated `main` in bower.json - -# [1.4.3](https://github.com/TehShrike/deepmerge/releases/tag/v1.4.3) - -- bower support: inline is-mergeable-object in a new CommonJS build, so that people using both bower and CommonJS can bundle the library [0b34e6](https://github.com/TehShrike/deepmerge/commit/0b34e6e95f989f2fc8091d25f0d291c08f3d2d24) - -# [1.4.2](https://github.com/TehShrike/deepmerge/releases/tag/v1.4.2) - -- performance: bump is-mergeable-object dependency version for a slight performance improvement [5906c7](https://github.com/TehShrike/deepmerge/commit/5906c765d691d48e83d76efbb0d4b9ca150dc12c) - -# [1.4.1](https://github.com/TehShrike/deepmerge/releases/tag/v1.4.1) - -- documentation: fix unpkg link [acc45b](https://github.com/TehShrike/deepmerge/commit/acc45be85519c1df906a72ecb24764b622d18d47) - -# [1.4.0](https://github.com/TehShrike/deepmerge/releases/tag/v1.4.0) - -- api: instead of only exporting a UMD module, expose a UMD module with `pkg.main`, a CJS module with `pkg.browser`, and an ES module with `pkg.module` [#62](https://github.com/TehShrike/deepmerge/pull/62) - -# [1.3.2](https://github.com/TehShrike/deepmerge/releases/tag/v1.3.2) - -- documentation: note the minified/gzipped file sizes [56](https://github.com/TehShrike/deepmerge/pull/56) -- documentation: make data structures more readable in merge example: pull request [57](https://github.com/TehShrike/deepmerge/pull/57) - -# [1.3.1](https://github.com/TehShrike/deepmerge/releases/tag/v1.3.1) - -- documentation: clarify and test some array merging documentation: pull request [51](https://github.com/TehShrike/deepmerge/pull/51) - -# [1.3.0](https://github.com/TehShrike/deepmerge/releases/tag/v1.3.0) - -- feature: `merge.all`, a merge function that merges any number of objects: pull request [50](https://github.com/TehShrike/deepmerge/pull/50) - -# [1.2.0](https://github.com/TehShrike/deepmerge/releases/tag/v1.2.0) - -- fix: an error that would be thrown when an array would be merged onto a truthy non-array value: pull request [46](https://github.com/TehShrike/deepmerge/pull/46) -- feature: the ability to clone: Issue [28](https://github.com/TehShrike/deepmerge/issues/28), pull requests [44](https://github.com/TehShrike/deepmerge/pull/44) and [48](https://github.com/TehShrike/deepmerge/pull/48) -- maintenance: added tests + travis to `.npmignore`: pull request [47](https://github.com/TehShrike/deepmerge/pull/47) - -# [1.1.1](https://github.com/TehShrike/deepmerge/releases/tag/v1.1.1) - -- fix an issue where an error was thrown when merging an array onto a non-array: [Pull request 46](https://github.com/TehShrike/deepmerge/pull/46) - -# [1.1.0](https://github.com/TehShrike/deepmerge/releases/tag/v1.1.0) - -- allow consumers to specify their own array merging algorithm: [Pull request 37](https://github.com/TehShrike/deepmerge/pull/37) - -# [1.0.3](https://github.com/TehShrike/deepmerge/releases/tag/v1.0.3) - -- adding bower.json back: [Issue 38](https://github.com/TehShrike/deepmerge/pull/38) -- updating keywords and Github links in package.json [bc3898e](https://github.com/TehShrike/deepmerge/commit/bc3898e587a56f74591328f40f656b0152c1d5eb) - -# [1.0.2](https://github.com/TehShrike/deepmerge/releases/tag/v1.0.2) - -- Updating the readme: dropping bower, testing that the example works: [7102fc](https://github.com/TehShrike/deepmerge/commit/7102fcc4ddec11e2d33205866f9f18df14e5aeb5) - -# [1.0.1](https://github.com/TehShrike/deepmerge/releases/tag/v1.0.1) - -- `null`, dates, and regular expressions are now properly merged in arrays: [Issue 18](https://github.com/TehShrike/deepmerge/pull/18), plus commit: [ef1c6b](https://github.com/TehShrike/deepmerge/commit/ef1c6bac8350ba12a24966f0bc7da02560827586) - -# 1.0.0 - -- Should only be a patch change, because this module is READY. [Issue 15](https://github.com/TehShrike/deepmerge/issues/15) -- Regular expressions are now treated like primitive values when merging: [Issue 30](https://github.com/TehShrike/deepmerge/pull/30) -- Dates are now treated like primitives when merging: [Issue 31](https://github.com/TehShrike/deepmerge/issues/31) diff --git a/node_modules/deepmerge/dist/cjs.js b/node_modules/deepmerge/dist/cjs.js deleted file mode 100644 index 9df0576..0000000 --- a/node_modules/deepmerge/dist/cjs.js +++ /dev/null @@ -1,111 +0,0 @@ -'use strict'; - -var isMergeableObject = function isMergeableObject(value) { - return isNonNullObject(value) - && !isSpecial(value) -}; - -function isNonNullObject(value) { - return !!value && typeof value === 'object' -} - -function isSpecial(value) { - var stringValue = Object.prototype.toString.call(value); - - return stringValue === '[object RegExp]' - || stringValue === '[object Date]' - || isReactElement(value) -} - -// see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25 -var canUseSymbol = typeof Symbol === 'function' && Symbol.for; -var REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for('react.element') : 0xeac7; - -function isReactElement(value) { - return value.$$typeof === REACT_ELEMENT_TYPE -} - -function emptyTarget(val) { - return Array.isArray(val) ? [] : {} -} - -function cloneUnlessOtherwiseSpecified(value, options) { - return (options.clone !== false && options.isMergeableObject(value)) - ? deepmerge(emptyTarget(value), value, options) - : value -} - -function defaultArrayMerge(target, source, options) { - return target.concat(source).map(function(element) { - return cloneUnlessOtherwiseSpecified(element, options) - }) -} - -function getMergeFunction(key, options) { - if (!options.customMerge) { - return deepmerge - } - var customMerge = options.customMerge(key); - return typeof customMerge === 'function' ? customMerge : deepmerge -} - -function getEnumerableOwnPropertySymbols(target) { - return Object.getOwnPropertySymbols - ? Object.getOwnPropertySymbols(target).filter(function(symbol) { - return target.propertyIsEnumerable(symbol) - }) - : [] -} - -function getKeys(target) { - return Object.keys(target).concat(getEnumerableOwnPropertySymbols(target)) -} - -function mergeObject(target, source, options) { - var destination = {}; - if (options.isMergeableObject(target)) { - getKeys(target).forEach(function(key) { - destination[key] = cloneUnlessOtherwiseSpecified(target[key], options); - }); - } - getKeys(source).forEach(function(key) { - if (!options.isMergeableObject(source[key]) || !target[key]) { - destination[key] = cloneUnlessOtherwiseSpecified(source[key], options); - } else { - destination[key] = getMergeFunction(key, options)(target[key], source[key], options); - } - }); - return destination -} - -function deepmerge(target, source, options) { - options = options || {}; - options.arrayMerge = options.arrayMerge || defaultArrayMerge; - options.isMergeableObject = options.isMergeableObject || isMergeableObject; - - var sourceIsArray = Array.isArray(source); - var targetIsArray = Array.isArray(target); - var sourceAndTargetTypesMatch = sourceIsArray === targetIsArray; - - if (!sourceAndTargetTypesMatch) { - return cloneUnlessOtherwiseSpecified(source, options) - } else if (sourceIsArray) { - return options.arrayMerge(target, source, options) - } else { - return mergeObject(target, source, options) - } -} - -deepmerge.all = function deepmergeAll(array, options) { - if (!Array.isArray(array)) { - throw new Error('first argument should be an array') - } - - return array.reduce(function(prev, next) { - return deepmerge(prev, next, options) - }, {}) -}; - -var deepmerge_1 = deepmerge; - -module.exports = deepmerge_1; diff --git a/node_modules/deepmerge/dist/umd.js b/node_modules/deepmerge/dist/umd.js deleted file mode 100644 index 8ce3a27..0000000 --- a/node_modules/deepmerge/dist/umd.js +++ /dev/null @@ -1,117 +0,0 @@ -(function (global, factory) { - typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : - typeof define === 'function' && define.amd ? define(factory) : - (global = global || self, global.deepmerge = factory()); -}(this, function () { 'use strict'; - - var isMergeableObject = function isMergeableObject(value) { - return isNonNullObject(value) - && !isSpecial(value) - }; - - function isNonNullObject(value) { - return !!value && typeof value === 'object' - } - - function isSpecial(value) { - var stringValue = Object.prototype.toString.call(value); - - return stringValue === '[object RegExp]' - || stringValue === '[object Date]' - || isReactElement(value) - } - - // see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25 - var canUseSymbol = typeof Symbol === 'function' && Symbol.for; - var REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for('react.element') : 0xeac7; - - function isReactElement(value) { - return value.$$typeof === REACT_ELEMENT_TYPE - } - - function emptyTarget(val) { - return Array.isArray(val) ? [] : {} - } - - function cloneUnlessOtherwiseSpecified(value, options) { - return (options.clone !== false && options.isMergeableObject(value)) - ? deepmerge(emptyTarget(value), value, options) - : value - } - - function defaultArrayMerge(target, source, options) { - return target.concat(source).map(function(element) { - return cloneUnlessOtherwiseSpecified(element, options) - }) - } - - function getMergeFunction(key, options) { - if (!options.customMerge) { - return deepmerge - } - var customMerge = options.customMerge(key); - return typeof customMerge === 'function' ? customMerge : deepmerge - } - - function getEnumerableOwnPropertySymbols(target) { - return Object.getOwnPropertySymbols - ? Object.getOwnPropertySymbols(target).filter(function(symbol) { - return target.propertyIsEnumerable(symbol) - }) - : [] - } - - function getKeys(target) { - return Object.keys(target).concat(getEnumerableOwnPropertySymbols(target)) - } - - function mergeObject(target, source, options) { - var destination = {}; - if (options.isMergeableObject(target)) { - getKeys(target).forEach(function(key) { - destination[key] = cloneUnlessOtherwiseSpecified(target[key], options); - }); - } - getKeys(source).forEach(function(key) { - if (!options.isMergeableObject(source[key]) || !target[key]) { - destination[key] = cloneUnlessOtherwiseSpecified(source[key], options); - } else { - destination[key] = getMergeFunction(key, options)(target[key], source[key], options); - } - }); - return destination - } - - function deepmerge(target, source, options) { - options = options || {}; - options.arrayMerge = options.arrayMerge || defaultArrayMerge; - options.isMergeableObject = options.isMergeableObject || isMergeableObject; - - var sourceIsArray = Array.isArray(source); - var targetIsArray = Array.isArray(target); - var sourceAndTargetTypesMatch = sourceIsArray === targetIsArray; - - if (!sourceAndTargetTypesMatch) { - return cloneUnlessOtherwiseSpecified(source, options) - } else if (sourceIsArray) { - return options.arrayMerge(target, source, options) - } else { - return mergeObject(target, source, options) - } - } - - deepmerge.all = function deepmergeAll(array, options) { - if (!Array.isArray(array)) { - throw new Error('first argument should be an array') - } - - return array.reduce(function(prev, next) { - return deepmerge(prev, next, options) - }, {}) - }; - - var deepmerge_1 = deepmerge; - - return deepmerge_1; - -})); diff --git a/node_modules/deepmerge/index.d.ts b/node_modules/deepmerge/index.d.ts deleted file mode 100644 index 7412fcf..0000000 --- a/node_modules/deepmerge/index.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -declare function deepmerge(x: Partial, y: Partial, options?: deepmerge.Options): T; -declare function deepmerge(x: Partial, y: Partial, options?: deepmerge.Options): T1 & T2; - -declare namespace deepmerge { - export interface Options { - arrayMerge?(target: any[], source: any[], options?: Options): any[]; - clone?: boolean; - customMerge?: (key: string, options?: Options) => ((x: any, y: any) => any) | undefined; - isMergeableObject?(value: object): boolean; - } - - export function all (objects: object[], options?: Options): object; - export function all (objects: Partial[], options?: Options): T; -} - -export = deepmerge; diff --git a/node_modules/deepmerge/index.js b/node_modules/deepmerge/index.js deleted file mode 100644 index 9c143c7..0000000 --- a/node_modules/deepmerge/index.js +++ /dev/null @@ -1,84 +0,0 @@ -var defaultIsMergeableObject = require('is-mergeable-object') - -function emptyTarget(val) { - return Array.isArray(val) ? [] : {} -} - -function cloneUnlessOtherwiseSpecified(value, options) { - return (options.clone !== false && options.isMergeableObject(value)) - ? deepmerge(emptyTarget(value), value, options) - : value -} - -function defaultArrayMerge(target, source, options) { - return target.concat(source).map(function(element) { - return cloneUnlessOtherwiseSpecified(element, options) - }) -} - -function getMergeFunction(key, options) { - if (!options.customMerge) { - return deepmerge - } - var customMerge = options.customMerge(key) - return typeof customMerge === 'function' ? customMerge : deepmerge -} - -function getEnumerableOwnPropertySymbols(target) { - return Object.getOwnPropertySymbols - ? Object.getOwnPropertySymbols(target).filter(function(symbol) { - return target.propertyIsEnumerable(symbol) - }) - : [] -} - -function getKeys(target) { - return Object.keys(target).concat(getEnumerableOwnPropertySymbols(target)) -} - -function mergeObject(target, source, options) { - var destination = {} - if (options.isMergeableObject(target)) { - getKeys(target).forEach(function(key) { - destination[key] = cloneUnlessOtherwiseSpecified(target[key], options) - }) - } - getKeys(source).forEach(function(key) { - if (!options.isMergeableObject(source[key]) || !target[key]) { - destination[key] = cloneUnlessOtherwiseSpecified(source[key], options) - } else { - destination[key] = getMergeFunction(key, options)(target[key], source[key], options) - } - }) - return destination -} - -function deepmerge(target, source, options) { - options = options || {} - options.arrayMerge = options.arrayMerge || defaultArrayMerge - options.isMergeableObject = options.isMergeableObject || defaultIsMergeableObject - - var sourceIsArray = Array.isArray(source) - var targetIsArray = Array.isArray(target) - var sourceAndTargetTypesMatch = sourceIsArray === targetIsArray - - if (!sourceAndTargetTypesMatch) { - return cloneUnlessOtherwiseSpecified(source, options) - } else if (sourceIsArray) { - return options.arrayMerge(target, source, options) - } else { - return mergeObject(target, source, options) - } -} - -deepmerge.all = function deepmergeAll(array, options) { - if (!Array.isArray(array)) { - throw new Error('first argument should be an array') - } - - return array.reduce(function(prev, next) { - return deepmerge(prev, next, options) - }, {}) -} - -module.exports = deepmerge diff --git a/node_modules/deepmerge/license.txt b/node_modules/deepmerge/license.txt deleted file mode 100644 index 5003078..0000000 --- a/node_modules/deepmerge/license.txt +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2012 James Halliday, Josh Duff, and other contributors - -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. diff --git a/node_modules/deepmerge/package.json b/node_modules/deepmerge/package.json deleted file mode 100644 index 0cf9a9c..0000000 --- a/node_modules/deepmerge/package.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "_args": [ - [ - "deepmerge@4.0.0", - "/Users/rachmari/github-repos/hello-world-javascript-action" - ] - ], - "_from": "deepmerge@4.0.0", - "_id": "deepmerge@4.0.0", - "_inBundle": false, - "_integrity": "sha512-YZ1rOP5+kHor4hMAH+HRQnBQHg+wvS1un1hAOuIcxcBy0hzcUf6Jg2a1w65kpoOUnurOfZbERwjI1TfZxNjcww==", - "_location": "/deepmerge", - "_phantomChildren": {}, - "_requested": { - "type": "version", - "registry": true, - "raw": "deepmerge@4.0.0", - "name": "deepmerge", - "escapedName": "deepmerge", - "rawSpec": "4.0.0", - "saveSpec": null, - "fetchSpec": "4.0.0" - }, - "_requiredBy": [ - "/@octokit/endpoint" - ], - "_resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.0.0.tgz", - "_spec": "4.0.0", - "_where": "/Users/rachmari/github-repos/hello-world-javascript-action", - "bugs": { - "url": "https://github.com/TehShrike/deepmerge/issues" - }, - "dependencies": {}, - "description": "A library for deep (recursive) merging of Javascript objects", - "devDependencies": { - "@types/node": "^8.10.49", - "is-mergeable-object": "1.1.0", - "is-plain-object": "^2.0.4", - "jsmd": "^1.0.1", - "rollup": "^1.15.5", - "rollup-plugin-commonjs": "^10.0.0", - "rollup-plugin-node-resolve": "^5.0.2", - "tape": "^4.10.2", - "ts-node": "7.0.1", - "typescript": "=2.2.2", - "uglify-js": "^3.6.0" - }, - "engines": { - "node": ">=0.10.0" - }, - "homepage": "https://github.com/TehShrike/deepmerge", - "keywords": [ - "merge", - "deep", - "extend", - "copy", - "clone", - "recursive" - ], - "license": "MIT", - "main": "dist/cjs.js", - "name": "deepmerge", - "repository": { - "type": "git", - "url": "git://github.com/TehShrike/deepmerge.git" - }, - "scripts": { - "build": "rollup -c", - "size": "npm run build && uglifyjs --compress --mangle -- ./dist/umd.js | gzip -c | wc -c", - "test": "npm run build && tape test/*.js && jsmd readme.md && npm run test:typescript", - "test:typescript": "tsc --noEmit test/typescript.ts && ts-node test/typescript.ts" - }, - "version": "4.0.0" -} diff --git a/node_modules/deepmerge/readme.md b/node_modules/deepmerge/readme.md deleted file mode 100644 index 915d157..0000000 --- a/node_modules/deepmerge/readme.md +++ /dev/null @@ -1,264 +0,0 @@ -# deepmerge - -Merges the enumerable properties of two or more objects deeply. - -> UMD bundle is 646B minified+gzipped - -## Getting Started - -### Example Usage - - -```js -const x = { - foo: { bar: 3 }, - array: [{ - does: 'work', - too: [ 1, 2, 3 ] - }] -} - -const y = { - foo: { baz: 4 }, - quux: 5, - array: [{ - does: 'work', - too: [ 4, 5, 6 ] - }, { - really: 'yes' - }] -} - -const output = { - foo: { - bar: 3, - baz: 4 - }, - array: [{ - does: 'work', - too: [ 1, 2, 3 ] - }, { - does: 'work', - too: [ 4, 5, 6 ] - }, { - really: 'yes' - }], - quux: 5 -} - -merge(x, y) // => output -``` - - -### Installation - -With [npm](http://npmjs.org) do: - -```sh -npm install deepmerge -``` - -deepmerge can be used directly in the browser without the use of package managers/bundlers as well: [UMD version from unpkg.com](https://unpkg.com/deepmerge/dist/umd.js). - - -### Include - -deepmerge exposes a CommonJS entry point: - -``` -const merge = require('deepmerge') -``` - -The ESM entry point was dropped due to a [Webpack bug](https://github.com/webpack/webpack/issues/6584). - -# API - - -## `merge(x, y, [options])` - -Merge two objects `x` and `y` deeply, returning a new merged object with the -elements from both `x` and `y`. - -If an element at the same key is present for both `x` and `y`, the value from -`y` will appear in the result. - -Merging creates a new object, so that neither `x` or `y` is modified. - -**Note:** By default, arrays are merged by concatenating them. - -## `merge.all(arrayOfObjects, [options])` - -Merges any number of objects into a single result object. - -```js -const foobar = { foo: { bar: 3 } } -const foobaz = { foo: { baz: 4 } } -const bar = { bar: 'yay!' } - -merge.all([ foobar, foobaz, bar ]) // => { foo: { bar: 3, baz: 4 }, bar: 'yay!' } -``` - - -## Options - -### `arrayMerge` - -There are multiple ways to merge two arrays, below are a few examples but you can also create your own custom function. - -#### Overwrite Array - -Overwrites the existing array values completely rather than concatenating them - -```js -const overwriteMerge = (destinationArray, sourceArray, options) => sourceArray - -merge( - [1, 2, 3], - [3, 2, 1], - { arrayMerge: overwriteMerge } -) // => [3, 2, 1] -``` - -#### Combine Array - -Combine arrays, such as overwriting existing defaults while also adding/keeping values that are different names - -To use the legacy (pre-version-2.0.0) array merging algorithm, use the following: - -```js -const emptyTarget = value => Array.isArray(value) ? [] : {} -const clone = (value, options) => merge(emptyTarget(value), value, options) - -const combineMerge = (target, source, options) => { - const destination = target.slice() - - source.forEach((item, index) => { - if (typeof destination[index] === 'undefined') { - const cloneRequested = options.clone !== false - const shouldClone = cloneRequested && options.isMergeableObject(item) - destination[index] = shouldClone ? clone(item, options) : item - } else if (options.isMergeableObject(item)) { - destination[index] = merge(target[index], item, options) - } else if (target.indexOf(item) === -1) { - destination.push(item) - } - }) - return destination -} - -merge( - [{ a: true }], - [{ b: true }, 'ah yup'], - { arrayMerge: combineMerge } -) // => [{ a: true, b: true }, 'ah yup'] -``` - -### `isMergeableObject` - -By default, deepmerge clones every property from almost every kind of object. - -You may not want this, if your objects are of special types, and you want to copy the whole object instead of just copying its properties. - -You can accomplish this by passing in a function for the `isMergeableObject` option. - -If you only want to clone properties of plain objects, and ignore all "special" kinds of instantiated objects, you probably want to drop in [`is-plain-object`](https://github.com/jonschlinkert/is-plain-object). - -```js -const isPlainObject = require('is-plain-object') - -function SuperSpecial() { - this.special = 'oh yeah man totally' -} - -const instantiatedSpecialObject = new SuperSpecial() - -const target = { - someProperty: { - cool: 'oh for sure' - } -} - -const source = { - someProperty: instantiatedSpecialObject -} - -const defaultOutput = merge(target, source) - -defaultOutput.someProperty.cool // => 'oh for sure' -defaultOutput.someProperty.special // => 'oh yeah man totally' -defaultOutput.someProperty instanceof SuperSpecial // => false - -const customMergeOutput = merge(target, source, { - isMergeableObject: isPlainObject -}) - -customMergeOutput.someProperty.cool // => undefined -customMergeOutput.someProperty.special // => 'oh yeah man totally' -customMergeOutput.someProperty instanceof SuperSpecial // => true -``` - -### `customMerge` - -Specifies a function which can be used to override the default merge behavior for a property, based on the property name. - -The `customMerge` function will be passed the key for each property, and should return the function which should be used to merge the values for that property. - -It may also return undefined, in which case the default merge behaviour will be used. - -```js -const alex = { - name: { - first: 'Alex', - last: 'Alexson' - }, - pets: ['Cat', 'Parrot'] -} - -const tony = { - name: { - first: 'Tony', - last: 'Tonison' - }, - pets: ['Dog'] -} - -const mergeNames = (nameA, nameB) => `${nameA.first} and ${nameB.first}` - -const options = { - customMerge: (key) => { - if (key === 'name') { - return mergeNames - } - } -} - -const result = merge(alex, tony, options) - -result.name // => 'Alex and Tony' -result.pets // => ['Cat', 'Parrot', 'Dog'] -``` - - -### `clone` - -*Deprecated.* - -Defaults to `true`. - -If `clone` is `false` then child objects will be copied directly instead of being cloned. This was the default behavior before version 2.x. - - -# Testing - -With [npm](http://npmjs.org) do: - -```sh -npm test -``` - - -# License - -MIT diff --git a/node_modules/deepmerge/rollup.config.js b/node_modules/deepmerge/rollup.config.js deleted file mode 100644 index 8323ab2..0000000 --- a/node_modules/deepmerge/rollup.config.js +++ /dev/null @@ -1,22 +0,0 @@ -import resolve from 'rollup-plugin-node-resolve' -import commonjs from 'rollup-plugin-commonjs' -import pkg from './package.json' - -export default { - input: `index.js`, - plugins: [ - commonjs(), - resolve(), - ], - output: [ - { - file: pkg.main, - format: `cjs` - }, - { - name: 'deepmerge', - file: 'dist/umd.js', - format: `umd` - }, - ], -} diff --git a/node_modules/deprecation/package.json b/node_modules/deprecation/package.json index df389fd..f417ef9 100644 --- a/node_modules/deprecation/package.json +++ b/node_modules/deprecation/package.json @@ -1,25 +1,19 @@ { - "_args": [ - [ - "deprecation@2.3.1", - "/Users/rachmari/github-repos/hello-world-javascript-action" - ] - ], - "_from": "deprecation@2.3.1", + "_from": "deprecation@^2.0.0", "_id": "deprecation@2.3.1", "_inBundle": false, "_integrity": "sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ==", "_location": "/deprecation", "_phantomChildren": {}, "_requested": { - "type": "version", + "type": "range", "registry": true, - "raw": "deprecation@2.3.1", + "raw": "deprecation@^2.0.0", "name": "deprecation", "escapedName": "deprecation", - "rawSpec": "2.3.1", + "rawSpec": "^2.0.0", "saveSpec": null, - "fetchSpec": "2.3.1" + "fetchSpec": "^2.0.0" }, "_requiredBy": [ "/@octokit/request", @@ -27,12 +21,15 @@ "/@octokit/rest" ], "_resolved": "https://registry.npmjs.org/deprecation/-/deprecation-2.3.1.tgz", - "_spec": "2.3.1", - "_where": "/Users/rachmari/github-repos/hello-world-javascript-action", + "_shasum": "6368cbdb40abf3373b525ac87e4a260c3a700919", + "_spec": "deprecation@^2.0.0", + "_where": "/Users/rachmari/github-repos/hello-world-javascript-action/node_modules/@octokit/request", "bugs": { "url": "https://github.com/gr2m/deprecation/issues" }, + "bundleDependencies": false, "dependencies": {}, + "deprecated": false, "description": "Log a deprecation message with stack", "devDependencies": { "@pika/pack": "^0.3.7", diff --git a/node_modules/end-of-stream/package.json b/node_modules/end-of-stream/package.json index 1716dda..c02950e 100644 --- a/node_modules/end-of-stream/package.json +++ b/node_modules/end-of-stream/package.json @@ -1,32 +1,27 @@ { - "_args": [ - [ - "end-of-stream@1.4.1", - "/Users/rachmari/github-repos/hello-world-javascript-action" - ] - ], - "_from": "end-of-stream@1.4.1", + "_from": "end-of-stream@^1.1.0", "_id": "end-of-stream@1.4.1", "_inBundle": false, "_integrity": "sha512-1MkrZNvWTKCaigbn+W15elq2BB/L22nqrSY5DKlo3X6+vclJm8Bb5djXJBmEX6fS3+zCh/F4VBK5Z2KxJt4s2Q==", "_location": "/end-of-stream", "_phantomChildren": {}, "_requested": { - "type": "version", + "type": "range", "registry": true, - "raw": "end-of-stream@1.4.1", + "raw": "end-of-stream@^1.1.0", "name": "end-of-stream", "escapedName": "end-of-stream", - "rawSpec": "1.4.1", + "rawSpec": "^1.1.0", "saveSpec": null, - "fetchSpec": "1.4.1" + "fetchSpec": "^1.1.0" }, "_requiredBy": [ "/pump" ], "_resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.1.tgz", - "_spec": "1.4.1", - "_where": "/Users/rachmari/github-repos/hello-world-javascript-action", + "_shasum": "ed29634d19baba463b6ce6b80a37213eab71ec43", + "_spec": "end-of-stream@^1.1.0", + "_where": "/Users/rachmari/github-repos/hello-world-javascript-action/node_modules/pump", "author": { "name": "Mathias Buus", "email": "mathiasbuus@gmail.com" @@ -34,9 +29,11 @@ "bugs": { "url": "https://github.com/mafintosh/end-of-stream/issues" }, + "bundleDependencies": false, "dependencies": { "once": "^1.4.0" }, + "deprecated": false, "description": "Call a callback when a readable/writable/duplex stream has completed or failed.", "files": [ "index.js" diff --git a/node_modules/execa/package.json b/node_modules/execa/package.json index 19bb498..fb7d5a2 100644 --- a/node_modules/execa/package.json +++ b/node_modules/execa/package.json @@ -1,32 +1,27 @@ { - "_args": [ - [ - "execa@1.0.0", - "/Users/rachmari/github-repos/hello-world-javascript-action" - ] - ], - "_from": "execa@1.0.0", + "_from": "execa@^1.0.0", "_id": "execa@1.0.0", "_inBundle": false, "_integrity": "sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA==", "_location": "/execa", "_phantomChildren": {}, "_requested": { - "type": "version", + "type": "range", "registry": true, - "raw": "execa@1.0.0", + "raw": "execa@^1.0.0", "name": "execa", "escapedName": "execa", - "rawSpec": "1.0.0", + "rawSpec": "^1.0.0", "saveSpec": null, - "fetchSpec": "1.0.0" + "fetchSpec": "^1.0.0" }, "_requiredBy": [ "/windows-release" ], "_resolved": "https://registry.npmjs.org/execa/-/execa-1.0.0.tgz", - "_spec": "1.0.0", - "_where": "/Users/rachmari/github-repos/hello-world-javascript-action", + "_shasum": "c6236a5bb4df6d6f15e88e7f017798216749ddd8", + "_spec": "execa@^1.0.0", + "_where": "/Users/rachmari/github-repos/hello-world-javascript-action/node_modules/windows-release", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", @@ -35,6 +30,7 @@ "bugs": { "url": "https://github.com/sindresorhus/execa/issues" }, + "bundleDependencies": false, "dependencies": { "cross-spawn": "^6.0.0", "get-stream": "^4.0.0", @@ -44,6 +40,7 @@ "signal-exit": "^3.0.0", "strip-eof": "^1.0.0" }, + "deprecated": false, "description": "A better `child_process`", "devDependencies": { "ava": "*", diff --git a/node_modules/get-stream/package.json b/node_modules/get-stream/package.json index fb673c9..898d3f9 100644 --- a/node_modules/get-stream/package.json +++ b/node_modules/get-stream/package.json @@ -1,32 +1,27 @@ { - "_args": [ - [ - "get-stream@4.1.0", - "/Users/rachmari/github-repos/hello-world-javascript-action" - ] - ], - "_from": "get-stream@4.1.0", + "_from": "get-stream@^4.0.0", "_id": "get-stream@4.1.0", "_inBundle": false, "_integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", "_location": "/get-stream", "_phantomChildren": {}, "_requested": { - "type": "version", + "type": "range", "registry": true, - "raw": "get-stream@4.1.0", + "raw": "get-stream@^4.0.0", "name": "get-stream", "escapedName": "get-stream", - "rawSpec": "4.1.0", + "rawSpec": "^4.0.0", "saveSpec": null, - "fetchSpec": "4.1.0" + "fetchSpec": "^4.0.0" }, "_requiredBy": [ "/execa" ], "_resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", - "_spec": "4.1.0", - "_where": "/Users/rachmari/github-repos/hello-world-javascript-action", + "_shasum": "c1b255575f3dc21d59bfc79cd3d2b46b1c3a54b5", + "_spec": "get-stream@^4.0.0", + "_where": "/Users/rachmari/github-repos/hello-world-javascript-action/node_modules/execa", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", @@ -35,9 +30,11 @@ "bugs": { "url": "https://github.com/sindresorhus/get-stream/issues" }, + "bundleDependencies": false, "dependencies": { "pump": "^3.0.0" }, + "deprecated": false, "description": "Get a stream as a string, buffer, or array", "devDependencies": { "ava": "*", diff --git a/node_modules/is-plain-object/package.json b/node_modules/is-plain-object/package.json index 6b6a947..81cf3b4 100644 --- a/node_modules/is-plain-object/package.json +++ b/node_modules/is-plain-object/package.json @@ -1,33 +1,28 @@ { - "_args": [ - [ - "is-plain-object@3.0.0", - "/Users/rachmari/github-repos/hello-world-javascript-action" - ] - ], - "_from": "is-plain-object@3.0.0", + "_from": "is-plain-object@^3.0.0", "_id": "is-plain-object@3.0.0", "_inBundle": false, "_integrity": "sha512-tZIpofR+P05k8Aocp7UI/2UTa9lTJSebCXpFFoR9aibpokDj/uXBsJ8luUu0tTVYKkMU6URDUuOfJZ7koewXvg==", "_location": "/is-plain-object", "_phantomChildren": {}, "_requested": { - "type": "version", + "type": "range", "registry": true, - "raw": "is-plain-object@3.0.0", + "raw": "is-plain-object@^3.0.0", "name": "is-plain-object", "escapedName": "is-plain-object", - "rawSpec": "3.0.0", + "rawSpec": "^3.0.0", "saveSpec": null, - "fetchSpec": "3.0.0" + "fetchSpec": "^3.0.0" }, "_requiredBy": [ "/@octokit/endpoint", "/@octokit/request" ], "_resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-3.0.0.tgz", - "_spec": "3.0.0", - "_where": "/Users/rachmari/github-repos/hello-world-javascript-action", + "_shasum": "47bfc5da1b5d50d64110806c199359482e75a928", + "_spec": "is-plain-object@^3.0.0", + "_where": "/Users/rachmari/github-repos/hello-world-javascript-action/node_modules/@octokit/request", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" @@ -35,6 +30,7 @@ "bugs": { "url": "https://github.com/jonschlinkert/is-plain-object/issues" }, + "bundleDependencies": false, "contributors": [ { "name": "Jon Schlinkert", @@ -55,6 +51,7 @@ "dependencies": { "isobject": "^4.0.0" }, + "deprecated": false, "description": "Returns true if an object was created by the `Object` constructor.", "devDependencies": { "chai": "^4.2.0", diff --git a/node_modules/is-stream/package.json b/node_modules/is-stream/package.json index 438992c..74ec31f 100644 --- a/node_modules/is-stream/package.json +++ b/node_modules/is-stream/package.json @@ -1,32 +1,27 @@ { - "_args": [ - [ - "is-stream@1.1.0", - "/Users/rachmari/github-repos/hello-world-javascript-action" - ] - ], - "_from": "is-stream@1.1.0", + "_from": "is-stream@^1.1.0", "_id": "is-stream@1.1.0", "_inBundle": false, "_integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=", "_location": "/is-stream", "_phantomChildren": {}, "_requested": { - "type": "version", + "type": "range", "registry": true, - "raw": "is-stream@1.1.0", + "raw": "is-stream@^1.1.0", "name": "is-stream", "escapedName": "is-stream", - "rawSpec": "1.1.0", + "rawSpec": "^1.1.0", "saveSpec": null, - "fetchSpec": "1.1.0" + "fetchSpec": "^1.1.0" }, "_requiredBy": [ "/execa" ], "_resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", - "_spec": "1.1.0", - "_where": "/Users/rachmari/github-repos/hello-world-javascript-action", + "_shasum": "12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44", + "_spec": "is-stream@^1.1.0", + "_where": "/Users/rachmari/github-repos/hello-world-javascript-action/node_modules/execa", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", @@ -35,6 +30,8 @@ "bugs": { "url": "https://github.com/sindresorhus/is-stream/issues" }, + "bundleDependencies": false, + "deprecated": false, "description": "Check if something is a Node.js stream", "devDependencies": { "ava": "*", diff --git a/node_modules/isexe/package.json b/node_modules/isexe/package.json index 7b66c3f..817c767 100644 --- a/node_modules/isexe/package.json +++ b/node_modules/isexe/package.json @@ -1,32 +1,27 @@ { - "_args": [ - [ - "isexe@2.0.0", - "/Users/rachmari/github-repos/hello-world-javascript-action" - ] - ], - "_from": "isexe@2.0.0", + "_from": "isexe@^2.0.0", "_id": "isexe@2.0.0", "_inBundle": false, "_integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", "_location": "/isexe", "_phantomChildren": {}, "_requested": { - "type": "version", + "type": "range", "registry": true, - "raw": "isexe@2.0.0", + "raw": "isexe@^2.0.0", "name": "isexe", "escapedName": "isexe", - "rawSpec": "2.0.0", + "rawSpec": "^2.0.0", "saveSpec": null, - "fetchSpec": "2.0.0" + "fetchSpec": "^2.0.0" }, "_requiredBy": [ "/which" ], "_resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "_spec": "2.0.0", - "_where": "/Users/rachmari/github-repos/hello-world-javascript-action", + "_shasum": "e8fbf374dc556ff8947a10dcb0572d633f2cfa10", + "_spec": "isexe@^2.0.0", + "_where": "/Users/rachmari/github-repos/hello-world-javascript-action/node_modules/which", "author": { "name": "Isaac Z. Schlueter", "email": "i@izs.me", @@ -35,6 +30,8 @@ "bugs": { "url": "https://github.com/isaacs/isexe/issues" }, + "bundleDependencies": false, + "deprecated": false, "description": "Minimal module to check if a file is executable.", "devDependencies": { "mkdirp": "^0.5.1", diff --git a/node_modules/isobject/package.json b/node_modules/isobject/package.json index f438e06..97e6442 100644 --- a/node_modules/isobject/package.json +++ b/node_modules/isobject/package.json @@ -1,32 +1,27 @@ { - "_args": [ - [ - "isobject@4.0.0", - "/Users/rachmari/github-repos/hello-world-javascript-action" - ] - ], - "_from": "isobject@4.0.0", + "_from": "isobject@^4.0.0", "_id": "isobject@4.0.0", "_inBundle": false, "_integrity": "sha512-S/2fF5wH8SJA/kmwr6HYhK/RI/OkhD84k8ntalo0iJjZikgq1XFvR5M8NPT1x5F7fBwCG3qHfnzeP/Vh/ZxCUA==", "_location": "/isobject", "_phantomChildren": {}, "_requested": { - "type": "version", + "type": "range", "registry": true, - "raw": "isobject@4.0.0", + "raw": "isobject@^4.0.0", "name": "isobject", "escapedName": "isobject", - "rawSpec": "4.0.0", + "rawSpec": "^4.0.0", "saveSpec": null, - "fetchSpec": "4.0.0" + "fetchSpec": "^4.0.0" }, "_requiredBy": [ "/is-plain-object" ], "_resolved": "https://registry.npmjs.org/isobject/-/isobject-4.0.0.tgz", - "_spec": "4.0.0", - "_where": "/Users/rachmari/github-repos/hello-world-javascript-action", + "_shasum": "3f1c9155e73b192022a80819bacd0343711697b0", + "_spec": "isobject@^4.0.0", + "_where": "/Users/rachmari/github-repos/hello-world-javascript-action/node_modules/is-plain-object", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" @@ -34,6 +29,7 @@ "bugs": { "url": "https://github.com/jonschlinkert/isobject/issues" }, + "bundleDependencies": false, "contributors": [ { "url": "https://github.com/LeSuisse" @@ -56,6 +52,7 @@ } ], "dependencies": {}, + "deprecated": false, "description": "Returns true if the value is an object and not an array or null.", "devDependencies": { "esm": "^3.2.22", diff --git a/node_modules/lodash.get/package.json b/node_modules/lodash.get/package.json index 32c7641..0f3d93b 100644 --- a/node_modules/lodash.get/package.json +++ b/node_modules/lodash.get/package.json @@ -1,32 +1,27 @@ { - "_args": [ - [ - "lodash.get@4.4.2", - "/Users/rachmari/github-repos/hello-world-javascript-action" - ] - ], - "_from": "lodash.get@4.4.2", + "_from": "lodash.get@^4.4.2", "_id": "lodash.get@4.4.2", "_inBundle": false, "_integrity": "sha1-LRd/ZS+jHpObRDjVNBSZ36OCXpk=", "_location": "/lodash.get", "_phantomChildren": {}, "_requested": { - "type": "version", + "type": "range", "registry": true, - "raw": "lodash.get@4.4.2", + "raw": "lodash.get@^4.4.2", "name": "lodash.get", "escapedName": "lodash.get", - "rawSpec": "4.4.2", + "rawSpec": "^4.4.2", "saveSpec": null, - "fetchSpec": "4.4.2" + "fetchSpec": "^4.4.2" }, "_requiredBy": [ "/@octokit/rest" ], "_resolved": "https://registry.npmjs.org/lodash.get/-/lodash.get-4.4.2.tgz", - "_spec": "4.4.2", - "_where": "/Users/rachmari/github-repos/hello-world-javascript-action", + "_shasum": "2d177f652fa31e939b4438d5341499dfa3825e99", + "_spec": "lodash.get@^4.4.2", + "_where": "/Users/rachmari/github-repos/hello-world-javascript-action/node_modules/@octokit/rest", "author": { "name": "John-David Dalton", "email": "john.david.dalton@gmail.com", @@ -35,6 +30,7 @@ "bugs": { "url": "https://github.com/lodash/lodash/issues" }, + "bundleDependencies": false, "contributors": [ { "name": "John-David Dalton", @@ -52,6 +48,7 @@ "url": "https://mathiasbynens.be/" } ], + "deprecated": false, "description": "The lodash method `_.get` exported as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/node_modules/lodash.set/package.json b/node_modules/lodash.set/package.json index e9e931f..f0b1a38 100644 --- a/node_modules/lodash.set/package.json +++ b/node_modules/lodash.set/package.json @@ -1,32 +1,27 @@ { - "_args": [ - [ - "lodash.set@4.3.2", - "/Users/rachmari/github-repos/hello-world-javascript-action" - ] - ], - "_from": "lodash.set@4.3.2", + "_from": "lodash.set@^4.3.2", "_id": "lodash.set@4.3.2", "_inBundle": false, "_integrity": "sha1-2HV7HagH3eJIFrDWqEvqGnYjCyM=", "_location": "/lodash.set", "_phantomChildren": {}, "_requested": { - "type": "version", + "type": "range", "registry": true, - "raw": "lodash.set@4.3.2", + "raw": "lodash.set@^4.3.2", "name": "lodash.set", "escapedName": "lodash.set", - "rawSpec": "4.3.2", + "rawSpec": "^4.3.2", "saveSpec": null, - "fetchSpec": "4.3.2" + "fetchSpec": "^4.3.2" }, "_requiredBy": [ "/@octokit/rest" ], "_resolved": "https://registry.npmjs.org/lodash.set/-/lodash.set-4.3.2.tgz", - "_spec": "4.3.2", - "_where": "/Users/rachmari/github-repos/hello-world-javascript-action", + "_shasum": "d8757b1da807dde24816b0d6a84bea1a76230b23", + "_spec": "lodash.set@^4.3.2", + "_where": "/Users/rachmari/github-repos/hello-world-javascript-action/node_modules/@octokit/rest", "author": { "name": "John-David Dalton", "email": "john.david.dalton@gmail.com", @@ -35,6 +30,7 @@ "bugs": { "url": "https://github.com/lodash/lodash/issues" }, + "bundleDependencies": false, "contributors": [ { "name": "John-David Dalton", @@ -52,6 +48,7 @@ "url": "https://mathiasbynens.be/" } ], + "deprecated": false, "description": "The lodash method `_.set` exported as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/node_modules/lodash.uniq/package.json b/node_modules/lodash.uniq/package.json index f6d12c0..a7a2fc1 100644 --- a/node_modules/lodash.uniq/package.json +++ b/node_modules/lodash.uniq/package.json @@ -1,32 +1,27 @@ { - "_args": [ - [ - "lodash.uniq@4.5.0", - "/Users/rachmari/github-repos/hello-world-javascript-action" - ] - ], - "_from": "lodash.uniq@4.5.0", + "_from": "lodash.uniq@^4.5.0", "_id": "lodash.uniq@4.5.0", "_inBundle": false, "_integrity": "sha1-0CJTc662Uq3BvILklFM5qEJ1R3M=", "_location": "/lodash.uniq", "_phantomChildren": {}, "_requested": { - "type": "version", + "type": "range", "registry": true, - "raw": "lodash.uniq@4.5.0", + "raw": "lodash.uniq@^4.5.0", "name": "lodash.uniq", "escapedName": "lodash.uniq", - "rawSpec": "4.5.0", + "rawSpec": "^4.5.0", "saveSpec": null, - "fetchSpec": "4.5.0" + "fetchSpec": "^4.5.0" }, "_requiredBy": [ "/@octokit/rest" ], "_resolved": "https://registry.npmjs.org/lodash.uniq/-/lodash.uniq-4.5.0.tgz", - "_spec": "4.5.0", - "_where": "/Users/rachmari/github-repos/hello-world-javascript-action", + "_shasum": "d0225373aeb652adc1bc82e4945339a842754773", + "_spec": "lodash.uniq@^4.5.0", + "_where": "/Users/rachmari/github-repos/hello-world-javascript-action/node_modules/@octokit/rest", "author": { "name": "John-David Dalton", "email": "john.david.dalton@gmail.com", @@ -35,6 +30,7 @@ "bugs": { "url": "https://github.com/lodash/lodash/issues" }, + "bundleDependencies": false, "contributors": [ { "name": "John-David Dalton", @@ -52,6 +48,7 @@ "url": "https://mathiasbynens.be/" } ], + "deprecated": false, "description": "The lodash method `_.uniq` exported as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/node_modules/macos-release/package.json b/node_modules/macos-release/package.json index 4295013..fa3b92e 100644 --- a/node_modules/macos-release/package.json +++ b/node_modules/macos-release/package.json @@ -1,32 +1,27 @@ { - "_args": [ - [ - "macos-release@2.3.0", - "/Users/rachmari/github-repos/hello-world-javascript-action" - ] - ], - "_from": "macos-release@2.3.0", + "_from": "macos-release@^2.2.0", "_id": "macos-release@2.3.0", "_inBundle": false, "_integrity": "sha512-OHhSbtcviqMPt7yfw5ef5aghS2jzFVKEFyCJndQt2YpSQ9qRVSEv2axSJI1paVThEu+FFGs584h/1YhxjVqajA==", "_location": "/macos-release", "_phantomChildren": {}, "_requested": { - "type": "version", + "type": "range", "registry": true, - "raw": "macos-release@2.3.0", + "raw": "macos-release@^2.2.0", "name": "macos-release", "escapedName": "macos-release", - "rawSpec": "2.3.0", + "rawSpec": "^2.2.0", "saveSpec": null, - "fetchSpec": "2.3.0" + "fetchSpec": "^2.2.0" }, "_requiredBy": [ "/os-name" ], "_resolved": "https://registry.npmjs.org/macos-release/-/macos-release-2.3.0.tgz", - "_spec": "2.3.0", - "_where": "/Users/rachmari/github-repos/hello-world-javascript-action", + "_shasum": "eb1930b036c0800adebccd5f17bc4c12de8bb71f", + "_spec": "macos-release@^2.2.0", + "_where": "/Users/rachmari/github-repos/hello-world-javascript-action/node_modules/os-name", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", @@ -35,6 +30,8 @@ "bugs": { "url": "https://github.com/sindresorhus/macos-release/issues" }, + "bundleDependencies": false, + "deprecated": false, "description": "Get the name and version of a macOS release from the Darwin version", "devDependencies": { "ava": "^1.4.1", diff --git a/node_modules/nice-try/package.json b/node_modules/nice-try/package.json index e3530ed..0ef8c51 100644 --- a/node_modules/nice-try/package.json +++ b/node_modules/nice-try/package.json @@ -1,38 +1,35 @@ { - "_args": [ - [ - "nice-try@1.0.5", - "/Users/rachmari/github-repos/hello-world-javascript-action" - ] - ], - "_from": "nice-try@1.0.5", + "_from": "nice-try@^1.0.4", "_id": "nice-try@1.0.5", "_inBundle": false, "_integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==", "_location": "/nice-try", "_phantomChildren": {}, "_requested": { - "type": "version", + "type": "range", "registry": true, - "raw": "nice-try@1.0.5", + "raw": "nice-try@^1.0.4", "name": "nice-try", "escapedName": "nice-try", - "rawSpec": "1.0.5", + "rawSpec": "^1.0.4", "saveSpec": null, - "fetchSpec": "1.0.5" + "fetchSpec": "^1.0.4" }, "_requiredBy": [ "/cross-spawn" ], "_resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", - "_spec": "1.0.5", - "_where": "/Users/rachmari/github-repos/hello-world-javascript-action", + "_shasum": "a3378a7696ce7d223e88fc9b764bd7ef1089e366", + "_spec": "nice-try@^1.0.4", + "_where": "/Users/rachmari/github-repos/hello-world-javascript-action/node_modules/cross-spawn", "authors": [ "Tobias Reich " ], "bugs": { "url": "https://github.com/electerious/nice-try/issues" }, + "bundleDependencies": false, + "deprecated": false, "description": "Tries to execute a function and discards any error that occurs", "devDependencies": { "chai": "^4.1.2", diff --git a/node_modules/node-fetch/package.json b/node_modules/node-fetch/package.json index 435137a..1f65d6d 100644 --- a/node_modules/node-fetch/package.json +++ b/node_modules/node-fetch/package.json @@ -1,32 +1,27 @@ { - "_args": [ - [ - "node-fetch@2.6.0", - "/Users/rachmari/github-repos/hello-world-javascript-action" - ] - ], - "_from": "node-fetch@2.6.0", + "_from": "node-fetch@^2.3.0", "_id": "node-fetch@2.6.0", "_inBundle": false, "_integrity": "sha512-8dG4H5ujfvFiqDmVu9fQ5bOHUC15JMjMY/Zumv26oOvvVJjM67KF8koCWIabKQ1GJIa9r2mMZscBq/TbdOcmNA==", "_location": "/node-fetch", "_phantomChildren": {}, "_requested": { - "type": "version", + "type": "range", "registry": true, - "raw": "node-fetch@2.6.0", + "raw": "node-fetch@^2.3.0", "name": "node-fetch", "escapedName": "node-fetch", - "rawSpec": "2.6.0", + "rawSpec": "^2.3.0", "saveSpec": null, - "fetchSpec": "2.6.0" + "fetchSpec": "^2.3.0" }, "_requiredBy": [ "/@octokit/request" ], "_resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.0.tgz", - "_spec": "2.6.0", - "_where": "/Users/rachmari/github-repos/hello-world-javascript-action", + "_shasum": "e633456386d4aa55863f676a7ab0daa8fdecb0fd", + "_spec": "node-fetch@^2.3.0", + "_where": "/Users/rachmari/github-repos/hello-world-javascript-action/node_modules/@octokit/request", "author": { "name": "David Frank" }, @@ -34,7 +29,9 @@ "bugs": { "url": "https://github.com/bitinn/node-fetch/issues" }, + "bundleDependencies": false, "dependencies": {}, + "deprecated": false, "description": "A light-weight module that brings window.fetch to node.js", "devDependencies": { "@ungap/url-search-params": "^0.1.2", diff --git a/node_modules/npm-run-path/package.json b/node_modules/npm-run-path/package.json index 013060c..c47afdc 100644 --- a/node_modules/npm-run-path/package.json +++ b/node_modules/npm-run-path/package.json @@ -1,32 +1,27 @@ { - "_args": [ - [ - "npm-run-path@2.0.2", - "/Users/rachmari/github-repos/hello-world-javascript-action" - ] - ], - "_from": "npm-run-path@2.0.2", + "_from": "npm-run-path@^2.0.0", "_id": "npm-run-path@2.0.2", "_inBundle": false, "_integrity": "sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=", "_location": "/npm-run-path", "_phantomChildren": {}, "_requested": { - "type": "version", + "type": "range", "registry": true, - "raw": "npm-run-path@2.0.2", + "raw": "npm-run-path@^2.0.0", "name": "npm-run-path", "escapedName": "npm-run-path", - "rawSpec": "2.0.2", + "rawSpec": "^2.0.0", "saveSpec": null, - "fetchSpec": "2.0.2" + "fetchSpec": "^2.0.0" }, "_requiredBy": [ "/execa" ], "_resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz", - "_spec": "2.0.2", - "_where": "/Users/rachmari/github-repos/hello-world-javascript-action", + "_shasum": "35a9232dfa35d7067b4cb2ddf2357b1871536c5f", + "_spec": "npm-run-path@^2.0.0", + "_where": "/Users/rachmari/github-repos/hello-world-javascript-action/node_modules/execa", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", @@ -35,9 +30,11 @@ "bugs": { "url": "https://github.com/sindresorhus/npm-run-path/issues" }, + "bundleDependencies": false, "dependencies": { "path-key": "^2.0.0" }, + "deprecated": false, "description": "Get your PATH prepended with locally installed binaries", "devDependencies": { "ava": "*", diff --git a/node_modules/octokit-pagination-methods/package.json b/node_modules/octokit-pagination-methods/package.json index bab792e..814be38 100644 --- a/node_modules/octokit-pagination-methods/package.json +++ b/node_modules/octokit-pagination-methods/package.json @@ -1,32 +1,27 @@ { - "_args": [ - [ - "octokit-pagination-methods@1.1.0", - "/Users/rachmari/github-repos/hello-world-javascript-action" - ] - ], - "_from": "octokit-pagination-methods@1.1.0", + "_from": "octokit-pagination-methods@^1.1.0", "_id": "octokit-pagination-methods@1.1.0", "_inBundle": false, "_integrity": "sha512-fZ4qZdQ2nxJvtcasX7Ghl+WlWS/d9IgnBIwFZXVNNZUmzpno91SX5bc5vuxiuKoCtK78XxGGNuSCrDC7xYB3OQ==", "_location": "/octokit-pagination-methods", "_phantomChildren": {}, "_requested": { - "type": "version", + "type": "range", "registry": true, - "raw": "octokit-pagination-methods@1.1.0", + "raw": "octokit-pagination-methods@^1.1.0", "name": "octokit-pagination-methods", "escapedName": "octokit-pagination-methods", - "rawSpec": "1.1.0", + "rawSpec": "^1.1.0", "saveSpec": null, - "fetchSpec": "1.1.0" + "fetchSpec": "^1.1.0" }, "_requiredBy": [ "/@octokit/rest" ], "_resolved": "https://registry.npmjs.org/octokit-pagination-methods/-/octokit-pagination-methods-1.1.0.tgz", - "_spec": "1.1.0", - "_where": "/Users/rachmari/github-repos/hello-world-javascript-action", + "_shasum": "cf472edc9d551055f9ef73f6e42b4dbb4c80bea4", + "_spec": "octokit-pagination-methods@^1.1.0", + "_where": "/Users/rachmari/github-repos/hello-world-javascript-action/node_modules/@octokit/rest", "author": { "name": "Gregor Martynus", "url": "https://github.com/gr2m" @@ -34,7 +29,9 @@ "bugs": { "url": "https://github.com/gr2m/octokit-pagination-methods/issues" }, + "bundleDependencies": false, "dependencies": {}, + "deprecated": false, "description": "Legacy Octokit pagination methods from v15", "devDependencies": { "@octokit/rest": "github:octokit/rest.js#next", diff --git a/node_modules/once/package.json b/node_modules/once/package.json index 02898b8..47a0e35 100644 --- a/node_modules/once/package.json +++ b/node_modules/once/package.json @@ -1,25 +1,19 @@ { - "_args": [ - [ - "once@1.4.0", - "/Users/rachmari/github-repos/hello-world-javascript-action" - ] - ], - "_from": "once@1.4.0", + "_from": "once@^1.4.0", "_id": "once@1.4.0", "_inBundle": false, "_integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", "_location": "/once", "_phantomChildren": {}, "_requested": { - "type": "version", + "type": "range", "registry": true, - "raw": "once@1.4.0", + "raw": "once@^1.4.0", "name": "once", "escapedName": "once", - "rawSpec": "1.4.0", + "rawSpec": "^1.4.0", "saveSpec": null, - "fetchSpec": "1.4.0" + "fetchSpec": "^1.4.0" }, "_requiredBy": [ "/@octokit/request", @@ -29,8 +23,9 @@ "/pump" ], "_resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "_spec": "1.4.0", - "_where": "/Users/rachmari/github-repos/hello-world-javascript-action", + "_shasum": "583b1aa775961d4b113ac17d9c50baef9dd76bd1", + "_spec": "once@^1.4.0", + "_where": "/Users/rachmari/github-repos/hello-world-javascript-action/node_modules/@octokit/request", "author": { "name": "Isaac Z. Schlueter", "email": "i@izs.me", @@ -39,9 +34,11 @@ "bugs": { "url": "https://github.com/isaacs/once/issues" }, + "bundleDependencies": false, "dependencies": { "wrappy": "1" }, + "deprecated": false, "description": "Run a function exactly one time", "devDependencies": { "tap": "^7.0.1" diff --git a/node_modules/os-name/package.json b/node_modules/os-name/package.json index 38bfa3f..3f93099 100644 --- a/node_modules/os-name/package.json +++ b/node_modules/os-name/package.json @@ -1,25 +1,19 @@ { - "_args": [ - [ - "os-name@3.1.0", - "/Users/rachmari/github-repos/hello-world-javascript-action" - ] - ], - "_from": "os-name@3.1.0", + "_from": "os-name@^3.1.0", "_id": "os-name@3.1.0", "_inBundle": false, "_integrity": "sha512-h8L+8aNjNcMpo/mAIBPn5PXCM16iyPGjHNWo6U1YO8sJTMHtEtyczI6QJnLoplswm6goopQkqc7OAnjhWcugVg==", "_location": "/os-name", "_phantomChildren": {}, "_requested": { - "type": "version", + "type": "range", "registry": true, - "raw": "os-name@3.1.0", + "raw": "os-name@^3.1.0", "name": "os-name", "escapedName": "os-name", - "rawSpec": "3.1.0", + "rawSpec": "^3.1.0", "saveSpec": null, - "fetchSpec": "3.1.0" + "fetchSpec": "^3.1.0" }, "_requiredBy": [ "/@octokit/endpoint/universal-user-agent", @@ -28,8 +22,9 @@ "/universal-user-agent" ], "_resolved": "https://registry.npmjs.org/os-name/-/os-name-3.1.0.tgz", - "_spec": "3.1.0", - "_where": "/Users/rachmari/github-repos/hello-world-javascript-action", + "_shasum": "dec19d966296e1cd62d701a5a66ee1ddeae70801", + "_spec": "os-name@^3.1.0", + "_where": "/Users/rachmari/github-repos/hello-world-javascript-action/node_modules/@octokit/endpoint/node_modules/universal-user-agent", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", @@ -38,10 +33,12 @@ "bugs": { "url": "https://github.com/sindresorhus/os-name/issues" }, + "bundleDependencies": false, "dependencies": { "macos-release": "^2.2.0", "windows-release": "^3.1.0" }, + "deprecated": false, "description": "Get the name of the current operating system. Example: macOS Sierra", "devDependencies": { "@types/node": "^11.13.0", diff --git a/node_modules/p-finally/package.json b/node_modules/p-finally/package.json index 9b32f9e..48f7a67 100644 --- a/node_modules/p-finally/package.json +++ b/node_modules/p-finally/package.json @@ -1,32 +1,27 @@ { - "_args": [ - [ - "p-finally@1.0.0", - "/Users/rachmari/github-repos/hello-world-javascript-action" - ] - ], - "_from": "p-finally@1.0.0", + "_from": "p-finally@^1.0.0", "_id": "p-finally@1.0.0", "_inBundle": false, "_integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=", "_location": "/p-finally", "_phantomChildren": {}, "_requested": { - "type": "version", + "type": "range", "registry": true, - "raw": "p-finally@1.0.0", + "raw": "p-finally@^1.0.0", "name": "p-finally", "escapedName": "p-finally", - "rawSpec": "1.0.0", + "rawSpec": "^1.0.0", "saveSpec": null, - "fetchSpec": "1.0.0" + "fetchSpec": "^1.0.0" }, "_requiredBy": [ "/execa" ], "_resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", - "_spec": "1.0.0", - "_where": "/Users/rachmari/github-repos/hello-world-javascript-action", + "_shasum": "3fbcfb15b899a44123b34b6dcc18b724336a2cae", + "_spec": "p-finally@^1.0.0", + "_where": "/Users/rachmari/github-repos/hello-world-javascript-action/node_modules/execa", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", @@ -35,6 +30,8 @@ "bugs": { "url": "https://github.com/sindresorhus/p-finally/issues" }, + "bundleDependencies": false, + "deprecated": false, "description": "`Promise#finally()` ponyfill - Invoked when the promise is settled regardless of outcome", "devDependencies": { "ava": "*", diff --git a/node_modules/path-key/package.json b/node_modules/path-key/package.json index 6f4a69d..817e991 100644 --- a/node_modules/path-key/package.json +++ b/node_modules/path-key/package.json @@ -1,33 +1,28 @@ { - "_args": [ - [ - "path-key@2.0.1", - "/Users/rachmari/github-repos/hello-world-javascript-action" - ] - ], - "_from": "path-key@2.0.1", + "_from": "path-key@^2.0.1", "_id": "path-key@2.0.1", "_inBundle": false, "_integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=", "_location": "/path-key", "_phantomChildren": {}, "_requested": { - "type": "version", + "type": "range", "registry": true, - "raw": "path-key@2.0.1", + "raw": "path-key@^2.0.1", "name": "path-key", "escapedName": "path-key", - "rawSpec": "2.0.1", + "rawSpec": "^2.0.1", "saveSpec": null, - "fetchSpec": "2.0.1" + "fetchSpec": "^2.0.1" }, "_requiredBy": [ "/cross-spawn", "/npm-run-path" ], "_resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", - "_spec": "2.0.1", - "_where": "/Users/rachmari/github-repos/hello-world-javascript-action", + "_shasum": "411cadb574c5a140d3a4b1910d40d80cc9f40b40", + "_spec": "path-key@^2.0.1", + "_where": "/Users/rachmari/github-repos/hello-world-javascript-action/node_modules/cross-spawn", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", @@ -36,6 +31,8 @@ "bugs": { "url": "https://github.com/sindresorhus/path-key/issues" }, + "bundleDependencies": false, + "deprecated": false, "description": "Get the PATH environment variable key cross-platform", "devDependencies": { "ava": "*", diff --git a/node_modules/pump/package.json b/node_modules/pump/package.json index 5008127..cc8a8f4 100644 --- a/node_modules/pump/package.json +++ b/node_modules/pump/package.json @@ -1,32 +1,27 @@ { - "_args": [ - [ - "pump@3.0.0", - "/Users/rachmari/github-repos/hello-world-javascript-action" - ] - ], - "_from": "pump@3.0.0", + "_from": "pump@^3.0.0", "_id": "pump@3.0.0", "_inBundle": false, "_integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", "_location": "/pump", "_phantomChildren": {}, "_requested": { - "type": "version", + "type": "range", "registry": true, - "raw": "pump@3.0.0", + "raw": "pump@^3.0.0", "name": "pump", "escapedName": "pump", - "rawSpec": "3.0.0", + "rawSpec": "^3.0.0", "saveSpec": null, - "fetchSpec": "3.0.0" + "fetchSpec": "^3.0.0" }, "_requiredBy": [ "/get-stream" ], "_resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", - "_spec": "3.0.0", - "_where": "/Users/rachmari/github-repos/hello-world-javascript-action", + "_shasum": "b4a2116815bde2f4e1ea602354e8c75565107a64", + "_spec": "pump@^3.0.0", + "_where": "/Users/rachmari/github-repos/hello-world-javascript-action/node_modules/get-stream", "author": { "name": "Mathias Buus Madsen", "email": "mathiasbuus@gmail.com" @@ -37,10 +32,12 @@ "bugs": { "url": "https://github.com/mafintosh/pump/issues" }, + "bundleDependencies": false, "dependencies": { "end-of-stream": "^1.1.0", "once": "^1.3.1" }, + "deprecated": false, "description": "pipe streams together and close all of them if one of them closes", "homepage": "https://github.com/mafintosh/pump#readme", "keywords": [ diff --git a/node_modules/semver/README.md b/node_modules/semver/README.md index e5ccece..f8dfa5a 100644 --- a/node_modules/semver/README.md +++ b/node_modules/semver/README.md @@ -398,14 +398,15 @@ range, use the `satisfies(version, range)` function. * `coerce(version)`: Coerces a string to semver if possible -This aims to provide a very forgiving translation of a non-semver -string to semver. It looks for the first digit in a string, and -consumes all remaining characters which satisfy at least a partial semver -(e.g., `1`, `1.2`, `1.2.3`) up to the max permitted length (256 characters). -Longer versions are simply truncated (`4.6.3.9.2-alpha2` becomes `4.6.3`). -All surrounding text is simply ignored (`v3.4 replaces v3.3.1` becomes `3.4.0`). -Only text which lacks digits will fail coercion (`version one` is not valid). -The maximum length for any semver component considered for coercion is 16 characters; -longer components will be ignored (`10000000000000000.4.7.4` becomes `4.7.4`). -The maximum value for any semver component is `Integer.MAX_SAFE_INTEGER || (2**53 - 1)`; -higher value components are invalid (`9999999999999999.4.7.4` is likely invalid). +This aims to provide a very forgiving translation of a non-semver string to +semver. It looks for the first digit in a string, and consumes all +remaining characters which satisfy at least a partial semver (e.g., `1`, +`1.2`, `1.2.3`) up to the max permitted length (256 characters). Longer +versions are simply truncated (`4.6.3.9.2-alpha2` becomes `4.6.3`). All +surrounding text is simply ignored (`v3.4 replaces v3.3.1` becomes +`3.4.0`). Only text which lacks digits will fail coercion (`version one` +is not valid). The maximum length for any semver component considered for +coercion is 16 characters; longer components will be ignored +(`10000000000000000.4.7.4` becomes `4.7.4`). The maximum value for any +semver component is `Number.MAX_SAFE_INTEGER || (2**53 - 1)`; higher value +components are invalid (`9999999999999999.4.7.4` is likely invalid). diff --git a/node_modules/semver/package.json b/node_modules/semver/package.json index d1f2b1e..2ec617c 100644 --- a/node_modules/semver/package.json +++ b/node_modules/semver/package.json @@ -1,38 +1,35 @@ { - "_args": [ - [ - "semver@5.7.0", - "/Users/rachmari/github-repos/hello-world-javascript-action" - ] - ], - "_from": "semver@5.7.0", - "_id": "semver@5.7.0", + "_from": "semver@^5.5.0", + "_id": "semver@5.7.1", "_inBundle": false, - "_integrity": "sha512-Ya52jSX2u7QKghxeoFGpLwCtGlt7j0oY9DYb5apt9nPlJ42ID+ulTXESnt/qAQcoSERyZ5sl3LDIOw0nAn/5DA==", + "_integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", "_location": "/semver", "_phantomChildren": {}, "_requested": { - "type": "version", + "type": "range", "registry": true, - "raw": "semver@5.7.0", + "raw": "semver@^5.5.0", "name": "semver", "escapedName": "semver", - "rawSpec": "5.7.0", + "rawSpec": "^5.5.0", "saveSpec": null, - "fetchSpec": "5.7.0" + "fetchSpec": "^5.5.0" }, "_requiredBy": [ "/cross-spawn" ], - "_resolved": "https://registry.npmjs.org/semver/-/semver-5.7.0.tgz", - "_spec": "5.7.0", - "_where": "/Users/rachmari/github-repos/hello-world-javascript-action", + "_resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "_shasum": "a954f931aeba508d307bbf069eff0c01c96116f7", + "_spec": "semver@^5.5.0", + "_where": "/Users/rachmari/github-repos/hello-world-javascript-action/node_modules/cross-spawn", "bin": { "semver": "./bin/semver" }, "bugs": { "url": "https://github.com/npm/node-semver/issues" }, + "bundleDependencies": false, + "deprecated": false, "description": "The semantic version parser used by npm.", "devDependencies": { "tap": "^13.0.0-rc.18" @@ -59,5 +56,5 @@ "tap": { "check-coverage": true }, - "version": "5.7.0" + "version": "5.7.1" } diff --git a/node_modules/shebang-command/package.json b/node_modules/shebang-command/package.json index d2ac5b0..7270606 100644 --- a/node_modules/shebang-command/package.json +++ b/node_modules/shebang-command/package.json @@ -1,32 +1,27 @@ { - "_args": [ - [ - "shebang-command@1.2.0", - "/Users/rachmari/github-repos/hello-world-javascript-action" - ] - ], - "_from": "shebang-command@1.2.0", + "_from": "shebang-command@^1.2.0", "_id": "shebang-command@1.2.0", "_inBundle": false, "_integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", "_location": "/shebang-command", "_phantomChildren": {}, "_requested": { - "type": "version", + "type": "range", "registry": true, - "raw": "shebang-command@1.2.0", + "raw": "shebang-command@^1.2.0", "name": "shebang-command", "escapedName": "shebang-command", - "rawSpec": "1.2.0", + "rawSpec": "^1.2.0", "saveSpec": null, - "fetchSpec": "1.2.0" + "fetchSpec": "^1.2.0" }, "_requiredBy": [ "/cross-spawn" ], "_resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", - "_spec": "1.2.0", - "_where": "/Users/rachmari/github-repos/hello-world-javascript-action", + "_shasum": "44aac65b695b03398968c39f363fee5deafdf1ea", + "_spec": "shebang-command@^1.2.0", + "_where": "/Users/rachmari/github-repos/hello-world-javascript-action/node_modules/cross-spawn", "author": { "name": "Kevin Martensson", "email": "kevinmartensson@gmail.com", @@ -35,9 +30,11 @@ "bugs": { "url": "https://github.com/kevva/shebang-command/issues" }, + "bundleDependencies": false, "dependencies": { "shebang-regex": "^1.0.0" }, + "deprecated": false, "description": "Get the command from a shebang", "devDependencies": { "ava": "*", diff --git a/node_modules/shebang-regex/package.json b/node_modules/shebang-regex/package.json index 2aade46..a708efe 100644 --- a/node_modules/shebang-regex/package.json +++ b/node_modules/shebang-regex/package.json @@ -1,32 +1,27 @@ { - "_args": [ - [ - "shebang-regex@1.0.0", - "/Users/rachmari/github-repos/hello-world-javascript-action" - ] - ], - "_from": "shebang-regex@1.0.0", + "_from": "shebang-regex@^1.0.0", "_id": "shebang-regex@1.0.0", "_inBundle": false, "_integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=", "_location": "/shebang-regex", "_phantomChildren": {}, "_requested": { - "type": "version", + "type": "range", "registry": true, - "raw": "shebang-regex@1.0.0", + "raw": "shebang-regex@^1.0.0", "name": "shebang-regex", "escapedName": "shebang-regex", - "rawSpec": "1.0.0", + "rawSpec": "^1.0.0", "saveSpec": null, - "fetchSpec": "1.0.0" + "fetchSpec": "^1.0.0" }, "_requiredBy": [ "/shebang-command" ], "_resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", - "_spec": "1.0.0", - "_where": "/Users/rachmari/github-repos/hello-world-javascript-action", + "_shasum": "da42f49740c0b42db2ca9728571cb190c98efea3", + "_spec": "shebang-regex@^1.0.0", + "_where": "/Users/rachmari/github-repos/hello-world-javascript-action/node_modules/shebang-command", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", @@ -35,6 +30,8 @@ "bugs": { "url": "https://github.com/sindresorhus/shebang-regex/issues" }, + "bundleDependencies": false, + "deprecated": false, "description": "Regular expression for matching a shebang", "devDependencies": { "ava": "0.0.4" diff --git a/node_modules/signal-exit/package.json b/node_modules/signal-exit/package.json index d225504..8cf2c77 100644 --- a/node_modules/signal-exit/package.json +++ b/node_modules/signal-exit/package.json @@ -1,32 +1,27 @@ { - "_args": [ - [ - "signal-exit@3.0.2", - "/Users/rachmari/github-repos/hello-world-javascript-action" - ] - ], - "_from": "signal-exit@3.0.2", + "_from": "signal-exit@^3.0.0", "_id": "signal-exit@3.0.2", "_inBundle": false, "_integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", "_location": "/signal-exit", "_phantomChildren": {}, "_requested": { - "type": "version", + "type": "range", "registry": true, - "raw": "signal-exit@3.0.2", + "raw": "signal-exit@^3.0.0", "name": "signal-exit", "escapedName": "signal-exit", - "rawSpec": "3.0.2", + "rawSpec": "^3.0.0", "saveSpec": null, - "fetchSpec": "3.0.2" + "fetchSpec": "^3.0.0" }, "_requiredBy": [ "/execa" ], "_resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", - "_spec": "3.0.2", - "_where": "/Users/rachmari/github-repos/hello-world-javascript-action", + "_shasum": "b5fdc08f1287ea1178628e415e25132b73646c6d", + "_spec": "signal-exit@^3.0.0", + "_where": "/Users/rachmari/github-repos/hello-world-javascript-action/node_modules/execa", "author": { "name": "Ben Coe", "email": "ben@npmjs.com" @@ -34,6 +29,8 @@ "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.", "devDependencies": { "chai": "^3.5.0", diff --git a/node_modules/strip-eof/package.json b/node_modules/strip-eof/package.json index c7f5dec..418e695 100644 --- a/node_modules/strip-eof/package.json +++ b/node_modules/strip-eof/package.json @@ -1,32 +1,27 @@ { - "_args": [ - [ - "strip-eof@1.0.0", - "/Users/rachmari/github-repos/hello-world-javascript-action" - ] - ], - "_from": "strip-eof@1.0.0", + "_from": "strip-eof@^1.0.0", "_id": "strip-eof@1.0.0", "_inBundle": false, "_integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=", "_location": "/strip-eof", "_phantomChildren": {}, "_requested": { - "type": "version", + "type": "range", "registry": true, - "raw": "strip-eof@1.0.0", + "raw": "strip-eof@^1.0.0", "name": "strip-eof", "escapedName": "strip-eof", - "rawSpec": "1.0.0", + "rawSpec": "^1.0.0", "saveSpec": null, - "fetchSpec": "1.0.0" + "fetchSpec": "^1.0.0" }, "_requiredBy": [ "/execa" ], "_resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", - "_spec": "1.0.0", - "_where": "/Users/rachmari/github-repos/hello-world-javascript-action", + "_shasum": "bb43ff5598a6eb05d89b59fcd129c983313606bf", + "_spec": "strip-eof@^1.0.0", + "_where": "/Users/rachmari/github-repos/hello-world-javascript-action/node_modules/execa", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", @@ -35,6 +30,8 @@ "bugs": { "url": "https://github.com/sindresorhus/strip-eof/issues" }, + "bundleDependencies": false, + "deprecated": false, "description": "Strip the End-Of-File (EOF) character from a string/buffer", "devDependencies": { "ava": "*", diff --git a/node_modules/universal-user-agent/package.json b/node_modules/universal-user-agent/package.json index 41e1fe1..1fa0a09 100644 --- a/node_modules/universal-user-agent/package.json +++ b/node_modules/universal-user-agent/package.json @@ -1,32 +1,27 @@ { - "_args": [ - [ - "universal-user-agent@2.1.0", - "/Users/rachmari/github-repos/hello-world-javascript-action" - ] - ], - "_from": "universal-user-agent@2.1.0", + "_from": "universal-user-agent@^2.0.3", "_id": "universal-user-agent@2.1.0", "_inBundle": false, "_integrity": "sha512-8itiX7G05Tu3mGDTdNY2fB4KJ8MgZLS54RdG6PkkfwMAavrXu1mV/lls/GABx9O3Rw4PnTtasxrvbMQoBYY92Q==", "_location": "/universal-user-agent", "_phantomChildren": {}, "_requested": { - "type": "version", + "type": "range", "registry": true, - "raw": "universal-user-agent@2.1.0", + "raw": "universal-user-agent@^2.0.3", "name": "universal-user-agent", "escapedName": "universal-user-agent", - "rawSpec": "2.1.0", + "rawSpec": "^2.0.3", "saveSpec": null, - "fetchSpec": "2.1.0" + "fetchSpec": "^2.0.3" }, "_requiredBy": [ "/@octokit/graphql" ], "_resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-2.1.0.tgz", - "_spec": "2.1.0", - "_where": "/Users/rachmari/github-repos/hello-world-javascript-action", + "_shasum": "5abfbcc036a1ba490cb941f8fd68c46d3669e8e4", + "_spec": "universal-user-agent@^2.0.3", + "_where": "/Users/rachmari/github-repos/hello-world-javascript-action/node_modules/@octokit/graphql", "author": { "name": "Gregor Martynus", "url": "https://github.com/gr2m" @@ -35,9 +30,11 @@ "bugs": { "url": "https://github.com/gr2m/universal-user-agent/issues" }, + "bundleDependencies": false, "dependencies": { "os-name": "^3.0.0" }, + "deprecated": false, "description": "Get a user agent string in both browser and node", "devDependencies": { "chai": "^4.1.2", diff --git a/node_modules/url-template/.gitmodules b/node_modules/url-template/.gitmodules deleted file mode 100644 index c7d8f42..0000000 --- a/node_modules/url-template/.gitmodules +++ /dev/null @@ -1,3 +0,0 @@ -[submodule "uritemplate-test"] - path = uritemplate-test - url = https://github.com/uri-templates/uritemplate-test diff --git a/node_modules/url-template/.npmignore b/node_modules/url-template/.npmignore deleted file mode 100644 index 096746c..0000000 --- a/node_modules/url-template/.npmignore +++ /dev/null @@ -1 +0,0 @@ -/node_modules/ \ No newline at end of file diff --git a/node_modules/url-template/LICENSE b/node_modules/url-template/LICENSE deleted file mode 100644 index 946d016..0000000 --- a/node_modules/url-template/LICENSE +++ /dev/null @@ -1,25 +0,0 @@ -Copyright (c) 2012-2014, Bram Stein -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions -are met: - - 1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - 3. The name of the author may not be used to endorse or promote products - derived from this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED -WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO -EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, -INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY -OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, -EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/node_modules/url-template/README.md b/node_modules/url-template/README.md deleted file mode 100644 index a22749d..0000000 --- a/node_modules/url-template/README.md +++ /dev/null @@ -1,32 +0,0 @@ -## A JavaScript URI template implementation - -This is a simple URI template implementation following the [RFC 6570 URI Template specification](http://tools.ietf.org/html/rfc6570). The implementation supports all levels defined in the specification and is extensively tested. - -## Installation - -For use with Node.js you can install it through npm: - - $ npm install url-template - -If you want to use it in a browser, copy `lib/url-template.js` into your project and use the global `urltemplate` instance. Alternatively you can use [Bower](http://bower.io/) to install this package: - - $ bower install url-template - -## Example - - var template = require('url-template'); - - ... - - var emailUrl = template.parse('/{email}/{folder}/{id}'); - - // Returns '/user@domain/test/42' - emailUrl.expand({ - email: 'user@domain', - folder: 'test', - id: 42 - }); - -## A note on error handling and reporting - -The RFC states that errors in the templates could optionally be handled and reported to the user. This implementation takes a slightly different approach in that it tries to do a best effort template expansion and leaves erroneous expressions in the returned URI instead of throwing errors. So for example, the incorrect expression `{unclosed` will return `{unclosed` as output. The leaves incorrect URLs to be handled by your URL library of choice. diff --git a/node_modules/url-template/lib/url-template.js b/node_modules/url-template/lib/url-template.js deleted file mode 100644 index 8d6aae1..0000000 --- a/node_modules/url-template/lib/url-template.js +++ /dev/null @@ -1,192 +0,0 @@ -(function (root, factory) { - if (typeof exports === 'object') { - module.exports = factory(); - } else if (typeof define === 'function' && define.amd) { - define([], factory); - } else { - root.urltemplate = factory(); - } -}(this, function () { - /** - * @constructor - */ - function UrlTemplate() { - } - - /** - * @private - * @param {string} str - * @return {string} - */ - UrlTemplate.prototype.encodeReserved = function (str) { - return str.split(/(%[0-9A-Fa-f]{2})/g).map(function (part) { - if (!/%[0-9A-Fa-f]/.test(part)) { - part = encodeURI(part).replace(/%5B/g, '[').replace(/%5D/g, ']'); - } - return part; - }).join(''); - }; - - /** - * @private - * @param {string} str - * @return {string} - */ - UrlTemplate.prototype.encodeUnreserved = function (str) { - return encodeURIComponent(str).replace(/[!'()*]/g, function (c) { - return '%' + c.charCodeAt(0).toString(16).toUpperCase(); - }); - } - - /** - * @private - * @param {string} operator - * @param {string} value - * @param {string} key - * @return {string} - */ - UrlTemplate.prototype.encodeValue = function (operator, value, key) { - value = (operator === '+' || operator === '#') ? this.encodeReserved(value) : this.encodeUnreserved(value); - - if (key) { - return this.encodeUnreserved(key) + '=' + value; - } else { - return value; - } - }; - - /** - * @private - * @param {*} value - * @return {boolean} - */ - UrlTemplate.prototype.isDefined = function (value) { - return value !== undefined && value !== null; - }; - - /** - * @private - * @param {string} - * @return {boolean} - */ - UrlTemplate.prototype.isKeyOperator = function (operator) { - return operator === ';' || operator === '&' || operator === '?'; - }; - - /** - * @private - * @param {Object} context - * @param {string} operator - * @param {string} key - * @param {string} modifier - */ - UrlTemplate.prototype.getValues = function (context, operator, key, modifier) { - var value = context[key], - result = []; - - if (this.isDefined(value) && value !== '') { - if (typeof value === 'string' || typeof value === 'number' || typeof value === 'boolean') { - value = value.toString(); - - if (modifier && modifier !== '*') { - value = value.substring(0, parseInt(modifier, 10)); - } - - result.push(this.encodeValue(operator, value, this.isKeyOperator(operator) ? key : null)); - } else { - if (modifier === '*') { - if (Array.isArray(value)) { - value.filter(this.isDefined).forEach(function (value) { - result.push(this.encodeValue(operator, value, this.isKeyOperator(operator) ? key : null)); - }, this); - } else { - Object.keys(value).forEach(function (k) { - if (this.isDefined(value[k])) { - result.push(this.encodeValue(operator, value[k], k)); - } - }, this); - } - } else { - var tmp = []; - - if (Array.isArray(value)) { - value.filter(this.isDefined).forEach(function (value) { - tmp.push(this.encodeValue(operator, value)); - }, this); - } else { - Object.keys(value).forEach(function (k) { - if (this.isDefined(value[k])) { - tmp.push(this.encodeUnreserved(k)); - tmp.push(this.encodeValue(operator, value[k].toString())); - } - }, this); - } - - if (this.isKeyOperator(operator)) { - result.push(this.encodeUnreserved(key) + '=' + tmp.join(',')); - } else if (tmp.length !== 0) { - result.push(tmp.join(',')); - } - } - } - } else { - if (operator === ';') { - if (this.isDefined(value)) { - result.push(this.encodeUnreserved(key)); - } - } else if (value === '' && (operator === '&' || operator === '?')) { - result.push(this.encodeUnreserved(key) + '='); - } else if (value === '') { - result.push(''); - } - } - return result; - }; - - /** - * @param {string} template - * @return {function(Object):string} - */ - UrlTemplate.prototype.parse = function (template) { - var that = this; - var operators = ['+', '#', '.', '/', ';', '?', '&']; - - return { - expand: function (context) { - return template.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g, function (_, expression, literal) { - if (expression) { - var operator = null, - values = []; - - if (operators.indexOf(expression.charAt(0)) !== -1) { - operator = expression.charAt(0); - expression = expression.substr(1); - } - - expression.split(/,/g).forEach(function (variable) { - var tmp = /([^:\*]*)(?::(\d+)|(\*))?/.exec(variable); - values.push.apply(values, that.getValues(context, operator, tmp[1], tmp[2] || tmp[3])); - }); - - if (operator && operator !== '+') { - var separator = ','; - - if (operator === '?') { - separator = '&'; - } else if (operator !== '#') { - separator = operator; - } - return (values.length !== 0 ? operator : '') + values.join(separator); - } else { - return values.join(','); - } - } else { - return that.encodeReserved(literal); - } - }); - } - }; - }; - - return new UrlTemplate(); -})); diff --git a/node_modules/url-template/package.json b/node_modules/url-template/package.json deleted file mode 100644 index 0da77f8..0000000 --- a/node_modules/url-template/package.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "_args": [ - [ - "url-template@2.0.8", - "/Users/rachmari/github-repos/hello-world-javascript-action" - ] - ], - "_from": "url-template@2.0.8", - "_id": "url-template@2.0.8", - "_inBundle": false, - "_integrity": "sha1-/FZaPMy/93MMd19WQflVV5FDnyE=", - "_location": "/url-template", - "_phantomChildren": {}, - "_requested": { - "type": "version", - "registry": true, - "raw": "url-template@2.0.8", - "name": "url-template", - "escapedName": "url-template", - "rawSpec": "2.0.8", - "saveSpec": null, - "fetchSpec": "2.0.8" - }, - "_requiredBy": [ - "/@octokit/endpoint", - "/@octokit/rest" - ], - "_resolved": "https://registry.npmjs.org/url-template/-/url-template-2.0.8.tgz", - "_spec": "2.0.8", - "_where": "/Users/rachmari/github-repos/hello-world-javascript-action", - "author": { - "name": "Bram Stein", - "email": "b.l.stein@gmail.com", - "url": "http://www.bramstein.com" - }, - "bugs": { - "url": "https://github.com/bramstein/url-template/issues" - }, - "decription": "A URI template implementation (RFC 6570 compliant)", - "description": "This is a simple URI template implementation following the [RFC 6570 URI Template specification](http://tools.ietf.org/html/rfc6570). The implementation supports all levels defined in the specification and is extensively tested.", - "devDependencies": { - "expect.js": "=0.2.0", - "mocha": "=1.6.0" - }, - "directories": { - "lib": "./lib" - }, - "homepage": "https://github.com/bramstein/url-template#readme", - "keywords": [ - "uri-template", - "uri template", - "uri", - "url", - "rfc 6570", - "url template", - "url-template" - ], - "license": "BSD", - "main": "./lib/url-template.js", - "name": "url-template", - "repository": { - "type": "git", - "url": "git://github.com/bramstein/url-template.git" - }, - "scripts": { - "test": "mocha --reporter spec" - }, - "version": "2.0.8" -} diff --git a/node_modules/url-template/test/index.html b/node_modules/url-template/test/index.html deleted file mode 100644 index 727d63d..0000000 --- a/node_modules/url-template/test/index.html +++ /dev/null @@ -1,21 +0,0 @@ - - - - Mocha Tests - - - -
- - - - - - - - - - diff --git a/node_modules/url-template/test/uritemplate-test.js b/node_modules/url-template/test/uritemplate-test.js deleted file mode 100644 index ec12cb1..0000000 --- a/node_modules/url-template/test/uritemplate-test.js +++ /dev/null @@ -1,32 +0,0 @@ -var template, expect, examples; - -if (typeof require !== 'undefined') { - template = require('../lib/url-template.js'); - expect = require("expect.js"); - examples = require('../uritemplate-test/spec-examples-by-section.json'); -} else { - template = window.urltemplate; - expect = window.expect; - examples = window.examples; -} - -function createTestContext(c) { - return function (t, r) { - if (typeof r === 'string') { - expect(template.parse(t).expand(c)).to.eql(r); - } else { - expect(r.indexOf(template.parse(t).expand(c)) >= 0).to.be.ok(); - } - }; -} - -describe('spec-examples', function () { - Object.keys(examples).forEach(function (section) { - var assert = createTestContext(examples[section].variables); - examples[section].testcases.forEach(function (testcase) { - it(section + ' ' + testcase[0], function () { - assert(testcase[0], testcase[1]); - }); - }); - }); -}); diff --git a/node_modules/url-template/test/url-template-test.js b/node_modules/url-template/test/url-template-test.js deleted file mode 100644 index d9ff457..0000000 --- a/node_modules/url-template/test/url-template-test.js +++ /dev/null @@ -1,373 +0,0 @@ -var template, expect; - -if (typeof require !== 'undefined') { - template = require('../lib/url-template.js'); - expect = require("expect.js"); -} else { - template = window.urltemplate; - expect = window.expect; -} - -function createTestContext(c) { - return function (t, r) { - expect(template.parse(t).expand(c)).to.eql(r); - }; -} - -describe('uri-template', function () { - describe('Level 1', function () { - var assert = createTestContext({ - 'var': 'value', - 'some.value': 'some', - 'some_value': 'value', - 'Some%20Thing': 'hello', - 'foo': 'bar', - 'hello': 'Hello World!', - 'bool': false, - 'toString': 'string', - 'number': 42, - 'float': 3.14, - 'undef': undefined, - 'null': null, - 'chars': 'šö䟜ñꀣ¥‡ÑÒÓÔÕÖ×ØÙÚàáâãäåæçÿü', - 'surrogatepairs': '\uD834\uDF06' - }); - - it('empty string', function () { - assert('', ''); - }); - - it('encodes non expressions correctly', function () { - assert('hello/world', 'hello/world'); - assert('Hello World!/{foo}', 'Hello%20World!/bar'); - assert(':/?#[]@!$&()*+,;=\'', ':/?#[]@!$&()*+,;=\''); - assert('%20', '%20'); - assert('%xyz', '%25xyz'); - assert('%', '%25'); - }); - - it('expand plain ASCII strings', function () { - assert('{var}', 'value'); - }); - - it('expand non-ASCII strings', function () { - assert('{chars}', '%C5%A1%C3%B6%C3%A4%C5%B8%C5%93%C3%B1%C3%AA%E2%82%AC%C2%A3%C2%A5%E2%80%A1%C3%91%C3%92%C3%93%C3%94%C3%95%C3%96%C3%97%C3%98%C3%99%C3%9A%C3%A0%C3%A1%C3%A2%C3%A3%C3%A4%C3%A5%C3%A6%C3%A7%C3%BF%C3%BC'); - }); - - it('expands and encodes surrogate pairs correctly', function () { - assert('{surrogatepairs}', '%F0%9D%8C%86'); - }); - - it('expand expressions with dot and underscore', function () { - assert('{some.value}', 'some'); - assert('{some_value}', 'value'); - }); - - it('expand expressions with encoding', function () { - assert('{Some%20Thing}', 'hello'); - }); - - it('expand expressions with reserved JavaScript names', function () { - assert('{toString}', 'string'); - }); - - it('expand variables that are not strings', function () { - assert('{number}', '42'); - assert('{float}', '3.14'); - assert('{bool}', 'false'); - }); - - it('expand variables that are undefined or null', function () { - assert('{undef}', ''); - assert('{null}', ''); - }); - - it('expand multiple values', function () { - assert('{var}/{foo}', 'value/bar'); - }); - - it('escape invalid characters correctly', function () { - assert('{hello}', 'Hello%20World%21'); - }); - }); - - describe('Level 2', function () { - var assert = createTestContext({ - 'var': 'value', - 'hello': 'Hello World!', - 'path': '/foo/bar' - }); - - it('reserved expansion of basic strings', function () { - assert('{+var}', 'value'); - assert('{+hello}', 'Hello%20World!'); - }); - - it('preserves paths', function() { - assert('{+path}/here', '/foo/bar/here'); - assert('here?ref={+path}', 'here?ref=/foo/bar'); - }); - }); - - describe('Level 3', function () { - var assert = createTestContext({ - 'var' : 'value', - 'hello' : 'Hello World!', - 'empty' : '', - 'path' : '/foo/bar', - 'x' : '1024', - 'y' : '768' - }); - - it('variables without an operator', function () { - assert('map?{x,y}', 'map?1024,768'); - assert('{x,hello,y}', '1024,Hello%20World%21,768'); - }); - - it('variables with the reserved expansion operator', function () { - assert('{+x,hello,y}', '1024,Hello%20World!,768'); - assert('{+path,x}/here', '/foo/bar,1024/here'); - }); - - it('variables with the fragment expansion operator', function () { - assert('{#x,hello,y}', '#1024,Hello%20World!,768'); - assert('{#path,x}/here', '#/foo/bar,1024/here'); - }); - - it('variables with the dot operator', function () { - assert('X{.var}', 'X.value'); - assert('X{.x,y}', 'X.1024.768'); - }); - - it('variables with the path operator', function () { - assert('{/var}', '/value'); - assert('{/var,x}/here', '/value/1024/here'); - }); - - it('variables with the parameter operator', function () { - assert('{;x,y}', ';x=1024;y=768'); - assert('{;x,y,empty}', ';x=1024;y=768;empty'); - }); - - it('variables with the query operator', function () { - assert('{?x,y}', '?x=1024&y=768'); - assert('{?x,y,empty}', '?x=1024&y=768&empty='); - }); - - it('variables with the query continuation operator', function () { - assert('?fixed=yes{&x}', '?fixed=yes&x=1024'); - assert('{&x,y,empty}', '&x=1024&y=768&empty='); - }); - }); - - describe('Level 4', function () { - var assert = createTestContext({ - 'var': 'value', - 'hello': 'Hello World!', - 'path': '/foo/bar', - 'list': ['red', 'green', 'blue'], - 'keys': { - 'semi': ';', - 'dot': '.', - 'comma': ',' - }, - "chars": { - 'ü': 'ü' - }, - 'number': 2133, - 'emptystring': '', - 'emptylist': [], - 'emptyobject': {}, - 'undefinedlistitem': [1,,2], - 'undefinedobjectitem': { key: null, hello: 'world', 'empty': '', '': 'nothing' } - }); - - it('variable empty list', function () { - assert('{/emptylist}', ''); - assert('{/emptylist*}', ''); - assert('{?emptylist}', '?emptylist='); - assert('{?emptylist*}', ''); - }); - - it('variable empty object', function () { - assert('{/emptyobject}', ''); - assert('{/emptyobject*}', ''); - assert('{?emptyobject}', '?emptyobject='); - assert('{?emptyobject*}', ''); - }); - - it('variable undefined list item', function () { - assert('{undefinedlistitem}', '1,2'); - assert('{undefinedlistitem*}', '1,2'); - assert('{?undefinedlistitem*}', '?undefinedlistitem=1&undefinedlistitem=2'); - }); - - it('variable undefined object item', function () { - assert('{undefinedobjectitem}', 'hello,world,empty,,,nothing'); - assert('{undefinedobjectitem*}', 'hello=world,empty=,nothing'); - }); - - it('variable empty string', function () { - assert('{emptystring}', ''); - assert('{+emptystring}', ''); - assert('{#emptystring}', '#'); - assert('{.emptystring}', '.'); - assert('{/emptystring}', '/'); - assert('{;emptystring}', ';emptystring'); - assert('{?emptystring}', '?emptystring='); - assert('{&emptystring}', '&emptystring='); - }); - - it('variable modifiers prefix', function () { - assert('{var:3}', 'val'); - assert('{var:30}', 'value'); - assert('{+path:6}/here', '/foo/b/here'); - assert('{#path:6}/here', '#/foo/b/here'); - assert('X{.var:3}', 'X.val'); - assert('{/var:1,var}', '/v/value'); - assert('{;hello:5}', ';hello=Hello'); - assert('{?var:3}', '?var=val'); - assert('{&var:3}', '&var=val'); - }); - - it('variable modifier prefix converted to string', function () { - assert('{number:3}', '213'); - }); - - it('variable list expansion', function () { - assert('{list}', 'red,green,blue'); - assert('{+list}', 'red,green,blue'); - assert('{#list}', '#red,green,blue'); - assert('{/list}', '/red,green,blue'); - assert('{;list}', ';list=red,green,blue'); - assert('{.list}', '.red,green,blue'); - assert('{?list}', '?list=red,green,blue'); - assert('{&list}', '&list=red,green,blue'); - }); - - it('variable associative array expansion', function () { - assert('{keys}', 'semi,%3B,dot,.,comma,%2C'); - assert('{keys*}', 'semi=%3B,dot=.,comma=%2C'); - assert('{+keys}', 'semi,;,dot,.,comma,,'); - assert('{#keys}', '#semi,;,dot,.,comma,,'); - assert('{.keys}', '.semi,%3B,dot,.,comma,%2C'); - assert('{/keys}', '/semi,%3B,dot,.,comma,%2C'); - assert('{;keys}', ';keys=semi,%3B,dot,.,comma,%2C'); - assert('{?keys}', '?keys=semi,%3B,dot,.,comma,%2C'); - assert('{&keys}', '&keys=semi,%3B,dot,.,comma,%2C'); - }); - - it('variable list explode', function () { - assert('{list*}', 'red,green,blue'); - assert('{+list*}', 'red,green,blue'); - assert('{#list*}', '#red,green,blue'); - assert('{/list*}', '/red/green/blue'); - assert('{;list*}', ';list=red;list=green;list=blue'); - assert('{.list*}', '.red.green.blue'); - assert('{?list*}', '?list=red&list=green&list=blue'); - assert('{&list*}', '&list=red&list=green&list=blue'); - - assert('{/list*,path:4}', '/red/green/blue/%2Ffoo'); - }); - - it('variable associative array explode', function () { - assert('{+keys*}', 'semi=;,dot=.,comma=,'); - assert('{#keys*}', '#semi=;,dot=.,comma=,'); - assert('{/keys*}', '/semi=%3B/dot=./comma=%2C'); - assert('{;keys*}', ';semi=%3B;dot=.;comma=%2C'); - assert('{?keys*}', '?semi=%3B&dot=.&comma=%2C'); - assert('{&keys*}', '&semi=%3B&dot=.&comma=%2C') - }); - - it('encodes associative arrays correctly', function () { - assert('{chars*}', '%C3%BC=%C3%BC'); - }); - }); - - describe('Encoding', function () { - var assert = createTestContext({ - restricted: ":/?#[]@!$&()*+,;='", - percent: '%', - encoded: '%25', - 'pctencoded%20name': '', - mapWithEncodedName: { - 'encoded%20name': '' - }, - mapWithRestrictedName: { - 'restricted=name': '' - }, - mapWidthUmlautName: { - 'ümlaut': '' - } - }); - - it('passes through percent encoded values', function () { - assert('{percent}', '%25'); - assert('{+encoded}', '%25'); - }); - - it('encodes restricted characters correctly', function () { - assert('{restricted}', '%3A%2F%3F%23%5B%5D%40%21%24%26%28%29%2A%2B%2C%3B%3D%27'); - assert('{+restricted}', ':/?#[]@!$&()*+,;=\''); - assert('{#restricted}', '#:/?#[]@!$&()*+,;=\''); - assert('{/restricted}', '/%3A%2F%3F%23%5B%5D%40%21%24%26%28%29%2A%2B%2C%3B%3D%27'); - assert('{;restricted}', ';restricted=%3A%2F%3F%23%5B%5D%40%21%24%26%28%29%2A%2B%2C%3B%3D%27'); - assert('{.restricted}', '.%3A%2F%3F%23%5B%5D%40%21%24%26%28%29%2A%2B%2C%3B%3D%27'); - assert('{?restricted}', '?restricted=%3A%2F%3F%23%5B%5D%40%21%24%26%28%29%2A%2B%2C%3B%3D%27'); - assert('{&restricted}', '&restricted=%3A%2F%3F%23%5B%5D%40%21%24%26%28%29%2A%2B%2C%3B%3D%27'); - }); - }); - describe('Error handling (or the lack thereof)', function () { - var assert = createTestContext({ - foo: 'test', - keys: { - foo: 'bar' - } - }); - - it('does not expand invalid expressions', function () { - assert('{test', '{test'); - assert('test}', 'test}'); - assert('{{test}}', '{}'); // TODO: Is this acceptable? - }); - - it('does not expand with incorrect operators', function () { - assert('{@foo}', ''); // TODO: This will try to match a variable called `@foo` which will fail because it is not in our context. We could catch this by ignoring reserved operators? - assert('{$foo}', ''); // TODO: Same story, but $ is not a reserved operator. - assert('{++foo}', ''); - }); - - it('ignores incorrect prefixes', function () { - assert('{foo:test}', 'test'); // TODO: Invalid prefixes are ignored. We could throw an error. - assert('{foo:2test}', 'te'); // TODO: Best effort is OK? - }); - - it('prefix applied to the wrong context', function () { - assert('{keys:1}', 'foo,bar'); - }); - }); - describe('Skipping undefined arguments', function () { - var assert = createTestContext({ - 'var': 'value', - 'number': 2133, - 'emptystring': '', - 'emptylist': [], - 'emptyobject': {}, - 'undefinedlistitem': [1,,2], - }); - it('variable undefined list item', function () { - assert('{undefinedlistitem}', '1,2'); - assert('{undefinedlistitem*}', '1,2'); - assert('{?undefinedlistitem*}', '?undefinedlistitem=1&undefinedlistitem=2'); - }); - - it('query with empty/undefined arguments', function () { - assert('{?var,number}', '?var=value&number=2133'); - assert('{?undef}', ''); - assert('{?emptystring}', '?emptystring='); - assert('{?emptylist}', '?emptylist='); - assert('{?emptyobject}', '?emptyobject='); - assert('{?undef,var,emptystring}', '?var=value&emptystring='); - }); - }); -}); diff --git a/node_modules/url-template/uritemplate-test/README.md b/node_modules/url-template/uritemplate-test/README.md deleted file mode 100644 index 3eb519d..0000000 --- a/node_modules/url-template/uritemplate-test/README.md +++ /dev/null @@ -1,90 +0,0 @@ - -URI Template Tests -================== - -This is a set of tests for implementations of -[RFC6570](http://tools.ietf.org/html/rfc6570) - URI Template. It is designed -to be reused by any implementation, to improve interoperability and -implementation quality. - -If your project uses Git for version control, you can make uritemplate-tests into a [submodule](http://help.github.com/submodules/). - -Test Format ------------ - -Each test file is a [JSON](http://tools.ietf.org/html/RFC6627) document -containing an object whose properties are groups of related tests. -Alternatively, all tests are available in XML as well, with the XML files -being generated by transform-json-tests.xslt which uses json2xml.xslt as a -general-purpose JSON-to-XML parsing library. - -Each group, in turn, is an object with three children: - -* level - the level of the tests covered, as per the RFC (optional; if absent, - assume level 4). -* variables - an object representing the variables that are available to the - tests in the suite -* testcases - a list of testcases, where each case is a two-member list, the - first being the template, the second being the result of expanding the - template with the provided variables. - -Note that the result string can be a few different things: - -* string - if the second member is a string, the result of expansion is - expected to match it, character-for-character. -* list - if the second member is a list of strings, the result of expansion - is expected to match one of them; this allows for templates that can - expand into different, equally-acceptable URIs. -* false - if the second member is boolean false, expansion is expected to - fail (i.e., the template was invalid). - -For example: - - { - "Level 1 Examples" : - { - "level": 1, - "variables": { - "var" : "value", - "hello" : "Hello World!" - }, - "testcases" : [ - ["{var}", "value"], - ["{hello}", "Hello%20World%21"] - ] - } - } - - -Tests Included --------------- - -The following test files are included: - -* spec-examples.json - The complete set of example templates from the RFC -* spec-examples-by-section.json - The examples, section by section -* extended-tests.json - more complex test cases -* negative-tests.json - invalid templates - -For all these test files, XML versions with the names *.xml can be -generated with the transform-json-tests.xslt XSLT stylesheet. The XSLT -contains the names of the above test files as a parameter, and can be -started with any XML as input (i.e., the XML input is ignored). - -License -------- - - Copyright 2011-2012 The Authors - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - diff --git a/node_modules/url-template/uritemplate-test/extended-tests.json b/node_modules/url-template/uritemplate-test/extended-tests.json deleted file mode 100644 index fd69744..0000000 --- a/node_modules/url-template/uritemplate-test/extended-tests.json +++ /dev/null @@ -1,118 +0,0 @@ -{ - "Additional Examples 1":{ - "level":4, - "variables":{ - "id" : "person", - "token" : "12345", - "fields" : ["id", "name", "picture"], - "format" : "json", - "q" : "URI Templates", - "page" : "5", - "lang" : "en", - "geocode" : ["37.76","-122.427"], - "first_name" : "John", - "last.name" : "Doe", - "Some%20Thing" : "foo", - "number" : 6, - "long" : 37.76, - "lat" : -122.427, - "group_id" : "12345", - "query" : "PREFIX dc: SELECT ?book ?who WHERE { ?book dc:creator ?who }", - "uri" : "http://example.org/?uri=http%3A%2F%2Fexample.org%2F", - "word" : "drücken", - "Stra%C3%9Fe" : "Grüner Weg", - "random" : "šö䟜ñꀣ¥‡ÑÒÓÔÕÖ×ØÙÚàáâãäåæçÿ", - "assoc_special_chars" : - { "šö䟜ñꀣ¥‡ÑÒÓÔÕ" : "Ö×ØÙÚàáâãäåæçÿ" } - }, - "testcases":[ - - [ "{/id*}" , "/person" ], - [ "{/id*}{?fields,first_name,last.name,token}" , [ - "/person?fields=id,name,picture&first_name=John&last.name=Doe&token=12345", - "/person?fields=id,picture,name&first_name=John&last.name=Doe&token=12345", - "/person?fields=picture,name,id&first_name=John&last.name=Doe&token=12345", - "/person?fields=picture,id,name&first_name=John&last.name=Doe&token=12345", - "/person?fields=name,picture,id&first_name=John&last.name=Doe&token=12345", - "/person?fields=name,id,picture&first_name=John&last.name=Doe&token=12345"] - ], - ["/search.{format}{?q,geocode,lang,locale,page,result_type}", - [ "/search.json?q=URI%20Templates&geocode=37.76,-122.427&lang=en&page=5", - "/search.json?q=URI%20Templates&geocode=-122.427,37.76&lang=en&page=5"] - ], - ["/test{/Some%20Thing}", "/test/foo" ], - ["/set{?number}", "/set?number=6"], - ["/loc{?long,lat}" , "/loc?long=37.76&lat=-122.427"], - ["/base{/group_id,first_name}/pages{/page,lang}{?format,q}","/base/12345/John/pages/5/en?format=json&q=URI%20Templates"], - ["/sparql{?query}", "/sparql?query=PREFIX%20dc%3A%20%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Felements%2F1.1%2F%3E%20SELECT%20%3Fbook%20%3Fwho%20WHERE%20%7B%20%3Fbook%20dc%3Acreator%20%3Fwho%20%7D"], - ["/go{?uri}", "/go?uri=http%3A%2F%2Fexample.org%2F%3Furi%3Dhttp%253A%252F%252Fexample.org%252F"], - ["/service{?word}", "/service?word=dr%C3%BCcken"], - ["/lookup{?Stra%C3%9Fe}", "/lookup?Stra%C3%9Fe=Gr%C3%BCner%20Weg"], - ["{random}" , "%C5%A1%C3%B6%C3%A4%C5%B8%C5%93%C3%B1%C3%AA%E2%82%AC%C2%A3%C2%A5%E2%80%A1%C3%91%C3%92%C3%93%C3%94%C3%95%C3%96%C3%97%C3%98%C3%99%C3%9A%C3%A0%C3%A1%C3%A2%C3%A3%C3%A4%C3%A5%C3%A6%C3%A7%C3%BF"], - ["{?assoc_special_chars*}", "?%C5%A1%C3%B6%C3%A4%C5%B8%C5%93%C3%B1%C3%AA%E2%82%AC%C2%A3%C2%A5%E2%80%A1%C3%91%C3%92%C3%93%C3%94%C3%95=%C3%96%C3%97%C3%98%C3%99%C3%9A%C3%A0%C3%A1%C3%A2%C3%A3%C3%A4%C3%A5%C3%A6%C3%A7%C3%BF"] - ] - }, - "Additional Examples 2":{ - "level":4, - "variables":{ - "id" : ["person","albums"], - "token" : "12345", - "fields" : ["id", "name", "picture"], - "format" : "atom", - "q" : "URI Templates", - "page" : "10", - "start" : "5", - "lang" : "en", - "geocode" : ["37.76","-122.427"] - }, - "testcases":[ - - [ "{/id*}" , ["/person/albums","/albums/person"] ], - [ "{/id*}{?fields,token}" , [ - "/person/albums?fields=id,name,picture&token=12345", - "/person/albums?fields=id,picture,name&token=12345", - "/person/albums?fields=picture,name,id&token=12345", - "/person/albums?fields=picture,id,name&token=12345", - "/person/albums?fields=name,picture,id&token=12345", - "/person/albums?fields=name,id,picture&token=12345", - "/albums/person?fields=id,name,picture&token=12345", - "/albums/person?fields=id,picture,name&token=12345", - "/albums/person?fields=picture,name,id&token=12345", - "/albums/person?fields=picture,id,name&token=12345", - "/albums/person?fields=name,picture,id&token=12345", - "/albums/person?fields=name,id,picture&token=12345"] - ] - ] - }, - "Additional Examples 3: Empty Variables":{ - "variables" : { - "empty_list" : [], - "empty_assoc" : {} - }, - "testcases":[ - [ "{/empty_list}", [ "" ] ], - [ "{/empty_list*}", [ "" ] ], - [ "{?empty_list}", [ ""] ], - [ "{?empty_list*}", [ "" ] ], - [ "{?empty_assoc}", [ "" ] ], - [ "{?empty_assoc*}", [ "" ] ] - ] - }, - "Additional Examples 4: Numeric Keys":{ - "variables" : { - "42" : "The Answer to the Ultimate Question of Life, the Universe, and Everything", - "1337" : ["leet", "as","it", "can","be"], - "german" : { - "11": "elf", - "12": "zwölf" - } - }, - "testcases":[ - [ "{42}", "The%20Answer%20to%20the%20Ultimate%20Question%20of%20Life%2C%20the%20Universe%2C%20and%20Everything"], - [ "{?42}", "?42=The%20Answer%20to%20the%20Ultimate%20Question%20of%20Life%2C%20the%20Universe%2C%20and%20Everything"], - [ "{1337}", "leet,as,it,can,be"], - [ "{?1337*}", "?1337=leet&1337=as&1337=it&1337=can&1337=be"], - [ "{?german*}", [ "?11=elf&12=zw%C3%B6lf", "?12=zw%C3%B6lf&11=elf"] ] - ] - } -} diff --git a/node_modules/url-template/uritemplate-test/json2xml.xslt b/node_modules/url-template/uritemplate-test/json2xml.xslt deleted file mode 100644 index 59b3548..0000000 --- a/node_modules/url-template/uritemplate-test/json2xml.xslt +++ /dev/null @@ -1,201 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \b - - - - - - - - - - - \v - - - - - \f - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/node_modules/url-template/uritemplate-test/negative-tests.json b/node_modules/url-template/uritemplate-test/negative-tests.json deleted file mode 100644 index 552a6bf..0000000 --- a/node_modules/url-template/uritemplate-test/negative-tests.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "Failure Tests":{ - "level":4, - "variables":{ - "id" : "thing", - "var" : "value", - "hello" : "Hello World!", - "with space" : "fail", - " leading_space" : "Hi!", - "trailing_space " : "Bye!", - "empty" : "", - "path" : "/foo/bar", - "x" : "1024", - "y" : "768", - "list" : ["red", "green", "blue"], - "keys" : { "semi" : ";", "dot" : ".", "comma" : ","}, - "example" : "red", - "searchTerms" : "uri templates", - "~thing" : "some-user", - "default-graph-uri" : ["http://www.example/book/","http://www.example/papers/"], - "query" : "PREFIX dc: SELECT ?book ?who WHERE { ?book dc:creator ?who }" - - }, - "testcases":[ - [ "{/id*", false ], - [ "/id*}", false ], - [ "{/?id}", false ], - [ "{var:prefix}", false ], - [ "{hello:2*}", false ] , - [ "{??hello}", false ] , - [ "{!hello}", false ] , - [ "{with space}", false], - [ "{ leading_space}", false], - [ "{trailing_space }", false], - [ "{=path}", false ] , - [ "{$var}", false ], - [ "{|var*}", false ], - [ "{*keys?}", false ], - [ "{?empty=default,var}", false ], - [ "{var}{-prefix|/-/|var}" , false ], - [ "?q={searchTerms}&c={example:color?}" , false ], - [ "x{?empty|foo=none}" , false ], - [ "/h{#hello+}" , false ], - [ "/h#{hello+}" , false ], - [ "{keys:1}", false ], - [ "{+keys:1}", false ], - [ "{;keys:1*}", false ], - [ "?{-join|&|var,list}" , false ], - [ "/people/{~thing}", false], - [ "/{default-graph-uri}", false ], - [ "/sparql{?query,default-graph-uri}", false ], - [ "/sparql{?query){&default-graph-uri*}", false ], - [ "/resolution{?x, y}" , false ] - - ] - } -} \ No newline at end of file diff --git a/node_modules/url-template/uritemplate-test/spec-examples-by-section.json b/node_modules/url-template/uritemplate-test/spec-examples-by-section.json deleted file mode 100644 index 5aef182..0000000 --- a/node_modules/url-template/uritemplate-test/spec-examples-by-section.json +++ /dev/null @@ -1,439 +0,0 @@ -{ - "3.2.1 Variable Expansion" : - { - "variables": { - "count" : ["one", "two", "three"], - "dom" : ["example", "com"], - "dub" : "me/too", - "hello" : "Hello World!", - "half" : "50%", - "var" : "value", - "who" : "fred", - "base" : "http://example.com/home/", - "path" : "/foo/bar", - "list" : ["red", "green", "blue"], - "keys" : { "semi" : ";", "dot" : ".", "comma" : ","}, - "v" : "6", - "x" : "1024", - "y" : "768", - "empty" : "", - "empty_keys" : [], - "undef" : null - }, - "testcases" : [ - ["{count}", "one,two,three"], - ["{count*}", "one,two,three"], - ["{/count}", "/one,two,three"], - ["{/count*}", "/one/two/three"], - ["{;count}", ";count=one,two,three"], - ["{;count*}", ";count=one;count=two;count=three"], - ["{?count}", "?count=one,two,three"], - ["{?count*}", "?count=one&count=two&count=three"], - ["{&count*}", "&count=one&count=two&count=three"] - ] - }, - "3.2.2 Simple String Expansion" : - { - "variables": { - "count" : ["one", "two", "three"], - "dom" : ["example", "com"], - "dub" : "me/too", - "hello" : "Hello World!", - "half" : "50%", - "var" : "value", - "who" : "fred", - "base" : "http://example.com/home/", - "path" : "/foo/bar", - "list" : ["red", "green", "blue"], - "keys" : { "semi" : ";", "dot" : ".", "comma" : ","}, - "v" : "6", - "x" : "1024", - "y" : "768", - "empty" : "", - "empty_keys" : [], - "undef" : null - }, - "testcases" : [ - ["{var}", "value"], - ["{hello}", "Hello%20World%21"], - ["{half}", "50%25"], - ["O{empty}X", "OX"], - ["O{undef}X", "OX"], - ["{x,y}", "1024,768"], - ["{x,hello,y}", "1024,Hello%20World%21,768"], - ["?{x,empty}", "?1024,"], - ["?{x,undef}", "?1024"], - ["?{undef,y}", "?768"], - ["{var:3}", "val"], - ["{var:30}", "value"], - ["{list}", "red,green,blue"], - ["{list*}", "red,green,blue"], - ["{keys}", [ - "comma,%2C,dot,.,semi,%3B", - "comma,%2C,semi,%3B,dot,.", - "dot,.,comma,%2C,semi,%3B", - "dot,.,semi,%3B,comma,%2C", - "semi,%3B,comma,%2C,dot,.", - "semi,%3B,dot,.,comma,%2C" - ]], - ["{keys*}", [ - "comma=%2C,dot=.,semi=%3B", - "comma=%2C,semi=%3B,dot=.", - "dot=.,comma=%2C,semi=%3B", - "dot=.,semi=%3B,comma=%2C", - "semi=%3B,comma=%2C,dot=.", - "semi=%3B,dot=.,comma=%2C" - ]] - ] - }, - "3.2.3 Reserved Expansion" : - { - "variables": { - "count" : ["one", "two", "three"], - "dom" : ["example", "com"], - "dub" : "me/too", - "hello" : "Hello World!", - "half" : "50%", - "var" : "value", - "who" : "fred", - "base" : "http://example.com/home/", - "path" : "/foo/bar", - "list" : ["red", "green", "blue"], - "keys" : { "semi" : ";", "dot" : ".", "comma" : ","}, - "v" : "6", - "x" : "1024", - "y" : "768", - "empty" : "", - "empty_keys" : [], - "undef" : null - }, - "testcases" : [ - ["{+var}", "value"], - ["{/var,empty}", "/value/"], - ["{/var,undef}", "/value"], - ["{+hello}", "Hello%20World!"], - ["{+half}", "50%25"], - ["{base}index", "http%3A%2F%2Fexample.com%2Fhome%2Findex"], - ["{+base}index", "http://example.com/home/index"], - ["O{+empty}X", "OX"], - ["O{+undef}X", "OX"], - ["{+path}/here", "/foo/bar/here"], - ["{+path:6}/here", "/foo/b/here"], - ["here?ref={+path}", "here?ref=/foo/bar"], - ["up{+path}{var}/here", "up/foo/barvalue/here"], - ["{+x,hello,y}", "1024,Hello%20World!,768"], - ["{+path,x}/here", "/foo/bar,1024/here"], - ["{+list}", "red,green,blue"], - ["{+list*}", "red,green,blue"], - ["{+keys}", [ - "comma,,,dot,.,semi,;", - "comma,,,semi,;,dot,.", - "dot,.,comma,,,semi,;", - "dot,.,semi,;,comma,,", - "semi,;,comma,,,dot,.", - "semi,;,dot,.,comma,," - ]], - ["{+keys*}", [ - "comma=,,dot=.,semi=;", - "comma=,,semi=;,dot=.", - "dot=.,comma=,,semi=;", - "dot=.,semi=;,comma=,", - "semi=;,comma=,,dot=.", - "semi=;,dot=.,comma=," - ]] - ] - }, - "3.2.4 Fragment Expansion" : - { - "variables": { - "count" : ["one", "two", "three"], - "dom" : ["example", "com"], - "dub" : "me/too", - "hello" : "Hello World!", - "half" : "50%", - "var" : "value", - "who" : "fred", - "base" : "http://example.com/home/", - "path" : "/foo/bar", - "list" : ["red", "green", "blue"], - "keys" : { "semi" : ";", "dot" : ".", "comma" : ","}, - "v" : "6", - "x" : "1024", - "y" : "768", - "empty" : "", - "empty_keys" : [], - "undef" : null - }, - "testcases" : [ - ["{#var}", "#value"], - ["{#hello}", "#Hello%20World!"], - ["{#half}", "#50%25"], - ["foo{#empty}", "foo#"], - ["foo{#undef}", "foo"], - ["{#x,hello,y}", "#1024,Hello%20World!,768"], - ["{#path,x}/here", "#/foo/bar,1024/here"], - ["{#path:6}/here", "#/foo/b/here"], - ["{#list}", "#red,green,blue"], - ["{#list*}", "#red,green,blue"], - ["{#keys}", [ - "#comma,,,dot,.,semi,;", - "#comma,,,semi,;,dot,.", - "#dot,.,comma,,,semi,;", - "#dot,.,semi,;,comma,,", - "#semi,;,comma,,,dot,.", - "#semi,;,dot,.,comma,," - ]] - ] - }, - "3.2.5 Label Expansion with Dot-Prefix" : - { - "variables": { - "count" : ["one", "two", "three"], - "dom" : ["example", "com"], - "dub" : "me/too", - "hello" : "Hello World!", - "half" : "50%", - "var" : "value", - "who" : "fred", - "base" : "http://example.com/home/", - "path" : "/foo/bar", - "list" : ["red", "green", "blue"], - "keys" : { "semi" : ";", "dot" : ".", "comma" : ","}, - "v" : "6", - "x" : "1024", - "y" : "768", - "empty" : "", - "empty_keys" : [], - "undef" : null - }, - "testcases" : [ - ["{.who}", ".fred"], - ["{.who,who}", ".fred.fred"], - ["{.half,who}", ".50%25.fred"], - ["www{.dom*}", "www.example.com"], - ["X{.var}", "X.value"], - ["X{.var:3}", "X.val"], - ["X{.empty}", "X."], - ["X{.undef}", "X"], - ["X{.list}", "X.red,green,blue"], - ["X{.list*}", "X.red.green.blue"], - ["{#keys}", [ - "#comma,,,dot,.,semi,;", - "#comma,,,semi,;,dot,.", - "#dot,.,comma,,,semi,;", - "#dot,.,semi,;,comma,,", - "#semi,;,comma,,,dot,.", - "#semi,;,dot,.,comma,," - ]], - ["{#keys*}", [ - "#comma=,,dot=.,semi=;", - "#comma=,,semi=;,dot=.", - "#dot=.,comma=,,semi=;", - "#dot=.,semi=;,comma=,", - "#semi=;,comma=,,dot=.", - "#semi=;,dot=.,comma=," - ]], - ["X{.empty_keys}", "X"], - ["X{.empty_keys*}", "X"] - ] - }, - "3.2.6 Path Segment Expansion" : - { - "variables": { - "count" : ["one", "two", "three"], - "dom" : ["example", "com"], - "dub" : "me/too", - "hello" : "Hello World!", - "half" : "50%", - "var" : "value", - "who" : "fred", - "base" : "http://example.com/home/", - "path" : "/foo/bar", - "list" : ["red", "green", "blue"], - "keys" : { "semi" : ";", "dot" : ".", "comma" : ","}, - "v" : "6", - "x" : "1024", - "y" : "768", - "empty" : "", - "empty_keys" : [], - "undef" : null - }, - "testcases" : [ - ["{/who}", "/fred"], - ["{/who,who}", "/fred/fred"], - ["{/half,who}", "/50%25/fred"], - ["{/who,dub}", "/fred/me%2Ftoo"], - ["{/var}", "/value"], - ["{/var,empty}", "/value/"], - ["{/var,undef}", "/value"], - ["{/var,x}/here", "/value/1024/here"], - ["{/var:1,var}", "/v/value"], - ["{/list}", "/red,green,blue"], - ["{/list*}", "/red/green/blue"], - ["{/list*,path:4}", "/red/green/blue/%2Ffoo"], - ["{/keys}", [ - "/comma,%2C,dot,.,semi,%3B", - "/comma,%2C,semi,%3B,dot,.", - "/dot,.,comma,%2C,semi,%3B", - "/dot,.,semi,%3B,comma,%2C", - "/semi,%3B,comma,%2C,dot,.", - "/semi,%3B,dot,.,comma,%2C" - ]], - ["{/keys*}", [ - "/comma=%2C/dot=./semi=%3B", - "/comma=%2C/semi=%3B/dot=.", - "/dot=./comma=%2C/semi=%3B", - "/dot=./semi=%3B/comma=%2C", - "/semi=%3B/comma=%2C/dot=.", - "/semi=%3B/dot=./comma=%2C" - ]] - ] - }, - "3.2.7 Path-Style Parameter Expansion" : - { - "variables": { - "count" : ["one", "two", "three"], - "dom" : ["example", "com"], - "dub" : "me/too", - "hello" : "Hello World!", - "half" : "50%", - "var" : "value", - "who" : "fred", - "base" : "http://example.com/home/", - "path" : "/foo/bar", - "list" : ["red", "green", "blue"], - "keys" : { "semi" : ";", "dot" : ".", "comma" : ","}, - "v" : "6", - "x" : "1024", - "y" : "768", - "empty" : "", - "empty_keys" : [], - "undef" : null - }, - "testcases" : [ - ["{;who}", ";who=fred"], - ["{;half}", ";half=50%25"], - ["{;empty}", ";empty"], - ["{;hello:5}", ";hello=Hello"], - ["{;v,empty,who}", ";v=6;empty;who=fred"], - ["{;v,bar,who}", ";v=6;who=fred"], - ["{;x,y}", ";x=1024;y=768"], - ["{;x,y,empty}", ";x=1024;y=768;empty"], - ["{;x,y,undef}", ";x=1024;y=768"], - ["{;list}", ";list=red,green,blue"], - ["{;list*}", ";list=red;list=green;list=blue"], - ["{;keys}", [ - ";keys=comma,%2C,dot,.,semi,%3B", - ";keys=comma,%2C,semi,%3B,dot,.", - ";keys=dot,.,comma,%2C,semi,%3B", - ";keys=dot,.,semi,%3B,comma,%2C", - ";keys=semi,%3B,comma,%2C,dot,.", - ";keys=semi,%3B,dot,.,comma,%2C" - ]], - ["{;keys*}", [ - ";comma=%2C;dot=.;semi=%3B", - ";comma=%2C;semi=%3B;dot=.", - ";dot=.;comma=%2C;semi=%3B", - ";dot=.;semi=%3B;comma=%2C", - ";semi=%3B;comma=%2C;dot=.", - ";semi=%3B;dot=.;comma=%2C" - ]] - ] - }, - "3.2.8 Form-Style Query Expansion" : - { - "variables": { - "count" : ["one", "two", "three"], - "dom" : ["example", "com"], - "dub" : "me/too", - "hello" : "Hello World!", - "half" : "50%", - "var" : "value", - "who" : "fred", - "base" : "http://example.com/home/", - "path" : "/foo/bar", - "list" : ["red", "green", "blue"], - "keys" : { "semi" : ";", "dot" : ".", "comma" : ","}, - "v" : "6", - "x" : "1024", - "y" : "768", - "empty" : "", - "empty_keys" : [], - "undef" : null - }, - "testcases" : [ - ["{?who}", "?who=fred"], - ["{?half}", "?half=50%25"], - ["{?x,y}", "?x=1024&y=768"], - ["{?x,y,empty}", "?x=1024&y=768&empty="], - ["{?x,y,undef}", "?x=1024&y=768"], - ["{?var:3}", "?var=val"], - ["{?list}", "?list=red,green,blue"], - ["{?list*}", "?list=red&list=green&list=blue"], - ["{?keys}", [ - "?keys=comma,%2C,dot,.,semi,%3B", - "?keys=comma,%2C,semi,%3B,dot,.", - "?keys=dot,.,comma,%2C,semi,%3B", - "?keys=dot,.,semi,%3B,comma,%2C", - "?keys=semi,%3B,comma,%2C,dot,.", - "?keys=semi,%3B,dot,.,comma,%2C" - ]], - ["{?keys*}", [ - "?comma=%2C&dot=.&semi=%3B", - "?comma=%2C&semi=%3B&dot=.", - "?dot=.&comma=%2C&semi=%3B", - "?dot=.&semi=%3B&comma=%2C", - "?semi=%3B&comma=%2C&dot=.", - "?semi=%3B&dot=.&comma=%2C" - ]] - ] - }, - "3.2.9 Form-Style Query Continuation" : - { - "variables": { - "count" : ["one", "two", "three"], - "dom" : ["example", "com"], - "dub" : "me/too", - "hello" : "Hello World!", - "half" : "50%", - "var" : "value", - "who" : "fred", - "base" : "http://example.com/home/", - "path" : "/foo/bar", - "list" : ["red", "green", "blue"], - "keys" : { "semi" : ";", "dot" : ".", "comma" : ","}, - "v" : "6", - "x" : "1024", - "y" : "768", - "empty" : "", - "empty_keys" : [], - "undef" : null - }, - "testcases" : [ - ["{&who}", "&who=fred"], - ["{&half}", "&half=50%25"], - ["?fixed=yes{&x}", "?fixed=yes&x=1024"], - ["{&var:3}", "&var=val"], - ["{&x,y,empty}", "&x=1024&y=768&empty="], - ["{&x,y,undef}", "&x=1024&y=768"], - ["{&list}", "&list=red,green,blue"], - ["{&list*}", "&list=red&list=green&list=blue"], - ["{&keys}", [ - "&keys=comma,%2C,dot,.,semi,%3B", - "&keys=comma,%2C,semi,%3B,dot,.", - "&keys=dot,.,comma,%2C,semi,%3B", - "&keys=dot,.,semi,%3B,comma,%2C", - "&keys=semi,%3B,comma,%2C,dot,.", - "&keys=semi,%3B,dot,.,comma,%2C" - ]], - ["{&keys*}", [ - "&comma=%2C&dot=.&semi=%3B", - "&comma=%2C&semi=%3B&dot=.", - "&dot=.&comma=%2C&semi=%3B", - "&dot=.&semi=%3B&comma=%2C", - "&semi=%3B&comma=%2C&dot=.", - "&semi=%3B&dot=.&comma=%2C" - ]] - ] - } -} diff --git a/node_modules/url-template/uritemplate-test/spec-examples.json b/node_modules/url-template/uritemplate-test/spec-examples.json deleted file mode 100644 index 2e8e942..0000000 --- a/node_modules/url-template/uritemplate-test/spec-examples.json +++ /dev/null @@ -1,218 +0,0 @@ -{ - "Level 1 Examples" : - { - "level": 1, - "variables": { - "var" : "value", - "hello" : "Hello World!" - }, - "testcases" : [ - ["{var}", "value"], - ["{hello}", "Hello%20World%21"] - ] - }, - "Level 2 Examples" : - { - "level": 2, - "variables": { - "var" : "value", - "hello" : "Hello World!", - "path" : "/foo/bar" - }, - "testcases" : [ - ["{+var}", "value"], - ["{+hello}", "Hello%20World!"], - ["{+path}/here", "/foo/bar/here"], - ["here?ref={+path}", "here?ref=/foo/bar"] - ] - }, - "Level 3 Examples" : - { - "level": 3, - "variables": { - "var" : "value", - "hello" : "Hello World!", - "empty" : "", - "path" : "/foo/bar", - "x" : "1024", - "y" : "768" - }, - "testcases" : [ - ["map?{x,y}", "map?1024,768"], - ["{x,hello,y}", "1024,Hello%20World%21,768"], - ["{+x,hello,y}", "1024,Hello%20World!,768"], - ["{+path,x}/here", "/foo/bar,1024/here"], - ["{#x,hello,y}", "#1024,Hello%20World!,768"], - ["{#path,x}/here", "#/foo/bar,1024/here"], - ["X{.var}", "X.value"], - ["X{.x,y}", "X.1024.768"], - ["{/var}", "/value"], - ["{/var,x}/here", "/value/1024/here"], - ["{;x,y}", ";x=1024;y=768"], - ["{;x,y,empty}", ";x=1024;y=768;empty"], - ["{?x,y}", "?x=1024&y=768"], - ["{?x,y,empty}", "?x=1024&y=768&empty="], - ["?fixed=yes{&x}", "?fixed=yes&x=1024"], - ["{&x,y,empty}", "&x=1024&y=768&empty="] - ] - }, - "Level 4 Examples" : - { - "level": 4, - "variables": { - "var": "value", - "hello": "Hello World!", - "path": "/foo/bar", - "list": ["red", "green", "blue"], - "keys": {"semi": ";", "dot": ".", "comma":","} - }, - "testcases": [ - ["{var:3}", "val"], - ["{var:30}", "value"], - ["{list}", "red,green,blue"], - ["{list*}", "red,green,blue"], - ["{keys}", [ - "comma,%2C,dot,.,semi,%3B", - "comma,%2C,semi,%3B,dot,.", - "dot,.,comma,%2C,semi,%3B", - "dot,.,semi,%3B,comma,%2C", - "semi,%3B,comma,%2C,dot,.", - "semi,%3B,dot,.,comma,%2C" - ]], - ["{keys*}", [ - "comma=%2C,dot=.,semi=%3B", - "comma=%2C,semi=%3B,dot=.", - "dot=.,comma=%2C,semi=%3B", - "dot=.,semi=%3B,comma=%2C", - "semi=%3B,comma=%2C,dot=.", - "semi=%3B,dot=.,comma=%2C" - ]], - ["{+path:6}/here", "/foo/b/here"], - ["{+list}", "red,green,blue"], - ["{+list*}", "red,green,blue"], - ["{+keys}", [ - "comma,,,dot,.,semi,;", - "comma,,,semi,;,dot,.", - "dot,.,comma,,,semi,;", - "dot,.,semi,;,comma,,", - "semi,;,comma,,,dot,.", - "semi,;,dot,.,comma,," - ]], - ["{+keys*}", [ - "comma=,,dot=.,semi=;", - "comma=,,semi=;,dot=.", - "dot=.,comma=,,semi=;", - "dot=.,semi=;,comma=,", - "semi=;,comma=,,dot=.", - "semi=;,dot=.,comma=," - ]], - ["{#path:6}/here", "#/foo/b/here"], - ["{#list}", "#red,green,blue"], - ["{#list*}", "#red,green,blue"], - ["{#keys}", [ - "#comma,,,dot,.,semi,;", - "#comma,,,semi,;,dot,.", - "#dot,.,comma,,,semi,;", - "#dot,.,semi,;,comma,,", - "#semi,;,comma,,,dot,.", - "#semi,;,dot,.,comma,," - ]], - ["{#keys*}", [ - "#comma=,,dot=.,semi=;", - "#comma=,,semi=;,dot=.", - "#dot=.,comma=,,semi=;", - "#dot=.,semi=;,comma=,", - "#semi=;,comma=,,dot=.", - "#semi=;,dot=.,comma=," - ]], - ["X{.var:3}", "X.val"], - ["X{.list}", "X.red,green,blue"], - ["X{.list*}", "X.red.green.blue"], - ["X{.keys}", [ - "X.comma,%2C,dot,.,semi,%3B", - "X.comma,%2C,semi,%3B,dot,.", - "X.dot,.,comma,%2C,semi,%3B", - "X.dot,.,semi,%3B,comma,%2C", - "X.semi,%3B,comma,%2C,dot,.", - "X.semi,%3B,dot,.,comma,%2C" - ]], - ["{/var:1,var}", "/v/value"], - ["{/list}", "/red,green,blue"], - ["{/list*}", "/red/green/blue"], - ["{/list*,path:4}", "/red/green/blue/%2Ffoo"], - ["{/keys}", [ - "/comma,%2C,dot,.,semi,%3B", - "/comma,%2C,semi,%3B,dot,.", - "/dot,.,comma,%2C,semi,%3B", - "/dot,.,semi,%3B,comma,%2C", - "/semi,%3B,comma,%2C,dot,.", - "/semi,%3B,dot,.,comma,%2C" - ]], - ["{/keys*}", [ - "/comma=%2C/dot=./semi=%3B", - "/comma=%2C/semi=%3B/dot=.", - "/dot=./comma=%2C/semi=%3B", - "/dot=./semi=%3B/comma=%2C", - "/semi=%3B/comma=%2C/dot=.", - "/semi=%3B/dot=./comma=%2C" - ]], - ["{;hello:5}", ";hello=Hello"], - ["{;list}", ";list=red,green,blue"], - ["{;list*}", ";list=red;list=green;list=blue"], - ["{;keys}", [ - ";keys=comma,%2C,dot,.,semi,%3B", - ";keys=comma,%2C,semi,%3B,dot,.", - ";keys=dot,.,comma,%2C,semi,%3B", - ";keys=dot,.,semi,%3B,comma,%2C", - ";keys=semi,%3B,comma,%2C,dot,.", - ";keys=semi,%3B,dot,.,comma,%2C" - ]], - ["{;keys*}", [ - ";comma=%2C;dot=.;semi=%3B", - ";comma=%2C;semi=%3B;dot=.", - ";dot=.;comma=%2C;semi=%3B", - ";dot=.;semi=%3B;comma=%2C", - ";semi=%3B;comma=%2C;dot=.", - ";semi=%3B;dot=.;comma=%2C" - ]], - ["{?var:3}", "?var=val"], - ["{?list}", "?list=red,green,blue"], - ["{?list*}", "?list=red&list=green&list=blue"], - ["{?keys}", [ - "?keys=comma,%2C,dot,.,semi,%3B", - "?keys=comma,%2C,semi,%3B,dot,.", - "?keys=dot,.,comma,%2C,semi,%3B", - "?keys=dot,.,semi,%3B,comma,%2C", - "?keys=semi,%3B,comma,%2C,dot,.", - "?keys=semi,%3B,dot,.,comma,%2C" - ]], - ["{?keys*}", [ - "?comma=%2C&dot=.&semi=%3B", - "?comma=%2C&semi=%3B&dot=.", - "?dot=.&comma=%2C&semi=%3B", - "?dot=.&semi=%3B&comma=%2C", - "?semi=%3B&comma=%2C&dot=.", - "?semi=%3B&dot=.&comma=%2C" - ]], - ["{&var:3}", "&var=val"], - ["{&list}", "&list=red,green,blue"], - ["{&list*}", "&list=red&list=green&list=blue"], - ["{&keys}", [ - "&keys=comma,%2C,dot,.,semi,%3B", - "&keys=comma,%2C,semi,%3B,dot,.", - "&keys=dot,.,comma,%2C,semi,%3B", - "&keys=dot,.,semi,%3B,comma,%2C", - "&keys=semi,%3B,comma,%2C,dot,.", - "&keys=semi,%3B,dot,.,comma,%2C" - ]], - ["{&keys*}", [ - "&comma=%2C&dot=.&semi=%3B", - "&comma=%2C&semi=%3B&dot=.", - "&dot=.&comma=%2C&semi=%3B", - "&dot=.&semi=%3B&comma=%2C", - "&semi=%3B&comma=%2C&dot=.", - "&semi=%3B&dot=.&comma=%2C" - ]] - ] - } -} diff --git a/node_modules/url-template/uritemplate-test/transform-json-tests.xslt b/node_modules/url-template/uritemplate-test/transform-json-tests.xslt deleted file mode 100644 index d956b6b..0000000 --- a/node_modules/url-template/uritemplate-test/transform-json-tests.xslt +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/node_modules/which/package.json b/node_modules/which/package.json index 412a4b1..a74f538 100644 --- a/node_modules/which/package.json +++ b/node_modules/which/package.json @@ -1,32 +1,27 @@ { - "_args": [ - [ - "which@1.3.1", - "/Users/rachmari/github-repos/hello-world-javascript-action" - ] - ], - "_from": "which@1.3.1", + "_from": "which@^1.2.9", "_id": "which@1.3.1", "_inBundle": false, "_integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", "_location": "/which", "_phantomChildren": {}, "_requested": { - "type": "version", + "type": "range", "registry": true, - "raw": "which@1.3.1", + "raw": "which@^1.2.9", "name": "which", "escapedName": "which", - "rawSpec": "1.3.1", + "rawSpec": "^1.2.9", "saveSpec": null, - "fetchSpec": "1.3.1" + "fetchSpec": "^1.2.9" }, "_requiredBy": [ "/cross-spawn" ], "_resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", - "_spec": "1.3.1", - "_where": "/Users/rachmari/github-repos/hello-world-javascript-action", + "_shasum": "a45043d54f5805316da8d62f9f50918d3da70b0a", + "_spec": "which@^1.2.9", + "_where": "/Users/rachmari/github-repos/hello-world-javascript-action/node_modules/cross-spawn", "author": { "name": "Isaac Z. Schlueter", "email": "i@izs.me", @@ -38,9 +33,11 @@ "bugs": { "url": "https://github.com/isaacs/node-which/issues" }, + "bundleDependencies": false, "dependencies": { "isexe": "^2.0.0" }, + "deprecated": false, "description": "Like which(1) unix command. Find the first instance of an executable in the PATH.", "devDependencies": { "mkdirp": "^0.5.0", diff --git a/node_modules/windows-release/package.json b/node_modules/windows-release/package.json index 5ca0370..24e323c 100644 --- a/node_modules/windows-release/package.json +++ b/node_modules/windows-release/package.json @@ -1,32 +1,27 @@ { - "_args": [ - [ - "windows-release@3.2.0", - "/Users/rachmari/github-repos/hello-world-javascript-action" - ] - ], - "_from": "windows-release@3.2.0", + "_from": "windows-release@^3.1.0", "_id": "windows-release@3.2.0", "_inBundle": false, "_integrity": "sha512-QTlz2hKLrdqukrsapKsINzqMgOUpQW268eJ0OaOpJN32h272waxR9fkB9VoWRtK7uKHG5EHJcTXQBD8XZVJkFA==", "_location": "/windows-release", "_phantomChildren": {}, "_requested": { - "type": "version", + "type": "range", "registry": true, - "raw": "windows-release@3.2.0", + "raw": "windows-release@^3.1.0", "name": "windows-release", "escapedName": "windows-release", - "rawSpec": "3.2.0", + "rawSpec": "^3.1.0", "saveSpec": null, - "fetchSpec": "3.2.0" + "fetchSpec": "^3.1.0" }, "_requiredBy": [ "/os-name" ], "_resolved": "https://registry.npmjs.org/windows-release/-/windows-release-3.2.0.tgz", - "_spec": "3.2.0", - "_where": "/Users/rachmari/github-repos/hello-world-javascript-action", + "_shasum": "8122dad5afc303d833422380680a79cdfa91785f", + "_spec": "windows-release@^3.1.0", + "_where": "/Users/rachmari/github-repos/hello-world-javascript-action/node_modules/os-name", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", @@ -35,9 +30,11 @@ "bugs": { "url": "https://github.com/sindresorhus/windows-release/issues" }, + "bundleDependencies": false, "dependencies": { "execa": "^1.0.0" }, + "deprecated": false, "description": "Get the name of a Windows version from the release number: `5.1.2600` → `XP`", "devDependencies": { "ava": "^1.4.1", diff --git a/node_modules/wrappy/package.json b/node_modules/wrappy/package.json index ae4cfdb..b84d396 100644 --- a/node_modules/wrappy/package.json +++ b/node_modules/wrappy/package.json @@ -1,32 +1,27 @@ { - "_args": [ - [ - "wrappy@1.0.2", - "/Users/rachmari/github-repos/hello-world-javascript-action" - ] - ], - "_from": "wrappy@1.0.2", + "_from": "wrappy@1", "_id": "wrappy@1.0.2", "_inBundle": false, "_integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", "_location": "/wrappy", "_phantomChildren": {}, "_requested": { - "type": "version", + "type": "range", "registry": true, - "raw": "wrappy@1.0.2", + "raw": "wrappy@1", "name": "wrappy", "escapedName": "wrappy", - "rawSpec": "1.0.2", + "rawSpec": "1", "saveSpec": null, - "fetchSpec": "1.0.2" + "fetchSpec": "1" }, "_requiredBy": [ "/once" ], "_resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "_spec": "1.0.2", - "_where": "/Users/rachmari/github-repos/hello-world-javascript-action", + "_shasum": "b5243d8f3ec1aa35f1364605bc0d1036e30ab69f", + "_spec": "wrappy@1", + "_where": "/Users/rachmari/github-repos/hello-world-javascript-action/node_modules/once", "author": { "name": "Isaac Z. Schlueter", "email": "i@izs.me", @@ -35,7 +30,9 @@ "bugs": { "url": "https://github.com/npm/wrappy/issues" }, + "bundleDependencies": false, "dependencies": {}, + "deprecated": false, "description": "Callback wrapping utility", "devDependencies": { "tap": "^2.3.1" diff --git a/package-lock.json b/package-lock.json index a2f0ef0..e39bdd2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,36 +1,36 @@ { - "name": "hello-world-action", + "name": "hello-world-javascript-action", "version": "1.0.0", "lockfileVersion": 1, "requires": true, "dependencies": { "@actions/core": { - "version": "file:toolkit/actions-core-0.0.0.tgz", - "integrity": "sha512-P+mC79gXC2yvyU0+RDctxKUI1Q3tNruB+aSmFI47j2H0DylxtDEgycW9WXwt/zCY62lfwfvBoGKpuJRvFHDqpw==" + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@actions/core/-/core-1.1.0.tgz", + "integrity": "sha512-KKpo3xzo0Zsikni9tbOsEQkxZBGDsYSJZNkTvmo0gPSXrc98TBOcdTvKwwjitjkjHkreTggWdB1ACiAFVgsuzA==" }, "@actions/github": { - "version": "file:toolkit/actions-github-0.0.0.tgz", - "integrity": "sha512-K13pi9kbZqFnvhe8m6uqfz4kCnB4Ki6fzv4XBae1zDZfn2Si+Qx6j1pAfXSo7QI2+ZWAX/g0paFgcJsS6ZTWZA==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@actions/github/-/github-1.1.0.tgz", + "integrity": "sha512-cHf6PyoNMdei13jEdGPhKprIMFmjVVW/dnM5/9QmQDJ1ZTaGVyezUSCUIC/ySNLRvDUpeFwPYMdThSEJldSbUw==", "requires": { "@octokit/graphql": "2.1.3", - "@octokit/rest": "16.28.7" + "@octokit/rest": "16.28.9" } }, "@octokit/endpoint": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-5.3.2.tgz", - "integrity": "sha512-gRjteEM9I6f4D8vtwU2iGUTn9RX/AJ0SVXiqBUEuYEWVGGAVjSXdT0oNmghH5lvQNWs8mwt6ZaultuG6yXivNw==", + "version": "5.3.5", + "resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-5.3.5.tgz", + "integrity": "sha512-f8KqzIrnzPLiezDsZZPB+K8v8YSv6aKFl7eOu59O46lmlW4HagWl1U6NWl6LmT8d1w7NsKBI3paVtzcnRGO1gw==", "requires": { - "deepmerge": "4.0.0", "is-plain-object": "3.0.0", - "universal-user-agent": "3.0.0", - "url-template": "2.0.8" + "universal-user-agent": "4.0.0" }, "dependencies": { "universal-user-agent": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-3.0.0.tgz", - "integrity": "sha512-T3siHThqoj5X0benA5H0qcDnrKGXzU8TKoX15x/tQHw1hQBvIEBHjxQ2klizYsqBOO/Q+WuxoQUihadeeqDnoA==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-4.0.0.tgz", + "integrity": "sha512-eM8knLpev67iBDizr/YtqkJsF3GK8gzDc6st/WKzrTuPtcsOKW/0IdL4cnMBsU69pOx0otavLWBDGTwg+dB0aA==", "requires": { "os-name": "3.1.0" } @@ -42,28 +42,28 @@ "resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-2.1.3.tgz", "integrity": "sha512-XoXJqL2ondwdnMIW3wtqJWEwcBfKk37jO/rYkoxNPEVeLBDGsGO1TCWggrAlq3keGt/O+C/7VepXnukUxwt5vA==", "requires": { - "@octokit/request": "5.0.2", + "@octokit/request": "5.1.0", "universal-user-agent": "2.1.0" } }, "@octokit/request": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/@octokit/request/-/request-5.0.2.tgz", - "integrity": "sha512-z1BQr43g4kOL4ZrIVBMHwi68Yg9VbkRUyuAgqCp1rU3vbYa69+2gIld/+gHclw15bJWQnhqqyEb7h5a5EqgZ0A==", + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/@octokit/request/-/request-5.1.0.tgz", + "integrity": "sha512-I15T9PwjFs4tbWyhtFU2Kq7WDPidYMvRB7spmxoQRZfxSmiqullG+Nz+KbSmpkfnlvHwTr1e31R5WReFRKMXjg==", "requires": { - "@octokit/endpoint": "5.3.2", + "@octokit/endpoint": "5.3.5", "@octokit/request-error": "1.0.4", "deprecation": "2.3.1", "is-plain-object": "3.0.0", "node-fetch": "2.6.0", "once": "1.4.0", - "universal-user-agent": "3.0.0" + "universal-user-agent": "4.0.0" }, "dependencies": { "universal-user-agent": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-3.0.0.tgz", - "integrity": "sha512-T3siHThqoj5X0benA5H0qcDnrKGXzU8TKoX15x/tQHw1hQBvIEBHjxQ2klizYsqBOO/Q+WuxoQUihadeeqDnoA==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-4.0.0.tgz", + "integrity": "sha512-eM8knLpev67iBDizr/YtqkJsF3GK8gzDc6st/WKzrTuPtcsOKW/0IdL4cnMBsU69pOx0otavLWBDGTwg+dB0aA==", "requires": { "os-name": "3.1.0" } @@ -80,11 +80,11 @@ } }, "@octokit/rest": { - "version": "16.28.7", - "resolved": "https://registry.npmjs.org/@octokit/rest/-/rest-16.28.7.tgz", - "integrity": "sha512-cznFSLEhh22XD3XeqJw51OLSfyL2fcFKUO+v2Ep9MTAFfFLS1cK1Zwd1yEgQJmJoDnj4/vv3+fGGZweG+xsbIA==", + "version": "16.28.9", + "resolved": "https://registry.npmjs.org/@octokit/rest/-/rest-16.28.9.tgz", + "integrity": "sha512-IKGnX+Tvzt7XHhs8f4ajqxyJvYAMNX5nWfoJm4CQj8LZToMiaJgutf5KxxpxoC3y5w7JTJpW5rnWnF4TsIvCLA==", "requires": { - "@octokit/request": "5.0.2", + "@octokit/request": "5.1.0", "@octokit/request-error": "1.0.4", "atob-lite": "2.0.0", "before-after-hook": "2.1.0", @@ -95,14 +95,13 @@ "lodash.uniq": "4.5.0", "octokit-pagination-methods": "1.1.0", "once": "1.4.0", - "universal-user-agent": "3.0.0", - "url-template": "2.0.8" + "universal-user-agent": "4.0.0" }, "dependencies": { "universal-user-agent": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-3.0.0.tgz", - "integrity": "sha512-T3siHThqoj5X0benA5H0qcDnrKGXzU8TKoX15x/tQHw1hQBvIEBHjxQ2klizYsqBOO/Q+WuxoQUihadeeqDnoA==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-4.0.0.tgz", + "integrity": "sha512-eM8knLpev67iBDizr/YtqkJsF3GK8gzDc6st/WKzrTuPtcsOKW/0IdL4cnMBsU69pOx0otavLWBDGTwg+dB0aA==", "requires": { "os-name": "3.1.0" } @@ -131,16 +130,11 @@ "requires": { "nice-try": "1.0.5", "path-key": "2.0.1", - "semver": "5.7.0", + "semver": "5.7.1", "shebang-command": "1.2.0", "which": "1.3.1" } }, - "deepmerge": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.0.0.tgz", - "integrity": "sha512-YZ1rOP5+kHor4hMAH+HRQnBQHg+wvS1un1hAOuIcxcBy0hzcUf6Jg2a1w65kpoOUnurOfZbERwjI1TfZxNjcww==" - }, "deprecation": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/deprecation/-/deprecation-2.3.1.tgz", @@ -279,9 +273,9 @@ } }, "semver": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.0.tgz", - "integrity": "sha512-Ya52jSX2u7QKghxeoFGpLwCtGlt7j0oY9DYb5apt9nPlJ42ID+ulTXESnt/qAQcoSERyZ5sl3LDIOw0nAn/5DA==" + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" }, "shebang-command": { "version": "1.2.0", @@ -314,11 +308,6 @@ "os-name": "3.1.0" } }, - "url-template": { - "version": "2.0.8", - "resolved": "https://registry.npmjs.org/url-template/-/url-template-2.0.8.tgz", - "integrity": "sha1-/FZaPMy/93MMd19WQflVV5FDnyE=" - }, "which": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", diff --git a/package.json b/package.json index aaf5b53..38aadf4 100644 --- a/package.json +++ b/package.json @@ -1,15 +1,24 @@ { - "name": "hello-world-action", + "name": "hello-world-javascript-action", "version": "1.0.0", - "description": "My first JavaScript action", + "description": "This action prints \"Hello World\" or \"Hello\" + the name of a person to greet to the log.", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, + "repository": { + "type": "git", + "url": "git+https://github.com/actions/hello-world-javascript-action.git" + }, + "keywords": [], "author": "", "license": "ISC", + "bugs": { + "url": "https://github.com/actions/hello-world-javascript-action/issues" + }, + "homepage": "https://github.com/actions/hello-world-javascript-action#readme", "dependencies": { - "@actions/core": "file:toolkit/actions-core-0.0.0.tgz", - "@actions/github": "file:toolkit/actions-github-0.0.0.tgz" + "@actions/core": "^1.1.0", + "@actions/github": "^1.1.0" } }