From a4f398e58be52b7c1ec930d635a6768f94fde1fe Mon Sep 17 00:00:00 2001 From: Martijn Pieters Date: Thu, 30 Mar 2023 15:38:04 +0100 Subject: [PATCH] Remove unused dependencies The @octokit/plugin- references are not actually (directly) used by @action/github-script and so only serve to confuse about what exact version of these is included in the action. The actual versions of these plugins are set by @action/github. Ignoring newlines, the dist/index.js file is exactly the same without listing these dependencies in package.json. --- .../npm/@octokit/openapi-types-13.2.0.dep.yml | 20 ------- ...-12.11.0.dep.yml => openapi-types.dep.yml} | 2 +- ...plugin-rest-endpoint-methods-6.3.0.dep.yml | 20 ------- ...l => plugin-rest-endpoint-methods.dep.yml} | 2 +- .licenses/npm/@octokit/types-7.1.0.dep.yml | 20 ------- .../{types-6.41.0.dep.yml => types.dep.yml} | 2 +- package-lock.json | 54 ------------------- package.json | 2 - 8 files changed, 3 insertions(+), 119 deletions(-) delete mode 100644 .licenses/npm/@octokit/openapi-types-13.2.0.dep.yml rename .licenses/npm/@octokit/{openapi-types-12.11.0.dep.yml => openapi-types.dep.yml} (99%) delete mode 100644 .licenses/npm/@octokit/plugin-rest-endpoint-methods-6.3.0.dep.yml rename .licenses/npm/@octokit/{plugin-rest-endpoint-methods-5.16.2.dep.yml => plugin-rest-endpoint-methods.dep.yml} (99%) delete mode 100644 .licenses/npm/@octokit/types-7.1.0.dep.yml rename .licenses/npm/@octokit/{types-6.41.0.dep.yml => types.dep.yml} (99%) diff --git a/.licenses/npm/@octokit/openapi-types-13.2.0.dep.yml b/.licenses/npm/@octokit/openapi-types-13.2.0.dep.yml deleted file mode 100644 index 5270c6a4..00000000 --- a/.licenses/npm/@octokit/openapi-types-13.2.0.dep.yml +++ /dev/null @@ -1,20 +0,0 @@ ---- -name: "@octokit/openapi-types" -version: 13.2.0 -type: npm -summary: Generated TypeScript definitions based on GitHub's OpenAPI spec for api.github.com -homepage: -license: mit -licenses: -- sources: LICENSE - text: |- - Copyright 2020 Gregor Martynus - - 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. -- sources: README.md - text: "[MIT](LICENSE)" -notices: [] diff --git a/.licenses/npm/@octokit/openapi-types-12.11.0.dep.yml b/.licenses/npm/@octokit/openapi-types.dep.yml similarity index 99% rename from .licenses/npm/@octokit/openapi-types-12.11.0.dep.yml rename to .licenses/npm/@octokit/openapi-types.dep.yml index f2891938..91531481 100644 --- a/.licenses/npm/@octokit/openapi-types-12.11.0.dep.yml +++ b/.licenses/npm/@octokit/openapi-types.dep.yml @@ -3,7 +3,7 @@ name: "@octokit/openapi-types" version: 12.11.0 type: npm summary: Generated TypeScript definitions based on GitHub's OpenAPI spec for api.github.com -homepage: +homepage: license: mit licenses: - sources: LICENSE diff --git a/.licenses/npm/@octokit/plugin-rest-endpoint-methods-6.3.0.dep.yml b/.licenses/npm/@octokit/plugin-rest-endpoint-methods-6.3.0.dep.yml deleted file mode 100644 index b89c06fb..00000000 --- a/.licenses/npm/@octokit/plugin-rest-endpoint-methods-6.3.0.dep.yml +++ /dev/null @@ -1,20 +0,0 @@ ---- -name: "@octokit/plugin-rest-endpoint-methods" -version: 6.3.0 -type: npm -summary: Octokit plugin adding one method for all of api.github.com REST API endpoints -homepage: -license: mit -licenses: -- sources: LICENSE - text: | - MIT License Copyright (c) 2019 Octokit contributors - - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice (including the next paragraph) 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. -- sources: README.md - text: "[MIT](LICENSE)" -notices: [] diff --git a/.licenses/npm/@octokit/plugin-rest-endpoint-methods-5.16.2.dep.yml b/.licenses/npm/@octokit/plugin-rest-endpoint-methods.dep.yml similarity index 99% rename from .licenses/npm/@octokit/plugin-rest-endpoint-methods-5.16.2.dep.yml rename to .licenses/npm/@octokit/plugin-rest-endpoint-methods.dep.yml index 92203484..678227b4 100644 --- a/.licenses/npm/@octokit/plugin-rest-endpoint-methods-5.16.2.dep.yml +++ b/.licenses/npm/@octokit/plugin-rest-endpoint-methods.dep.yml @@ -3,7 +3,7 @@ name: "@octokit/plugin-rest-endpoint-methods" version: 5.16.2 type: npm summary: Octokit plugin adding one method for all of api.github.com REST API endpoints -homepage: +homepage: license: mit licenses: - sources: LICENSE diff --git a/.licenses/npm/@octokit/types-7.1.0.dep.yml b/.licenses/npm/@octokit/types-7.1.0.dep.yml deleted file mode 100644 index 0dcd9693..00000000 --- a/.licenses/npm/@octokit/types-7.1.0.dep.yml +++ /dev/null @@ -1,20 +0,0 @@ ---- -name: "@octokit/types" -version: 7.1.0 -type: npm -summary: Shared TypeScript definitions for Octokit projects -homepage: -license: mit -licenses: -- sources: LICENSE - text: | - MIT License Copyright (c) 2019 Octokit contributors - - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice (including the next paragraph) 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. -- sources: README.md - text: "[MIT](LICENSE)" -notices: [] diff --git a/.licenses/npm/@octokit/types-6.41.0.dep.yml b/.licenses/npm/@octokit/types.dep.yml similarity index 99% rename from .licenses/npm/@octokit/types-6.41.0.dep.yml rename to .licenses/npm/@octokit/types.dep.yml index d13289b2..c5efe95e 100644 --- a/.licenses/npm/@octokit/types-6.41.0.dep.yml +++ b/.licenses/npm/@octokit/types.dep.yml @@ -3,7 +3,7 @@ name: "@octokit/types" version: 6.41.0 type: npm summary: Shared TypeScript definitions for Octokit projects -homepage: +homepage: license: mit licenses: - sources: LICENSE diff --git a/package-lock.json b/package-lock.json index c1c21395..baf8c9d8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,9 +15,7 @@ "@actions/glob": "^0.3.0", "@actions/io": "^1.1.1", "@octokit/core": "^3.5.1", - "@octokit/plugin-paginate-rest": "^2.17.0", "@octokit/plugin-request-log": "^1.0.4", - "@octokit/plugin-rest-endpoint-methods": "^6.3.0", "@octokit/plugin-retry": "^3.0.9", "node-fetch": "^2.6.7" }, @@ -1134,34 +1132,6 @@ "@octokit/core": ">=3" } }, - "node_modules/@octokit/plugin-rest-endpoint-methods": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-6.3.0.tgz", - "integrity": "sha512-qEu2wn6E7hqluZwIEUnDxWROvKjov3zMIAi4H4d7cmKWNMeBprEXZzJe8pE5eStUYC1ysGhD0B7L6IeG1Rfb+g==", - "dependencies": { - "@octokit/types": "^7.0.0", - "deprecation": "^2.3.1" - }, - "engines": { - "node": ">= 14" - }, - "peerDependencies": { - "@octokit/core": ">=3" - } - }, - "node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/openapi-types": { - "version": "13.2.0", - "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-13.2.0.tgz", - "integrity": "sha512-1BhjsVrCe2cyE36Rorpeq331bcYzdb9ksCpkFdAN6RVtW67YdO3Pl4YXDC5dF2D1ia76MssJdn5RV+Gj9Fu7dQ==" - }, - "node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/@octokit/types/-/types-7.1.0.tgz", - "integrity": "sha512-+ClA0jRc9zGFj5mfQeQNfgTlelzhpAexbAueQG1t2Xn8yhgnsjkF8bgLcUUpwrpqkv296uXyiGwkqXRSU7KYzQ==", - "dependencies": { - "@octokit/openapi-types": "^13.1.0" - } - }, "node_modules/@octokit/plugin-retry": { "version": "3.0.9", "resolved": "https://registry.npmjs.org/@octokit/plugin-retry/-/plugin-retry-3.0.9.tgz", @@ -7107,30 +7077,6 @@ "integrity": "sha512-mLUsMkgP7K/cnFEw07kWqXGF5LKrOkD+lhCrKvPHXWDywAwuDUeDwWBpc69XK3pNX0uKiVt8g5z96PJ6z9xCFA==", "requires": {} }, - "@octokit/plugin-rest-endpoint-methods": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-6.3.0.tgz", - "integrity": "sha512-qEu2wn6E7hqluZwIEUnDxWROvKjov3zMIAi4H4d7cmKWNMeBprEXZzJe8pE5eStUYC1ysGhD0B7L6IeG1Rfb+g==", - "requires": { - "@octokit/types": "^7.0.0", - "deprecation": "^2.3.1" - }, - "dependencies": { - "@octokit/openapi-types": { - "version": "13.2.0", - "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-13.2.0.tgz", - "integrity": "sha512-1BhjsVrCe2cyE36Rorpeq331bcYzdb9ksCpkFdAN6RVtW67YdO3Pl4YXDC5dF2D1ia76MssJdn5RV+Gj9Fu7dQ==" - }, - "@octokit/types": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/@octokit/types/-/types-7.1.0.tgz", - "integrity": "sha512-+ClA0jRc9zGFj5mfQeQNfgTlelzhpAexbAueQG1t2Xn8yhgnsjkF8bgLcUUpwrpqkv296uXyiGwkqXRSU7KYzQ==", - "requires": { - "@octokit/openapi-types": "^13.1.0" - } - } - } - }, "@octokit/plugin-retry": { "version": "3.0.9", "resolved": "https://registry.npmjs.org/@octokit/plugin-retry/-/plugin-retry-3.0.9.tgz", diff --git a/package.json b/package.json index c3af1952..6cc8dfa0 100644 --- a/package.json +++ b/package.json @@ -37,9 +37,7 @@ "@actions/glob": "^0.3.0", "@actions/io": "^1.1.1", "@octokit/core": "^3.5.1", - "@octokit/plugin-paginate-rest": "^2.17.0", "@octokit/plugin-request-log": "^1.0.4", - "@octokit/plugin-rest-endpoint-methods": "^6.3.0", "@octokit/plugin-retry": "^3.0.9", "node-fetch": "^2.6.7" },