Switch to Yarn

This commit is contained in:
CrazyMax 2020-06-10 22:21:27 +02:00
parent 44c49ff912
commit c153601612
No known key found for this signature in database
GPG key ID: 3248E46B6BB8C7F7
14 changed files with 3909 additions and 5304 deletions

View file

@ -7,11 +7,11 @@ Contributions to this project are [released](https://help.github.com/articles/gi
## Submitting a pull request ## Submitting a pull request
1. [Fork](https://github.com/crazy-max/ghaction-import-gpg/fork) and clone the repository 1. [Fork](https://github.com/crazy-max/ghaction-import-gpg/fork) and clone the repository
2. Configure and install the dependencies: `npm install` 2. Configure and install the dependencies: `yarn install`
3. Make sure the tests pass on your machine: `npm run test` 3. Make sure the tests pass on your machine: `yarn run test`
4. Create a new branch: `git checkout -b my-branch-name` 4. Create a new branch: `git checkout -b my-branch-name`
5. Make your change, add tests, and make sure the tests still pass 5. Make your change, add tests, and make sure the tests still pass
6. Run pre-checkin: `npm run pre-checkin` 6. Run pre-checkin: `yarn run pre-checkin`
7. Push to your fork and [submit a pull request](https://github.com/crazy-max/ghaction-import-gpg/compare) 7. Push to your fork and [submit a pull request](https://github.com/crazy-max/ghaction-import-gpg/compare)
8. Pat your self on the back and wait for your pull request to be reviewed and merged. 8. Pat your self on the back and wait for your pull request to be reviewed and merged.

View file

@ -4,7 +4,7 @@ updates:
directory: "/" directory: "/"
schedule: schedule:
interval: "daily" interval: "daily"
time: "08:00" time: "06:00"
timezone: "Europe/Paris" timezone: "Europe/Paris"
labels: labels:
- ":game_die: dependencies" - ":game_die: dependencies"
@ -15,6 +15,8 @@ updates:
interval: "daily" interval: "daily"
time: "06:00" time: "06:00"
timezone: "Europe/Paris" timezone: "Europe/Paris"
allow:
- dependency-type: "production"
labels: labels:
- ":game_die: dependencies" - ":game_die: dependencies"
- ":robot: bot" - ":robot: bot"

View file

@ -27,10 +27,10 @@ jobs:
uses: actions/checkout@v2 uses: actions/checkout@v2
- -
name: Install name: Install
run: npm install run: yarn install
- -
name: Test name: Test
run: npm run test run: yarn run test
- -
name: Upload coverage name: Upload coverage
uses: codecov/codecov-action@v1.0.7 uses: codecov/codecov-action@v1.0.7

12
dist/index.js generated vendored
View file

@ -988,7 +988,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
var __importStar = (this && this.__importStar) || function (mod) { var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod; if (mod && mod.__esModule) return mod;
var result = {}; var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod); __setModuleDefault(result, mod);
return result; return result;
}; };
@ -1028,7 +1028,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
var __importStar = (this && this.__importStar) || function (mod) { var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod; if (mod && mod.__esModule) return mod;
var result = {}; var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod); __setModuleDefault(result, mod);
return result; return result;
}; };
@ -1176,7 +1176,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
var __importStar = (this && this.__importStar) || function (mod) { var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod; if (mod && mod.__esModule) return mod;
var result = {}; var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod); __setModuleDefault(result, mod);
return result; return result;
}; };
@ -1469,7 +1469,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
var __importStar = (this && this.__importStar) || function (mod) { var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod; if (mod && mod.__esModule) return mod;
var result = {}; var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod); __setModuleDefault(result, mod);
return result; return result;
}; };
@ -45711,7 +45711,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
var __importStar = (this && this.__importStar) || function (mod) { var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod; if (mod && mod.__esModule) return mod;
var result = {}; var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod); __setModuleDefault(result, mod);
return result; return result;
}; };
@ -45788,7 +45788,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
var __importStar = (this && this.__importStar) || function (mod) { var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod; if (mod && mod.__esModule) return mod;
var result = {}; var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod); __setModuleDefault(result, mod);
return result; return result;
}; };

73
node_modules/asn1.js/package.json generated vendored
View file

