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.1.2 to 2.1.3

4

lib/asn1/encoders/der.js

@@ -80,3 +80,3 @@ var inherits = require('inherits');

return this.reporter.error('objid not found in values map');
id = values[id].split(/\s+/g);
id = values[id].split(/[\s\.]+/g);
for (var i = 0; i < id.length; i++)

@@ -86,2 +86,4 @@ id[i] |= 0;

id = id.slice();
for (var i = 0; i < id.length; i++)
id[i] |= 0;
}

@@ -88,0 +90,0 @@

{
"name": "asn1.js",
"version": "2.1.2",
"version": "2.1.3",
"description": "ASN.1 encoder and decoder",

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

@@ -84,2 +84,12 @@ var assert = require('assert');

});
test('should properly encode objid with dots', function() {
this.objid({
'1.2.398.3.10.1.1.1.2.2': 'yes'
});
}, 'yes', '060a2a830e030a0101010202');
test('should properly encode objid as array of strings', function() {
this.objid();
}, '1.2.398.3.10.1.1.1.2.2'.split('.'), '060a2a830e030a0101010202');
});
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