Comparing version 2.0.0 to 2.0.1
@@ -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() { |
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
70671
2068