Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

asn1-ber

Package Overview
Dependencies
Maintainers
3
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

asn1-ber - npm Package Compare versions

Comparing version 1.1.4 to 1.2.0

8

lib/ber/reader.js

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc