@ne1410s/crypto 0.2.34 → 0.2.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -14,14 +14,12 @@ function _interopNamespace(e) {
|
|
|
14
14
|
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
15
15
|
Object.defineProperty(n, k, d.get ? d : {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () {
|
|
18
|
-
return e[k];
|
|
19
|
-
}
|
|
17
|
+
get: function () { return e[k]; }
|
|
20
18
|
});
|
|
21
19
|
}
|
|
22
20
|
});
|
|
23
21
|
}
|
|
24
|
-
n[
|
|
22
|
+
n["default"] = e;
|
|
25
23
|
return Object.freeze(n);
|
|
26
24
|
}
|
|
27
25
|
|
|
@@ -347,7 +345,7 @@ function base64ToPem(base64, title) {
|
|
|
347
345
|
.replace(/[^\w\s]+/, '')
|
|
348
346
|
.trim()
|
|
349
347
|
.toUpperCase() || 'CERTIFICATE';
|
|
350
|
-
return "-----BEGIN "
|
|
348
|
+
return "-----BEGIN ".concat(title, "-----\r\n").concat(result_string, "\r\n-----END ").concat(title, "-----\r\n");
|
|
351
349
|
}
|
|
352
350
|
function bufferToPem(pkcs10_buf, title) {
|
|
353
351
|
var base64 = ne_text__namespace.bufferToBase64(pkcs10_buf);
|
|
@@ -320,7 +320,7 @@ function base64ToPem(base64, title) {
|
|
|
320
320
|
.replace(/[^\w\s]+/, '')
|
|
321
321
|
.trim()
|
|
322
322
|
.toUpperCase() || 'CERTIFICATE';
|
|
323
|
-
return "-----BEGIN "
|
|
323
|
+
return "-----BEGIN ".concat(title, "-----\r\n").concat(result_string, "\r\n-----END ").concat(title, "-----\r\n");
|
|
324
324
|
}
|
|
325
325
|
function bufferToPem(pkcs10_buf, title) {
|
|
326
326
|
var base64 = ne_text.bufferToBase64(pkcs10_buf);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
4
4
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.ne_crypto = {}));
|
|
5
|
-
}(this, (function (exports) { 'use strict';
|
|
5
|
+
})(this, (function (exports) { 'use strict';
|
|
6
6
|
|
|
7
7
|
/*! *****************************************************************************
|
|
8
8
|
Copyright (c) Microsoft Corporation.
|
|
@@ -6370,7 +6370,7 @@
|
|
|
6370
6370
|
.replace(/[^\w\s]+/, '')
|
|
6371
6371
|
.trim()
|
|
6372
6372
|
.toUpperCase() || 'CERTIFICATE';
|
|
6373
|
-
return "-----BEGIN "
|
|
6373
|
+
return "-----BEGIN ".concat(title, "-----\r\n").concat(result_string, "\r\n-----END ").concat(title, "-----\r\n");
|
|
6374
6374
|
}
|
|
6375
6375
|
function bufferToPem(pkcs10_buf, title) {
|
|
6376
6376
|
var base64 = bufferToBase64(pkcs10_buf);
|
|
@@ -6389,4 +6389,4 @@
|
|
|
6389
6389
|
|
|
6390
6390
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
6391
6391
|
|
|
6392
|
-
}))
|
|
6392
|
+
}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ne1410s/crypto",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.38",
|
|
4
4
|
"description": "Lightweight ES5 script to provide crypto utilities",
|
|
5
5
|
"main": "dist/ne14_crypto.cjs.min.js",
|
|
6
6
|
"module": "dist/ne14_crypto.esm.min.js",
|
|
@@ -37,21 +37,21 @@
|
|
|
37
37
|
"url": "https://github.com/ne1410s/ne14.crypto/issues"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@rollup/plugin-commonjs": "^
|
|
41
|
-
"@rollup/plugin-node-resolve": "^13.0.
|
|
42
|
-
"@types/pkijs": "^0.0.
|
|
40
|
+
"@rollup/plugin-commonjs": "^21.0.1",
|
|
41
|
+
"@rollup/plugin-node-resolve": "^13.0.6",
|
|
42
|
+
"@types/pkijs": "^0.0.12",
|
|
43
43
|
"chai": "^4.3.4",
|
|
44
|
-
"mocha": "^9.1.
|
|
45
|
-
"prettier": "^2.
|
|
44
|
+
"mocha": "^9.1.3",
|
|
45
|
+
"prettier": "^2.5.0",
|
|
46
46
|
"rimraf": "^3.0.2",
|
|
47
|
-
"rollup": "^2.
|
|
48
|
-
"rollup-plugin-typescript2": "^0.
|
|
49
|
-
"typescript": "^4.
|
|
47
|
+
"rollup": "^2.60.1",
|
|
48
|
+
"rollup-plugin-typescript2": "^0.31.1",
|
|
49
|
+
"typescript": "^4.5.2"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@ne1410s/text": "^0.2.
|
|
52
|
+
"@ne1410s/text": "^0.2.38",
|
|
53
53
|
"asn1js": "^2.1.1",
|
|
54
54
|
"node-webcrypto-ossl": "^2.1.3",
|
|
55
|
-
"pkijs": "^2.1
|
|
55
|
+
"pkijs": "^2.2.1"
|
|
56
56
|
}
|
|
57
57
|
}
|