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
1. [Fork](https://github.com/crazy-max/ghaction-import-gpg/fork) and clone the repository
2. Configure and install the dependencies: `npm install`
3. Make sure the tests pass on your machine: `npm run test`
2. Configure and install the dependencies: `yarn install`
3. Make sure the tests pass on your machine: `yarn run test`
4. Create a new branch: `git checkout -b my-branch-name`
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)
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: "/"
schedule:
interval: "daily"
time: "08:00"
time: "06:00"
timezone: "Europe/Paris"
labels:
- ":game_die: dependencies"
@ -15,6 +15,8 @@ updates:
interval: "daily"
time: "06:00"
timezone: "Europe/Paris"
allow:
- dependency-type: "production"
labels:
- ":game_die: dependencies"
- ":robot: bot"

View file

@ -27,10 +27,10 @@ jobs:
uses: actions/checkout@v2
-
name: Install
run: npm install
run: yarn install
-
name: Test
run: npm run test
run: yarn run test
-
name: Upload coverage
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) {
if (mod && mod.__esModule) return mod;
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);
return result;
};
@ -1028,7 +1028,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
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);
return result;
};
@ -1176,7 +1176,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
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);
return result;
};
@ -1469,7 +1469,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
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);
return result;
};
@ -45711,7 +45711,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
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);
return result;
};
@ -45788,7 +45788,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
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);
return result;
};

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

@ -1,59 +1,36 @@
{
"_from": "asn1.js@5.3.0",
"_id": "asn1.js@5.3.0",
"_inBundle": false,
"_integrity": "sha512-WHnQJFcOrIWT1RLOkFFBQkFVvyt9BPOOrH+Dp152Zk4R993rSzXUGPmkybIcUFhHE2d/iHH+nCaOWVCDbO8fgA==",
"_location": "/asn1.js",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "asn1.js@5.3.0",
"name": "asn1.js",
"escapedName": "asn1.js",
"rawSpec": "5.3.0",
"saveSpec": null,
"fetchSpec": "5.3.0"
"name": "asn1.js",
"version": "5.3.0",
"description": "ASN.1 encoder and decoder",
"main": "lib/asn1.js",
"scripts": {
"lint-2560": "eslint --fix rfc/2560/*.js rfc/2560/test/*.js",
"lint-5280": "eslint --fix rfc/5280/*.js rfc/5280/test/*.js",
"lint": "eslint --fix lib/*.js lib/**/*.js lib/**/**/*.js && npm run lint-2560 && npm run lint-5280",
"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"
},
"_requiredBy": [
"/openpgp"
"repository": {
"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",
"_spec": "5.3.0",
"author": {
"name": "Fedor Indutny"
},
"author": "Fedor Indutny",
"license": "MIT",
"bugs": {
"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": {
"bn.js": "^4.0.0",
"inherits": "^2.0.1",
"minimalistic-assert": "^1.0.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) {
r.isub(this.p);
} else {
r.strip();
if (r.strip !== undefined) {
// r is BN v4 instance
r.strip();
} else {
// r is BN v5 instance
r._strip();
}
}
return r;

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

@ -1,42 +1,17 @@
{
"_from": "bn.js@4.11.8",
"_id": "bn.js@4.11.8",
"_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"
},
"name": "bn.js",
"version": "4.11.9",
"description": "Big number implementation in pure javascript",
"devDependencies": {
"istanbul": "^0.3.5",
"mocha": "^2.1.0",
"semistandard": "^7.0.4"
"main": "lib/bn.js",
"scripts": {
"lint": "semistandard",
"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": [
"BN",
"BigNum",
@ -44,17 +19,18 @@
"Modulo",
"Montgomery"
],
"author": "Fedor Indutny <fedor@indutny.com>",
"license": "MIT",
"main": "lib/bn.js",
"name": "bn.js",
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/indutny/bn.js.git"
"bugs": {
"url": "https://github.com/indutny/bn.js/issues"
},
"scripts": {
"lint": "semistandard",
"test": "npm run lint && npm run unit",
"unit": "mocha --reporter=spec test/*-test.js"
"homepage": "https://github.com/indutny/bn.js",
"browser": {
"buffer": false
},
"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",
"_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"
},
"name": "inherits",
"description": "Browser-friendly inheritance fully compatible with standard node.js inherits()",
"devDependencies": {
"tap": "^14.2.4"
},
"files": [
"inherits.js",
"inherits_browser.js"
],
"homepage": "https://github.com/isaacs/inherits#readme",
"version": "2.0.4",
"keywords": [
"inheritance",
"class",
@ -44,15 +12,18 @@
"browser",
"browserify"
],
"license": "ISC",
"main": "./inherits.js",
"name": "inherits",
"repository": {
"type": "git",
"url": "git://github.com/isaacs/inherits.git"
},
"browser": "./inherits_browser.js",
"repository": "git://github.com/isaacs/inherits",
"license": "ISC",
"scripts": {
"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",
"repository": {
"type": "git",
"url": "git+https://github.com/calvinmetcalf/minimalistic-assert.git"
},
"version": "1.0.1",
"description": "minimalistic-assert ===",
"main": "index.js",
"scripts": {
"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",
"_id": "safer-buffer@2.1.2",
"_inBundle": false,
"_integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",
"_location": "/safer-buffer",
"_phantomChildren": {},
"_requested": {
"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"
"name": "safer-buffer",
"version": "2.1.2",
"description": "Modern Buffer API polyfill without footguns",
"main": "safer.js",
"scripts": {
"browserify-test": "browserify --external tape tests.js > browserify-tests.js && tape browserify-tests.js",
"test": "standard && tape tests.js"
},
"_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": {
"name": "Nikita Skovoroda",
"email": "chalkerx@gmail.com",
"url": "https://github.com/ChALkeR"
},
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/ChALkeR/safer-buffer.git"
},
"bugs": {
"url": "https://github.com/ChALkeR/safer-buffer/issues"
},
"description": "Modern Buffer API polyfill without footguns",
"devDependencies": {
"standard": "^11.0.1",
"tape": "^4.9.0"
@ -43,18 +30,5 @@
"tests.js",
"dangerous.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-check": "prettier --check **/*.ts",
"test": "jest --coverage",
"cleanup-paths": "removeNPMAbsolutePaths ./ --force --fields _where _args",
"pre-checkin": "npm run format && npm run cleanup-paths && npm run build"
"pre-checkin": "yarn run format && yarn run build"
},
"repository": {
"type": "git",
@ -33,12 +32,11 @@
"@types/node": "^14.0.13",
"@types/openpgp": "^4.4.12",
"@zeit/ncc": "^0.22.3",
"jest": "^25.5.4",
"jest-circus": "^25.5.4",
"jest-runtime": "^25.5.4",
"jest": "^26.0.1",
"jest-circus": "^26.0.1",
"jest-runtime": "^26.0.1",
"prettier": "^2.0.5",
"removeNPMAbsolutePaths": "^2.0.0",
"ts-jest": "^25.5.1",
"ts-jest": "^26.1.0",
"typescript": "^3.9.5",
"typescript-formatter": "^7.2.2"
}

3794
yarn.lock Normal file

File diff suppressed because it is too large Load diff