fix: Hack to force asn1.js

This commit is contained in:
Tom Hu
2021-07-19 08:44:22 -07:00
parent 5c832aefb8
commit fc5d663f82
40 changed files with 7010 additions and 3 deletions
+21
View File
@@ -0,0 +1,21 @@
'use strict';
const constants = exports;
// Helper
constants._reverse = function reverse(map) {
const res = {};
Object.keys(map).forEach(function(key) {
// Convert key to integer if it is stringified
if ((key | 0) == key)
key = key | 0;
const value = map[key];
res[value] = key;
});
return res;
};
constants.der = require('./der');