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

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 4.8.1 to 4.9.0

7

lib/asn1/base/node.js

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

'seq', 'seqof', 'set', 'setof', 'objid', 'bool',
'gentime', 'utctime', 'null_', 'enum', 'int',
'gentime', 'utctime', 'null_', 'enum', 'int', 'objDesc',
'bitstr', 'bmpstr', 'charstr', 'genstr', 'graphstr', 'ia5str', 'iso646str',

@@ -174,2 +174,3 @@ 'numstr', 'octstr', 'printstr', 't61str', 'unistr', 'utf8str', 'videostr'

Node.prototype.use = function use(item) {
assert(item);
var state = this._baseState;

@@ -418,2 +419,4 @@

return this._decodeBool(input, options);
else if (tag === 'objDesc')
return this._decodeStr(input, tag, options);
else if (tag === 'int' || tag === 'enum')

@@ -622,2 +625,4 @@ return this._decodeInt(input, state.args && state.args[0], options);

return this._encodeBool(data);
else if (tag === 'objDesc')
return this._encodeStr(data, tag);
else

@@ -624,0 +629,0 @@ throw new Error('Unsupported tag: ' + tag);

@@ -152,2 +152,4 @@ var inherits = require('inherits');

return buffer.raw();
} else if (tag === 'objDesc') {
return buffer.raw();
} else if (tag === 'printstr') {

@@ -154,0 +156,0 @@ var printstr = buffer.raw().toString('ascii');

@@ -89,2 +89,4 @@ var inherits = require('inherits');

return this._createEncoderBuffer(str);
} else if (tag === 'objDesc') {
return this._createEncoderBuffer(str);
} else {

@@ -91,0 +93,0 @@ return this.reporter.error('Encoding of string type: ' + tag +

2

package.json
{
"name": "asn1.js",
"version": "4.8.1",
"version": "4.9.0",
"description": "ASN.1 encoder and decoder",

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

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