From 861dd57165f72a38281a558e59b897c216ee6480 Mon Sep 17 00:00:00 2001 From: Devin Canterberry Date: Sat, 17 Feb 2018 18:12:58 -0800 Subject: [PATCH 1/6] =?UTF-8?q?=E2=AC=86=EF=B8=8F=20Upgrade=20buffer=20to?= =?UTF-8?q?=205.1.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- yarn.lock | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 5188ab3..c7780cc 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "test": "scripts/test.sh" }, "dependencies": { - "buffer": "5.0.8", + "buffer": "5.1.0", "rlp": "2.0.0" }, "devDependencies": { diff --git a/yarn.lock b/yarn.lock index e968554..7ab0025 100644 --- a/yarn.lock +++ b/yarn.lock @@ -908,9 +908,9 @@ browserslist@^2.1.2: caniuse-lite "^1.0.30000780" electron-to-chromium "^1.3.28" -buffer@5.0.8: - version "5.0.8" - resolved "https://registry.yarnpkg.com/buffer/-/buffer-5.0.8.tgz#84daa52e7cf2fa8ce4195bc5cf0f7809e0930b24" +buffer@5.1.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/buffer/-/buffer-5.1.0.tgz#c913e43678c7cb7c8bd16afbcddb6c5505e8f9fe" dependencies: base64-js "^1.0.2" ieee754 "^1.1.4" From 4dd363d004f131dedde652a0d02984790d021b1b Mon Sep 17 00:00:00 2001 From: Devin Canterberry Date: Sat, 17 Feb 2018 18:13:28 -0800 Subject: [PATCH 2/6] =?UTF-8?q?=E2=AC=86=EF=B8=8F=20Upgrade=20eslint=20to?= =?UTF-8?q?=204.18.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- yarn.lock | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index c7780cc..4d0d96e 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "babel-preset-env": "1.6.1", "babel-preset-stage-2": "6.24.1", "chai": "4.1.2", - "eslint": "4.15.0", + "eslint": "4.18.0", "eslint-plugin-ante": "1.0.0", "jsdoc": "3.5.5", "mocha": "4.1.0", diff --git a/yarn.lock b/yarn.lock index 7ab0025..a1dd509 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1254,9 +1254,9 @@ diff@^3.1.0: version "3.4.0" resolved "https://registry.yarnpkg.com/diff/-/diff-3.4.0.tgz#b1d85507daf3964828de54b37d0d73ba67dda56c" -doctrine@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-2.0.2.tgz#68f96ce8efc56cc42651f1faadb4f175273b0075" +doctrine@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-2.1.0.tgz#5cd01fc101621b42c4cd7f5d1a66243716d3f39d" dependencies: esutils "^2.0.2" @@ -1340,9 +1340,9 @@ eslint-visitor-keys@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.0.0.tgz#3f3180fb2e291017716acb4c9d6d5b5c34a6a81d" -eslint@4.15.0: - version "4.15.0" - resolved "https://registry.yarnpkg.com/eslint/-/eslint-4.15.0.tgz#89ab38c12713eec3d13afac14e4a89e75ef08145" +eslint@4.18.0: + version "4.18.0" + resolved "https://registry.yarnpkg.com/eslint/-/eslint-4.18.0.tgz#ebd0ba795af6dc59aa5cee17938160af5950e051" dependencies: ajv "^5.3.0" babel-code-frame "^6.22.0" @@ -1350,7 +1350,7 @@ eslint@4.15.0: concat-stream "^1.6.0" cross-spawn "^5.1.0" debug "^3.1.0" - doctrine "^2.0.2" + doctrine "^2.1.0" eslint-scope "^3.7.1" eslint-visitor-keys "^1.0.0" espree "^3.5.2" From 54064064f59051856899932cd2a627d426ce8eb2 Mon Sep 17 00:00:00 2001 From: Devin Canterberry Date: Sat, 17 Feb 2018 18:13:56 -0800 Subject: [PATCH 3/6] =?UTF-8?q?=E2=AC=86=EF=B8=8F=20Upgrade=20sinon=20to?= =?UTF-8?q?=204.3.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- yarn.lock | 32 ++++++++++++++++++++++++-------- 2 files changed, 25 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index 4d0d96e..b19c987 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "eslint-plugin-ante": "1.0.0", "jsdoc": "3.5.5", "mocha": "4.1.0", - "sinon": "4.1.5", + "sinon": "4.3.0", "sinon-chai": "2.14.0", "snyk": "1.68.1" } diff --git a/yarn.lock b/yarn.lock index a1dd509..5a88e86 100644 --- a/yarn.lock +++ b/yarn.lock @@ -54,6 +54,12 @@ lodash "^4.2.0" to-fast-properties "^2.0.0" +"@sinonjs/formatio@^2.0.0": + version "2.0.0" + resolved "https://registry.yarnpkg.com/@sinonjs/formatio/-/formatio-2.0.0.tgz#84db7e9eb5531df18a8c5e0bfb6e449e55e654b2" + dependencies: + samsam "1.3.0" + abbrev@1, abbrev@^1.0.7: version "1.1.1" resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.1.tgz#f8f2c887ad10bf67f634f005b6987fed3179aac8" @@ -1554,7 +1560,7 @@ form-data@~2.1.1: combined-stream "^1.0.5" mime-types "^2.1.12" -formatio@1.2.0, formatio@^1.2.0: +formatio@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/formatio/-/formatio-1.2.0.tgz#f3b2167d9068c4698a8d51f4f760a39a54d818eb" dependencies: @@ -1736,6 +1742,10 @@ has-flag@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-2.0.0.tgz#e8207af1cc7b30d446cc70b734b5e8be18f88d51" +has-flag@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" + has-unicode@^2.0.0: version "2.0.1" resolved "https://registry.yarnpkg.com/has-unicode/-/has-unicode-2.0.1.tgz#e0e6fe6a28cf51138855e086d1691e771de2a8b9" @@ -2908,7 +2918,7 @@ safe-buffer@^5.0.1, safe-buffer@~5.1.0, safe-buffer@~5.1.1: version "5.1.1" resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.1.tgz#893312af69b2123def71f57889001671eeb2c853" -samsam@1.x: +samsam@1.3.0, samsam@1.x: version "1.3.0" resolved "https://registry.yarnpkg.com/samsam/-/samsam-1.3.0.tgz#8d1d9350e25622da30de3e44ba692b5221ab7c50" @@ -2961,16 +2971,16 @@ sinon-chai@2.14.0: version "2.14.0" resolved "https://registry.yarnpkg.com/sinon-chai/-/sinon-chai-2.14.0.tgz#da7dd4cc83cd6a260b67cca0f7a9fdae26a1205d" -sinon@4.1.5: - version "4.1.5" - resolved "https://registry.yarnpkg.com/sinon/-/sinon-4.1.5.tgz#620a9b2ac599f88b0455763070f16f4057ed6395" +sinon@4.3.0: + version "4.3.0" + resolved "https://registry.yarnpkg.com/sinon/-/sinon-4.3.0.tgz#cec9b27d5f4e2c63c1a79c9dc1c05d34bb088234" dependencies: + "@sinonjs/formatio" "^2.0.0" diff "^3.1.0" - formatio "1.2.0" lodash.get "^4.4.2" lolex "^2.2.0" nise "^1.2.0" - supports-color "^4.4.0" + supports-color "^5.1.0" type-detect "^4.0.5" slash@^1.0.0: @@ -3259,12 +3269,18 @@ supports-color@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7" -supports-color@^4.0.0, supports-color@^4.4.0: +supports-color@^4.0.0: version "4.5.0" resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-4.5.0.tgz#be7a0de484dec5c5cddf8b3d59125044912f635b" dependencies: has-flag "^2.0.0" +supports-color@^5.1.0: + version "5.2.0" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.2.0.tgz#b0d5333b1184dd3666cbe5aa0b45c5ac7ac17a4a" + dependencies: + has-flag "^3.0.0" + table@^4.0.1: version "4.0.2" resolved "https://registry.yarnpkg.com/table/-/table-4.0.2.tgz#a33447375391e766ad34d3486e6e2aedc84d2e36" From f56db71c4f28dad31a03b80b5f5ae2f75b05b668 Mon Sep 17 00:00:00 2001 From: Devin Canterberry Date: Sat, 17 Feb 2018 18:14:31 -0800 Subject: [PATCH 4/6] =?UTF-8?q?=E2=AC=86=EF=B8=8F=20Upgrade=20snyk=20to=20?= =?UTF-8?q?1.69.7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- yarn.lock | 44 +++++++++++++++++++++++--------------------- 2 files changed, 24 insertions(+), 22 deletions(-) diff --git a/package.json b/package.json index b19c987..5f28aca 100644 --- a/package.json +++ b/package.json @@ -29,6 +29,6 @@ "mocha": "4.1.0", "sinon": "4.3.0", "sinon-chai": "2.14.0", - "snyk": "1.68.1" + "snyk": "1.69.7" } } diff --git a/yarn.lock b/yarn.lock index 5a88e86..494ff5c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2287,9 +2287,9 @@ mimic-fn@^1.0.0: version "1.1.0" resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-1.1.0.tgz#e667783d92e89dbd342818b5230b9d62a672ad18" -minimatch@3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.2.tgz#0f398a7300ea441e9c348c83d98ab8c9dbf9c40a" +minimatch@3.0.3: + version "3.0.3" + resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.3.tgz#2a4e4090b96b2db06a9d7df01055a62a77c9b774" dependencies: brace-expansion "^1.0.0" @@ -2731,6 +2731,12 @@ readdirp@^2.0.0: readable-stream "^2.0.2" set-immediate-shim "^1.0.1" +recursive-readdir@^2.2.1: + version "2.2.1" + resolved "https://registry.yarnpkg.com/recursive-readdir/-/recursive-readdir-2.2.1.tgz#90ef231d0778c5ce093c9a48d74e5c5422d13a99" + dependencies: + minimatch "3.0.3" + regenerate@^1.2.1: version "1.3.3" resolved "https://registry.yarnpkg.com/regenerate/-/regenerate-1.3.3.tgz#0c336d3980553d755c39b586ae3b20aa49c82b7f" @@ -3065,15 +3071,9 @@ snyk-policy@^1.10.1: snyk-try-require "^1.1.1" then-fs "^2.0.0" -snyk-python-plugin@1.4.1: - version "1.4.1" - resolved "https://registry.yarnpkg.com/snyk-python-plugin/-/snyk-python-plugin-1.4.1.tgz#5143cfaff5d85f6ee0eb8de7584732b614f616e0" - -snyk-recursive-readdir@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/snyk-recursive-readdir/-/snyk-recursive-readdir-2.0.0.tgz#5cb59e94698169e0205a60e7d6a506d0b4d52ff3" - dependencies: - minimatch "3.0.2" +snyk-python-plugin@1.5.6: + version "1.5.6" + resolved "https://registry.yarnpkg.com/snyk-python-plugin/-/snyk-python-plugin-1.5.6.tgz#ce31f0b687f23d127f7af39180ea2901b2891fec" snyk-resolve-deps@1.7.0: version "1.7.0" @@ -3101,9 +3101,11 @@ snyk-resolve@1.0.0, snyk-resolve@^1.0.0: debug "^2.2.0" then-fs "^2.0.0" -snyk-sbt-plugin@1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/snyk-sbt-plugin/-/snyk-sbt-plugin-1.2.0.tgz#9a72c6af42bbaa1cf76c5443669cb008347260b7" +snyk-sbt-plugin@1.2.3: + version "1.2.3" + resolved "https://registry.yarnpkg.com/snyk-sbt-plugin/-/snyk-sbt-plugin-1.2.3.tgz#5615786f19825ee64acb50b1a041843b4a9c4e0f" + dependencies: + debug "^2.2.0" snyk-tree@^1.0.0: version "1.0.0" @@ -3121,9 +3123,9 @@ snyk-try-require@^1.1.1, snyk-try-require@^1.2.0: lru-cache "^4.0.0" then-fs "^2.0.0" -snyk@1.68.1: - version "1.68.1" - resolved "https://registry.yarnpkg.com/snyk/-/snyk-1.68.1.tgz#bee46100c2a3516676ab8bde239f4c1ed4031ae5" +snyk@1.69.7: + version "1.69.7" + resolved "https://registry.yarnpkg.com/snyk/-/snyk-1.69.7.tgz#ac879aabbc425aa2a8b77900a8f6d1c21ba8d2fe" dependencies: abbrev "^1.0.7" ansi-escapes "^1.3.0" @@ -3137,6 +3139,7 @@ snyk@1.68.1: open "^0.0.5" os-name "^1.0.3" proxy-from-env "^1.0.0" + recursive-readdir "^2.2.1" semver "^5.1.0" snyk-config "1.0.1" snyk-go-plugin "1.4.5" @@ -3146,11 +3149,10 @@ snyk@1.68.1: snyk-nuget-plugin "1.3.9" snyk-php-plugin "1.3.2" snyk-policy "^1.10.1" - snyk-python-plugin "1.4.1" - snyk-recursive-readdir "^2.0.0" + snyk-python-plugin "1.5.6" snyk-resolve "1.0.0" snyk-resolve-deps "1.7.0" - snyk-sbt-plugin "1.2.0" + snyk-sbt-plugin "1.2.3" snyk-tree "^1.0.0" snyk-try-require "^1.2.0" tempfile "^1.1.1" From 17ea308c279fa79e80b43e57e6f88fbe36bdc0eb Mon Sep 17 00:00:00 2001 From: Devin Canterberry Date: Sat, 17 Feb 2018 18:17:57 -0800 Subject: [PATCH 5/6] =?UTF-8?q?=E2=AC=86=EF=B8=8F=20Upgrade=20mocha=20to?= =?UTF-8?q?=205.0.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- yarn.lock | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 5f28aca..ad7946f 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "eslint": "4.18.0", "eslint-plugin-ante": "1.0.0", "jsdoc": "3.5.5", - "mocha": "4.1.0", + "mocha": "5.0.1", "sinon": "4.3.0", "sinon-chai": "2.14.0", "snyk": "1.69.7" diff --git a/yarn.lock b/yarn.lock index 494ff5c..b994e7f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2320,9 +2320,9 @@ mkdirp@0.5.1, "mkdirp@>=0.5 0", mkdirp@^0.5.0, mkdirp@^0.5.1, mkdirp@~0.5.1: dependencies: minimist "0.0.8" -mocha@4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/mocha/-/mocha-4.1.0.tgz#7d86cfbcf35cb829e2754c32e17355ec05338794" +mocha@5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/mocha/-/mocha-5.0.1.tgz#759b62c836b0732382a62b6b1fb245ec1bc943ac" dependencies: browser-stdout "1.3.0" commander "2.11.0" From 89d0741322385d753beee20b9d6fb5d876cfeb15 Mon Sep 17 00:00:00 2001 From: Devin Canterberry Date: Sat, 17 Feb 2018 18:18:16 -0800 Subject: [PATCH 6/6] =?UTF-8?q?=F0=9F=91=95=20Fix=20lint=20error=20from=20?= =?UTF-8?q?upgrading=20ESLint?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The `no-await-in-loop` rule violation is now attached to the loop declaration rather than the violating `await` keyword, resulting in the `eslint-disable-next-line` needing to move. --- src/device/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/device/index.js b/src/device/index.js index 507e133..3ed06da 100644 --- a/src/device/index.js +++ b/src/device/index.js @@ -226,8 +226,8 @@ class LedgerDevice { return current; }, false)); + // eslint-disable-next-line no-await-in-loop for (let keyHandle = keyHandles.shift(); keyHandle; keyHandle = keyHandles.shift()) { - // eslint-disable-next-line no-await-in-loop const signature = await new Promise((resolve, reject) => { u2f.sign(appId, challenge, [{ keyHandle: Base64.toBase64URLSafe(keyHandle),