From ab67e37b050f2407789ee1dfdfb69c90c7ab78bb Mon Sep 17 00:00:00 2001 From: Sebastian Copei Date: Tue, 16 Mar 2021 11:15:51 +0100 Subject: [PATCH] fix(chore): go back from ES6, replace yarn with npm --- main.js | 4 +- node_modules/.yarn-integrity | 19 ---- node_modules/@actions/core/package.json | 60 +++++++---- node_modules/axios/package.json | 107 ++++++++++++-------- node_modules/follow-redirects/package.json | 112 ++++++++++++++------- package-lock.json | 24 +++++ yarn.lock | 20 ---- 7 files changed, 210 insertions(+), 136 deletions(-) delete mode 100644 node_modules/.yarn-integrity create mode 100644 package-lock.json delete mode 100644 yarn.lock diff --git a/main.js b/main.js index 0fb4663..868b7fa 100644 --- a/main.js +++ b/main.js @@ -1,5 +1,5 @@ -import core from '@actions/core'; -import axios from 'axios'; +const core = require('@actions/core'); +const axios = require('axios'); process.on('unhandledRejection', handleError); main().catch(handleError); diff --git a/node_modules/.yarn-integrity b/node_modules/.yarn-integrity deleted file mode 100644 index ee23c66..0000000 --- a/node_modules/.yarn-integrity +++ /dev/null @@ -1,19 +0,0 @@ -{ - "systemParams": "darwin-x64-88", - "modulesFolders": [ - "node_modules" - ], - "flags": [], - "linkedModules": [], - "topLevelPatterns": [ - "@actions/core@^1.2.6", - "axios@^0.21.1" - ], - "lockfileEntries": { - "@actions/core@^1.2.6": "https://registry.yarnpkg.com/@actions/core/-/core-1.2.6.tgz#a78d49f41a4def18e88ce47c2cac615d5694bf09", - "axios@^0.21.1": "https://registry.yarnpkg.com/axios/-/axios-0.21.1.tgz#22563481962f4d6bde9a76d516ef0e5d3c09b2b8", - "follow-redirects@^1.10.0": "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.13.3.tgz#e5598ad50174c1bc4e872301e82ac2cd97f90267" - }, - "files": [], - "artifacts": {} -} \ No newline at end of file diff --git a/node_modules/@actions/core/package.json b/node_modules/@actions/core/package.json index ffcced4..28eaf7b 100644 --- a/node_modules/@actions/core/package.json +++ b/node_modules/@actions/core/package.json @@ -1,16 +1,37 @@ { - "name": "@actions/core", - "version": "1.2.6", - "description": "Actions core lib", - "keywords": [ - "github", - "actions", - "core" + "_from": "@actions/core@^1.2.6", + "_id": "@actions/core@1.2.6", + "_inBundle": false, + "_integrity": "sha512-ZQYitnqiyBc3D+k7LsgSBmMDVkOVidaagDG7j3fOym77jNunWRuYx7VSHa9GNfFZh+zh61xsCjRj4JxMZlDqTA==", + "_location": "/@actions/core", + "_phantomChildren": {}, + "_requested": { + "type": "range", + "registry": true, + "raw": "@actions/core@^1.2.6", + "name": "@actions/core", + "escapedName": "@actions%2fcore", + "scope": "@actions", + "rawSpec": "^1.2.6", + "saveSpec": null, + "fetchSpec": "^1.2.6" + }, + "_requiredBy": [ + "/" ], - "homepage": "https://github.com/actions/toolkit/tree/main/packages/core", - "license": "MIT", - "main": "lib/core.js", - "types": "lib/core.d.ts", + "_resolved": "https://registry.npmjs.org/@actions/core/-/core-1.2.6.tgz", + "_shasum": "a78d49f41a4def18e88ce47c2cac615d5694bf09", + "_spec": "@actions/core@^1.2.6", + "_where": "E:\\Workspace\\UniArbeit\\Projekte\\RancherGitHubAction", + "bugs": { + "url": "https://github.com/actions/toolkit/issues" + }, + "bundleDependencies": false, + "deprecated": false, + "description": "Actions core lib", + "devDependencies": { + "@types/node": "^12.0.2" + }, "directories": { "lib": "lib", "test": "__tests__" @@ -19,6 +40,15 @@ "lib", "!.DS_Store" ], + "homepage": "https://github.com/actions/toolkit/tree/main/packages/core", + "keywords": [ + "github", + "actions", + "core" + ], + "license": "MIT", + "main": "lib/core.js", + "name": "@actions/core", "publishConfig": { "access": "public" }, @@ -32,10 +62,6 @@ "test": "echo \"Error: run tests from root\" && exit 1", "tsc": "tsc" }, - "bugs": { - "url": "https://github.com/actions/toolkit/issues" - }, - "devDependencies": { - "@types/node": "^12.0.2" - } + "types": "lib/core.d.ts", + "version": "1.2.6" } diff --git a/node_modules/axios/package.json b/node_modules/axios/package.json index 659ef02..44c9ee9 100644 --- a/node_modules/axios/package.json +++ b/node_modules/axios/package.json @@ -1,36 +1,48 @@ { - "name": "axios", - "version": "0.21.1", - "description": "Promise based HTTP client for the browser and node.js", - "main": "index.js", - "scripts": { - "test": "grunt test && bundlesize", - "start": "node ./sandbox/server.js", - "build": "NODE_ENV=production grunt build", - "preversion": "npm test", - "version": "npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json", - "postversion": "git push && git push --tags", - "examples": "node ./examples/server.js", - "coveralls": "cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js", - "fix": "eslint --fix lib/**/*.js" - }, - "repository": { - "type": "git", - "url": "https://github.com/axios/axios.git" + "_from": "axios@^0.21.1", + "_id": "axios@0.21.1", + "_inBundle": false, + "_integrity": "sha512-dKQiRHxGD9PPRIUNIWvZhPTPpl1rf/OxTYKsqKUDjBwYylTvV7SjSHJb9ratfyzM6wCdLCOYLzs73qpg5c4iGA==", + "_location": "/axios", + "_phantomChildren": {}, + "_requested": { + "type": "range", + "registry": true, + "raw": "axios@^0.21.1", + "name": "axios", + "escapedName": "axios", + "rawSpec": "^0.21.1", + "saveSpec": null, + "fetchSpec": "^0.21.1" }, - "keywords": [ - "xhr", - "http", - "ajax", - "promise", - "node" + "_requiredBy": [ + "/" ], - "author": "Matt Zabriskie", - "license": "MIT", + "_resolved": "https://registry.npmjs.org/axios/-/axios-0.21.1.tgz", + "_shasum": "22563481962f4d6bde9a76d516ef0e5d3c09b2b8", + "_spec": "axios@^0.21.1", + "_where": "E:\\Workspace\\UniArbeit\\Projekte\\RancherGitHubAction", + "author": { + "name": "Matt Zabriskie" + }, + "browser": { + "./lib/adapters/http.js": "./lib/adapters/xhr.js" + }, "bugs": { "url": "https://github.com/axios/axios/issues" }, - "homepage": "https://github.com/axios/axios", + "bundleDependencies": false, + "bundlesize": [ + { + "path": "./dist/axios.min.js", + "threshold": "5kB" + } + ], + "dependencies": { + "follow-redirects": "^1.10.0" + }, + "deprecated": false, + "description": "Promise based HTTP client for the browser and node.js", "devDependencies": { "bundlesize": "^0.17.0", "coveralls": "^3.0.0", @@ -68,19 +80,34 @@ "webpack": "^1.13.1", "webpack-dev-server": "^1.14.1" }, - "browser": { - "./lib/adapters/http.js": "./lib/adapters/xhr.js" - }, + "homepage": "https://github.com/axios/axios", "jsdelivr": "dist/axios.min.js", - "unpkg": "dist/axios.min.js", - "typings": "./index.d.ts", - "dependencies": { - "follow-redirects": "^1.10.0" + "keywords": [ + "xhr", + "http", + "ajax", + "promise", + "node" + ], + "license": "MIT", + "main": "index.js", + "name": "axios", + "repository": { + "type": "git", + "url": "git+https://github.com/axios/axios.git" }, - "bundlesize": [ - { - "path": "./dist/axios.min.js", - "threshold": "5kB" - } - ] + "scripts": { + "build": "NODE_ENV=production grunt build", + "coveralls": "cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js", + "examples": "node ./examples/server.js", + "fix": "eslint --fix lib/**/*.js", + "postversion": "git push && git push --tags", + "preversion": "npm test", + "start": "node ./sandbox/server.js", + "test": "grunt test && bundlesize", + "version": "npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json" + }, + "typings": "./index.d.ts", + "unpkg": "dist/axios.min.js", + "version": "0.21.1" } diff --git a/node_modules/follow-redirects/package.json b/node_modules/follow-redirects/package.json index 35078a1..a5abc04 100644 --- a/node_modules/follow-redirects/package.json +++ b/node_modules/follow-redirects/package.json @@ -1,28 +1,70 @@ { - "name": "follow-redirects", - "version": "1.13.3", - "description": "HTTP and HTTPS modules that follow redirects.", - "license": "MIT", - "main": "index.js", - "files": [ - "*.js" - ], - "engines": { - "node": ">=4.0" + "_from": "follow-redirects@^1.10.0", + "_id": "follow-redirects@1.13.3", + "_inBundle": false, + "_integrity": "sha512-DUgl6+HDzB0iEptNQEXLx/KhTmDb8tZUHSeLqpnjpknR70H0nC2t9N73BK6fN4hOvJ84pKlIQVQ4k5FFlBedKA==", + "_location": "/follow-redirects", + "_phantomChildren": {}, + "_requested": { + "type": "range", + "registry": true, + "raw": "follow-redirects@^1.10.0", + "name": "follow-redirects", + "escapedName": "follow-redirects", + "rawSpec": "^1.10.0", + "saveSpec": null, + "fetchSpec": "^1.10.0" }, - "scripts": { - "test": "npm run lint && npm run mocha", - "lint": "eslint *.js test", - "mocha": "nyc mocha" - }, - "repository": { - "type": "git", - "url": "git@github.com:follow-redirects/follow-redirects.git" + "_requiredBy": [ + "/axios" + ], + "_resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.13.3.tgz", + "_shasum": "e5598ad50174c1bc4e872301e82ac2cd97f90267", + "_spec": "follow-redirects@^1.10.0", + "_where": "E:\\Workspace\\UniArbeit\\Projekte\\RancherGitHubAction\\node_modules\\axios", + "author": { + "name": "Ruben Verborgh", + "email": "ruben@verborgh.org", + "url": "https://ruben.verborgh.org/" }, - "homepage": "https://github.com/follow-redirects/follow-redirects", "bugs": { "url": "https://github.com/follow-redirects/follow-redirects/issues" }, + "bundleDependencies": false, + "contributors": [ + { + "name": "Olivier Lalonde", + "email": "olalonde@gmail.com", + "url": "http://www.syskall.com" + }, + { + "name": "James Talmage", + "email": "james@talmage.io" + } + ], + "deprecated": false, + "description": "HTTP and HTTPS modules that follow redirects.", + "devDependencies": { + "concat-stream": "^2.0.0", + "eslint": "^5.16.0", + "express": "^4.16.4", + "lolex": "^3.1.0", + "mocha": "^6.0.2", + "nyc": "^14.1.1" + }, + "engines": { + "node": ">=4.0" + }, + "files": [ + "*.js" + ], + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/RubenVerborgh" + } + ], + "homepage": "https://github.com/follow-redirects/follow-redirects", "keywords": [ "http", "https", @@ -32,28 +74,22 @@ "location", "utility" ], - "author": "Ruben Verborgh (https://ruben.verborgh.org/)", - "contributors": [ - "Olivier Lalonde (http://www.syskall.com)", - "James Talmage " - ], - "funding": [ - { - "type": "individual", - "url": "https://github.com/sponsors/RubenVerborgh" - } - ], + "license": "MIT", + "main": "index.js", + "name": "follow-redirects", "peerDependenciesMeta": { "debug": { "optional": true } }, - "devDependencies": { - "concat-stream": "^2.0.0", - "eslint": "^5.16.0", - "express": "^4.16.4", - "lolex": "^3.1.0", - "mocha": "^6.0.2", - "nyc": "^14.1.1" - } + "repository": { + "type": "git", + "url": "git+ssh://git@github.com/follow-redirects/follow-redirects.git" + }, + "scripts": { + "lint": "eslint *.js test", + "mocha": "nyc mocha", + "test": "npm run lint && npm run mocha" + }, + "version": "1.13.3" } diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..2232982 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,24 @@ +{ + "requires": true, + "lockfileVersion": 1, + "dependencies": { + "@actions/core": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/@actions/core/-/core-1.2.6.tgz", + "integrity": "sha512-ZQYitnqiyBc3D+k7LsgSBmMDVkOVidaagDG7j3fOym77jNunWRuYx7VSHa9GNfFZh+zh61xsCjRj4JxMZlDqTA==" + }, + "axios": { + "version": "0.21.1", + "resolved": "https://registry.npmjs.org/axios/-/axios-0.21.1.tgz", + "integrity": "sha512-dKQiRHxGD9PPRIUNIWvZhPTPpl1rf/OxTYKsqKUDjBwYylTvV7SjSHJb9ratfyzM6wCdLCOYLzs73qpg5c4iGA==", + "requires": { + "follow-redirects": "^1.10.0" + } + }, + "follow-redirects": { + "version": "1.13.3", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.13.3.tgz", + "integrity": "sha512-DUgl6+HDzB0iEptNQEXLx/KhTmDb8tZUHSeLqpnjpknR70H0nC2t9N73BK6fN4hOvJ84pKlIQVQ4k5FFlBedKA==" + } + } +} diff --git a/yarn.lock b/yarn.lock deleted file mode 100644 index 03fc5a3..0000000 --- a/yarn.lock +++ /dev/null @@ -1,20 +0,0 @@ -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -# yarn lockfile v1 - - -"@actions/core@^1.2.6": - version "1.2.6" - resolved "https://registry.yarnpkg.com/@actions/core/-/core-1.2.6.tgz#a78d49f41a4def18e88ce47c2cac615d5694bf09" - integrity sha512-ZQYitnqiyBc3D+k7LsgSBmMDVkOVidaagDG7j3fOym77jNunWRuYx7VSHa9GNfFZh+zh61xsCjRj4JxMZlDqTA== - -axios@^0.21.1: - version "0.21.1" - resolved "https://registry.yarnpkg.com/axios/-/axios-0.21.1.tgz#22563481962f4d6bde9a76d516ef0e5d3c09b2b8" - integrity sha512-dKQiRHxGD9PPRIUNIWvZhPTPpl1rf/OxTYKsqKUDjBwYylTvV7SjSHJb9ratfyzM6wCdLCOYLzs73qpg5c4iGA== - dependencies: - follow-redirects "^1.10.0" - -follow-redirects@^1.10.0: - version "1.13.3" - resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.13.3.tgz#e5598ad50174c1bc4e872301e82ac2cd97f90267" - integrity sha512-DUgl6+HDzB0iEptNQEXLx/KhTmDb8tZUHSeLqpnjpknR70H0nC2t9N73BK6fN4hOvJ84pKlIQVQ4k5FFlBedKA==