[Pkg-javascript-commits] [node-asn1.js] 130/202: npm: bump everything to bn.js at 4.0.0

Bastien Roucariès rouca at moszumanska.debian.org
Thu Apr 20 19:19:01 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-asn1.js.

commit 75383bad77c869bde876db6a799badfcee9b2a1f
Author: Fedor Indutny <fedor at indutny.com>
Date:   Wed Oct 28 17:24:07 2015 -0400

    npm: bump everything to bn.js at 4.0.0
---
 lib/asn1/encoders/der.js | 2 +-
 package.json             | 4 ++--
 rfc/2560/package.json    | 6 +++---
 rfc/3280/package.json    | 4 ++--
 4 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/lib/asn1/encoders/der.js b/lib/asn1/encoders/der.js
index 739dce6..f954603 100644
--- a/lib/asn1/encoders/der.js
+++ b/lib/asn1/encoders/der.js
@@ -173,7 +173,7 @@ DERNode.prototype._encodeInt = function encodeInt(num, values) {
   // Bignum, assume big endian
   if (typeof num !== 'number' && !Buffer.isBuffer(num)) {
     var numArray = num.toArray();
-    if (num.sign === false && numArray[0] & 0x80) {
+    if (!num.sign && numArray[0] & 0x80) {
       numArray.unshift(0);
     }
     num = new Buffer(numArray);
diff --git a/package.json b/package.json
index fda7b91..b51359d 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
 {
   "name": "asn1.js",
-  "version": "3.0.0",
+  "version": "4.0.0",
   "description": "ASN.1 encoder and decoder",
   "main": "lib/asn1.js",
   "scripts": {
@@ -24,7 +24,7 @@
     "mocha": "^1.14.0"
   },
   "dependencies": {
-    "bn.js": "^3.2.0",
+    "bn.js": "^4.0.0",
     "inherits": "^2.0.1",
     "minimalistic-assert": "^1.0.0"
   }
diff --git a/rfc/2560/package.json b/rfc/2560/package.json
index 5813d83..b6ae641 100644
--- a/rfc/2560/package.json
+++ b/rfc/2560/package.json
@@ -1,6 +1,6 @@
 {
   "name": "asn1.js-rfc2560",
-  "version": "3.0.0",
+  "version": "4.0.0",
   "description": "RFC2560 structures for asn1.js",
   "main": "index.js",
   "repository": {
@@ -19,9 +19,9 @@
   },
   "homepage": "https://github.com/indutny/asn1.js",
   "dependencies": {
-    "asn1.js-rfc3280": "^3.0.0"
+    "asn1.js-rfc3280": "^4.0.0"
   },
   "peerDependencies": {
-    "asn1.js": "^3.0.0"
+    "asn1.js": "^4.0.0"
   }
 }
diff --git a/rfc/3280/package.json b/rfc/3280/package.json
index e248aa5..f945fc2 100644
--- a/rfc/3280/package.json
+++ b/rfc/3280/package.json
@@ -1,6 +1,6 @@
 {
   "name": "asn1.js-rfc3280",
-  "version": "3.0.0",
+  "version": "4.0.0",
   "description": "RFC3280 structures for asn1.js",
   "main": "index.js",
   "repository": {
@@ -19,6 +19,6 @@
   },
   "homepage": "https://github.com/indutny/asn1.js",
   "peerDependencies": {
-    "asn1.js": "^3.0.0"
+    "asn1.js": "^4.0.0"
   }
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-asn1.js.git



More information about the Pkg-javascript-commits mailing list