@ -1,59 +1,36 @@
{ {
"_from": "asn1.js@5.3.0", "name": "asn1.js",
"_id": "asn1.js@5.3.0", "version": "5.3.0",
"_inBundle": false, "description": "ASN.1 encoder and decoder",
"_integrity": "sha512-WHnQJFcOrIWT1RLOkFFBQkFVvyt9BPOOrH+Dp152Zk4R993rSzXUGPmkybIcUFhHE2d/iHH+nCaOWVCDbO8fgA==", "main": "lib/asn1.js",
"_location": "/asn1.js", "scripts": {
"_phantomChildren": {}, "lint-2560": "eslint --fix rfc/2560/*.js rfc/2560/test/*.js",
"_requested": { "lint-5280": "eslint --fix rfc/5280/*.js rfc/5280/test/*.js",
"type": "version", "lint": "eslint --fix lib/*.js lib/**/*.js lib/**/**/*.js && npm run lint-2560 && npm run lint-5280",
"registry": true, "test": "mocha --reporter spec test/*-test.js && cd rfc/2560 && npm i && npm test && cd ../../rfc/5280 && npm i && npm test && cd ../../ && npm run lint"
"raw": "asn1.js@5.3.0",
"name": "asn1.js",
"escapedName": "asn1.js",
"rawSpec": "5.3.0",
"saveSpec": null,
"fetchSpec": "5.3.0"
}, },
"_requiredBy": [ "repository": {
"/openpgp" "type": "git",
"url": "git@github.com:indutny/asn1.js"
},
"keywords": [
"asn.1",
"der"
], ],
"_resolved": "https://registry.npmjs.org/asn1.js/-/asn1.js-5.3.0.tgz", "author": "Fedor Indutny",
"_spec": "5.3.0", "license": "MIT",
"author": {
"name": "Fedor Indutny"
},
"bugs": { "bugs": {
"url": "https://github.com/indutny/asn1.js/issues" "url": "https://github.com/indutny/asn1.js/issues"
}, },
"homepage": "https://github.com/indutny/asn1.js",
"devDependencies": {
"eslint": "^4.10.0",
"mocha": "^7.0.0"
},
"dependencies": { "dependencies": {
"bn.js": "^4.0.0", "bn.js": "^4.0.0",
"inherits": "^2.0.1", "inherits": "^2.0.1",
"minimalistic-assert": "^1.0.0", "minimalistic-assert": "^1.0.0",
"safer-buffer": "^2.1.0" "safer-buffer": "^2.1.0"
}, }
"description": "ASN.1 encoder and decoder", }
"devDependencies": {
"eslint": "^4.10.0",
"mocha": "^7.0.0"
},
"homepage": "https://github.com/indutny/asn1.js",
"keywords": [
"asn.1",
"der"
],
"license": "MIT",
"main": "lib/asn1.js",
"name": "asn1.js",
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/indutny/asn1.js.git"
},
"scripts": {
"lint": "eslint --fix lib/*.js lib/**/*.js lib/**/**/*.js && npm run lint-2560 && npm run lint-5280",
"lint-2560": "eslint --fix rfc/2560/*.js rfc/2560/test/*.js",
"lint-5280": "eslint --fix rfc/5280/*.js rfc/5280/test/*.js",
"test": "mocha --reporter spec test/*-test.js && cd rfc/2560 && npm i && npm test && cd ../../rfc/5280 && npm i && npm test && cd ../../ && npm run lint"
},
"version": "5.3.0"
}

8
node_modules/bn.js/.npmignore generated vendored
View file

@ -1,8 +0,0 @@
benchmarks/
coverage/
test/
node_modules/
npm-debug.log
1.js
logo.png
.travis.yml

8
node_modules/bn.js/lib/bn.js generated vendored
View file

@ -2972,7 +2972,13 @@
} else if (cmp > 0) { } else if (cmp > 0) {
r.isub(this.p); r.isub(this.p);
} else { } else {
r.strip(); if (r.strip !== undefined) {
// r is BN v4 instance
r.strip();
} else {
// r is BN v5 instance
r._strip();
}
} }
return r; return r;

70
node_modules/bn.js/package.json generated vendored
View file

