Comparing version 4.8.1 to 4.9.0
@@ -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 + |
{ | ||
"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", |
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
46694
1409