From a534aa458b6e6b3d0eb591343f3980b0e4621e68 Mon Sep 17 00:00:00 2001 From: Vasco Santos Date: Wed, 7 Apr 2021 11:41:08 +0200 Subject: [PATCH] chore: update travis --- .aegir.js | 3 --- .travis.yml | 10 +++++++--- package.json | 5 +++++ src/keys/index.js | 2 +- src/keys/keys.proto | 2 ++ 5 files changed, 15 insertions(+), 7 deletions(-) delete mode 100644 .aegir.js diff --git a/.aegir.js b/.aegir.js deleted file mode 100644 index 3faa51b2..00000000 --- a/.aegir.js +++ /dev/null @@ -1,3 +0,0 @@ -module.exports = { - bundlesize: { maxSize: '124kB' } -} diff --git a/.travis.yml b/.travis.yml index 3f27e03b..ab22a063 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,15 +1,19 @@ language: node_js - cache: npm +branches: + only: + - master + - /^release\/.*$/ + stages: - check - test - cov node_js: - - '12' - - '14' + - 'lts/*' + - 'node' os: - linux diff --git a/package.json b/package.json index 30f8af4f..ca7427a0 100644 --- a/package.json +++ b/package.json @@ -67,6 +67,11 @@ "sinon": "^10.0.0", "util": "^0.12.3" }, + "aegir": { + "build": { + "bundlesizeMax": "118kB" + } + }, "engines": { "node": ">=12.0.0" }, diff --git a/src/keys/index.js b/src/keys/index.js index 3a04a9ad..320a781f 100644 --- a/src/keys/index.js +++ b/src/keys/index.js @@ -20,7 +20,7 @@ const ErrMissingSecp256K1 = { code: 'ERR_MISSING_PACKAGE' } -function typeToKey(type) { +function typeToKey (type) { const key = supportedKeys[type.toLowerCase()] if (!key) { const supported = Object.keys(supportedKeys).join(' / ') diff --git a/src/keys/keys.proto b/src/keys/keys.proto index 87f333d8..98e1d997 100644 --- a/src/keys/keys.proto +++ b/src/keys/keys.proto @@ -1,3 +1,5 @@ +syntax = "proto3"; + enum KeyType { RSA = 0; Ed25519 = 1;