@ -1,42 +1,17 @@
{ {
"_from": "bn.js@4.11.8", "name": "bn.js",
"_id": "bn.js@4.11.8", "version": "4.11.9",
"_inBundle": false,
"_integrity": "sha512-ItfYfPLkWHUjckQCk8xC+LwxgK8NYcXywGigJgSwOP8Y2iyWT4f2vsZnoOXTTbo+o5yXmIUJ4gn5538SO5S3gA==",
"_location": "/bn.js",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "bn.js@4.11.8",
"name": "bn.js",
"escapedName": "bn.js",
"rawSpec": "4.11.8",
"saveSpec": null,
"fetchSpec": "4.11.8"
},
"_requiredBy": [
"/asn1.js"
],
"_resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.8.tgz",
"_spec": "4.11.8",
"author": {
"name": "Fedor Indutny",
"email": "fedor@indutny.com"
},
"browser": {
"buffer": false
},
"bugs": {
"url": "https://github.com/indutny/bn.js/issues"
},
"description": "Big number implementation in pure javascript", "description": "Big number implementation in pure javascript",
"devDependencies": { "main": "lib/bn.js",
"istanbul": "^0.3.5", "scripts": {
"mocha": "^2.1.0", "lint": "semistandard",
"semistandard": "^7.0.4" "unit": "mocha --reporter=spec test/*-test.js",
"test": "npm run lint && npm run unit"
},
"repository": {
"type": "git",
"url": "git@github.com:indutny/bn.js"
}, },
"homepage": "https://github.com/indutny/bn.js",
"keywords": [ "keywords": [
"BN", "BN",
"BigNum", "BigNum",
@ -44,17 +19,18 @@
"Modulo", "Modulo",
"Montgomery" "Montgomery"
], ],
"author": "Fedor Indutny <fedor@indutny.com>",
"license": "MIT", "license": "MIT",
"main": "lib/bn.js", "bugs": {
"name": "bn.js", "url": "https://github.com/indutny/bn.js/issues"
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/indutny/bn.js.git"
}, },
"scripts": { "homepage": "https://github.com/indutny/bn.js",
"lint": "semistandard", "browser": {
"test": "npm run lint && npm run unit", "buffer": false
"unit": "mocha --reporter=spec test/*-test.js"
}, },
"version": "4.11.8" "devDependencies": {
} "istanbul": "^0.3.5",
"mocha": "^2.1.0",
"semistandard": "^7.0.4"
}
}

55
node_modules/inherits/package.json generated vendored
View file

@ -1,39 +1,7 @@
{ {
"_from": "inherits@2.0.4", "name": "inherits",
"_id": "inherits@2.0.4",
"_inBundle": false,
"_integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
"_location": "/inherits",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "inherits@2.0.4",
"name": "inherits",
"escapedName": "inherits",
"rawSpec": "2.0.4",
"saveSpec": null,
"fetchSpec": "2.0.4"
},
"_requiredBy": [
"/asn1.js",
"/glob"
],
"_resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
"_spec": "2.0.4",
"browser": "./inherits_browser.js",
"bugs": {
"url": "https://github.com/isaacs/inherits/issues"
},
"description": "Browser-friendly inheritance fully compatible with standard node.js inherits()", "description": "Browser-friendly inheritance fully compatible with standard node.js inherits()",
"devDependencies": { "version": "2.0.4",
"tap": "^14.2.4"
},
"files": [
"inherits.js",
"inherits_browser.js"
],
"homepage": "https://github.com/isaacs/inherits#readme",
"keywords": [ "keywords": [
"inheritance", "inheritance",
"class", "class",
@ -44,15 +12,18 @@
"browser", "browser",
"browserify" "browserify"
], ],
"license": "ISC",
"main": "./inherits.js", "main": "./inherits.js",
"name": "inherits", "browser": "./inherits_browser.js",
"repository": { "repository": "git://github.com/isaacs/inherits",
"type": "git", "license": "ISC",
"url": "git://github.com/isaacs/inherits.git"
},
"scripts": { "scripts": {
"test": "tap" "test": "tap"
}, },
"version": "2.0.4" "devDependencies": {
} "tap": "^14.2.4"
},
"files": [
"inherits.js",
"inherits_browser.js"
]
}

View file

@ -1,40 +1,19 @@
{ {
"_from": "minimalistic-assert@1.0.1",
"_id": "minimalistic-assert@1.0.1",
"_inBundle": false,
"_integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==",
"_location": "/minimalistic-assert",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "minimalistic-assert@1.0.1",
"name": "minimalistic-assert",
"escapedName": "minimalistic-assert",
"rawSpec": "1.0.1",
"saveSpec": null,
"fetchSpec": "1.0.1"
},
"_requiredBy": [
"/asn1.js"
],
"_resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz",
"_spec": "1.0.1",
"author": "",
"bugs": {
"url": "https://github.com/calvinmetcalf/minimalistic-assert/issues"
},
"description": "minimalistic-assert ===",
"homepage": "https://github.com/calvinmetcalf/minimalistic-assert",
"license": "ISC",
"main": "index.js",
"name": "minimalistic-assert", "name": "minimalistic-assert",
"repository": { "version": "1.0.1",
"type": "git", "description": "minimalistic-assert ===",
"url": "git+https://github.com/calvinmetcalf/minimalistic-assert.git" "main": "index.js",
},
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1"
}, },
"version": "1.0.1" "repository": {
} "type": "git",
"url": "https://github.com/calvinmetcalf/minimalistic-assert.git"
},
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/calvinmetcalf/minimalistic-assert/issues"
},
"homepage": "https://github.com/calvinmetcalf/minimalistic-assert"
}

