Comparing version 4.2.1 to 4.3.0
@@ -190,4 +190,9 @@ var inherits = require('inherits'); | ||
if (values) | ||
result = values[result.join(' ')]; | ||
if (values) { | ||
var tmp = values[result.join(' ')]; | ||
if (tmp === undefined) | ||
tmp = values[result.join('.')]; | ||
if (tmp !== undefined) | ||
result = tmp; | ||
} | ||
@@ -194,0 +199,0 @@ return result; |
{ | ||
"name": "asn1.js", | ||
"version": "4.2.1", | ||
"version": "4.3.0", | ||
"description": "ASN.1 encoder and decoder", | ||
@@ -5,0 +5,0 @@ "main": "lib/asn1.js", |
@@ -87,2 +87,8 @@ var assert = require('assert'); | ||
}, '1e0c041f04400438043204350442', 'Привет'); | ||
test('should properly decode objid with dots', function() { | ||
this.objid({ | ||
'1.2.398.3.10.1.1.1.2.2': 'yes' | ||
}); | ||
}, '060a2a830e030a0101010202', 'yes'); | ||
}); |
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
87690
2495