From 36d245c808d3d83c0fde38591784bd851ebdc9a5 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} | 0 ...plugin-rest-endpoint-methods-6.3.0.dep.yml | 20 ------- ...l => plugin-rest-endpoint-methods.dep.yml} | 0 .licenses/npm/@octokit/types-7.1.0.dep.yml | 20 ------- .../{types-6.41.0.dep.yml => types.dep.yml} | 0 package-lock.json | 54 ------------------- package.json | 2 - 8 files changed, 116 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} (100%) 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} (100%) 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} (100%) 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 5270c6a..0000000 --- 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 100% rename from .licenses/npm/@octokit/openapi-types-12.11.0.dep.yml rename to .licenses/npm/@octokit/openapi-types.dep.yml 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 b89c06f..0000000 --- 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 100% 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 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 0dcd969..0000000 --- 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 100% rename from .licenses/npm/@octokit/types-6.41.0.dep.yml rename to .licenses/npm/@octokit/types.dep.yml diff --git a/package-lock.json b/package-lock.json index a03ab37..a2f9601 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,8 +15,6 @@ "@actions/glob": "^0.3.0", "@actions/io": "^1.1.1", "@octokit/core": "^3.5.1", - "@octokit/plugin-paginate-rest": "^2.17.0", - "@octokit/plugin-rest-endpoint-methods": "^6.3.0", "@octokit/plugin-retry": "^3.0.9", "node-fetch": "^2.6.7" }, @@ -1125,34 +1123,6 @@ "@octokit/core": ">=2" } }, - "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", @@ -7092,30 +7062,6 @@ "@octokit/types": "^6.34.0" } }, - "@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 cc9bf61..4619eb5 100644 --- a/package.json +++ b/package.json @@ -37,8 +37,6 @@ "@actions/glob": "^0.3.0", "@actions/io": "^1.1.1", "@octokit/core": "^3.5.1", - "@octokit/plugin-paginate-rest": "^2.17.0", - "@octokit/plugin-rest-endpoint-methods": "^6.3.0", "@octokit/plugin-retry": "^3.0.9", "node-fetch": "^2.6.7" },