View file

@ -1,38 +1,25 @@
{ {
"_from": "safer-buffer@2.1.2", "name": "safer-buffer",
"_id": "safer-buffer@2.1.2", "version": "2.1.2",
"_inBundle": false, "description": "Modern Buffer API polyfill without footguns",
"_integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", "main": "safer.js",
"_location": "/safer-buffer", "scripts": {
"_phantomChildren": {}, "browserify-test": "browserify --external tape tests.js > browserify-tests.js && tape browserify-tests.js",
"_requested": { "test": "standard && tape tests.js"
"type": "version",
"registry": true,
"raw": "safer-buffer@2.1.2",
"name": "safer-buffer",
"escapedName": "safer-buffer",
"rawSpec": "2.1.2",
"saveSpec": null,
"fetchSpec": "2.1.2"
}, },
"_requiredBy": [
"/asn1",
"/asn1.js",
"/ecc-jsbn",
"/iconv-lite",
"/sshpk"
],
"_resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
"_spec": "2.1.2",
"author": { "author": {
"name": "Nikita Skovoroda", "name": "Nikita Skovoroda",
"email": "chalkerx@gmail.com", "email": "chalkerx@gmail.com",
"url": "https://github.com/ChALkeR" "url": "https://github.com/ChALkeR"
}, },
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/ChALkeR/safer-buffer.git"
},
"bugs": { "bugs": {
"url": "https://github.com/ChALkeR/safer-buffer/issues" "url": "https://github.com/ChALkeR/safer-buffer/issues"
}, },
"description": "Modern Buffer API polyfill without footguns",
"devDependencies": { "devDependencies": {
"standard": "^11.0.1", "standard": "^11.0.1",
"tape": "^4.9.0" "tape": "^4.9.0"
@ -43,18 +30,5 @@
"tests.js", "tests.js",
"dangerous.js", "dangerous.js",
"safer.js" "safer.js"
], ]
"homepage": "https://github.com/ChALkeR/safer-buffer#readme", }
"license": "MIT",
"main": "safer.js",
"name": "safer-buffer",
"repository": {
"type": "git",
"url": "git+https://github.com/ChALkeR/safer-buffer.git"
},
"scripts": {
"browserify-test": "browserify --external tape tests.js > browserify-tests.js && tape browserify-tests.js",
"test": "standard && tape tests.js"
},
"version": "2.1.2"
}

5064
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -7,8 +7,7 @@
"format": "prettier --write **/*.ts", "format": "prettier --write **/*.ts",
"format-check": "prettier --check **/*.ts", "format-check": "prettier --check **/*.ts",
"test": "jest --coverage", "test": "jest --coverage",
"cleanup-paths": "removeNPMAbsolutePaths ./ --force --fields _where _args", "pre-checkin": "yarn run format && yarn run build"
"pre-checkin": "npm run format && npm run cleanup-paths && npm run build"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
@ -33,12 +32,11 @@
"@types/node": "^14.0.13", "@types/node": "^14.0.13",
"@types/openpgp": "^4.4.12", "@types/openpgp": "^4.4.12",
"@zeit/ncc": "^0.22.3", "@zeit/ncc": "^0.22.3",
"jest": "^25.5.4", "jest": "^26.0.1",
"jest-circus": "^25.5.4", "jest-circus": "^26.0.1",
"jest-runtime": "^25.5.4", "jest-runtime": "^26.0.1",
"prettier": "^2.0.5", "prettier": "^2.0.5",
"removeNPMAbsolutePaths": "^2.0.0", "ts-jest": "^26.1.0",
"ts-jest": "^25.5.1",
"typescript": "^3.9.5", "typescript": "^3.9.5",
"typescript-formatter": "^7.2.2" "typescript-formatter": "^7.2.2"
} }

3794
yarn.lock Normal file

File diff suppressed because it is too large Load diff