Comparing version 1.1.4 to 1.2.0
@@ -147,4 +147,4 @@ | ||
Reader.prototype.readInt = function(tag) { | ||
if (typeof(tag) !== 'number') | ||
tag = ASN1.Integer; | ||
// if (typeof(tag) !== 'number') | ||
// tag = ASN1.Integer; | ||
@@ -233,3 +233,3 @@ return this._readTag(tag); | ||
Reader.prototype._readTag = function(tag) { | ||
assert.ok(tag !== undefined); | ||
// assert.ok(tag !== undefined); | ||
@@ -241,3 +241,3 @@ var b = this.peek(); | ||
if (b !== tag) | ||
if (tag !== undefined && b !== tag) | ||
throw InvalidAsn1Error('Expected 0x' + tag.toString(16) + | ||
@@ -244,0 +244,0 @@ ': got 0x' + b.toString(16)); |
{ | ||
"name": "asn1-ber", | ||
"version": "1.1.4", | ||
"version": "1.2.0", | ||
"description": "Generate and parse ASN1.BER objects", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -571,2 +571,6 @@ | ||
## Version 1.2.0 - 07/06/2022 | ||
* Allow no tag check on reading integers | ||
# License | ||
@@ -573,0 +577,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
62330
602