Socket
Socket
Sign inDemoInstall

asn1.js

Package Overview
Dependencies
Maintainers
2
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

asn1.js - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

2

lib/asn1/base/node.js

@@ -274,3 +274,3 @@ var Reporter = require('../base').Reporter;

if (state.optional) {
present = this._peekTag(
present = state.any || this._peekTag(
input,

@@ -277,0 +277,0 @@ state.explicit !== null ? state.explicit :

{
"name": "asn1.js",
"version": "2.0.0",
"version": "2.0.1",
"description": "ASN.1 encoder and decoder",

@@ -5,0 +5,0 @@ "main": "lib/asn1.js",

@@ -53,3 +53,4 @@ var assert = require('assert');

'1.2.840.113549.1.1.5');
assert.equal(tbs.signature.parameters.toString('hex'), '0500');
});
});

@@ -132,2 +132,8 @@ var assert = require('assert');

test('optional + any', function() {
this.seq().obj(
this.key('content').optional().any()
);
}, { content: new Buffer('0500', 'hex') });
test('seqof', function() {

@@ -134,0 +140,0 @@ var S = asn1.define('S', function() {

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