From 5700facfa32686cc857acc847ed50026a6a3224c Mon Sep 17 00:00:00 2001 From: rhysd Date: Mon, 16 Dec 2019 19:56:41 +0900 Subject: [PATCH] v1.6.4 --- node_modules/@actions/core/package.json | 4 +- node_modules/@actions/exec/LICENSE.md | 7 - node_modules/@actions/exec/README.md | 7 +- node_modules/@actions/exec/lib/toolrunner.js | 13 + .../@actions/exec/lib/toolrunner.js.map | 2 +- node_modules/@actions/exec/package.json | 32 +- node_modules/@actions/github/LICENSE.md | 7 - node_modules/@actions/github/README.md | 37 +- node_modules/@actions/github/lib/context.js | 3 +- .../@actions/github/lib/context.js.map | 2 +- node_modules/@actions/github/lib/github.d.ts | 4 +- node_modules/@actions/github/lib/github.js | 2 +- .../@actions/github/lib/github.js.map | 2 +- node_modules/@actions/github/package.json | 32 +- node_modules/@actions/io/package.json | 4 +- .../universal-user-agent/LICENSE.md | 7 - .../universal-user-agent/README.md | 25 -- .../universal-user-agent/package.json | 68 ---- node_modules/@octokit/endpoint/package.json | 4 +- node_modules/@octokit/graphql/README.md | 336 +++++++++++------- .../@octokit/graphql/dist-node/index.js | 85 +++++ .../@octokit/graphql/dist-node/index.js.map | 1 + .../@octokit/graphql/dist-src/error.js | 14 + .../@octokit/graphql/dist-src/graphql.js | 34 ++ .../@octokit/graphql/dist-src/index.js | 17 + .../@octokit/graphql/dist-src/types.js | 0 .../@octokit/graphql/dist-src/version.js | 1 + .../graphql/dist-src/with-defaults.js | 12 + .../@octokit/graphql/dist-types/error.d.ts | 7 + .../@octokit/graphql/dist-types/graphql.d.ts | 3 + .../@octokit/graphql/dist-types/index.d.ts | 3 + .../@octokit/graphql/dist-types/types.d.ts | 47 +++ .../@octokit/graphql/dist-types/version.d.ts | 1 + .../graphql/dist-types/with-defaults.d.ts | 3 + .../@octokit/graphql/dist-web/index.js | 81 +++++ .../@octokit/graphql/dist-web/index.js.map | 1 + node_modules/@octokit/graphql/index.js | 15 - node_modules/@octokit/graphql/lib/error.js | 16 - node_modules/@octokit/graphql/lib/graphql.js | 36 -- .../@octokit/graphql/lib/with-defaults.js | 13 - node_modules/@octokit/graphql/package.json | 109 ++---- .../@octokit/request-error/package.json | 4 +- .../universal-user-agent/LICENSE.md | 7 - .../universal-user-agent/README.md | 25 -- .../universal-user-agent/dist-node/index.js | 22 -- .../dist-node/index.js.map | 1 - .../universal-user-agent/dist-src/browser.js | 3 - .../universal-user-agent/dist-src/index.js | 1 - .../universal-user-agent/dist-src/node.js | 12 - .../dist-types/browser.d.ts | 1 - .../dist-types/index.d.ts | 1 - .../universal-user-agent/dist-types/node.d.ts | 1 - .../universal-user-agent/dist-web/index.js | 6 - .../dist-web/index.js.map | 1 - .../universal-user-agent/package.json | 68 ---- node_modules/@octokit/request/package.json | 4 +- .../universal-user-agent/LICENSE.md | 7 - .../universal-user-agent/README.md | 25 -- .../universal-user-agent/dist-node/index.js | 22 -- .../dist-node/index.js.map | 1 - .../universal-user-agent/dist-src/browser.js | 3 - .../universal-user-agent/dist-src/index.js | 1 - .../universal-user-agent/dist-src/node.js | 12 - .../dist-types/browser.d.ts | 1 - .../dist-types/index.d.ts | 1 - .../universal-user-agent/dist-types/node.d.ts | 1 - .../universal-user-agent/dist-web/index.js | 6 - .../dist-web/index.js.map | 1 - .../universal-user-agent/package.json | 68 ---- node_modules/@octokit/rest/package.json | 28 +- .../types/.github/workflows/release.yml | 3 + .../types/.github/workflows/routes-update.yml | 2 + node_modules/@octokit/types/package.json | 25 +- .../scripts/update-endpoints/fetch-json.js | 11 +- .../@octokit/types/src/RequestInterface.ts | 19 +- node_modules/@octokit/types/src/VERSION.ts | 2 +- node_modules/@octokit/types/src/index.ts | 36 +- node_modules/@types/node/README.md | 2 +- node_modules/@types/node/child_process.d.ts | 29 +- node_modules/@types/node/fs.d.ts | 5 + node_modules/@types/node/package.json | 26 +- node_modules/@types/node/readline.d.ts | 7 + node_modules/atob-lite/package.json | 4 +- node_modules/before-after-hook/package.json | 4 +- node_modules/btoa-lite/package.json | 4 +- node_modules/cross-spawn/package.json | 4 +- node_modules/deprecation/package.json | 4 +- node_modules/end-of-stream/package.json | 4 +- node_modules/execa/package.json | 4 +- node_modules/get-stream/package.json | 4 +- node_modules/is-plain-object/package.json | 4 +- node_modules/is-stream/package.json | 4 +- node_modules/isexe/package.json | 4 +- node_modules/isobject/package.json | 4 +- node_modules/lodash.get/package.json | 4 +- node_modules/lodash.set/package.json | 4 +- node_modules/lodash.uniq/package.json | 4 +- node_modules/macos-release/package.json | 4 +- node_modules/nice-try/package.json | 4 +- node_modules/node-fetch/package.json | 4 +- node_modules/npm-run-path/package.json | 4 +- .../octokit-pagination-methods/package.json | 4 +- node_modules/once/package.json | 4 +- node_modules/os-name/package.json | 4 +- node_modules/p-finally/package.json | 4 +- node_modules/path-key/package.json | 4 +- node_modules/pump/package.json | 4 +- node_modules/semver/package.json | 4 +- node_modules/shebang-command/package.json | 4 +- node_modules/shebang-regex/package.json | 4 +- node_modules/signal-exit/package.json | 4 +- node_modules/strip-eof/package.json | 4 +- node_modules/universal-user-agent/.travis.yml | 38 -- node_modules/universal-user-agent/README.md | 6 +- node_modules/universal-user-agent/browser.js | 6 - .../universal-user-agent/cypress.json | 4 - .../universal-user-agent/dist-node/index.js | 0 .../dist-node/index.js.map | 0 .../universal-user-agent/dist-src/browser.js | 0 .../universal-user-agent/dist-src/index.js | 0 .../universal-user-agent/dist-src/node.js | 0 .../dist-types/browser.d.ts | 0 .../dist-types/index.d.ts | 0 .../universal-user-agent/dist-types/node.d.ts | 0 .../universal-user-agent/dist-web/index.js | 0 .../dist-web/index.js.map | 0 node_modules/universal-user-agent/index.d.ts | 1 - node_modules/universal-user-agent/index.js | 15 - .../universal-user-agent/package.json | 86 ++--- .../universal-user-agent/test/smoke-test.js | 57 --- node_modules/which/package.json | 4 +- node_modules/windows-release/package.json | 4 +- node_modules/wrappy/package.json | 4 +- package-lock.json | 122 +++---- package.json | 14 +- src/default_index_html.js | 238 +++++++------ src/write.js | 1 + 137 files changed, 1033 insertions(+), 1285 deletions(-) delete mode 100644 node_modules/@actions/exec/LICENSE.md delete mode 100644 node_modules/@actions/github/LICENSE.md delete mode 100644 node_modules/@octokit/endpoint/node_modules/universal-user-agent/LICENSE.md delete mode 100644 node_modules/@octokit/endpoint/node_modules/universal-user-agent/README.md delete mode 100644 node_modules/@octokit/endpoint/node_modules/universal-user-agent/package.json create mode 100644 node_modules/@octokit/graphql/dist-node/index.js create mode 100644 node_modules/@octokit/graphql/dist-node/index.js.map create mode 100644 node_modules/@octokit/graphql/dist-src/error.js create mode 100644 node_modules/@octokit/graphql/dist-src/graphql.js create mode 100644 node_modules/@octokit/graphql/dist-src/index.js create mode 100644 node_modules/@octokit/graphql/dist-src/types.js create mode 100644 node_modules/@octokit/graphql/dist-src/version.js create mode 100644 node_modules/@octokit/graphql/dist-src/with-defaults.js create mode 100644 node_modules/@octokit/graphql/dist-types/error.d.ts create mode 100644 node_modules/@octokit/graphql/dist-types/graphql.d.ts create mode 100644 node_modules/@octokit/graphql/dist-types/index.d.ts create mode 100644 node_modules/@octokit/graphql/dist-types/types.d.ts create mode 100644 node_modules/@octokit/graphql/dist-types/version.d.ts create mode 100644 node_modules/@octokit/graphql/dist-types/with-defaults.d.ts create mode 100644 node_modules/@octokit/graphql/dist-web/index.js create mode 100644 node_modules/@octokit/graphql/dist-web/index.js.map delete mode 100644 node_modules/@octokit/graphql/index.js delete mode 100644 node_modules/@octokit/graphql/lib/error.js delete mode 100644 node_modules/@octokit/graphql/lib/graphql.js delete mode 100644 node_modules/@octokit/graphql/lib/with-defaults.js delete mode 100644 node_modules/@octokit/request/node_modules/universal-user-agent/LICENSE.md delete mode 100644 node_modules/@octokit/request/node_modules/universal-user-agent/README.md delete mode 100644 node_modules/@octokit/request/node_modules/universal-user-agent/dist-node/index.js delete mode 100644 node_modules/@octokit/request/node_modules/universal-user-agent/dist-node/index.js.map delete mode 100644 node_modules/@octokit/request/node_modules/universal-user-agent/dist-src/browser.js delete mode 100644 node_modules/@octokit/request/node_modules/universal-user-agent/dist-src/index.js delete mode 100644 node_modules/@octokit/request/node_modules/universal-user-agent/dist-src/node.js delete mode 100644 node_modules/@octokit/request/node_modules/universal-user-agent/dist-types/browser.d.ts delete mode 100644 node_modules/@octokit/request/node_modules/universal-user-agent/dist-types/index.d.ts delete mode 100644 node_modules/@octokit/request/node_modules/universal-user-agent/dist-types/node.d.ts delete mode 100644 node_modules/@octokit/request/node_modules/universal-user-agent/dist-web/index.js delete mode 100644 node_modules/@octokit/request/node_modules/universal-user-agent/dist-web/index.js.map delete mode 100644 node_modules/@octokit/request/node_modules/universal-user-agent/package.json delete mode 100644 node_modules/@octokit/rest/node_modules/universal-user-agent/LICENSE.md delete mode 100644 node_modules/@octokit/rest/node_modules/universal-user-agent/README.md delete mode 100644 node_modules/@octokit/rest/node_modules/universal-user-agent/dist-node/index.js delete mode 100644 node_modules/@octokit/rest/node_modules/universal-user-agent/dist-node/index.js.map delete mode 100644 node_modules/@octokit/rest/node_modules/universal-user-agent/dist-src/browser.js delete mode 100644 node_modules/@octokit/rest/node_modules/universal-user-agent/dist-src/index.js delete mode 100644 node_modules/@octokit/rest/node_modules/universal-user-agent/dist-src/node.js delete mode 100644 node_modules/@octokit/rest/node_modules/universal-user-agent/dist-types/browser.d.ts delete mode 100644 node_modules/@octokit/rest/node_modules/universal-user-agent/dist-types/index.d.ts delete mode 100644 node_modules/@octokit/rest/node_modules/universal-user-agent/dist-types/node.d.ts delete mode 100644 node_modules/@octokit/rest/node_modules/universal-user-agent/dist-web/index.js delete mode 100644 node_modules/@octokit/rest/node_modules/universal-user-agent/dist-web/index.js.map delete mode 100644 node_modules/@octokit/rest/node_modules/universal-user-agent/package.json delete mode 100644 node_modules/universal-user-agent/.travis.yml delete mode 100644 node_modules/universal-user-agent/browser.js delete mode 100644 node_modules/universal-user-agent/cypress.json rename node_modules/{@octokit/endpoint/node_modules => }/universal-user-agent/dist-node/index.js (100%) rename node_modules/{@octokit/endpoint/node_modules => }/universal-user-agent/dist-node/index.js.map (100%) rename node_modules/{@octokit/endpoint/node_modules => }/universal-user-agent/dist-src/browser.js (100%) rename node_modules/{@octokit/endpoint/node_modules => }/universal-user-agent/dist-src/index.js (100%) rename node_modules/{@octokit/endpoint/node_modules => }/universal-user-agent/dist-src/node.js (100%) rename node_modules/{@octokit/endpoint/node_modules => }/universal-user-agent/dist-types/browser.d.ts (100%) rename node_modules/{@octokit/endpoint/node_modules => }/universal-user-agent/dist-types/index.d.ts (100%) rename node_modules/{@octokit/endpoint/node_modules => }/universal-user-agent/dist-types/node.d.ts (100%) rename node_modules/{@octokit/endpoint/node_modules => }/universal-user-agent/dist-web/index.js (100%) rename node_modules/{@octokit/endpoint/node_modules => }/universal-user-agent/dist-web/index.js.map (100%) delete mode 100644 node_modules/universal-user-agent/index.d.ts delete mode 100644 node_modules/universal-user-agent/index.js delete mode 100644 node_modules/universal-user-agent/test/smoke-test.js diff --git a/node_modules/@actions/core/package.json b/node_modules/@actions/core/package.json index 1701c7c0d..5cbe78f20 100644 --- a/node_modules/@actions/core/package.json +++ b/node_modules/@actions/core/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@actions/core@1.2.0", - "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" + "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark" ] ], "_from": "@actions/core@1.2.0", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@actions/core/-/core-1.2.0.tgz", "_spec": "1.2.0", - "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", + "_where": "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark", "bugs": { "url": "https://github.com/actions/toolkit/issues" }, diff --git a/node_modules/@actions/exec/LICENSE.md b/node_modules/@actions/exec/LICENSE.md deleted file mode 100644 index e5a73f40e..000000000 --- a/node_modules/@actions/exec/LICENSE.md +++ /dev/null @@ -1,7 +0,0 @@ -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/exec/README.md b/node_modules/@actions/exec/README.md index e3eff742a..7897ba5ad 100644 --- a/node_modules/@actions/exec/README.md +++ b/node_modules/@actions/exec/README.md @@ -48,13 +48,10 @@ await exec.exec('node', ['index.js', 'foo=bar'], options); #### Exec tools not in the PATH -You can use it in conjunction with the `which` function from `@actions/io` to execute tools that are not in the PATH: +You can specify the full path for tools not in the PATH: ```js const exec = require('@actions/exec'); -const io = require('@actions/io'); -const pythonPath: string = await io.which('python', true) - -await exec.exec(`"${pythonPath}"`, ['main.py']); +await exec.exec('"/path/to/my-tool"', ['arg1']); ``` diff --git a/node_modules/@actions/exec/lib/toolrunner.js b/node_modules/@actions/exec/lib/toolrunner.js index 17d78f31f..cbb433d11 100644 --- a/node_modules/@actions/exec/lib/toolrunner.js +++ b/node_modules/@actions/exec/lib/toolrunner.js @@ -12,6 +12,9 @@ Object.defineProperty(exports, "__esModule", { value: true }); const os = require("os"); const events = require("events"); const child = require("child_process"); +const path = require("path"); +const io = require("@actions/io"); +const ioUtil = require("@actions/io/lib/io-util"); /* eslint-disable @typescript-eslint/unbound-method */ const IS_WINDOWS = process.platform === 'win32'; /* @@ -357,6 +360,16 @@ class ToolRunner extends events.EventEmitter { */ exec() { return __awaiter(this, void 0, void 0, function* () { + // root the tool path if it is unrooted and contains relative pathing + if (!ioUtil.isRooted(this.toolPath) && + (this.toolPath.includes('/') || + (IS_WINDOWS && this.toolPath.includes('\\')))) { + // prefer options.cwd if it is specified, however options.cwd may also need to be rooted + this.toolPath = path.resolve(process.cwd(), this.options.cwd || process.cwd(), this.toolPath); + } + // if the tool is only a file name, then resolve it from the PATH + // otherwise verify it exists (add extension on Windows if necessary) + this.toolPath = yield io.which(this.toolPath, true); return new Promise((resolve, reject) => { this._debug(`exec tool: ${this.toolPath}`); this._debug('arguments:'); diff --git a/node_modules/@actions/exec/lib/toolrunner.js.map b/node_modules/@actions/exec/lib/toolrunner.js.map index de911ccae..41a1a39a0 100644 --- a/node_modules/@actions/exec/lib/toolrunner.js.map +++ b/node_modules/@actions/exec/lib/toolrunner.js.map @@ -1 +1 @@ -{"version":3,"file":"toolrunner.js","sourceRoot":"","sources":["../src/toolrunner.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,yBAAwB;AACxB,iCAAgC;AAChC,uCAAsC;AAItC,sDAAsD;AAEtD,MAAM,UAAU,GAAG,OAAO,CAAC,QAAQ,KAAK,OAAO,CAAA;AAE/C;;GAEG;AACH,MAAa,UAAW,SAAQ,MAAM,CAAC,YAAY;IACjD,YAAY,QAAgB,EAAE,IAAe,EAAE,OAAwB;QACrE,KAAK,EAAE,CAAA;QAEP,IAAI,CAAC,QAAQ,EAAE;YACb,MAAM,IAAI,KAAK,CAAC,+CAA+C,CAAC,CAAA;SACjE;QAED,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAA;QACxB,IAAI,CAAC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAA;QACtB,IAAI,CAAC,OAAO,GAAG,OAAO,IAAI,EAAE,CAAA;IAC9B,CAAC;IAMO,MAAM,CAAC,OAAe;QAC5B,IAAI,IAAI,CAAC,OAAO,CAA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EAAE,IAAI,CAAC,eAAe,CAAC,CAAA;IAChD,CAAC;IAEO,MAAM,CAAC,aAAa,CAAC,KAAgB;QAC3C,IAAI,KAAK,CAAC,IAAI,EAAE;YACd,OAAM;SACP;QAED,IAAI,CAAC,KAAK,CAAC,aAAa,IAAI,KAAK,CAAC,aAAa,EAAE;YAC/C,MAAM,OAAO,GAAG,0CAA0C,KAAK,CAAC,KAAK;gBACnE,IAAI,4CACJ,KAAK,CAAC,QACR,0FAA0F,CAAA;YAC1F,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAA;SACtB;QAED,KAAK,CAAC,UAAU,EAAE,CAAA;IACpB,CAAC;CACF"} \ No newline at end of file diff --git a/node_modules/@actions/exec/package.json b/node_modules/@actions/exec/package.json index 2beefcffc..ffcb065f2 100644 --- a/node_modules/@actions/exec/package.json +++ b/node_modules/@actions/exec/package.json @@ -1,40 +1,40 @@ { "_args": [ [ - "@actions/exec@1.0.1", - "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" + "@actions/exec@1.0.2", + "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark" ] ], - "_from": "@actions/exec@1.0.1", - "_id": "@actions/exec@1.0.1", + "_from": "@actions/exec@1.0.2", + "_id": "@actions/exec@1.0.2", "_inBundle": false, - "_integrity": "sha512-nvFkxwiicvpzNiCBF4wFBDfnBvi7xp/as7LE1hBxBxKG2L29+gkIPBiLKMVORL+Hg3JNf07AKRfl0V5djoypjQ==", + "_integrity": "sha512-Yo/wfcFuxbVjAaAfvx3aGLhMEuonOahas2jf8BwyA52IkXTAmLi7YVZTpGAQG/lTxuGoNLg9slTWQD4rr7rMDQ==", "_location": "/@actions/exec", "_phantomChildren": {}, "_requested": { "type": "version", "registry": true, - "raw": "@actions/exec@1.0.1", + "raw": "@actions/exec@1.0.2", "name": "@actions/exec", "escapedName": "@actions%2fexec", "scope": "@actions", - "rawSpec": "1.0.1", + "rawSpec": "1.0.2", "saveSpec": null, - "fetchSpec": "1.0.1" + "fetchSpec": "1.0.2" }, "_requiredBy": [ "/" ], - "_resolved": "https://registry.npmjs.org/@actions/exec/-/exec-1.0.1.tgz", - "_spec": "1.0.1", - "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", + "_resolved": "https://registry.npmjs.org/@actions/exec/-/exec-1.0.2.tgz", + "_spec": "1.0.2", + "_where": "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark", "bugs": { "url": "https://github.com/actions/toolkit/issues" }, - "description": "Actions exec lib", - "devDependencies": { + "dependencies": { "@actions/io": "^1.0.1" }, + "description": "Actions exec lib", "directories": { "lib": "lib", "test": "__tests__" @@ -42,7 +42,6 @@ "files": [ "lib" ], - "gitHead": "a2ab4bcf78e4f7080f0d45856e6eeba16f0bbc52", "homepage": "https://github.com/actions/toolkit/tree/master/packages/exec", "keywords": [ "github", @@ -57,11 +56,12 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/actions/toolkit.git" + "url": "git+https://github.com/actions/toolkit.git", + "directory": "packages/exec" }, "scripts": { "test": "echo \"Error: run tests from root\" && exit 1", "tsc": "tsc" }, - "version": "1.0.1" + "version": "1.0.2" } diff --git a/node_modules/@actions/github/LICENSE.md b/node_modules/@actions/github/LICENSE.md deleted file mode 100644 index e5a73f40e..000000000 --- a/node_modules/@actions/github/LICENSE.md +++ /dev/null @@ -1,7 +0,0 @@ -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 b4312568d..8f2cbe39b 100644 --- a/node_modules/@actions/github/README.md +++ b/node_modules/@actions/github/README.md @@ -10,21 +10,28 @@ Returns an Octokit client. See https://octokit.github.io/rest.js for the API. 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); +async function run() { + // This should be a token with access to your repository scoped in as a secret. + // The YML workflow will need to set myToken with the GitHub Secret Token + // myToken: ${{ secrets.GITHUB_TOKEN }} + // https://help.github.com/en/articles/virtual-environments-for-github-actions#github_token-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); +} + +run(); ``` 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. diff --git a/node_modules/@actions/github/lib/context.js b/node_modules/@actions/github/lib/context.js index 0df128f7a..7f5e7dabb 100644 --- a/node_modules/@actions/github/lib/context.js +++ b/node_modules/@actions/github/lib/context.js @@ -13,7 +13,8 @@ class Context { 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}`); + const path = process.env.GITHUB_EVENT_PATH; + process.stdout.write(`GITHUB_EVENT_PATH ${path} does not exist${os_1.EOL}`); } } this.eventName = process.env.GITHUB_EVENT_NAME; diff --git a/node_modules/@actions/github/lib/context.js.map b/node_modules/@actions/github/lib/context.js.map index 24eabd873..903040cd5 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":";;AAEA,2BAA2C;AAC3C,2BAAsB;AAEtB,MAAa,OAAO;IAalB;;OAEG;IACH;QACE,IAAI,CAAC,OAAO,GAAG,EAAE,CAAA;QACjB,IAAI,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE;YACjC,IAAI,eAAU,CAAC,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,EAAE;gBAC7C,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,KAAK,CACvB,iBAAY,CAAC,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE,EAAC,QAAQ,EAAE,MAAM,EAAC,CAAC,CAChE,CAAA;aACF;iBAAM;gBACL,OAAO,CAAC,MAAM,CAAC,KAAK,CAClB,qBACE,OAAO,CAAC,GAAG,CAAC,iBACd,kBAAkB,QAAG,EAAE,CACxB,CAAA;aACF;SACF;QACD,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,iBAA2B,CAAA;QACxD,IAAI,CAAC,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,UAAoB,CAAA;QAC3C,IAAI,CAAC,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,UAAoB,CAAA;QAC3C,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,eAAyB,CAAA;QACrD,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,aAAuB,CAAA;QACjD,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,YAAsB,CAAA;IACjD,CAAC;IAED,IAAI,KAAK;QACP,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAA;QAE5B,uCACK,IAAI,CAAC,IAAI,KACZ,MAAM,EAAE,CAAC,OAAO,CAAC,KAAK,IAAI,OAAO,CAAC,WAAW,IAAI,OAAO,CAAC,CAAC,MAAM,IACjE;IACH,CAAC;IAED,IAAI,IAAI;QACN,IAAI,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE;YACjC,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,OAAO,CAAC,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 +{"version":3,"file":"context.js","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":";;AAEA,2BAA2C;AAC3C,2BAAsB;AAEtB,MAAa,OAAO;IAalB;;OAEG;IACH;QACE,IAAI,CAAC,OAAO,GAAG,EAAE,CAAA;QACjB,IAAI,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE;YACjC,IAAI,eAAU,CAAC,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,EAAE;gBAC7C,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,KAAK,CACvB,iBAAY,CAAC,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE,EAAC,QAAQ,EAAE,MAAM,EAAC,CAAC,CA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AU,CAAC,IAAI;aACnC,CAAA;SACF;QAED,MAAM,IAAI,KAAK,CACb,kFAAkF,CACnF,CAAA;IACH,CAAC;CACF;AA9DD,0BA8DC"} \ 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 7c5b9f2bc..592648685 100644 --- a/node_modules/@actions/github/lib/github.d.ts +++ b/node_modules/@actions/github/lib/github.d.ts @@ -1,8 +1,8 @@ -import { GraphQlQueryResponse, Variables } from '@octokit/graphql'; +import { graphql as GraphQL } from '@octokit/graphql/dist-types/types'; 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; + graphql: GraphQL; constructor(token: string, opts?: Omit); } diff --git a/node_modules/@actions/github/lib/github.js b/node_modules/@actions/github/lib/github.js index d5c782f6d..f5e576954 100644 --- a/node_modules/@actions/github/lib/github.js +++ b/node_modules/@actions/github/lib/github.js @@ -20,7 +20,7 @@ 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({ + this.graphql = graphql_1.graphql.defaults({ headers: { authorization: `token ${token}` } }); } diff --git a/node_modules/@actions/github/lib/github.js.map b/node_modules/@actions/github/lib/github.js.map index 0c268e8c4..7ed3a7dfd 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;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 +{"version":3,"file":"github.js","sourceRoot":"","sources":["../src/github.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gGAAgG;AAChG,8CAAwC;AAOxC,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;IAGjC,YAAY,KAAa,EAAE,OAAsC,EAAE;QACjE,KAAK,iCAAK,IAAI,KAAE,IAAI,EAAE,SAAS,KAAK,EAAE,IAAE,CAAA;QAExC,IAAI,CAAC,OAAO,GAAG,iBAAO,CAAC,QAAQ,CAAC;YAC9B,OAAO,EAAE,EAAC,aAAa,EAAE,SAAS,KAAK,EAAE,EAAC;SAC3C,CAAC,CAAA;IACJ,CAAC;CACF;AAVD,wBAUC"} \ No newline at end of file diff --git a/node_modules/@actions/github/package.json b/node_modules/@actions/github/package.json index e6fdb6a44..10ab4f909 100644 --- a/node_modules/@actions/github/package.json +++ b/node_modules/@actions/github/package.json @@ -1,38 +1,38 @@ { "_args": [ [ - "@actions/github@1.1.0", - "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" + "@actions/github@2.0.0", + "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark" ] ], - "_from": "@actions/github@1.1.0", - "_id": "@actions/github@1.1.0", + "_from": "@actions/github@2.0.0", + "_id": "@actions/github@2.0.0", "_inBundle": false, - "_integrity": "sha512-cHf6PyoNMdei13jEdGPhKprIMFmjVVW/dnM5/9QmQDJ1ZTaGVyezUSCUIC/ySNLRvDUpeFwPYMdThSEJldSbUw==", + "_integrity": "sha512-sNpZ5dJyJyfJIO5lNYx8r/Gha4Tlm8R0MLO2cBkGdOnAAEn3t1M/MHVcoBhY/VPfjGVe5RNAUPz+6INrViiUPA==", "_location": "/@actions/github", "_phantomChildren": {}, "_requested": { "type": "version", "registry": true, - "raw": "@actions/github@1.1.0", + "raw": "@actions/github@2.0.0", "name": "@actions/github", "escapedName": "@actions%2fgithub", "scope": "@actions", - "rawSpec": "1.1.0", + "rawSpec": "2.0.0", "saveSpec": null, - "fetchSpec": "1.1.0" + "fetchSpec": "2.0.0" }, "_requiredBy": [ "/" ], - "_resolved": "https://registry.npmjs.org/@actions/github/-/github-1.1.0.tgz", - "_spec": "1.1.0", - "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", + "_resolved": "https://registry.npmjs.org/@actions/github/-/github-2.0.0.tgz", + "_spec": "2.0.0", + "_where": "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark", "bugs": { "url": "https://github.com/actions/toolkit/issues" }, "dependencies": { - "@octokit/graphql": "^2.0.1", + "@octokit/graphql": "^4.3.1", "@octokit/rest": "^16.15.0" }, "description": "Actions github lib", @@ -46,7 +46,6 @@ "files": [ "lib" ], - "gitHead": "a2ab4bcf78e4f7080f0d45856e6eeba16f0bbc52", "homepage": "https://github.com/actions/toolkit/tree/master/packages/github", "keywords": [ "github", @@ -60,12 +59,15 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/actions/toolkit.git" + "url": "git+https://github.com/actions/toolkit.git", + "directory": "packages/github" }, "scripts": { "build": "tsc", + "format": "prettier --write **/*.ts", + "format-check": "prettier --check **/*.ts", "test": "jest", "tsc": "tsc" }, - "version": "1.1.0" + "version": "2.0.0" } diff --git a/node_modules/@actions/io/package.json b/node_modules/@actions/io/package.json index a1b651cd5..360fa0290 100644 --- a/node_modules/@actions/io/package.json +++ b/node_modules/@actions/io/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@actions/io@1.0.1", - "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" + "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark" ] ], "_from": "@actions/io@1.0.1", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/@actions/io/-/io-1.0.1.tgz", "_spec": "1.0.1", - "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", + "_where": "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark", "bugs": { "url": "https://github.com/actions/toolkit/issues" }, diff --git a/node_modules/@octokit/endpoint/node_modules/universal-user-agent/LICENSE.md b/node_modules/@octokit/endpoint/node_modules/universal-user-agent/LICENSE.md deleted file mode 100644 index f105ab0c0..000000000 --- a/node_modules/@octokit/endpoint/node_modules/universal-user-agent/LICENSE.md +++ /dev/null @@ -1,7 +0,0 @@ -# [ISC License](https://spdx.org/licenses/ISC) - -Copyright (c) 2018, Gregor Martynus (https://github.com/gr2m) - -Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 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 deleted file mode 100644 index d00d14c1f..000000000 --- a/node_modules/@octokit/endpoint/node_modules/universal-user-agent/README.md +++ /dev/null @@ -1,25 +0,0 @@ -# universal-user-agent - -> Get a user agent string in both browser and node - -[![@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) -[![Greenkeeper](https://badges.greenkeeper.io/gr2m/universal-user-agent.svg)](https://greenkeeper.io/) - -```js -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) -``` - -## Credits - -The Node implementation was originally inspired by [default-user-agent](https://www.npmjs.com/package/default-user-agent). - -## License - -[ISC](LICENSE.md) 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 deleted file mode 100644 index 451360cba..000000000 --- a/node_modules/@octokit/endpoint/node_modules/universal-user-agent/package.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "_args": [ - [ - "universal-user-agent@4.0.0", - "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" - ] - ], - "_from": "universal-user-agent@4.0.0", - "_id": "universal-user-agent@4.0.0", - "_inBundle": false, - "_integrity": "sha512-eM8knLpev67iBDizr/YtqkJsF3GK8gzDc6st/WKzrTuPtcsOKW/0IdL4cnMBsU69pOx0otavLWBDGTwg+dB0aA==", - "_location": "/@octokit/endpoint/universal-user-agent", - "_phantomChildren": {}, - "_requested": { - "type": "version", - "registry": true, - "raw": "universal-user-agent@4.0.0", - "name": "universal-user-agent", - "escapedName": "universal-user-agent", - "rawSpec": "4.0.0", - "saveSpec": null, - "fetchSpec": "4.0.0" - }, - "_requiredBy": [ - "/@octokit/endpoint" - ], - "_resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-4.0.0.tgz", - "_spec": "4.0.0", - "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", - "bugs": { - "url": "https://github.com/gr2m/universal-user-agent/issues" - }, - "dependencies": { - "os-name": "^3.1.0" - }, - "description": "Get a user agent string in both browser and node", - "devDependencies": { - "@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", - "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": "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" - }, - "sideEffects": false, - "source": "dist-src/index.js", - "types": "dist-types/index.d.ts", - "version": "4.0.0" -} diff --git a/node_modules/@octokit/endpoint/package.json b/node_modules/@octokit/endpoint/package.json index 637283136..d85c379e3 100644 --- a/node_modules/@octokit/endpoint/package.json +++ b/node_modules/@octokit/endpoint/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@octokit/endpoint@5.5.1", - "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" + "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark" ] ], "_from": "@octokit/endpoint@5.5.1", @@ -29,7 +29,7 @@ ], "_resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-5.5.1.tgz", "_spec": "5.5.1", - "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", + "_where": "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark", "bugs": { "url": "https://github.com/octokit/endpoint.js/issues" }, diff --git a/node_modules/@octokit/graphql/README.md b/node_modules/@octokit/graphql/README.md index 4e44592ce..dd797d944 100644 --- a/node_modules/@octokit/graphql/README.md +++ b/node_modules/@octokit/graphql/README.md @@ -4,13 +4,18 @@ [![@latest](https://img.shields.io/npm/v/@octokit/graphql.svg)](https://www.npmjs.com/package/@octokit/graphql) [![Build Status](https://travis-ci.com/octokit/graphql.js.svg?branch=master)](https://travis-ci.com/octokit/graphql.js) -[![Coverage Status](https://coveralls.io/repos/github/octokit/graphql.js/badge.svg)](https://coveralls.io/github/octokit/graphql.js) [![Greenkeeper](https://badges.greenkeeper.io/octokit/graphql.js.svg)](https://greenkeeper.io/) - [Usage](#usage) + - [Send a simple query](#send-a-simple-query) + - [Authentication](#authentication) + - [Variables](#variables) + - [Pass query together with headers and variables](#pass-query-together-with-headers-and-variables) + - [Use your own `@octokit/request` instance](#) - [Errors](#errors) +- [Partial responses](#partial-responses) - [Writing tests](#writing-tests) - [License](#license) @@ -18,108 +23,145 @@ ## Usage -Send a simple query + + + + + +
+Browsers + + +Load `@octokit/graphql` directly from [cdn.pika.dev](https://cdn.pika.dev) + +```html + +``` + +
+Node + + +Install with npm install @octokit/graphql ```js -const graphql = require('@octokit/graphql') -const { repository } = await graphql(`{ - repository(owner:"octokit", name:"graphql.js") { - issues(last:3) { - edges { - node { - title - } - } - } - } -}`, { - headers: { - authorization: `token secret123` - } -}) +const { graphql } = require("@octokit/graphql"); +// or: import { graphql } from "@octokit/graphql"; ``` -⚠️ Do not use [template literals](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals) in the query strings as they make your code vulnerable to query injection attacks (see [#2](https://github.com/octokit/graphql.js/issues/2)). Use variables instead: +
+ +### Send a simple query ```js -const graphql = require('@octokit/graphql') -const { lastIssues } = await graphql(`query lastIssues($owner: String!, $repo: String!, $num: Int = 3) { - repository(owner:$owner, name:$repo) { - issues(last:$num) { - edges { - node { - title +const { repository } = await graphql( + ` + { + repository(owner: "octokit", name: "graphql.js") { + issues(last: 3) { + edges { + node { + title + } } } } } - }`, { - owner: 'octokit', - repo: 'graphql.js' + `, + { headers: { authorization: `token secret123` } } -}) +); ``` -Create two new clients and set separate default configs for them. +### Authentication + +The simplest way to authenticate a request is to set the `Authorization` header, e.g. to a [personal access token](https://github.com/settings/tokens/). ```js -const graphql1 = require('@octokit/graphql').defaults({ +const graphqlWithAuth = graphql.defaults({ headers: { authorization: `token secret123` } -}) - -const graphql2 = require('@octokit/graphql').defaults({ - headers: { - authorization: `token foobar` +}); +const { repository } = await graphqlWithAuth(` + { + repository(owner: "octokit", name: "graphql.js") { + issues(last: 3) { + edges { + node { + title + } + } + } + } } -}) +`); ``` -Create two clients, the second inherits config from the first. +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 graphql1 = require('@octokit/graphql').defaults({ - headers: { - authorization: `token secret123` +const { createAppAuth } = require("@octokit/auth-app"); +const auth = createAppAuth({ + id: process.env.APP_ID, + privateKey: process.env.PRIVATE_KEY, + installationId: 123 +}); +const graphqlWithAuth = graphql.defaults({ + request: { + hook: auth.hook } -}) +}); -const graphql2 = graphql1.defaults({ - headers: { - 'user-agent': 'my-user-agent/v1.2.3' - } -}) +const { repository } = await graphqlWithAuth( + `{ + repository(owner: "octokit", name: "graphql.js") { + issues(last: 3) { + edges { + node { + title + } + } + } + } + }` +); ``` -Create a new client with default options and run query +### Variables + +⚠️ Do not use [template literals](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals) in the query strings as they make your code vulnerable to query injection attacks (see [#2](https://github.com/octokit/graphql.js/issues/2)). Use variables instead: ```js -const graphql = require('@octokit/graphql').defaults({ - headers: { - authorization: `token secret123` - } -}) -const { repository } = await graphql(`{ - repository(owner:"octokit", name:"graphql.js") { - issues(last:3) { - edges { - node { - title +const { lastIssues } = await graphql(`query lastIssues($owner: String!, $repo: String!, $num: Int = 3) { + repository(owner:$owner, name:$repo) { + issues(last:$num) { + edges { + node { + title + } } } } + }`, { + owner: 'octokit', + repo: 'graphql.js' + headers: { + authorization: `token secret123` + } } -}`) +}) ``` -Pass query together with headers and variables +### Pass query together with headers and variables ```js -const graphql = require('@octokit/graphql') +const { graphql } = require('@octokit/graphql') const { lastIssues } = await graphql({ query: `query lastIssues($owner: String!, $repo: String!, $num: Int = 3) { repository(owner:$owner, name:$repo) { @@ -140,26 +182,65 @@ const { lastIssues } = await graphql({ }) ``` -Use with GitHub Enterprise +### Use with GitHub Enterprise ```js -const graphql = require('@octokit/graphql').defaults({ - baseUrl: 'https://github-enterprise.acme-inc.com/api', +let { graphql } = require("@octokit/graphql"); +graphql = graphql.defaults({ + baseUrl: "https://github-enterprise.acme-inc.com/api", headers: { authorization: `token secret123` } +}); +const { repository } = await graphql(` + { + repository(owner: "acme-project", name: "acme-repo") { + issues(last: 3) { + edges { + node { + title + } + } + } + } + } +`); +``` + +### Use custom `@octokit/request` instance + +```js +const { request } = require("@octokit/request"); +const { withCustomRequest } = require("@octokit/graphql"); + +let requestCounter = 0 +const myRequest = request.defaults({ + headers: { + authentication: 'token secret123' + }, + request: { + hook(request, options) { + requestCounter++ + return request(options) + } + } }) -const { repository } = await graphql(`{ - repository(owner:"acme-project", name:"acme-repo") { - issues(last:3) { - edges { - node { - title +const myGraphql = withCustomRequest(myRequest) +await request('/') +await myGraphql(` + { + repository(owner: "acme-project", name: "acme-repo") { + issues(last: 3) { + edges { + node { + title + } } } } } -}`) +`); +// requestCounter is now 2 ``` ## Errors @@ -167,19 +248,20 @@ const { repository } = await graphql(`{ In case of a GraphQL error, `error.message` is set to the first error from the response’s `errors` array. All errors can be accessed at `error.errors`. `error.request` has the request options such as query, variables and headers set for easier debugging. ```js -const graphql = require('@octokit/graphql').defaults({ +let { graphql } = require("@octokit/graphql"); +graphqlt = graphql.defaults({ headers: { authorization: `token secret123` } -}) +}); const query = `{ viewer { bioHtml } -}` +}`; try { - const result = await graphql(query) + const result = await graphql(query); } catch (error) { // server responds with // { @@ -193,8 +275,8 @@ try { // }] // } - console.log('Request failed:', error.request) // { query, variables: {}, headers: { authorization: 'token secret123' } } - console.log(error.message) // Field 'bioHtml' doesn't exist on type 'User' + console.log("Request failed:", error.request); // { query, variables: {}, headers: { authorization: 'token secret123' } } + console.log(error.message); // Field 'bioHtml' doesn't exist on type 'User' } ``` @@ -203,11 +285,12 @@ try { A GraphQL query may respond with partial data accompanied by errors. In this case we will throw an error but the partial data will still be accessible through `error.data` ```js -const graphql = require('@octokit/graphql').defaults({ +let { graphql } = require("@octokit/graphql"); +graphql = graphql.defaults({ headers: { authorization: `token secret123` } -}) +}); const query = `{ repository(name: "probot", owner: "probot") { name @@ -223,42 +306,42 @@ const query = `{ } } } -}` +}`; try { - const result = await graphql(query) + const result = await graphql(query); } catch (error) { // server responds with - // {  - // "data": {  - // "repository": {  - // "name": "probot",  - // "ref": null  - // }  - // },  - // "errors": [  - // {  - // "type": "INVALID_CURSOR_ARGUMENTS",  - // "path": [  - // "repository",  - // "ref",  - // "target",  - // "history"  - // ],  - // "locations": [  - // {  - // "line": 7,  - // "column": 11  - // }  - // ],  - // "message": "`invalid cursor` does not appear to be a valid cursor."  - // }  - // ]  - // }  - - console.log('Request failed:', error.request) // { query, variables: {}, headers: { authorization: 'token secret123' } } - console.log(error.message) // `invalid cursor` does not appear to be a valid cursor. - console.log(error.data) // { repository: { name: 'probot', ref: null } } + // { + // "data": { + // "repository": { + // "name": "probot", + // "ref": null + // } + // }, + // "errors": [ + // { + // "type": "INVALID_CURSOR_ARGUMENTS", + // "path": [ + // "repository", + // "ref", + // "target", + // "history" + // ], + // "locations": [ + // { + // "line": 7, + // "column": 11 + // } + // ], + // "message": "`invalid cursor` does not appear to be a valid cursor." + // } + // ] + // } + + console.log("Request failed:", error.request); // { query, variables: {}, headers: { authorization: 'token secret123' } } + console.log(error.message); // `invalid cursor` does not appear to be a valid cursor. + console.log(error.data); // { repository: { name: 'probot', ref: null } } } ``` @@ -267,24 +350,29 @@ try { You can pass a replacement for [the built-in fetch implementation](https://github.com/bitinn/node-fetch) as `request.fetch` option. For example, using [fetch-mock](http://www.wheresrhys.co.uk/fetch-mock/) works great to write tests ```js -const assert = require('assert') -const fetchMock = require('fetch-mock/es5/server') +const assert = require("assert"); +const fetchMock = require("fetch-mock/es5/server"); -const graphql = require('@octokit/graphql') +const { graphql } = require("@octokit/graphql"); -graphql('{ viewer { login } }', { +graphql("{ viewer { login } }", { headers: { - authorization: 'token secret123' + authorization: "token secret123" }, request: { - fetch: fetchMock.sandbox() - .post('https://api.github.com/graphql', (url, options) => { - assert.strictEqual(options.headers.authorization, 'token secret123') - assert.strictEqual(options.body, '{"query":"{ viewer { login } }"}', 'Sends correct query') - return { data: {} } + fetch: fetchMock + .sandbox() + .post("https://api.github.com/graphql", (url, options) => { + assert.strictEqual(options.headers.authorization, "token secret123"); + assert.strictEqual( + options.body, + '{"query":"{ viewer { login } }"}', + "Sends correct query" + ); + return { data: {} }; }) } -}) +}); ``` ## License diff --git a/node_modules/@octokit/graphql/dist-node/index.js b/node_modules/@octokit/graphql/dist-node/index.js new file mode 100644 index 000000000..48bb799aa --- /dev/null +++ b/node_modules/@octokit/graphql/dist-node/index.js @@ -0,0 +1,85 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +var request = require('@octokit/request'); +var universalUserAgent = require('universal-user-agent'); + +const VERSION = "4.3.1"; + +class GraphqlError extends Error { + constructor(request, response) { + const message = response.data.errors[0].message; + super(message); + Object.assign(this, response.data); + this.name = "GraphqlError"; + this.request = request; // Maintains proper stack trace (only available on V8) + + /* istanbul ignore next */ + + if (Error.captureStackTrace) { + Error.captureStackTrace(this, this.constructor); + } + } + +} + +const NON_VARIABLE_OPTIONS = ["method", "baseUrl", "url", "headers", "request", "query"]; +function graphql(request, query, options) { + options = typeof query === "string" ? options = Object.assign({ + query + }, options) : options = query; + const requestOptions = Object.keys(options).reduce((result, key) => { + if (NON_VARIABLE_OPTIONS.includes(key)) { + result[key] = options[key]; + return result; + } + + if (!result.variables) { + result.variables = {}; + } + + result.variables[key] = options[key]; + return result; + }, {}); + return request(requestOptions).then(response => { + if (response.data.errors) { + throw new GraphqlError(requestOptions, { + data: response.data + }); + } + + return response.data.data; + }); +} + +function withDefaults(request$1, newDefaults) { + const newRequest = request$1.defaults(newDefaults); + + const newApi = (query, options) => { + return graphql(newRequest, query, options); + }; + + return Object.assign(newApi, { + defaults: withDefaults.bind(null, newRequest), + endpoint: request.request.endpoint + }); +} + +const graphql$1 = withDefaults(request.request, { + headers: { + "user-agent": `octokit-graphql.js/${VERSION} ${universalUserAgent.getUserAgent()}` + }, + method: "POST", + url: "/graphql" +}); +function withCustomRequest(customRequest) { + return withDefaults(customRequest, { + method: "POST", + url: "/graphql" + }); +} + +exports.graphql = graphql$1; +exports.withCustomRequest = withCustomRequest; +//# sourceMappingURL=index.js.map diff --git a/node_modules/@octokit/graphql/dist-node/index.js.map b/node_modules/@octokit/graphql/dist-node/index.js.map new file mode 100644 index 000000000..0e967f987 --- /dev/null +++ b/node_modules/@octokit/graphql/dist-node/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sources":["../dist-src/version.js","../dist-src/error.js","../dist-src/graphql.js","../dist-src/with-defaults.js","../dist-src/index.js"],"sourcesContent":["export const VERSION = \"4.3.1\";\n","export class GraphqlError extends Error {\n constructor(request, response) {\n const message = response.data.errors[0].message;\n super(message);\n Object.assign(this, response.data);\n this.name = \"GraphqlError\";\n this.request = request;\n // Maintains proper stack trace (only available on V8)\n /* istanbul ignore next */\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, this.constructor);\n }\n }\n}\n","import { GraphqlError } from \"./error\";\nconst NON_VARIABLE_OPTIONS = [\n \"method\",\n \"baseUrl\",\n \"url\",\n \"headers\",\n \"request\",\n \"query\"\n];\nexport function graphql(request, query, options) {\n options =\n typeof query === \"string\"\n ? (options = Object.assign({ query }, options))\n : (options = query);\n const requestOptions = Object.keys(options).reduce((result, key) => {\n if (NON_VARIABLE_OPTIONS.includes(key)) {\n result[key] = options[key];\n return result;\n }\n if (!result.variables) {\n result.variables = {};\n }\n result.variables[key] = options[key];\n return result;\n }, {});\n return request(requestOptions).then(response => {\n if (response.data.errors) {\n throw new GraphqlError(requestOptions, {\n data: response.data\n });\n }\n return response.data.data;\n });\n}\n","import { request as Request } from \"@octokit/request\";\nimport { graphql } from \"./graphql\";\nexport function withDefaults(request, newDefaults) {\n const newRequest = request.defaults(newDefaults);\n const newApi = (query, options) => {\n return graphql(newRequest, query, options);\n };\n return Object.assign(newApi, {\n defaults: withDefaults.bind(null, newRequest),\n endpoint: Request.endpoint\n });\n}\n","import { request } from \"@octokit/request\";\nimport { getUserAgent } from \"universal-user-agent\";\nimport { VERSION } from \"./version\";\nimport { withDefaults } from \"./with-defaults\";\nexport const graphql = withDefaults(request, {\n headers: {\n \"user-agent\": `octokit-graphql.js/${VERSION} ${getUserAgent()}`\n },\n method: \"POST\",\n url: \"/graphql\"\n});\nexport function withCustomRequest(customRequest) {\n return withDefaults(customRequest, {\n method: \"POST\",\n url: \"/graphql\"\n });\n}\n"],"names":["VERSION","GraphqlError","Error","constructor","request","response","message","data","errors","Object","assign","name","captureStackTrace","NON_VARIABLE_OPTIONS","graphql","query","options","requestOptions","keys","reduce","result","key","includes","variables","then","withDefaults","newDefaults","newRequest","defaults","newApi","bind","endpoint","Request","headers","getUserAgent","method","url","withCustomRequest","customRequest"],"mappings":";;;;;;;AAAO,MAAMA,OAAO,GAAG,mBAAhB;;ACAA,MAAMC,YAAN,SAA2BC,KAA3B,CAAiC;EACpCC,WAAW,CAACC,OAAD,EAAUC,QAAV,EAAoB;UACrBC,OAAO,GAAGD,QAAQ,CAACE,IAAT,CAAcC,MAAd,CAAqB,CAArB,EAAwBF,OAAxC;UACMA,OAAN;IACAG,MAAM,CAACC,MAAP,CAAc,IAAd,EAAoBL,QAAQ,CAACE,IAA7B;SACKI,IAAL,GAAY,cAAZ;SAC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,WAA/B,EAA4C;QACzCC,UAAU,GAAGvB,SAAO,CAACwB,QAAR,CAAiBF,WAAjB,CAAnB;;QACMG,MAAM,GAAG,CAACd,KAAD,EAAQC,OAAR,KAAoB;WACxBF,OAAO,CAACa,UAAD,EAAaZ,KAAb,EAAoBC,OAApB,CAAd;GADJ;;SAGOP,MAAM,CAACC,MAAP,CAAcmB,MAAd,EAAsB;IACzBD,QAAQ,EAAEH,YAAY,CAACK,IAAb,CAAkB,IAAlB,EAAwBH,UAAxB,CADe;IAEzBI,QAAQ,EAAEC,eAAO,CAACD;GAFf,CAAP;;;MCHSjB,SAAO,GAAGW,YAAY,CAACrB,eAAD,EAAU;EACzC6B,OAAO,EAAE;kBACU,sBAAqBjC,OAAQ,IAAGkC,+BAAY,EAAG;GAFzB;EAIzCC,MAAM,EAAE,MAJiC;EAKzCC,GAAG,EAAE;CAL0B,CAA5B;AAOP,AAAO,SAASC,iBAAT,CAA2BC,aAA3B,EAA0C;SACtCb,YAAY,CAACa,aAAD,EAAgB;IAC/BH,MAAM,EAAE,MADuB;IAE/BC,GAAG,EAAE;GAFU,CAAnB;;;;;;"} \ No newline at end of file diff --git a/node_modules/@octokit/graphql/dist-src/error.js b/node_modules/@octokit/graphql/dist-src/error.js new file mode 100644 index 000000000..7662b91f1 --- /dev/null +++ b/node_modules/@octokit/graphql/dist-src/error.js @@ -0,0 +1,14 @@ +export class GraphqlError extends Error { + constructor(request, response) { + const message = response.data.errors[0].message; + super(message); + Object.assign(this, response.data); + this.name = "GraphqlError"; + this.request = request; + // Maintains proper stack trace (only available on V8) + /* istanbul ignore next */ + if (Error.captureStackTrace) { + Error.captureStackTrace(this, this.constructor); + } + } +} diff --git a/node_modules/@octokit/graphql/dist-src/graphql.js b/node_modules/@octokit/graphql/dist-src/graphql.js new file mode 100644 index 000000000..ea20a5485 --- /dev/null +++ b/node_modules/@octokit/graphql/dist-src/graphql.js @@ -0,0 +1,34 @@ +import { GraphqlError } from "./error"; +const NON_VARIABLE_OPTIONS = [ + "method", + "baseUrl", + "url", + "headers", + "request", + "query" +]; +export function graphql(request, query, options) { + options = + typeof query === "string" + ? (options = Object.assign({ query }, options)) + : (options = query); + const requestOptions = Object.keys(options).reduce((result, key) => { + if (NON_VARIABLE_OPTIONS.includes(key)) { + result[key] = options[key]; + return result; + } + if (!result.variables) { + result.variables = {}; + } + result.variables[key] = options[key]; + return result; + }, {}); + return request(requestOptions).then(response => { + if (response.data.errors) { + throw new GraphqlError(requestOptions, { + data: response.data + }); + } + return response.data.data; + }); +} diff --git a/node_modules/@octokit/graphql/dist-src/index.js b/node_modules/@octokit/graphql/dist-src/index.js new file mode 100644 index 000000000..5b01f2c79 --- /dev/null +++ b/node_modules/@octokit/graphql/dist-src/index.js @@ -0,0 +1,17 @@ +import { request } from "@octokit/request"; +import { getUserAgent } from "universal-user-agent"; +import { VERSION } from "./version"; +import { withDefaults } from "./with-defaults"; +export const graphql = withDefaults(request, { + headers: { + "user-agent": `octokit-graphql.js/${VERSION} ${getUserAgent()}` + }, + method: "POST", + url: "/graphql" +}); +export function withCustomRequest(customRequest) { + return withDefaults(customRequest, { + method: "POST", + url: "/graphql" + }); +} diff --git a/node_modules/@octokit/graphql/dist-src/types.js b/node_modules/@octokit/graphql/dist-src/types.js new file mode 100644 index 000000000..e69de29bb diff --git a/node_modules/@octokit/graphql/dist-src/version.js b/node_modules/@octokit/graphql/dist-src/version.js new file mode 100644 index 000000000..c51216ae1 --- /dev/null +++ b/node_modules/@octokit/graphql/dist-src/version.js @@ -0,0 +1 @@ +export const VERSION = "4.3.1"; diff --git a/node_modules/@octokit/graphql/dist-src/with-defaults.js b/node_modules/@octokit/graphql/dist-src/with-defaults.js new file mode 100644 index 000000000..3a5b45134 --- /dev/null +++ b/node_modules/@octokit/graphql/dist-src/with-defaults.js @@ -0,0 +1,12 @@ +import { request as Request } from "@octokit/request"; +import { graphql } from "./graphql"; +export function withDefaults(request, newDefaults) { + const newRequest = request.defaults(newDefaults); + const newApi = (query, options) => { + return graphql(newRequest, query, options); + }; + return Object.assign(newApi, { + defaults: withDefaults.bind(null, newRequest), + endpoint: Request.endpoint + }); +} diff --git a/node_modules/@octokit/graphql/dist-types/error.d.ts b/node_modules/@octokit/graphql/dist-types/error.d.ts new file mode 100644 index 000000000..692dc671f --- /dev/null +++ b/node_modules/@octokit/graphql/dist-types/error.d.ts @@ -0,0 +1,7 @@ +import { EndpointOptions, GraphQlQueryResponse } from "./types"; +export declare class GraphqlError extends Error { + request: EndpointOptions; + constructor(request: EndpointOptions, response: { + data: Required; + }); +} diff --git a/node_modules/@octokit/graphql/dist-types/graphql.d.ts b/node_modules/@octokit/graphql/dist-types/graphql.d.ts new file mode 100644 index 000000000..47c58006b --- /dev/null +++ b/node_modules/@octokit/graphql/dist-types/graphql.d.ts @@ -0,0 +1,3 @@ +import { request as Request } from "@octokit/request"; +import { RequestParameters, GraphQlQueryResponseData } from "./types"; +export declare function graphql(request: typeof Request, query: string | RequestParameters, options?: RequestParameters): Promise; diff --git a/node_modules/@octokit/graphql/dist-types/index.d.ts b/node_modules/@octokit/graphql/dist-types/index.d.ts new file mode 100644 index 000000000..1878fd411 --- /dev/null +++ b/node_modules/@octokit/graphql/dist-types/index.d.ts @@ -0,0 +1,3 @@ +import { request } from "@octokit/request"; +export declare const graphql: import("./types").graphql; +export declare function withCustomRequest(customRequest: typeof request): import("./types").graphql; diff --git a/node_modules/@octokit/graphql/dist-types/types.d.ts b/node_modules/@octokit/graphql/dist-types/types.d.ts new file mode 100644 index 000000000..2bf164b75 --- /dev/null +++ b/node_modules/@octokit/graphql/dist-types/types.d.ts @@ -0,0 +1,47 @@ +import * as OctokitTypes from "@octokit/types"; +import { graphql } from "./graphql"; +export declare type EndpointOptions = OctokitTypes.EndpointOptions; +export declare type RequestParameters = OctokitTypes.RequestParameters; +export declare type Query = string; +export interface graphql { + /** + * Sends a GraphQL query request based on endpoint options + * The GraphQL query must be specified in `options`. + * + * @param {object} endpoint Must set `method` and `url`. Plus URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`. + */ + (options: OctokitTypes.RequestParameters): GraphQlResponse; + /** + * Sends a GraphQL query request based on endpoint options + * + * @param {string} query GraphQL query. Example: `'query { viewer { login } }'`. + * @param {object} [parameters] URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`. + */ + (query: Query, parameters?: OctokitTypes.RequestParameters): GraphQlResponse; + /** + * Returns a new `endpoint` with updated route and parameters + */ + defaults: (newDefaults: OctokitTypes.RequestParameters) => graphql; + /** + * Octokit endpoint API, see {@link https://github.com/octokit/endpoint.js|@octokit/endpoint} + */ + endpoint: OctokitTypes.EndpointInterface; +} +export declare type GraphQlResponse = ReturnType; +export declare type GraphQlQueryResponseData = { + [key: string]: any; +} | null; +export declare type GraphQlQueryResponse = { + data: GraphQlQueryResponseData; + errors?: [{ + message: string; + path: [string]; + extensions: { + [key: string]: any; + }; + locations: [{ + line: number; + column: number; + }]; + }]; +}; diff --git a/node_modules/@octokit/graphql/dist-types/version.d.ts b/node_modules/@octokit/graphql/dist-types/version.d.ts new file mode 100644 index 000000000..cd3ef1e6b --- /dev/null +++ b/node_modules/@octokit/graphql/dist-types/version.d.ts @@ -0,0 +1 @@ +export declare const VERSION = "4.3.1"; diff --git a/node_modules/@octokit/graphql/dist-types/with-defaults.d.ts b/node_modules/@octokit/graphql/dist-types/with-defaults.d.ts new file mode 100644 index 000000000..03edc3205 --- /dev/null +++ b/node_modules/@octokit/graphql/dist-types/with-defaults.d.ts @@ -0,0 +1,3 @@ +import { request as Request } from "@octokit/request"; +import { graphql as ApiInterface, RequestParameters } from "./types"; +export declare function withDefaults(request: typeof Request, newDefaults: RequestParameters): ApiInterface; diff --git a/node_modules/@octokit/graphql/dist-web/index.js b/node_modules/@octokit/graphql/dist-web/index.js new file mode 100644 index 000000000..d4d8c4f50 --- /dev/null +++ b/node_modules/@octokit/graphql/dist-web/index.js @@ -0,0 +1,81 @@ +import { request } from '@octokit/request'; +import { getUserAgent } from 'universal-user-agent'; + +const VERSION = "4.3.1"; + +class GraphqlError extends Error { + constructor(request, response) { + const message = response.data.errors[0].message; + super(message); + Object.assign(this, response.data); + this.name = "GraphqlError"; + this.request = request; + // Maintains proper stack trace (only available on V8) + /* istanbul ignore next */ + if (Error.captureStackTrace) { + Error.captureStackTrace(this, this.constructor); + } + } +} + +const NON_VARIABLE_OPTIONS = [ + "method", + "baseUrl", + "url", + "headers", + "request", + "query" +]; +function graphql(request, query, options) { + options = + typeof query === "string" + ? (options = Object.assign({ query }, options)) + : (options = query); + const requestOptions = Object.keys(options).reduce((result, key) => { + if (NON_VARIABLE_OPTIONS.includes(key)) { + result[key] = options[key]; + return result; + } + if (!result.variables) { + result.variables = {}; + } + result.variables[key] = options[key]; + return result; + }, {}); + return request(requestOptions).then(response => { + if (response.data.errors) { + throw new GraphqlError(requestOptions, { + data: response.data + }); + } + return response.data.data; + }); +} + +function withDefaults(request$1, newDefaults) { + const newRequest = request$1.defaults(newDefaults); + const newApi = (query, options) => { + return graphql(newRequest, query, options); + }; + return Object.assign(newApi, { + defaults: withDefaults.bind(null, newRequest), + endpoint: request.endpoint + }); +} + +const graphql$1 = withDefaults(request, { + headers: { + "user-agent": `octokit-graphql.js/${VERSION} ${getUserAgent()}` + }, + method: "POST", + url: "/graphql" +}); +function withCustomRequest(customRequest) { + return withDefaults(customRequest, { + method: "POST", + url: "/graphql" + }); +} + +export { graphql$1 as graphql, withCustomRequest }; +//# sourceMappingURL=index.js.map diff --git a/node_modules/@octokit/graphql/dist-web/index.js.map b/node_modules/@octokit/graphql/dist-web/index.js.map new file mode 100644 index 000000000..efa902e52 --- /dev/null +++ b/node_modules/@octokit/graphql/dist-web/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sources":["../dist-src/version.js","../dist-src/error.js","../dist-src/graphql.js","../dist-src/with-defaults.js","../dist-src/index.js"],"sourcesContent":["export const VERSION = \"4.3.1\";\n","export class GraphqlError extends Error {\n constructor(request, response) {\n const message = response.data.errors[0].message;\n super(message);\n Object.assign(this, response.data);\n this.name = \"GraphqlError\";\n this.request = request;\n // Maintains proper stack trace (only available on V8)\n /* istanbul ignore next */\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, this.constructor);\n }\n }\n}\n","import { GraphqlError } from \"./error\";\nconst NON_VARIABLE_OPTIONS = [\n \"method\",\n \"baseUrl\",\n \"url\",\n \"headers\",\n \"request\",\n \"query\"\n];\nexport function graphql(request, query, options) {\n options =\n typeof query === \"string\"\n ? (options = Object.assign({ query }, options))\n : (options = query);\n const requestOptions = Object.keys(options).reduce((result, key) => {\n if (NON_VARIABLE_OPTIONS.includes(key)) {\n result[key] = options[key];\n return result;\n }\n if (!result.variables) {\n result.variables = {};\n }\n result.variables[key] = options[key];\n return result;\n }, {});\n return request(requestOptions).then(response => {\n if (response.data.errors) {\n throw new GraphqlError(requestOptions, {\n data: response.data\n });\n }\n return response.data.data;\n });\n}\n","import { request as Request } from \"@octokit/request\";\nimport { graphql } from \"./graphql\";\nexport function withDefaults(request, newDefaults) {\n const newRequest = request.defaults(newDefaults);\n const newApi = (query, options) => {\n return graphql(newRequest, query, options);\n };\n return Object.assign(newApi, {\n defaults: withDefaults.bind(null, newRequest),\n endpoint: Request.endpoint\n });\n}\n","import { request } from \"@octokit/request\";\nimport { getUserAgent } from \"universal-user-agent\";\nimport { VERSION } from \"./version\";\nimport { withDefaults } from \"./with-defaults\";\nexport const graphql = withDefaults(request, {\n headers: {\n \"user-agent\": `octokit-graphql.js/${VERSION} ${getUserAgent()}`\n },\n method: \"POST\",\n url: \"/graphql\"\n});\nexport function withCustomRequest(customRequest) {\n return withDefaults(customRequest, {\n method: \"POST\",\n url: \"/graphql\"\n });\n}\n"],"names":["request","Request","graphql"],"mappings":";;;AAAO,MAAM,OAAO,GAAG,mBAAmB,CAAC;;ACApC,MAAM,YAAY,SAAS,KAAK,CAAC;IACpC,WAAW,CAAC,OAAO,EAAE,QAAQ,EAAE;QAC3B,MAA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AO,OAAO,CAAC,cAAc,CAAC,CAAC,IAAI,CAAC,QAAQ,IAAI;QAC5C,IAAI,QAAQ,CAAC,IAAI,CAAC,MAAM,EAAE;YACtB,MAAM,IAAI,YAAY,CAAC,cAAc,EAAE;gBACnC,IAAI,EAAE,QAAQ,CAAC,IAAI;aACtB,CAAC,CAAC;SACN;QACD,OAAO,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC;KAC7B,CAAC,CAAC;CACN;;AC/BM,SAAS,YAAY,CAACA,SAAO,EAAE,WAAW,EAAE;IAC/C,MAAM,UAAU,GAAGA,SAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;IACjD,MAAM,MAAM,GAAG,CAAC,KAAK,EAAE,OAAO,KAAK;QAC/B,OAAO,OAAO,CAAC,UAAU,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;KAC9C,CAAC;IACF,OAAO,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE;QACzB,QAAQ,EAAE,YAAY,CAAC,IAAI,CAAC,IAAI,EAAE,UAAU,CAAC;QAC7C,QAAQ,EAAEC,OAAO,CAAC,QAAQ;KAC7B,CAAC,CAAC;CACN;;ACPW,MAACC,SAAO,GAAG,YAAY,CAAC,OAAO,EAAE;IACzC,OAAO,EAAE;QACL,YAAY,EAAE,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAC,EAAE,YAAY,EAAE,CAAC,CAAC;KAClE;IACD,MAAM,EAAE,MAAM;IACd,GAAG,EAAE,UAAU;CAClB,CAAC,CAAC;AACH,AAAO,SAAS,iBAAiB,CAAC,aAAa,EAAE;IAC7C,OAAO,YAAY,CAAC,aAAa,EAAE;QAC/B,MAAM,EAAE,MAAM;QACd,GAAG,EAAE,UAAU;KAClB,CAAC,CAAC;CACN;;;;"} \ No newline at end of file diff --git a/node_modules/@octokit/graphql/index.js b/node_modules/@octokit/graphql/index.js deleted file mode 100644 index 7f8278c9b..000000000 --- a/node_modules/@octokit/graphql/index.js +++ /dev/null @@ -1,15 +0,0 @@ -const { request } = require('@octokit/request') -const getUserAgent = require('universal-user-agent') - -const version = require('./package.json').version -const userAgent = `octokit-graphql.js/${version} ${getUserAgent()}` - -const withDefaults = require('./lib/with-defaults') - -module.exports = withDefaults(request, { - method: 'POST', - url: '/graphql', - headers: { - 'user-agent': userAgent - } -}) diff --git a/node_modules/@octokit/graphql/lib/error.js b/node_modules/@octokit/graphql/lib/error.js deleted file mode 100644 index 4478abd27..000000000 --- a/node_modules/@octokit/graphql/lib/error.js +++ /dev/null @@ -1,16 +0,0 @@ -module.exports = class GraphqlError extends Error { - constructor (request, response) { - const message = response.data.errors[0].message - super(message) - - Object.assign(this, response.data) - this.name = 'GraphqlError' - this.request = request - - // Maintains proper stack trace (only available on V8) - /* istanbul ignore next */ - if (Error.captureStackTrace) { - Error.captureStackTrace(this, this.constructor) - } - } -} diff --git a/node_modules/@octokit/graphql/lib/graphql.js b/node_modules/@octokit/graphql/lib/graphql.js deleted file mode 100644 index 4a5b21195..000000000 --- a/node_modules/@octokit/graphql/lib/graphql.js +++ /dev/null @@ -1,36 +0,0 @@ -module.exports = graphql - -const GraphqlError = require('./error') - -const NON_VARIABLE_OPTIONS = ['method', 'baseUrl', 'url', 'headers', 'request', 'query'] - -function graphql (request, query, options) { - if (typeof query === 'string') { - options = Object.assign({ query }, options) - } else { - options = query - } - - const requestOptions = Object.keys(options).reduce((result, key) => { - if (NON_VARIABLE_OPTIONS.includes(key)) { - result[key] = options[key] - return result - } - - if (!result.variables) { - result.variables = {} - } - - result.variables[key] = options[key] - return result - }, {}) - - return request(requestOptions) - .then(response => { - if (response.data.errors) { - throw new GraphqlError(requestOptions, response) - } - - return response.data.data - }) -} diff --git a/node_modules/@octokit/graphql/lib/with-defaults.js b/node_modules/@octokit/graphql/lib/with-defaults.js deleted file mode 100644 index a5b14935c..000000000 --- a/node_modules/@octokit/graphql/lib/with-defaults.js +++ /dev/null @@ -1,13 +0,0 @@ -module.exports = withDefaults - -const graphql = require('./graphql') - -function withDefaults (request, newDefaults) { - const newRequest = request.defaults(newDefaults) - const newApi = function (query, options) { - return graphql(newRequest, query, options) - } - - newApi.defaults = withDefaults.bind(null, newRequest) - return newApi -} diff --git a/node_modules/@octokit/graphql/package.json b/node_modules/@octokit/graphql/package.json index d9c8dcd11..5252af509 100644 --- a/node_modules/@octokit/graphql/package.json +++ b/node_modules/@octokit/graphql/package.json @@ -1,70 +1,62 @@ { "_args": [ [ - "@octokit/graphql@2.1.3", - "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" + "@octokit/graphql@4.3.1", + "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark" ] ], - "_from": "@octokit/graphql@2.1.3", - "_id": "@octokit/graphql@2.1.3", + "_from": "@octokit/graphql@4.3.1", + "_id": "@octokit/graphql@4.3.1", "_inBundle": false, - "_integrity": "sha512-XoXJqL2ondwdnMIW3wtqJWEwcBfKk37jO/rYkoxNPEVeLBDGsGO1TCWggrAlq3keGt/O+C/7VepXnukUxwt5vA==", + "_integrity": "sha512-hCdTjfvrK+ilU2keAdqNBWOk+gm1kai1ZcdjRfB30oA3/T6n53UVJb7w0L5cR3/rhU91xT3HSqCd+qbvH06yxA==", "_location": "/@octokit/graphql", "_phantomChildren": {}, "_requested": { "type": "version", "registry": true, - "raw": "@octokit/graphql@2.1.3", + "raw": "@octokit/graphql@4.3.1", "name": "@octokit/graphql", "escapedName": "@octokit%2fgraphql", "scope": "@octokit", - "rawSpec": "2.1.3", + "rawSpec": "4.3.1", "saveSpec": null, - "fetchSpec": "2.1.3" + "fetchSpec": "4.3.1" }, "_requiredBy": [ "/@actions/github" ], - "_resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-2.1.3.tgz", - "_spec": "2.1.3", - "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", - "author": { - "name": "Gregor Martynus", - "url": "https://github.com/gr2m" - }, + "_resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-4.3.1.tgz", + "_spec": "4.3.1", + "_where": "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark", "bugs": { "url": "https://github.com/octokit/graphql.js/issues" }, - "bundlesize": [ - { - "path": "./dist/octokit-graphql.min.js.gz", - "maxSize": "5KB" - } - ], + "deno": "dist-web/index.js", "dependencies": { - "@octokit/request": "^5.0.0", - "universal-user-agent": "^2.0.3" + "@octokit/request": "^5.3.0", + "@octokit/types": "^2.0.0", + "universal-user-agent": "^4.0.0" }, "description": "GitHub GraphQL API client for browsers and Node", "devDependencies": { - "chai": "^4.2.0", - "compression-webpack-plugin": "^2.0.0", - "coveralls": "^3.0.3", - "cypress": "^3.1.5", + "@pika/pack": "^0.5.0", + "@pika/plugin-build-node": "^0.7.0", + "@pika/plugin-build-web": "^0.7.0", + "@pika/plugin-ts-standard-pkg": "^0.7.0", + "@types/fetch-mock": "^7.2.5", + "@types/jest": "^24.0.13", + "@types/node": "^12.0.2", "fetch-mock": "^7.3.1", - "mkdirp": "^0.5.1", - "mocha": "^6.0.0", - "npm-run-all": "^4.1.3", - "nyc": "^14.0.0", + "jest": "^24.8.0", + "prettier": "^1.17.1", "semantic-release": "^15.13.3", - "simple-mock": "^0.8.0", - "standard": "^12.0.1", - "webpack": "^4.29.6", - "webpack-bundle-analyzer": "^3.1.0", - "webpack-cli": "^3.2.3" + "semantic-release-plugin-update-version-in-files": "^1.0.0", + "ts-jest": "^24.0.2", + "typescript": "^3.4.5" }, "files": [ - "lib" + "dist-*/", + "bin/" ], "homepage": "https://github.com/octokit/graphql.js#readme", "keywords": [ @@ -74,49 +66,18 @@ "graphql" ], "license": "MIT", - "main": "index.js", + "main": "dist-node/index.js", "name": "@octokit/graphql", + "pika": true, "publishConfig": { "access": "public" }, - "release": { - "publish": [ - "@semantic-release/npm", - { - "path": "@semantic-release/github", - "assets": [ - "dist/*", - "!dist/*.map.gz" - ] - } - ] - }, "repository": { "type": "git", "url": "git+https://github.com/octokit/graphql.js.git" }, - "scripts": { - "build": "npm-run-all build:*", - "build:development": "webpack --mode development --entry . --output-library=octokitGraphql --output=./dist/octokit-graphql.js --profile --json > dist/bundle-stats.json", - "build:production": "webpack --mode production --entry . --plugin=compression-webpack-plugin --output-library=octokitGraphql --output-path=./dist --output-filename=octokit-graphql.min.js --devtool source-map", - "bundle-report": "webpack-bundle-analyzer dist/bundle-stats.json --mode=static --no-open --report dist/bundle-report.html", - "coverage": "nyc report --reporter=html && open coverage/index.html", - "coverage:upload": "nyc report --reporter=text-lcov | coveralls", - "prebuild": "mkdirp dist/", - "pretest": "standard", - "test": "nyc mocha test/*-test.js", - "test:browser": "cypress run --browser chrome" - }, - "standard": { - "globals": [ - "describe", - "before", - "beforeEach", - "afterEach", - "after", - "it", - "expect" - ] - }, - "version": "2.1.3" + "sideEffects": false, + "source": "dist-src/index.js", + "types": "dist-types/index.d.ts", + "version": "4.3.1" } diff --git a/node_modules/@octokit/request-error/package.json b/node_modules/@octokit/request-error/package.json index e07765fa7..7e253c3e9 100644 --- a/node_modules/@octokit/request-error/package.json +++ b/node_modules/@octokit/request-error/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@octokit/request-error@1.2.0", - "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" + "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark" ] ], "_from": "@octokit/request-error@1.2.0", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-1.2.0.tgz", "_spec": "1.2.0", - "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", + "_where": "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark", "bugs": { "url": "https://github.com/octokit/request-error.js/issues" }, diff --git a/node_modules/@octokit/request/node_modules/universal-user-agent/LICENSE.md b/node_modules/@octokit/request/node_modules/universal-user-agent/LICENSE.md deleted file mode 100644 index f105ab0c0..000000000 --- a/node_modules/@octokit/request/node_modules/universal-user-agent/LICENSE.md +++ /dev/null @@ -1,7 +0,0 @@ -# [ISC License](https://spdx.org/licenses/ISC) - -Copyright (c) 2018, Gregor Martynus (https://github.com/gr2m) - -Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 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 deleted file mode 100644 index d00d14c1f..000000000 --- a/node_modules/@octokit/request/node_modules/universal-user-agent/README.md +++ /dev/null @@ -1,25 +0,0 @@ -# universal-user-agent - -> Get a user agent string in both browser and node - -[![@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) -[![Greenkeeper](https://badges.greenkeeper.io/gr2m/universal-user-agent.svg)](https://greenkeeper.io/) - -```js -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) -``` - -## Credits - -The Node implementation was originally inspired by [default-user-agent](https://www.npmjs.com/package/default-user-agent). - -## License - -[ISC](LICENSE.md) 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 deleted file mode 100644 index 80a07105f..000000000 --- a/node_modules/@octokit/request/node_modules/universal-user-agent/dist-node/index.js +++ /dev/null @@ -1,22 +0,0 @@ -'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 deleted file mode 100644 index aff09ec41..000000000 --- a/node_modules/@octokit/request/node_modules/universal-user-agent/dist-node/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"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 deleted file mode 100644 index 6f52232cb..000000000 --- a/node_modules/@octokit/request/node_modules/universal-user-agent/dist-src/browser.js +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index c6253f5ad..000000000 --- a/node_modules/@octokit/request/node_modules/universal-user-agent/dist-src/index.js +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index 8b70a038c..000000000 --- a/node_modules/@octokit/request/node_modules/universal-user-agent/dist-src/node.js +++ /dev/null @@ -1,12 +0,0 @@ -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 deleted file mode 100644 index a7bb1c440..000000000 --- a/node_modules/@octokit/request/node_modules/universal-user-agent/dist-types/browser.d.ts +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index c6253f5ad..000000000 --- a/node_modules/@octokit/request/node_modules/universal-user-agent/dist-types/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index a7bb1c440..000000000 --- a/node_modules/@octokit/request/node_modules/universal-user-agent/dist-types/node.d.ts +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index 11ec79b32..000000000 --- a/node_modules/@octokit/request/node_modules/universal-user-agent/dist-web/index.js +++ /dev/null @@ -1,6 +0,0 @@ -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 deleted file mode 100644 index 549407ecb..000000000 --- a/node_modules/@octokit/request/node_modules/universal-user-agent/dist-web/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"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/package.json b/node_modules/@octokit/request/node_modules/universal-user-agent/package.json deleted file mode 100644 index 0ed1ecd5d..000000000 --- a/node_modules/@octokit/request/node_modules/universal-user-agent/package.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "_args": [ - [ - "universal-user-agent@4.0.0", - "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" - ] - ], - "_from": "universal-user-agent@4.0.0", - "_id": "universal-user-agent@4.0.0", - "_inBundle": false, - "_integrity": "sha512-eM8knLpev67iBDizr/YtqkJsF3GK8gzDc6st/WKzrTuPtcsOKW/0IdL4cnMBsU69pOx0otavLWBDGTwg+dB0aA==", - "_location": "/@octokit/request/universal-user-agent", - "_phantomChildren": {}, - "_requested": { - "type": "version", - "registry": true, - "raw": "universal-user-agent@4.0.0", - "name": "universal-user-agent", - "escapedName": "universal-user-agent", - "rawSpec": "4.0.0", - "saveSpec": null, - "fetchSpec": "4.0.0" - }, - "_requiredBy": [ - "/@octokit/request" - ], - "_resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-4.0.0.tgz", - "_spec": "4.0.0", - "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", - "bugs": { - "url": "https://github.com/gr2m/universal-user-agent/issues" - }, - "dependencies": { - "os-name": "^3.1.0" - }, - "description": "Get a user agent string in both browser and node", - "devDependencies": { - "@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", - "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": "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" - }, - "sideEffects": false, - "source": "dist-src/index.js", - "types": "dist-types/index.d.ts", - "version": "4.0.0" -} diff --git a/node_modules/@octokit/request/package.json b/node_modules/@octokit/request/package.json index 0514b3651..8717c6981 100644 --- a/node_modules/@octokit/request/package.json +++ b/node_modules/@octokit/request/package.json @@ -2,7 +2,7 @@ "_args": [ [ "@octokit/request@5.3.1", - "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" + "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark" ] ], "_from": "@octokit/request@5.3.1", @@ -30,7 +30,7 @@ ], "_resolved": "https://registry.npmjs.org/@octokit/request/-/request-5.3.1.tgz", "_spec": "5.3.1", - "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", + "_where": "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark", "bugs": { "url": "https://github.com/octokit/request.js/issues" }, diff --git a/node_modules/@octokit/rest/node_modules/universal-user-agent/LICENSE.md b/node_modules/@octokit/rest/node_modules/universal-user-agent/LICENSE.md deleted file mode 100644 index f105ab0c0..000000000 --- a/node_modules/@octokit/rest/node_modules/universal-user-agent/LICENSE.md +++ /dev/null @@ -1,7 +0,0 @@ -# [ISC License](https://spdx.org/licenses/ISC) - -Copyright (c) 2018, Gregor Martynus (https://github.com/gr2m) - -Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 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 deleted file mode 100644 index d00d14c1f..000000000 --- a/node_modules/@octokit/rest/node_modules/universal-user-agent/README.md +++ /dev/null @@ -1,25 +0,0 @@ -# universal-user-agent - -> Get a user agent string in both browser and node - -[![@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) -[![Greenkeeper](https://badges.greenkeeper.io/gr2m/universal-user-agent.svg)](https://greenkeeper.io/) - -```js -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) -``` - -## Credits - -The Node implementation was originally inspired by [default-user-agent](https://www.npmjs.com/package/default-user-agent). - -## License - -[ISC](LICENSE.md) 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 deleted file mode 100644 index 80a07105f..000000000 --- a/node_modules/@octokit/rest/node_modules/universal-user-agent/dist-node/index.js +++ /dev/null @@ -1,22 +0,0 @@ -'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 deleted file mode 100644 index aff09ec41..000000000 --- a/node_modules/@octokit/rest/node_modules/universal-user-agent/dist-node/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"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 deleted file mode 100644 index 6f52232cb..000000000 --- a/node_modules/@octokit/rest/node_modules/universal-user-agent/dist-src/browser.js +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index c6253f5ad..000000000 --- a/node_modules/@octokit/rest/node_modules/universal-user-agent/dist-src/index.js +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index 8b70a038c..000000000 --- a/node_modules/@octokit/rest/node_modules/universal-user-agent/dist-src/node.js +++ /dev/null @@ -1,12 +0,0 @@ -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 deleted file mode 100644 index a7bb1c440..000000000 --- a/node_modules/@octokit/rest/node_modules/universal-user-agent/dist-types/browser.d.ts +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index c6253f5ad..000000000 --- a/node_modules/@octokit/rest/node_modules/universal-user-agent/dist-types/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index a7bb1c440..000000000 --- a/node_modules/@octokit/rest/node_modules/universal-user-agent/dist-types/node.d.ts +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index 11ec79b32..000000000 --- a/node_modules/@octokit/rest/node_modules/universal-user-agent/dist-web/index.js +++ /dev/null @@ -1,6 +0,0 @@ -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 deleted file mode 100644 index 549407ecb..000000000 --- a/node_modules/@octokit/rest/node_modules/universal-user-agent/dist-web/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"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/package.json b/node_modules/@octokit/rest/node_modules/universal-user-agent/package.json deleted file mode 100644 index bd519a074..000000000 --- a/node_modules/@octokit/rest/node_modules/universal-user-agent/package.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "_args": [ - [ - "universal-user-agent@4.0.0", - "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" - ] - ], - "_from": "universal-user-agent@4.0.0", - "_id": "universal-user-agent@4.0.0", - "_inBundle": false, - "_integrity": "sha512-eM8knLpev67iBDizr/YtqkJsF3GK8gzDc6st/WKzrTuPtcsOKW/0IdL4cnMBsU69pOx0otavLWBDGTwg+dB0aA==", - "_location": "/@octokit/rest/universal-user-agent", - "_phantomChildren": {}, - "_requested": { - "type": "version", - "registry": true, - "raw": "universal-user-agent@4.0.0", - "name": "universal-user-agent", - "escapedName": "universal-user-agent", - "rawSpec": "4.0.0", - "saveSpec": null, - "fetchSpec": "4.0.0" - }, - "_requiredBy": [ - "/@octokit/rest" - ], - "_resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-4.0.0.tgz", - "_spec": "4.0.0", - "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", - "bugs": { - "url": "https://github.com/gr2m/universal-user-agent/issues" - }, - "dependencies": { - "os-name": "^3.1.0" - }, - "description": "Get a user agent string in both browser and node", - "devDependencies": { - "@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", - "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": "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" - }, - "sideEffects": false, - "source": "dist-src/index.js", - "types": "dist-types/index.d.ts", - "version": "4.0.0" -} diff --git a/node_modules/@octokit/rest/package.json b/node_modules/@octokit/rest/package.json index 7ed446f7a..b1460bd90 100644 --- a/node_modules/@octokit/rest/package.json +++ b/node_modules/@octokit/rest/package.json @@ -1,36 +1,34 @@ { "_args": [ [ - "@octokit/rest@16.35.0", - "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" + "@octokit/rest@16.35.2", + "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark" ] ], - "_from": "@octokit/rest@16.35.0", - "_id": "@octokit/rest@16.35.0", + "_from": "@octokit/rest@16.35.2", + "_id": "@octokit/rest@16.35.2", "_inBundle": false, - "_integrity": "sha512-9ShFqYWo0CLoGYhA1FdtdykJuMzS/9H6vSbbQWDX4pWr4p9v+15MsH/wpd/3fIU+tSxylaNO48+PIHqOkBRx3w==", + "_integrity": "sha512-iijaNZpn9hBpUdh8YdXqNiWazmq4R1vCUsmxpBB0kCQ0asHZpCx+HNs22eiHuwYKRhO31ZSAGBJLi0c+3XHaKQ==", "_location": "/@octokit/rest", - "_phantomChildren": { - "os-name": "3.1.0" - }, + "_phantomChildren": {}, "_requested": { "type": "version", "registry": true, - "raw": "@octokit/rest@16.35.0", + "raw": "@octokit/rest@16.35.2", "name": "@octokit/rest", "escapedName": "@octokit%2frest", "scope": "@octokit", - "rawSpec": "16.35.0", + "rawSpec": "16.35.2", "saveSpec": null, - "fetchSpec": "16.35.0" + "fetchSpec": "16.35.2" }, "_requiredBy": [ "/", "/@actions/github" ], - "_resolved": "https://registry.npmjs.org/@octokit/rest/-/rest-16.35.0.tgz", - "_spec": "16.35.0", - "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", + "_resolved": "https://registry.npmjs.org/@octokit/rest/-/rest-16.35.2.tgz", + "_spec": "16.35.2", + "_where": "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark", "author": { "name": "Gregor Martynus", "url": "https://github.com/gr2m" @@ -173,5 +171,5 @@ "validate:ts": "tsc --target es6 --noImplicitAny index.d.ts" }, "types": "index.d.ts", - "version": "16.35.0" + "version": "16.35.2" } diff --git a/node_modules/@octokit/types/.github/workflows/release.yml b/node_modules/@octokit/types/.github/workflows/release.yml index e47f42cb2..b31560762 100644 --- a/node_modules/@octokit/types/.github/workflows/release.yml +++ b/node_modules/@octokit/types/.github/workflows/release.yml @@ -19,6 +19,9 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - run: npm run docs + env: + # workaround "Failed to replace env in config: ${NPM_TOKEN}" error + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - uses: maxheld83/ghpages@master env: BUILD_DIR: docs/ diff --git a/node_modules/@octokit/types/.github/workflows/routes-update.yml b/node_modules/@octokit/types/.github/workflows/routes-update.yml index f1639d904..38d841dda 100644 --- a/node_modules/@octokit/types/.github/workflows/routes-update.yml +++ b/node_modules/@octokit/types/.github/workflows/routes-update.yml @@ -15,6 +15,8 @@ jobs: - run: git checkout routes-update || true - run: npm ci - run: npm run update-endpoints + env: + VERSION: ${{ github.event.client_payload.version }} - name: Create Pull Request uses: gr2m/create-or-update-pull-request-action@v1.x env: diff --git a/node_modules/@octokit/types/package.json b/node_modules/@octokit/types/package.json index f9e005009..4dc73c1ca 100644 --- a/node_modules/@octokit/types/package.json +++ b/node_modules/@octokit/types/package.json @@ -1,35 +1,36 @@ { "_args": [ [ - "@octokit/types@2.0.1", - "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" + "@octokit/types@2.0.2", + "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark" ] ], - "_from": "@octokit/types@2.0.1", - "_id": "@octokit/types@2.0.1", + "_from": "@octokit/types@2.0.2", + "_id": "@octokit/types@2.0.2", "_inBundle": false, - "_integrity": "sha512-YDYgV6nCzdGdOm7wy43Ce8SQ3M5DMKegB8E5sTB/1xrxOdo2yS/KgUgML2N2ZGD621mkbdrAglwTyA4NDOlFFA==", + "_integrity": "sha512-StASIL2lgT3TRjxv17z9pAqbnI7HGu9DrJlg3sEBFfCLaMEqp+O3IQPUF6EZtQ4xkAu2ml6kMBBCtGxjvmtmuQ==", "_location": "/@octokit/types", "_phantomChildren": {}, "_requested": { "type": "version", "registry": true, - "raw": "@octokit/types@2.0.1", + "raw": "@octokit/types@2.0.2", "name": "@octokit/types", "escapedName": "@octokit%2ftypes", "scope": "@octokit", - "rawSpec": "2.0.1", + "rawSpec": "2.0.2", "saveSpec": null, - "fetchSpec": "2.0.1" + "fetchSpec": "2.0.2" }, "_requiredBy": [ "/@octokit/endpoint", + "/@octokit/graphql", "/@octokit/request", "/@octokit/request-error" ], - "_resolved": "https://registry.npmjs.org/@octokit/types/-/types-2.0.1.tgz", - "_spec": "2.0.1", - "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", + "_resolved": "https://registry.npmjs.org/@octokit/types/-/types-2.0.2.tgz", + "_spec": "2.0.2", + "_where": "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark", "author": { "name": "Gregor Martynus", "url": "https://twitter.com/gr2m" @@ -99,5 +100,5 @@ "update-endpoints:fetch-json": "node scripts/update-endpoints/fetch-json", "update-endpoints:typescript": "node scripts/update-endpoints/typescript" }, - "version": "2.0.1" + "version": "2.0.2" } diff --git a/node_modules/@octokit/types/scripts/update-endpoints/fetch-json.js b/node_modules/@octokit/types/scripts/update-endpoints/fetch-json.js index 6bca93009..309a3126f 100644 --- a/node_modules/@octokit/types/scripts/update-endpoints/fetch-json.js +++ b/node_modules/@octokit/types/scripts/update-endpoints/fetch-json.js @@ -4,9 +4,13 @@ const path = require("path"); const { graphql } = require("@octokit/graphql"); const prettier = require("prettier"); +if (!process.env.VERSION) { + throw new Error(`VERSION environment variable must be set`); +} + const QUERY = ` - { - endpoints { + query ($version: String) { + endpoints(version: $version) { name scope(format: CAMELCASE) id(format: CAMELCASE) @@ -29,7 +33,8 @@ main(); async function main() { const { endpoints } = await graphql(QUERY, { - url: "https://octokit-routes-graphql-server.now.sh/" + url: "https://octokit-routes-graphql-server.now.sh/", + version: process.env.VERSION }); writeFileSync( diff --git a/node_modules/@octokit/types/src/RequestInterface.ts b/node_modules/@octokit/types/src/RequestInterface.ts index 21bd08769..bc4c74fc9 100644 --- a/node_modules/@octokit/types/src/RequestInterface.ts +++ b/node_modules/@octokit/types/src/RequestInterface.ts @@ -1,9 +1,8 @@ import { EndpointInterface } from "./EndpointInterface"; import { EndpointOptions } from "./EndpointOptions"; +import { OctokitResponse } from "./OctokitResponse"; import { RequestParameters } from "./RequestParameters"; -import { ResponseHeaders } from "./ResponseHeaders"; import { Route } from "./Route"; -import { Url } from "./Url"; export interface RequestInterface { /** @@ -33,19 +32,3 @@ export interface RequestInterface { */ endpoint: EndpointInterface; } - -export type OctokitResponse = { - headers: ResponseHeaders; - /** - * http response code - */ - status: number; - /** - * URL of response after all redirects - */ - url: Url; - /** - * This is the data you would see in https://developer.Octokit.com/v3/ - */ - data: T; -}; diff --git a/node_modules/@octokit/types/src/VERSION.ts b/node_modules/@octokit/types/src/VERSION.ts index 4652f2488..6c49faff4 100644 --- a/node_modules/@octokit/types/src/VERSION.ts +++ b/node_modules/@octokit/types/src/VERSION.ts @@ -1 +1 @@ -export const VERSION = "2.0.1"; +export const VERSION = "2.0.2"; diff --git a/node_modules/@octokit/types/src/index.ts b/node_modules/@octokit/types/src/index.ts index a0f51b31a..200f0a245 100644 --- a/node_modules/@octokit/types/src/index.ts +++ b/node_modules/@octokit/types/src/index.ts @@ -1,18 +1,18 @@ -export { AuthInterface } from "./AuthInterface"; -export { EndpointDefaults } from "./EndpointDefaults"; -export { EndpointInterface } from "./EndpointInterface"; -export { EndpointOptions } from "./EndpointOptions"; -export { Fetch } from "./Fetch"; -export { OctokitResponse } from "./OctokitResponse"; -export { RequestHeaders } from "./RequestHeaders"; -export { RequestInterface } from "./RequestInterface"; -export { RequestMethod } from "./RequestMethod"; -export { RequestOptions } from "./RequestOptions"; -export { RequestParameters } from "./RequestParameters"; -export { RequestRequestOptions } from "./RequestRequestOptions"; -export { ResponseHeaders } from "./ResponseHeaders"; -export { Route } from "./Route"; -export { Signal } from "./Signal"; -export { StrategyInterface } from "./StrategyInterface"; -export { Url } from "./Url"; -export { VERSION } from "./VERSION"; +export * from "./AuthInterface"; +export * from "./EndpointDefaults"; +export * from "./EndpointInterface"; +export * from "./EndpointOptions"; +export * from "./Fetch"; +export * from "./OctokitResponse"; +export * from "./RequestHeaders"; +export * from "./RequestInterface"; +export * from "./RequestMethod"; +export * from "./RequestOptions"; +export * from "./RequestParameters"; +export * from "./RequestRequestOptions"; +export * from "./ResponseHeaders"; +export * from "./Route"; +export * from "./Signal"; +export * from "./StrategyInterface"; +export * from "./Url"; +export * from "./VERSION"; diff --git a/node_modules/@types/node/README.md b/node_modules/@types/node/README.md index 2b406156f..45e4137b8 100644 --- a/node_modules/@types/node/README.md +++ b/node_modules/@types/node/README.md @@ -8,7 +8,7 @@ This package contains type definitions for Node.js (http://nodejs.org/). Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node. ### Additional Details - * Last updated: Mon, 25 Nov 2019 22:58:16 GMT + * Last updated: Tue, 10 Dec 2019 19:20:30 GMT * Dependencies: none * Global values: `Buffer`, `NodeJS`, `Symbol`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout` diff --git a/node_modules/@types/node/child_process.d.ts b/node_modules/@types/node/child_process.d.ts index 09eeba3b4..963db9f26 100644 --- a/node_modules/@types/node/child_process.d.ts +++ b/node_modules/@types/node/child_process.d.ts @@ -320,25 +320,25 @@ declare module "child_process" { function execFile(file: string, args: ReadonlyArray | undefined | null, options: ({ encoding?: string | null } & ExecFileOptions) | undefined | null): ChildProcess; // no `options` definitely means stdout/stderr are `string`. - function execFile(file: string, callback: (error: Error | null, stdout: string, stderr: string) => void): ChildProcess; - function execFile(file: string, args: ReadonlyArray | undefined | null, callback: (error: Error | null, stdout: string, stderr: string) => void): ChildProcess; + function execFile(file: string, callback: (error: ExecException | null, stdout: string, stderr: string) => void): ChildProcess; + function execFile(file: string, args: ReadonlyArray | undefined | null, callback: (error: ExecException | null, stdout: string, stderr: string) => void): ChildProcess; // `options` with `"buffer"` or `null` for `encoding` means stdout/stderr are definitely `Buffer`. - function execFile(file: string, options: ExecFileOptionsWithBufferEncoding, callback: (error: Error | null, stdout: Buffer, stderr: Buffer) => void): ChildProcess; + function execFile(file: string, options: ExecFileOptionsWithBufferEncoding, callback: (error: ExecException | null, stdout: Buffer, stderr: Buffer) => void): ChildProcess; function execFile( file: string, args: ReadonlyArray | undefined | null, options: ExecFileOptionsWithBufferEncoding, - callback: (error: Error | null, stdout: Buffer, stderr: Buffer) => void, + callback: (error: ExecException | null, stdout: Buffer, stderr: Buffer) => void, ): ChildProcess; // `options` with well known `encoding` means stdout/stderr are definitely `string`. - function execFile(file: string, options: ExecFileOptionsWithStringEncoding, callback: (error: Error | null, stdout: string, stderr: string) => void): ChildProcess; + function execFile(file: string, options: ExecFileOptionsWithStringEncoding, callback: (error: ExecException | null, stdout: string, stderr: string) => void): ChildProcess; function execFile( file: string, args: ReadonlyArray | undefined | null, options: ExecFileOptionsWithStringEncoding, - callback: (error: Error | null, stdout: string, stderr: string) => void, + callback: (error: ExecException | null, stdout: string, stderr: string) => void, ): ChildProcess; // `options` with an `encoding` whose type is `string` means stdout/stderr could either be `Buffer` or `string`. @@ -346,30 +346,35 @@ declare module "child_process" { function execFile( file: string, options: ExecFileOptionsWithOtherEncoding, - callback: (error: Error | null, stdout: string | Buffer, stderr: string | Buffer) => void, + callback: (error: ExecException | null, stdout: string | Buffer, stderr: string | Buffer) => void, ): ChildProcess; function execFile( file: string, args: ReadonlyArray | undefined | null, options: ExecFileOptionsWithOtherEncoding, - callback: (error: Error | null, stdout: string | Buffer, stderr: string | Buffer) => void, + callback: (error: ExecException | null, stdout: string | Buffer, stderr: string | Buffer) => void, ): ChildProcess; // `options` without an `encoding` means stdout/stderr are definitely `string`. - function execFile(file: string, options: ExecFileOptions, callback: (error: Error | null, stdout: string, stderr: string) => void): ChildProcess; - function execFile(file: string, args: ReadonlyArray | undefined | null, options: ExecFileOptions, callback: (error: Error | null, stdout: string, stderr: string) => void): ChildProcess; + function execFile(file: string, options: ExecFileOptions, callback: (error: ExecException | null, stdout: string, stderr: string) => void): ChildProcess; + function execFile( + file: string, + args: ReadonlyArray | undefined | null, + options: ExecFileOptions, + callback: (error: ExecException | null, stdout: string, stderr: string) => void + ): ChildProcess; // fallback if nothing else matches. Worst case is always `string | Buffer`. function execFile( file: string, options: ({ encoding?: string | null } & ExecFileOptions) | undefined | null, - callback: ((error: Error | null, stdout: string | Buffer, stderr: string | Buffer) => void) | undefined | null, + callback: ((error: ExecException | null, stdout: string | Buffer, stderr: string | Buffer) => void) | undefined | null, ): ChildProcess; function execFile( file: string, args: ReadonlyArray | undefined | null, options: ({ encoding?: string | null } & ExecFileOptions) | undefined | null, - callback: ((error: Error | null, stdout: string | Buffer, stderr: string | Buffer) => void) | undefined | null, + callback: ((error: ExecException | null, stdout: string | Buffer, stderr: string | Buffer) => void) | undefined | null, ): ChildProcess; // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime. diff --git a/node_modules/@types/node/fs.d.ts b/node_modules/@types/node/fs.d.ts index 8c57f0c7b..6992b5f9f 100644 --- a/node_modules/@types/node/fs.d.ts +++ b/node_modules/@types/node/fs.d.ts @@ -107,22 +107,27 @@ declare module "fs" { addListener(event: string, listener: (...args: any[]) => void): this; addListener(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this; addListener(event: "error", listener: (error: Error) => void): this; + addListener(event: "close", listener: () => void): this; on(event: string, listener: (...args: any[]) => void): this; on(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this; on(event: "error", listener: (error: Error) => void): this; + on(event: "close", listener: () => void): this; once(event: string, listener: (...args: any[]) => void): this; once(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this; once(event: "error", listener: (error: Error) => void): this; + once(event: "close", listener: () => void): this; prependListener(event: string, listener: (...args: any[]) => void): this; prependListener(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this; prependListener(event: "error", listener: (error: Error) => void): this; + prependListener(event: "close", listener: () => void): this; prependOnceListener(event: string, listener: (...args: any[]) => void): this; prependOnceListener(event: "change", listener: (eventType: string, filename: string | Buffer) => void): this; prependOnceListener(event: "error", listener: (error: Error) => void): this; + prependOnceListener(event: "close", listener: () => void): this; } class ReadStream extends stream.Readable { diff --git a/node_modules/@types/node/package.json b/node_modules/@types/node/package.json index b2646bf9d..0111d8623 100644 --- a/node_modules/@types/node/package.json +++ b/node_modules/@types/node/package.json @@ -1,26 +1,26 @@ { "_args": [ [ - "@types/node@12.12.14", - "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" + "@types/node@12.12.17", + "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark" ] ], - "_from": "@types/node@12.12.14", - "_id": "@types/node@12.12.14", + "_from": "@types/node@12.12.17", + "_id": "@types/node@12.12.17", "_inBundle": false, - "_integrity": "sha512-u/SJDyXwuihpwjXy7hOOghagLEV1KdAST6syfnOk6QZAMzZuWZqXy5aYYZbh8Jdpd4escVFP0MvftHNDb9pruA==", + "_integrity": "sha512-Is+l3mcHvs47sKy+afn2O1rV4ldZFU7W8101cNlOd+MRbjM4Onida8jSZnJdTe/0Pcf25g9BNIUsuugmE6puHA==", "_location": "/@types/node", "_phantomChildren": {}, "_requested": { "type": "version", "registry": true, - "raw": "@types/node@12.12.14", + "raw": "@types/node@12.12.17", "name": "@types/node", "escapedName": "@types%2fnode", "scope": "@types", - "rawSpec": "12.12.14", + "rawSpec": "12.12.17", "saveSpec": null, - "fetchSpec": "12.12.14" + "fetchSpec": "12.12.17" }, "_requiredBy": [ "#DEV:/", @@ -31,9 +31,9 @@ "/@types/rimraf", "/cheerio/parse5" ], - "_resolved": "https://registry.npmjs.org/@types/node/-/node-12.12.14.tgz", - "_spec": "12.12.14", - "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", + "_resolved": "https://registry.npmjs.org/@types/node/-/node-12.12.17.tgz", + "_spec": "12.12.17", + "_where": "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark", "bugs": { "url": "https://github.com/DefinitelyTyped/DefinitelyTyped/issues" }, @@ -217,7 +217,7 @@ "scripts": {}, "typeScriptVersion": "2.8", "types": "index.d.ts", - "typesPublisherContentHash": "305a8ff81632f0e70287898475e87d6aedbd683a5e37cb775f9ea845625cfa06", + "typesPublisherContentHash": "b91bec997aa13851c25ab03f80a82fb680c9a7f692b6c1085fe12b75261e2c93", "typesVersions": { ">=3.2.0-0": { "*": [ @@ -225,5 +225,5 @@ ] } }, - "version": "12.12.14" + "version": "12.12.17" } diff --git a/node_modules/@types/node/readline.d.ts b/node_modules/@types/node/readline.d.ts index 6cb572e31..861606986 100644 --- a/node_modules/@types/node/readline.d.ts +++ b/node_modules/@types/node/readline.d.ts @@ -13,6 +13,13 @@ declare module "readline" { class Interface extends events.EventEmitter { readonly terminal: boolean; + // Need direct access to line/cursor data, for use in external processes + // see: https://github.com/nodejs/node/issues/30347 + /** The current input data */ + readonly line: string; + /** The current cursor position in the input line */ + readonly cursor: number; + /** * NOTE: According to the documentation: * diff --git a/node_modules/atob-lite/package.json b/node_modules/atob-lite/package.json index 06e9ccd60..fca84fb2c 100644 --- a/node_modules/atob-lite/package.json +++ b/node_modules/atob-lite/package.json @@ -2,7 +2,7 @@ "_args": [ [ "atob-lite@2.0.0", - "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" + "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark" ] ], "_from": "atob-lite@2.0.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/atob-lite/-/atob-lite-2.0.0.tgz", "_spec": "2.0.0", - "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", + "_where": "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark", "author": { "name": "Hugh Kennedy", "email": "hughskennedy@gmail.com", diff --git a/node_modules/before-after-hook/package.json b/node_modules/before-after-hook/package.json index d9eed1826..b724feb23 100644 --- a/node_modules/before-after-hook/package.json +++ b/node_modules/before-after-hook/package.json @@ -2,7 +2,7 @@ "_args": [ [ "before-after-hook@2.1.0", - "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" + "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark" ] ], "_from": "before-after-hook@2.1.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-2.1.0.tgz", "_spec": "2.1.0", - "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", + "_where": "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark", "author": { "name": "Gregor Martynus" }, diff --git a/node_modules/btoa-lite/package.json b/node_modules/btoa-lite/package.json index 492ec5762..aea284e19 100644 --- a/node_modules/btoa-lite/package.json +++ b/node_modules/btoa-lite/package.json @@ -2,7 +2,7 @@ "_args": [ [ "btoa-lite@1.0.0", - "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" + "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark" ] ], "_from": "btoa-lite@1.0.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/btoa-lite/-/btoa-lite-1.0.0.tgz", "_spec": "1.0.0", - "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", + "_where": "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark", "author": { "name": "Hugh Kennedy", "email": "hughskennedy@gmail.com", diff --git a/node_modules/cross-spawn/package.json b/node_modules/cross-spawn/package.json index a55ff5620..6d86b2ed7 100644 --- a/node_modules/cross-spawn/package.json +++ b/node_modules/cross-spawn/package.json @@ -2,7 +2,7 @@ "_args": [ [ "cross-spawn@6.0.5", - "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" + "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark" ] ], "_from": "cross-spawn@6.0.5", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", "_spec": "6.0.5", - "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", + "_where": "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark", "author": { "name": "André Cruz", "email": "andre@moxy.studio" diff --git a/node_modules/deprecation/package.json b/node_modules/deprecation/package.json index 97af1a991..c397ec27c 100644 --- a/node_modules/deprecation/package.json +++ b/node_modules/deprecation/package.json @@ -2,7 +2,7 @@ "_args": [ [ "deprecation@2.3.1", - "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" + "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark" ] ], "_from": "deprecation@2.3.1", @@ -28,7 +28,7 @@ ], "_resolved": "https://registry.npmjs.org/deprecation/-/deprecation-2.3.1.tgz", "_spec": "2.3.1", - "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", + "_where": "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark", "bugs": { "url": "https://github.com/gr2m/deprecation/issues" }, diff --git a/node_modules/end-of-stream/package.json b/node_modules/end-of-stream/package.json index d3948609c..2e1d541aa 100644 --- a/node_modules/end-of-stream/package.json +++ b/node_modules/end-of-stream/package.json @@ -2,7 +2,7 @@ "_args": [ [ "end-of-stream@1.4.4", - "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" + "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark" ] ], "_from": "end-of-stream@1.4.4", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", "_spec": "1.4.4", - "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", + "_where": "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark", "author": { "name": "Mathias Buus", "email": "mathiasbuus@gmail.com" diff --git a/node_modules/execa/package.json b/node_modules/execa/package.json index 3407ed4c8..335b75042 100644 --- a/node_modules/execa/package.json +++ b/node_modules/execa/package.json @@ -2,7 +2,7 @@ "_args": [ [ "execa@1.0.0", - "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" + "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark" ] ], "_from": "execa@1.0.0", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/execa/-/execa-1.0.0.tgz", "_spec": "1.0.0", - "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", + "_where": "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", diff --git a/node_modules/get-stream/package.json b/node_modules/get-stream/package.json index f91438a8a..97c4dc4d5 100644 --- a/node_modules/get-stream/package.json +++ b/node_modules/get-stream/package.json @@ -2,7 +2,7 @@ "_args": [ [ "get-stream@4.1.0", - "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" + "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark" ] ], "_from": "get-stream@4.1.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", "_spec": "4.1.0", - "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", + "_where": "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", diff --git a/node_modules/is-plain-object/package.json b/node_modules/is-plain-object/package.json index 477df9be8..a826bcdb6 100644 --- a/node_modules/is-plain-object/package.json +++ b/node_modules/is-plain-object/package.json @@ -2,7 +2,7 @@ "_args": [ [ "is-plain-object@3.0.0", - "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" + "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark" ] ], "_from": "is-plain-object@3.0.0", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-3.0.0.tgz", "_spec": "3.0.0", - "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", + "_where": "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" diff --git a/node_modules/is-stream/package.json b/node_modules/is-stream/package.json index 044460570..6b7fad989 100644 --- a/node_modules/is-stream/package.json +++ b/node_modules/is-stream/package.json @@ -2,7 +2,7 @@ "_args": [ [ "is-stream@1.1.0", - "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" + "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark" ] ], "_from": "is-stream@1.1.0", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", "_spec": "1.1.0", - "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", + "_where": "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", diff --git a/node_modules/isexe/package.json b/node_modules/isexe/package.json index 890213452..a14e95648 100644 --- a/node_modules/isexe/package.json +++ b/node_modules/isexe/package.json @@ -2,7 +2,7 @@ "_args": [ [ "isexe@2.0.0", - "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" + "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark" ] ], "_from": "isexe@2.0.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", "_spec": "2.0.0", - "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", + "_where": "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark", "author": { "name": "Isaac Z. Schlueter", "email": "i@izs.me", diff --git a/node_modules/isobject/package.json b/node_modules/isobject/package.json index 949755bb3..b42bea0fa 100644 --- a/node_modules/isobject/package.json +++ b/node_modules/isobject/package.json @@ -2,7 +2,7 @@ "_args": [ [ "isobject@4.0.0", - "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" + "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark" ] ], "_from": "isobject@4.0.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/isobject/-/isobject-4.0.0.tgz", "_spec": "4.0.0", - "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", + "_where": "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" diff --git a/node_modules/lodash.get/package.json b/node_modules/lodash.get/package.json index d36e8e3b8..f8284674e 100644 --- a/node_modules/lodash.get/package.json +++ b/node_modules/lodash.get/package.json @@ -2,7 +2,7 @@ "_args": [ [ "lodash.get@4.4.2", - "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" + "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark" ] ], "_from": "lodash.get@4.4.2", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/lodash.get/-/lodash.get-4.4.2.tgz", "_spec": "4.4.2", - "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", + "_where": "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark", "author": { "name": "John-David Dalton", "email": "john.david.dalton@gmail.com", diff --git a/node_modules/lodash.set/package.json b/node_modules/lodash.set/package.json index 4fd62303f..33ad19dfc 100644 --- a/node_modules/lodash.set/package.json +++ b/node_modules/lodash.set/package.json @@ -2,7 +2,7 @@ "_args": [ [ "lodash.set@4.3.2", - "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" + "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark" ] ], "_from": "lodash.set@4.3.2", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/lodash.set/-/lodash.set-4.3.2.tgz", "_spec": "4.3.2", - "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", + "_where": "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark", "author": { "name": "John-David Dalton", "email": "john.david.dalton@gmail.com", diff --git a/node_modules/lodash.uniq/package.json b/node_modules/lodash.uniq/package.json index b880e2008..e3c07f27a 100644 --- a/node_modules/lodash.uniq/package.json +++ b/node_modules/lodash.uniq/package.json @@ -2,7 +2,7 @@ "_args": [ [ "lodash.uniq@4.5.0", - "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" + "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark" ] ], "_from": "lodash.uniq@4.5.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/lodash.uniq/-/lodash.uniq-4.5.0.tgz", "_spec": "4.5.0", - "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", + "_where": "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark", "author": { "name": "John-David Dalton", "email": "john.david.dalton@gmail.com", diff --git a/node_modules/macos-release/package.json b/node_modules/macos-release/package.json index 09aff48b5..dc28e3ff6 100644 --- a/node_modules/macos-release/package.json +++ b/node_modules/macos-release/package.json @@ -2,7 +2,7 @@ "_args": [ [ "macos-release@2.3.0", - "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" + "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark" ] ], "_from": "macos-release@2.3.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/macos-release/-/macos-release-2.3.0.tgz", "_spec": "2.3.0", - "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", + "_where": "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", diff --git a/node_modules/nice-try/package.json b/node_modules/nice-try/package.json index c9a88fbb0..b32e98e18 100644 --- a/node_modules/nice-try/package.json +++ b/node_modules/nice-try/package.json @@ -2,7 +2,7 @@ "_args": [ [ "nice-try@1.0.5", - "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" + "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark" ] ], "_from": "nice-try@1.0.5", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", "_spec": "1.0.5", - "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", + "_where": "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark", "authors": [ "Tobias Reich " ], diff --git a/node_modules/node-fetch/package.json b/node_modules/node-fetch/package.json index a52dd134b..73b9ced49 100644 --- a/node_modules/node-fetch/package.json +++ b/node_modules/node-fetch/package.json @@ -2,7 +2,7 @@ "_args": [ [ "node-fetch@2.6.0", - "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" + "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark" ] ], "_from": "node-fetch@2.6.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.0.tgz", "_spec": "2.6.0", - "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", + "_where": "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark", "author": { "name": "David Frank" }, diff --git a/node_modules/npm-run-path/package.json b/node_modules/npm-run-path/package.json index f1831a7fe..0cc555b51 100644 --- a/node_modules/npm-run-path/package.json +++ b/node_modules/npm-run-path/package.json @@ -2,7 +2,7 @@ "_args": [ [ "npm-run-path@2.0.2", - "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" + "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark" ] ], "_from": "npm-run-path@2.0.2", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz", "_spec": "2.0.2", - "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", + "_where": "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", diff --git a/node_modules/octokit-pagination-methods/package.json b/node_modules/octokit-pagination-methods/package.json index 6677dd0db..927c9234e 100644 --- a/node_modules/octokit-pagination-methods/package.json +++ b/node_modules/octokit-pagination-methods/package.json @@ -2,7 +2,7 @@ "_args": [ [ "octokit-pagination-methods@1.1.0", - "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" + "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark" ] ], "_from": "octokit-pagination-methods@1.1.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/octokit-pagination-methods/-/octokit-pagination-methods-1.1.0.tgz", "_spec": "1.1.0", - "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", + "_where": "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark", "author": { "name": "Gregor Martynus", "url": "https://github.com/gr2m" diff --git a/node_modules/once/package.json b/node_modules/once/package.json index 2b37d69df..ff93d71dd 100644 --- a/node_modules/once/package.json +++ b/node_modules/once/package.json @@ -2,7 +2,7 @@ "_args": [ [ "once@1.4.0", - "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" + "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark" ] ], "_from": "once@1.4.0", @@ -33,7 +33,7 @@ ], "_resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "_spec": "1.4.0", - "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", + "_where": "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark", "author": { "name": "Isaac Z. Schlueter", "email": "i@izs.me", diff --git a/node_modules/os-name/package.json b/node_modules/os-name/package.json index d776b64e5..865b8314f 100644 --- a/node_modules/os-name/package.json +++ b/node_modules/os-name/package.json @@ -2,7 +2,7 @@ "_args": [ [ "os-name@3.1.0", - "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" + "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark" ] ], "_from": "os-name@3.1.0", @@ -29,7 +29,7 @@ ], "_resolved": "https://registry.npmjs.org/os-name/-/os-name-3.1.0.tgz", "_spec": "3.1.0", - "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", + "_where": "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", diff --git a/node_modules/p-finally/package.json b/node_modules/p-finally/package.json index 2171288de..d49f17b82 100644 --- a/node_modules/p-finally/package.json +++ b/node_modules/p-finally/package.json @@ -2,7 +2,7 @@ "_args": [ [ "p-finally@1.0.0", - "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" + "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark" ] ], "_from": "p-finally@1.0.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", "_spec": "1.0.0", - "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", + "_where": "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", diff --git a/node_modules/path-key/package.json b/node_modules/path-key/package.json index acd6c8656..e06389b65 100644 --- a/node_modules/path-key/package.json +++ b/node_modules/path-key/package.json @@ -2,7 +2,7 @@ "_args": [ [ "path-key@2.0.1", - "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" + "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark" ] ], "_from": "path-key@2.0.1", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", "_spec": "2.0.1", - "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", + "_where": "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", diff --git a/node_modules/pump/package.json b/node_modules/pump/package.json index 88fe0446f..9a6305bc0 100644 --- a/node_modules/pump/package.json +++ b/node_modules/pump/package.json @@ -2,7 +2,7 @@ "_args": [ [ "pump@3.0.0", - "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" + "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark" ] ], "_from": "pump@3.0.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", "_spec": "3.0.0", - "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", + "_where": "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark", "author": { "name": "Mathias Buus Madsen", "email": "mathiasbuus@gmail.com" diff --git a/node_modules/semver/package.json b/node_modules/semver/package.json index 9dbaa3cdf..124dbce0f 100644 --- a/node_modules/semver/package.json +++ b/node_modules/semver/package.json @@ -2,7 +2,7 @@ "_args": [ [ "semver@5.7.1", - "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" + "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark" ] ], "_from": "semver@5.7.1", @@ -29,7 +29,7 @@ ], "_resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", "_spec": "5.7.1", - "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", + "_where": "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark", "bin": { "semver": "./bin/semver" }, diff --git a/node_modules/shebang-command/package.json b/node_modules/shebang-command/package.json index b67c7259a..bb1c011fb 100644 --- a/node_modules/shebang-command/package.json +++ b/node_modules/shebang-command/package.json @@ -2,7 +2,7 @@ "_args": [ [ "shebang-command@1.2.0", - "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" + "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark" ] ], "_from": "shebang-command@1.2.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", "_spec": "1.2.0", - "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", + "_where": "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark", "author": { "name": "Kevin Martensson", "email": "kevinmartensson@gmail.com", diff --git a/node_modules/shebang-regex/package.json b/node_modules/shebang-regex/package.json index d55665b77..9c30492ed 100644 --- a/node_modules/shebang-regex/package.json +++ b/node_modules/shebang-regex/package.json @@ -2,7 +2,7 @@ "_args": [ [ "shebang-regex@1.0.0", - "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" + "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark" ] ], "_from": "shebang-regex@1.0.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", "_spec": "1.0.0", - "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", + "_where": "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", diff --git a/node_modules/signal-exit/package.json b/node_modules/signal-exit/package.json index a8427e75f..6ed9d8d88 100644 --- a/node_modules/signal-exit/package.json +++ b/node_modules/signal-exit/package.json @@ -2,7 +2,7 @@ "_args": [ [ "signal-exit@3.0.2", - "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" + "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark" ] ], "_from": "signal-exit@3.0.2", @@ -31,7 +31,7 @@ ], "_resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", "_spec": "3.0.2", - "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", + "_where": "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark", "author": { "name": "Ben Coe", "email": "ben@npmjs.com" diff --git a/node_modules/strip-eof/package.json b/node_modules/strip-eof/package.json index 6d9188d50..2827a3cf5 100644 --- a/node_modules/strip-eof/package.json +++ b/node_modules/strip-eof/package.json @@ -2,7 +2,7 @@ "_args": [ [ "strip-eof@1.0.0", - "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" + "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark" ] ], "_from": "strip-eof@1.0.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", "_spec": "1.0.0", - "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", + "_where": "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", diff --git a/node_modules/universal-user-agent/.travis.yml b/node_modules/universal-user-agent/.travis.yml deleted file mode 100644 index d54089575..000000000 --- a/node_modules/universal-user-agent/.travis.yml +++ /dev/null @@ -1,38 +0,0 @@ -language: node_js -cache: - directories: - - ~/.npm - - node_modules/cypress/dist - -# 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: 6 - 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/universal-user-agent/README.md b/node_modules/universal-user-agent/README.md index 59e809ed8..d00d14c1f 100644 --- a/node_modules/universal-user-agent/README.md +++ b/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/universal-user-agent/browser.js b/node_modules/universal-user-agent/browser.js deleted file mode 100644 index eb1274439..000000000 --- a/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/universal-user-agent/cypress.json b/node_modules/universal-user-agent/cypress.json deleted file mode 100644 index a1ff4b85e..000000000 --- a/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/universal-user-agent/dist-node/index.js similarity index 100% rename from node_modules/@octokit/endpoint/node_modules/universal-user-agent/dist-node/index.js rename to node_modules/universal-user-agent/dist-node/index.js diff --git a/node_modules/@octokit/endpoint/node_modules/universal-user-agent/dist-node/index.js.map b/node_modules/universal-user-agent/dist-node/index.js.map similarity index 100% rename from node_modules/@octokit/endpoint/node_modules/universal-user-agent/dist-node/index.js.map rename to node_modules/universal-user-agent/dist-node/index.js.map diff --git a/node_modules/@octokit/endpoint/node_modules/universal-user-agent/dist-src/browser.js b/node_modules/universal-user-agent/dist-src/browser.js similarity index 100% rename from node_modules/@octokit/endpoint/node_modules/universal-user-agent/dist-src/browser.js rename to node_modules/universal-user-agent/dist-src/browser.js diff --git a/node_modules/@octokit/endpoint/node_modules/universal-user-agent/dist-src/index.js b/node_modules/universal-user-agent/dist-src/index.js similarity index 100% rename from node_modules/@octokit/endpoint/node_modules/universal-user-agent/dist-src/index.js rename to node_modules/universal-user-agent/dist-src/index.js diff --git a/node_modules/@octokit/endpoint/node_modules/universal-user-agent/dist-src/node.js b/node_modules/universal-user-agent/dist-src/node.js similarity index 100% rename from node_modules/@octokit/endpoint/node_modules/universal-user-agent/dist-src/node.js rename to node_modules/universal-user-agent/dist-src/node.js diff --git a/node_modules/@octokit/endpoint/node_modules/universal-user-agent/dist-types/browser.d.ts b/node_modules/universal-user-agent/dist-types/browser.d.ts similarity index 100% rename from node_modules/@octokit/endpoint/node_modules/universal-user-agent/dist-types/browser.d.ts rename to node_modules/universal-user-agent/dist-types/browser.d.ts diff --git a/node_modules/@octokit/endpoint/node_modules/universal-user-agent/dist-types/index.d.ts b/node_modules/universal-user-agent/dist-types/index.d.ts similarity index 100% rename from node_modules/@octokit/endpoint/node_modules/universal-user-agent/dist-types/index.d.ts rename to node_modules/universal-user-agent/dist-types/index.d.ts diff --git a/node_modules/@octokit/endpoint/node_modules/universal-user-agent/dist-types/node.d.ts b/node_modules/universal-user-agent/dist-types/node.d.ts similarity index 100% rename from node_modules/@octokit/endpoint/node_modules/universal-user-agent/dist-types/node.d.ts rename to node_modules/universal-user-agent/dist-types/node.d.ts diff --git a/node_modules/@octokit/endpoint/node_modules/universal-user-agent/dist-web/index.js b/node_modules/universal-user-agent/dist-web/index.js similarity index 100% rename from node_modules/@octokit/endpoint/node_modules/universal-user-agent/dist-web/index.js rename to node_modules/universal-user-agent/dist-web/index.js diff --git a/node_modules/@octokit/endpoint/node_modules/universal-user-agent/dist-web/index.js.map b/node_modules/universal-user-agent/dist-web/index.js.map similarity index 100% rename from node_modules/@octokit/endpoint/node_modules/universal-user-agent/dist-web/index.js.map rename to node_modules/universal-user-agent/dist-web/index.js.map diff --git a/node_modules/universal-user-agent/index.d.ts b/node_modules/universal-user-agent/index.d.ts deleted file mode 100644 index 04dfc0435..000000000 --- a/node_modules/universal-user-agent/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export default function getUserAgentNode(): string; diff --git a/node_modules/universal-user-agent/index.js b/node_modules/universal-user-agent/index.js deleted file mode 100644 index ef2d06b28..000000000 --- a/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/universal-user-agent/package.json b/node_modules/universal-user-agent/package.json index a4a0ce848..3c44a6737 100644 --- a/node_modules/universal-user-agent/package.json +++ b/node_modules/universal-user-agent/package.json @@ -1,85 +1,71 @@ { "_args": [ [ - "universal-user-agent@2.1.0", - "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" + "universal-user-agent@4.0.0", + "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark" ] ], - "_from": "universal-user-agent@2.1.0", - "_id": "universal-user-agent@2.1.0", + "_from": "universal-user-agent@4.0.0", + "_id": "universal-user-agent@4.0.0", "_inBundle": false, - "_integrity": "sha512-8itiX7G05Tu3mGDTdNY2fB4KJ8MgZLS54RdG6PkkfwMAavrXu1mV/lls/GABx9O3Rw4PnTtasxrvbMQoBYY92Q==", + "_integrity": "sha512-eM8knLpev67iBDizr/YtqkJsF3GK8gzDc6st/WKzrTuPtcsOKW/0IdL4cnMBsU69pOx0otavLWBDGTwg+dB0aA==", "_location": "/universal-user-agent", "_phantomChildren": {}, "_requested": { "type": "version", "registry": true, - "raw": "universal-user-agent@2.1.0", + "raw": "universal-user-agent@4.0.0", "name": "universal-user-agent", "escapedName": "universal-user-agent", - "rawSpec": "2.1.0", + "rawSpec": "4.0.0", "saveSpec": null, - "fetchSpec": "2.1.0" + "fetchSpec": "4.0.0" }, "_requiredBy": [ - "/@octokit/graphql" + "/@octokit/endpoint", + "/@octokit/graphql", + "/@octokit/request", + "/@octokit/rest" ], - "_resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-2.1.0.tgz", - "_spec": "2.1.0", - "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", - "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", + "_spec": "4.0.0", + "_where": "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark", "bugs": { "url": "https://github.com/gr2m/universal-user-agent/issues" }, "dependencies": { - "os-name": "^3.0.0" + "os-name": "^3.1.0" }, "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": "^12.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": "2.1.0" + "sideEffects": false, + "source": "dist-src/index.js", + "types": "dist-types/index.d.ts", + "version": "4.0.0" } diff --git a/node_modules/universal-user-agent/test/smoke-test.js b/node_modules/universal-user-agent/test/smoke-test.js deleted file mode 100644 index d71b2d51c..000000000 --- a/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/which/package.json b/node_modules/which/package.json index 9dd4b900c..71d3cdd00 100644 --- a/node_modules/which/package.json +++ b/node_modules/which/package.json @@ -2,7 +2,7 @@ "_args": [ [ "which@1.3.1", - "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" + "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark" ] ], "_from": "which@1.3.1", @@ -29,7 +29,7 @@ ], "_resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", "_spec": "1.3.1", - "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", + "_where": "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark", "author": { "name": "Isaac Z. Schlueter", "email": "i@izs.me", diff --git a/node_modules/windows-release/package.json b/node_modules/windows-release/package.json index bbed9b222..27fc78afe 100644 --- a/node_modules/windows-release/package.json +++ b/node_modules/windows-release/package.json @@ -2,7 +2,7 @@ "_args": [ [ "windows-release@3.2.0", - "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" + "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark" ] ], "_from": "windows-release@3.2.0", @@ -26,7 +26,7 @@ ], "_resolved": "https://registry.npmjs.org/windows-release/-/windows-release-3.2.0.tgz", "_spec": "3.2.0", - "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", + "_where": "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", diff --git a/node_modules/wrappy/package.json b/node_modules/wrappy/package.json index bfa6e388b..9c4e9d4e2 100644 --- a/node_modules/wrappy/package.json +++ b/node_modules/wrappy/package.json @@ -2,7 +2,7 @@ "_args": [ [ "wrappy@1.0.2", - "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark" + "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark" ] ], "_from": "wrappy@1.0.2", @@ -27,7 +27,7 @@ ], "_resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", "_spec": "1.0.2", - "_where": "/Users/rhayasd/Develop/github.com/rhysd/github-action-benchmark", + "_where": "/Users/npsdev5/Develop/github.com/rhysd/github-action-benchmark", "author": { "name": "Isaac Z. Schlueter", "email": "i@izs.me", diff --git a/package-lock.json b/package-lock.json index a8e0580d3..28b6ec18e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,16 +10,19 @@ "integrity": "sha512-ZKdyhlSlyz38S6YFfPnyNgCDZuAF2T0Qv5eHflNWytPS8Qjvz39bZFMry9Bb/dpSnqWcNeav5yM2CTYpJeY+Dw==" }, "@actions/exec": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@actions/exec/-/exec-1.0.1.tgz", - "integrity": "sha512-nvFkxwiicvpzNiCBF4wFBDfnBvi7xp/as7LE1hBxBxKG2L29+gkIPBiLKMVORL+Hg3JNf07AKRfl0V5djoypjQ==" + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@actions/exec/-/exec-1.0.2.tgz", + "integrity": "sha512-Yo/wfcFuxbVjAaAfvx3aGLhMEuonOahas2jf8BwyA52IkXTAmLi7YVZTpGAQG/lTxuGoNLg9slTWQD4rr7rMDQ==", + "requires": { + "@actions/io": "^1.0.1" + } }, "@actions/github": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@actions/github/-/github-1.1.0.tgz", - "integrity": "sha512-cHf6PyoNMdei13jEdGPhKprIMFmjVVW/dnM5/9QmQDJ1ZTaGVyezUSCUIC/ySNLRvDUpeFwPYMdThSEJldSbUw==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@actions/github/-/github-2.0.0.tgz", + "integrity": "sha512-sNpZ5dJyJyfJIO5lNYx8r/Gha4Tlm8R0MLO2cBkGdOnAAEn3t1M/MHVcoBhY/VPfjGVe5RNAUPz+6INrViiUPA==", "requires": { - "@octokit/graphql": "^2.0.1", + "@octokit/graphql": "^4.3.1", "@octokit/rest": "^16.15.0" } }, @@ -153,25 +156,16 @@ "@octokit/types": "^2.0.0", "is-plain-object": "^3.0.0", "universal-user-agent": "^4.0.0" - }, - "dependencies": { - "universal-user-agent": { - "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" - } - } } }, "@octokit/graphql": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-2.1.3.tgz", - "integrity": "sha512-XoXJqL2ondwdnMIW3wtqJWEwcBfKk37jO/rYkoxNPEVeLBDGsGO1TCWggrAlq3keGt/O+C/7VepXnukUxwt5vA==", + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-4.3.1.tgz", + "integrity": "sha512-hCdTjfvrK+ilU2keAdqNBWOk+gm1kai1ZcdjRfB30oA3/T6n53UVJb7w0L5cR3/rhU91xT3HSqCd+qbvH06yxA==", "requires": { - "@octokit/request": "^5.0.0", - "universal-user-agent": "^2.0.3" + "@octokit/request": "^5.3.0", + "@octokit/types": "^2.0.0", + "universal-user-agent": "^4.0.0" } }, "@octokit/request": { @@ -187,16 +181,6 @@ "node-fetch": "^2.3.0", "once": "^1.4.0", "universal-user-agent": "^4.0.0" - }, - "dependencies": { - "universal-user-agent": { - "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" - } - } } }, "@octokit/request-error": { @@ -210,9 +194,9 @@ } }, "@octokit/rest": { - "version": "16.35.0", - "resolved": "https://registry.npmjs.org/@octokit/rest/-/rest-16.35.0.tgz", - "integrity": "sha512-9ShFqYWo0CLoGYhA1FdtdykJuMzS/9H6vSbbQWDX4pWr4p9v+15MsH/wpd/3fIU+tSxylaNO48+PIHqOkBRx3w==", + "version": "16.35.2", + "resolved": "https://registry.npmjs.org/@octokit/rest/-/rest-16.35.2.tgz", + "integrity": "sha512-iijaNZpn9hBpUdh8YdXqNiWazmq4R1vCUsmxpBB0kCQ0asHZpCx+HNs22eiHuwYKRhO31ZSAGBJLi0c+3XHaKQ==", "requires": { "@octokit/request": "^5.2.0", "@octokit/request-error": "^1.0.2", @@ -226,22 +210,12 @@ "octokit-pagination-methods": "^1.1.0", "once": "^1.4.0", "universal-user-agent": "^4.0.0" - }, - "dependencies": { - "universal-user-agent": { - "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" - } - } } }, "@octokit/types": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/@octokit/types/-/types-2.0.1.tgz", - "integrity": "sha512-YDYgV6nCzdGdOm7wy43Ce8SQ3M5DMKegB8E5sTB/1xrxOdo2yS/KgUgML2N2ZGD621mkbdrAglwTyA4NDOlFFA==", + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-2.0.2.tgz", + "integrity": "sha512-StASIL2lgT3TRjxv17z9pAqbnI7HGu9DrJlg3sEBFfCLaMEqp+O3IQPUF6EZtQ4xkAu2ml6kMBBCtGxjvmtmuQ==", "requires": { "@types/node": ">= 8" } @@ -348,9 +322,9 @@ } }, "@types/node": { - "version": "12.12.14", - "resolved": "https://registry.npmjs.org/@types/node/-/node-12.12.14.tgz", - "integrity": "sha512-u/SJDyXwuihpwjXy7hOOghagLEV1KdAST6syfnOk6QZAMzZuWZqXy5aYYZbh8Jdpd4escVFP0MvftHNDb9pruA==" + "version": "12.12.17", + "resolved": "https://registry.npmjs.org/@types/node/-/node-12.12.17.tgz", + "integrity": "sha512-Is+l3mcHvs47sKy+afn2O1rV4ldZFU7W8101cNlOd+MRbjM4Onida8jSZnJdTe/0Pcf25g9BNIUsuugmE6puHA==" }, "@types/normalize-package-data": { "version": "2.4.0", @@ -369,12 +343,12 @@ } }, "@typescript-eslint/eslint-plugin": { - "version": "2.10.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.10.0.tgz", - "integrity": "sha512-rT51fNLW0u3fnDGnAHVC5nu+Das+y2CpW10yqvf6/j5xbuUV3FxA3mBaIbM24CXODXjbgUznNb4Kg9XZOUxKAw==", + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.11.0.tgz", + "integrity": "sha512-G2HHA1vpMN0EEbUuWubiCCfd0R3a30BB+UdvnFkxwZIxYEGOrWEXDv8tBFO9f44CWc47Xv9lLM3VSn4ORLI2bA==", "dev": true, "requires": { - "@typescript-eslint/experimental-utils": "2.10.0", + "@typescript-eslint/experimental-utils": "2.11.0", "eslint-utils": "^1.4.3", "functional-red-black-tree": "^1.0.1", "regexpp": "^3.0.0", @@ -382,32 +356,32 @@ } }, "@typescript-eslint/experimental-utils": { - "version": "2.10.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-2.10.0.tgz", - "integrity": "sha512-FZhWq6hWWZBP76aZ7bkrfzTMP31CCefVIImrwP3giPLcoXocmLTmr92NLZxuIcTL4GTEOE33jQMWy9PwelL+yQ==", + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-2.11.0.tgz", + "integrity": "sha512-YxcA/y0ZJaCc/fB/MClhcDxHI0nOBB7v2/WxBju2cOTanX7jO9ttQq6Fy4yW9UaY5bPd9xL3cun3lDVqk67sPQ==", "dev": true, "requires": { "@types/json-schema": "^7.0.3", - "@typescript-eslint/typescript-estree": "2.10.0", + "@typescript-eslint/typescript-estree": "2.11.0", "eslint-scope": "^5.0.0" } }, "@typescript-eslint/parser": { - "version": "2.10.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-2.10.0.tgz", - "integrity": "sha512-wQNiBokcP5ZsTuB+i4BlmVWq6o+oAhd8en2eSm/EE9m7BgZUIfEeYFd6z3S+T7bgNuloeiHA1/cevvbBDLr98g==", + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-2.11.0.tgz", + "integrity": "sha512-DyGXeqhb3moMioEFZIHIp7oXBBh7dEfPTzGrlyP0Mi9ScCra4SWEGs3kPd18mG7Sy9Wy8z88zmrw5tSGL6r/6A==", "dev": true, "requires": { "@types/eslint-visitor-keys": "^1.0.0", - "@typescript-eslint/experimental-utils": "2.10.0", - "@typescript-eslint/typescript-estree": "2.10.0", + "@typescript-eslint/experimental-utils": "2.11.0", + "@typescript-eslint/typescript-estree": "2.11.0", "eslint-visitor-keys": "^1.1.0" } }, "@typescript-eslint/typescript-estree": { - "version": "2.10.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-2.10.0.tgz", - "integrity": "sha512-oOYnplddQNm/LGVkqbkAwx4TIBuuZ36cAQq9v3nFIU9FmhemHuVzAesMSXNQDdAzCa5bFgCrfD3JWhYVKlRN2g==", + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-2.11.0.tgz", + "integrity": "sha512-HGY4+d4MagO6cKMcKfIKaTMxcAv7dEVnji2Zi+vi5VV8uWAM631KjAB5GxFcexMYrwKT0EekRiiGK1/Sd7VFGA==", "dev": true, "requires": { "debug": "^4.1.1", @@ -1177,9 +1151,9 @@ } }, "eslint-plugin-prettier": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-3.1.1.tgz", - "integrity": "sha512-A+TZuHZ0KU0cnn56/9mfR7/KjUJ9QNVXUhwvRFSR7PGPe0zQR6PTkmyqg1AtUUEOzTqeRsUwyKFh0oVZKVCrtA==", + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-3.1.2.tgz", + "integrity": "sha512-GlolCC9y3XZfv3RQfwGew7NnuFDKsfI4lbvRK+PIIo23SFH+LemGs4cKwzAaRa+Mdb+lQO/STaIayno8T5sJJA==", "dev": true, "requires": { "prettier-linter-helpers": "^1.0.0" @@ -3253,11 +3227,11 @@ } }, "universal-user-agent": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-2.1.0.tgz", - "integrity": "sha512-8itiX7G05Tu3mGDTdNY2fB4KJ8MgZLS54RdG6PkkfwMAavrXu1mV/lls/GABx9O3Rw4PnTtasxrvbMQoBYY92Q==", + "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.0.0" + "os-name": "^3.1.0" } }, "uri-js": { diff --git a/package.json b/package.json index 8a72e3177..5dc86cc67 100644 --- a/package.json +++ b/package.json @@ -33,10 +33,10 @@ "homepage": "https://github.com/rhysd/github-action-benchmark#readme", "dependencies": { "@actions/core": "^1.2.0", - "@actions/exec": "^1.0.1", - "@actions/github": "^1.1.0", + "@actions/exec": "^1.0.2", + "@actions/github": "^2.0.0", "@actions/io": "^1.0.1", - "@octokit/rest": "^16.35.0" + "@octokit/rest": "^16.35.2" }, "devDependencies": { "@types/acorn": "^4.0.5", @@ -46,10 +46,10 @@ "@types/markdown-it": "0.0.9", "@types/mocha": "^5.2.7", "@types/mock-require": "^2.0.0", - "@types/node": "^12.12.14", + "@types/node": "^12.12.17", "@types/rimraf": "^2.0.3", - "@typescript-eslint/eslint-plugin": "^2.10.0", - "@typescript-eslint/parser": "^2.10.0", + "@typescript-eslint/eslint-plugin": "^2.11.0", + "@typescript-eslint/parser": "^2.11.0", "acorn": "^7.1.0", "cheerio": "^1.0.0-rc.3", "deep-diff": "^1.0.2", @@ -57,7 +57,7 @@ "eslint": "^6.7.2", "eslint-config-prettier": "^6.7.0", "eslint-plugin-mocha": "^6.2.2", - "eslint-plugin-prettier": "^3.1.1", + "eslint-plugin-prettier": "^3.1.2", "husky": "^3.1.0", "markdown-it": "^10.0.0", "mocha": "^6.2.2", diff --git a/src/default_index_html.js b/src/default_index_html.js index 5667b96cd..025f70d23 100644 --- a/src/default_index_html.js +++ b/src/default_index_html.js @@ -14,7 +14,7 @@ exports.DEFAULT_INDEX_HTML = String.raw ` } body { color: #4a4a4a; - border: 8px; + margin: 8px; font-size: 1em; font-weight: 400; } @@ -121,140 +121,152 @@ exports.DEFAULT_INDEX_HTML = String.raw ` _: '#333333' }; - const data = window.BENCHMARK_DATA; - document.getElementById('last-update').textContent = new Date(data.lastUpdate).toString(); - const repoLink = document.getElementById('repository-link'); - repoLink.href = data.repoUrl; - repoLink.textContent = data.repoUrl; - - function collectBenchesPerTestCase(entries) { - const map = new Map(); - for (const entry of entries) { - const {commit, date, tool, benches} = entry; - for (const bench of benches) { - const result = { commit, date, tool, bench }; - const arr = map.get(bench.name); - if (arr === undefined) { - map.set(bench.name, [result]); - } else { - arr.push(result); + function init() { + function collectBenchesPerTestCase(entries) { + const map = new Map(); + for (const entry of entries) { + const {commit, date, tool, benches} = entry; + for (const bench of benches) { + const result = { commit, date, tool, bench }; + const arr = map.get(bench.name); + if (arr === undefined) { + map.set(bench.name, [result]); + } else { + arr.push(result); + } } } + return map; } - return map; - } - function renderGraph(parent, name, dataset) { - const canvas = document.createElement('canvas'); - canvas.className = 'benchmark-chart'; - parent.appendChild(canvas); + const data = window.BENCHMARK_DATA; - const color = toolColors[dataset.length > 0 ? dataset[0].tool : '_']; - const data = { - labels: dataset.map(d => d.commit.id.slice(0, 7)), - datasets: [ - { - label: name, - data: dataset.map(d => d.bench.value), - borderColor: color, - backgroundColor: color + '60', // Add alpha for #rrggbbaa - } - ], + // Render header + document.getElementById('last-update').textContent = new Date(data.lastUpdate).toString(); + const repoLink = document.getElementById('repository-link'); + repoLink.href = data.repoUrl; + repoLink.textContent = data.repoUrl; + + // Render footer + document.getElementById('dl-button').onclick = () => { + const dataUrl = 'data:,' + JSON.stringify(data, null, 2); + const a = document.createElement('a'); + a.href = dataUrl; + a.download = 'benchmark_data.json'; + a.click(); }; - const options = { - scales: { - xAxes: [ + + // Prepare data points for charts + return Object.keys(data.entries).map(name => collectBenchesPerTestCase(data.entries[name])); + } + + function renderAllChars(dataSets) { + + function renderGraph(parent, name, dataset) { + const canvas = document.createElement('canvas'); + canvas.className = 'benchmark-chart'; + parent.appendChild(canvas); + + const color = toolColors[dataset.length > 0 ? dataset[0].tool : '_']; + const data = { + labels: dataset.map(d => d.commit.id.slice(0, 7)), + datasets: [ { - scaleLabel: { - display: true, - labelString: 'commit', - }, + label: name, + data: dataset.map(d => d.bench.value), + borderColor: color, + backgroundColor: color + '60', // Add alpha for #rrggbbaa } ], - yAxes: [ - { - scaleLabel: { - display: true, - labelString: dataset.length > 0 ? dataset[0].bench.unit : '', + }; + const options = { + scales: { + xAxes: [ + { + scaleLabel: { + display: true, + labelString: 'commit', + }, + } + ], + yAxes: [ + { + scaleLabel: { + display: true, + labelString: dataset.length > 0 ? dataset[0].bench.unit : '', + }, + ticks: { + beginAtZero: true, + } + } + ], + }, + tooltips: { + callbacks: { + afterTitle: items => { + const {index} = items[0]; + const data = dataset[index]; + return '\n' + data.commit.message + '\n\n' + data.commit.timestamp + ' committed by @' + data.commit.committer.username + '\n'; + }, + label: item => { + let label = item.value; + const { range, unit } = dataset[item.index].bench; + label += ' ' + unit; + if (range) { + label += ' (' + range + ')'; + } + return label; }, - ticks: { - beginAtZero: true, + afterLabel: item => { + const { extra } = dataset[item.index].bench; + return extra ? '\n' + extra : ''; } } - ], - }, - tooltips: { - callbacks: { - afterTitle: items => { - const {index} = items[0]; - const data = dataset[index]; - return '\n' + data.commit.message + '\n\n' + data.commit.timestamp + ' committed by @' + data.commit.committer.username + '\n'; - }, - label: item => { - let label = item.value; - const { range, unit } = dataset[item.index].bench; - label += ' ' + unit; - if (range) { - label += ' (' + range + ')'; - } - return label; - }, - afterLabel: item => { - const { extra } = dataset[item.index].bench; - return extra ? '\n' + extra : ''; + }, + onClick: (_mouseEvent, activeElems) => { + if (activeElems.length === 0) { + return; } - } - }, - onClick: (_mouseEvent, activeElems) => { - if (activeElems.length === 0) { - return; - } - // XXX: Undocumented. How can we know the index? - const index = activeElems[0]._index; - const url = dataset[index].commit.url; - window.open(url, '_blank'); - }, - }; + // XXX: Undocumented. How can we know the index? + const index = activeElems[0]._index; + const url = dataset[index].commit.url; + window.open(url, '_blank'); + }, + }; - new Chart(canvas, { - type: 'line', - data, - options, - }); - } + new Chart(canvas, { + type: 'line', + data, + options, + }); + } - function renderBenchSet(name, benchset) { - const setElem = document.createElement('div'); - setElem.className = 'benchmark-set'; - document.getElementById('main').appendChild(setElem); + function renderBenchSet(name, benchset, main) { + const setElem = document.createElement('div'); + setElem.className = 'benchmark-set'; + main.appendChild(setElem); - const nameElem = document.createElement('h1'); - nameElem.className = 'benchmark-title'; - nameElem.textContent = name; - setElem.appendChild(nameElem); + const nameElem = document.createElement('h1'); + nameElem.className = 'benchmark-title'; + nameElem.textContent = name; + setElem.appendChild(nameElem); - const graphsElem = document.createElement('div'); - graphsElem.className = 'benchmark-graphs'; - setElem.appendChild(graphsElem); + const graphsElem = document.createElement('div'); + graphsElem.className = 'benchmark-graphs'; + setElem.appendChild(graphsElem); - for (const [benchName, benches] of benchset.entries()) { - renderGraph(graphsElem, benchName, benches) + for (const [benchName, benches] of benchset.entries()) { + renderGraph(graphsElem, benchName, benches) + } } - } - for (const name of Object.keys(data.entries)) { - const commits = data.entries[name]; - const benchset = collectBenchesPerTestCase(commits); - renderBenchSet(name, benchset); + const main = document.getElementById('main'); + for (const dataSet of dataSets) { + renderBenchSet(name, dataSet, main); + } } - document.getElementById('dl-button').onclick = () => { - const dataUrl = 'data:,' + JSON.stringify(data, null, 2); - const a = document.createElement('a'); - a.href = dataUrl; - a.download = 'benchmark_data.json'; - a.click(); - }; + renderAllChars(init()); // Start })(); diff --git a/src/write.js b/src/write.js index ee67e55f3..e48f253d5 100644 --- a/src/write.js +++ b/src/write.js @@ -280,6 +280,7 @@ async function writeBenchmarkToGitHubPagesWithRetry(bench, config, retry) { return prevBench; } async function writeBenchmarkToGitHubPages(bench, config) { + await git.cmd('fetch', 'origin', `${config.ghPagesBranch}:${config.ghPagesBranch}`); await git.cmd('switch', config.ghPagesBranch); try { return await writeBenchmarkToGitHubPagesWithRetry(bench, config, 10);