@ne1410s/crypto 0.2.107 → 0.2.108
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.
|
@@ -262,10 +262,10 @@ function csr(params) {
|
|
|
262
262
|
});
|
|
263
263
|
}
|
|
264
264
|
//https://github.com/PeculiarVentures/PKI.js/blob/master/examples/PKCS12SimpleExample/es6.js
|
|
265
|
-
function pfx(
|
|
266
|
-
|
|
267
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
265
|
+
function pfx(friendlyName_1, cert_b64_1, key_b64_1, password_1) {
|
|
266
|
+
return __awaiter(this, arguments, void 0, function (friendlyName, cert_b64, key_b64, password, hash) {
|
|
268
267
|
var asn1_cer, asn1_key, objc_cer, objc_key, pkcs12;
|
|
268
|
+
if (hash === void 0) { hash = 'SHA-256'; }
|
|
269
269
|
return __generator(this, function (_a) {
|
|
270
270
|
switch (_a.label) {
|
|
271
271
|
case 0:
|
|
@@ -240,10 +240,10 @@ function csr(params) {
|
|
|
240
240
|
});
|
|
241
241
|
}
|
|
242
242
|
//https://github.com/PeculiarVentures/PKI.js/blob/master/examples/PKCS12SimpleExample/es6.js
|
|
243
|
-
function pfx(
|
|
244
|
-
|
|
245
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
243
|
+
function pfx(friendlyName_1, cert_b64_1, key_b64_1, password_1) {
|
|
244
|
+
return __awaiter(this, arguments, void 0, function (friendlyName, cert_b64, key_b64, password, hash) {
|
|
246
245
|
var asn1_cer, asn1_key, objc_cer, objc_key, pkcs12;
|
|
246
|
+
if (hash === void 0) { hash = 'SHA-256'; }
|
|
247
247
|
return __generator(this, function (_a) {
|
|
248
248
|
switch (_a.label) {
|
|
249
249
|
case 0:
|
|
@@ -3527,10 +3527,10 @@
|
|
|
3527
3527
|
});
|
|
3528
3528
|
}
|
|
3529
3529
|
//https://github.com/PeculiarVentures/PKI.js/blob/master/examples/PKCS12SimpleExample/es6.js
|
|
3530
|
-
function pfx(
|
|
3531
|
-
|
|
3532
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
3530
|
+
function pfx(friendlyName_1, cert_b64_1, key_b64_1, password_1) {
|
|
3531
|
+
return __awaiter(this, arguments, void 0, function (friendlyName, cert_b64, key_b64, password, hash) {
|
|
3533
3532
|
var asn1_cer, asn1_key, objc_cer, objc_key, pkcs12;
|
|
3533
|
+
if (hash === void 0) { hash = 'SHA-256'; }
|
|
3534
3534
|
return __generator(this, function (_a) {
|
|
3535
3535
|
switch (_a.label) {
|
|
3536
3536
|
case 0:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ne1410s/crypto",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.108",
|
|
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",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@rollup/plugin-commonjs": "^25.0.7",
|
|
42
42
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
43
|
-
"@types/node": "^20.11.
|
|
43
|
+
"@types/node": "^20.11.25",
|
|
44
44
|
"@types/pkijs": "^3.0.1",
|
|
45
45
|
"chai": "^4.4.1",
|
|
46
46
|
"mocha": "^10.3.0",
|
|
@@ -48,10 +48,10 @@
|
|
|
48
48
|
"rimraf": "^5.0.5",
|
|
49
49
|
"rollup": "^4.12.1",
|
|
50
50
|
"rollup-plugin-typescript2": "^0.36.0",
|
|
51
|
-
"typescript": "^5.
|
|
51
|
+
"typescript": "^5.4.2"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@ne1410s/text": "^0.3.
|
|
54
|
+
"@ne1410s/text": "^0.3.70",
|
|
55
55
|
"asn1js": "^3.0.5",
|
|
56
56
|
"pkijs": "^3.0.15"
|
|
57
57
|
}
|