mirror of
https://github.com/fluencelabs/js-libp2p-crypto
synced 2025-03-15 09:41:03 +00:00
chore: update travis
This commit is contained in:
parent
3061d4751e
commit
99a405d331
12
.travis.yml
12
.travis.yml
@ -1,15 +1,19 @@
|
|||||||
language: node_js
|
language: node_js
|
||||||
|
|
||||||
cache: npm
|
cache: npm
|
||||||
|
|
||||||
|
branches:
|
||||||
|
only:
|
||||||
|
- master
|
||||||
|
- /^release\/.*$/
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- check
|
- check
|
||||||
- test
|
- test
|
||||||
- cov
|
- cov
|
||||||
|
|
||||||
node_js:
|
node_js:
|
||||||
- '12'
|
- 'lts/*'
|
||||||
- '14'
|
- 'node'
|
||||||
|
|
||||||
os:
|
os:
|
||||||
- linux
|
- linux
|
||||||
@ -23,7 +27,7 @@ jobs:
|
|||||||
include:
|
include:
|
||||||
- stage: check
|
- stage: check
|
||||||
script:
|
script:
|
||||||
- npx aegir build --bundlesize
|
- npx aegir build --no-types
|
||||||
- npx aegir dep-check
|
- npx aegir dep-check
|
||||||
- npm run lint
|
- npm run lint
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"lint": "aegir lint",
|
"lint": "aegir lint",
|
||||||
"build": "npm run build:proto && aegir build",
|
"build": "npm run build:proto && aegir build --no-types",
|
||||||
"build:proto": "pbjs -t static-module -w commonjs --force-number --no-verify --no-delimited --no-create --no-beautify --no-defaults --lint eslint-disable -o src/keys/keys.js ./src/keys/keys.proto",
|
"build:proto": "pbjs -t static-module -w commonjs --force-number --no-verify --no-delimited --no-create --no-beautify --no-defaults --lint eslint-disable -o src/keys/keys.js ./src/keys/keys.proto",
|
||||||
"test": "aegir test",
|
"test": "aegir test",
|
||||||
"test:node": "aegir test -t node",
|
"test:node": "aegir test -t node",
|
||||||
@ -67,6 +67,11 @@
|
|||||||
"sinon": "^10.0.0",
|
"sinon": "^10.0.0",
|
||||||
"util": "^0.12.3"
|
"util": "^0.12.3"
|
||||||
},
|
},
|
||||||
|
"aegir": {
|
||||||
|
"build": {
|
||||||
|
"bundlesizeMax": "118kB"
|
||||||
|
}
|
||||||
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=12.0.0"
|
"node": ">=12.0.0"
|
||||||
},
|
},
|
||||||
|
@ -20,7 +20,7 @@ const ErrMissingSecp256K1 = {
|
|||||||
code: 'ERR_MISSING_PACKAGE'
|
code: 'ERR_MISSING_PACKAGE'
|
||||||
}
|
}
|
||||||
|
|
||||||
function typeToKey(type) {
|
function typeToKey (type) {
|
||||||
const key = supportedKeys[type.toLowerCase()]
|
const key = supportedKeys[type.toLowerCase()]
|
||||||
if (!key) {
|
if (!key) {
|
||||||
const supported = Object.keys(supportedKeys).join(' / ')
|
const supported = Object.keys(supportedKeys).join(' / ')
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
syntax = "proto3";
|
||||||
|
|
||||||
enum KeyType {
|
enum KeyType {
|
||||||
RSA = 0;
|
RSA = 0;
|
||||||
Ed25519 = 1;
|
Ed25519 = 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user