@ne1410s/crypto 0.2.48 → 0.2.50

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.
@@ -37,7 +37,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
37
37
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
38
38
  PERFORMANCE OF THIS SOFTWARE.
39
39
  ***************************************************************************** */
40
- /* global Reflect, Promise */
40
+ /* global Reflect, Promise, SuppressedError, Symbol */
41
41
 
42
42
 
43
43
  function __awaiter(thisArg, _arguments, P, generator) {
@@ -76,7 +76,12 @@ function __generator(thisArg, body) {
76
76
  } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
77
77
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
78
78
  }
79
- }
79
+ }
80
+
81
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
82
+ var e = new Error(message);
83
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
84
+ };
80
85
 
81
86
  var crypto = require('node:crypto');
82
87
  var pkijs = require('pkijs');
@@ -15,7 +15,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
15
15
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
16
16
  PERFORMANCE OF THIS SOFTWARE.
17
17
  ***************************************************************************** */
18
- /* global Reflect, Promise */
18
+ /* global Reflect, Promise, SuppressedError, Symbol */
19
19
 
20
20
 
21
21
  function __awaiter(thisArg, _arguments, P, generator) {
@@ -54,7 +54,12 @@ function __generator(thisArg, body) {
54
54
  } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
55
55
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
56
56
  }
57
- }
57
+ }
58
+
59
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
60
+ var e = new Error(message);
61
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
62
+ };
58
63
 
59
64
  var crypto = require('node:crypto');
60
65
  var pkijs = require('pkijs');
@@ -18,7 +18,7 @@
18
18
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
19
19
  PERFORMANCE OF THIS SOFTWARE.
20
20
  ***************************************************************************** */
21
- /* global Reflect, Promise */
21
+ /* global Reflect, Promise, SuppressedError, Symbol */
22
22
 
23
23
 
24
24
  function __awaiter(thisArg, _arguments, P, generator) {
@@ -57,7 +57,12 @@
57
57
  } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
58
58
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
59
59
  }
60
- }
60
+ }
61
+
62
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
63
+ var e = new Error(message);
64
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
65
+ };
61
66
 
62
67
  /*!
63
68
  * MIT License
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ne1410s/crypto",
3
- "version": "0.2.48",
3
+ "version": "0.2.50",
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",
@@ -38,20 +38,20 @@
38
38
  },
39
39
  "homepage": "https://github.com/ne14-fed/core.crypto#readme",
40
40
  "devDependencies": {
41
- "@rollup/plugin-commonjs": "^25.0.3",
42
- "@rollup/plugin-node-resolve": "^15.1.0",
43
- "@types/node": "^20.4.6",
41
+ "@rollup/plugin-commonjs": "^25.0.4",
42
+ "@rollup/plugin-node-resolve": "^15.2.1",
43
+ "@types/node": "^20.7.0",
44
44
  "@types/pkijs": "^3.0.1",
45
- "chai": "^4.3.7",
45
+ "chai": "^4.3.9",
46
46
  "mocha": "^10.2.0",
47
- "prettier": "^3.0.0",
48
- "rimraf": "^5.0.1",
49
- "rollup": "^3.27.0",
50
- "rollup-plugin-typescript2": "^0.35.0",
51
- "typescript": "^5.1.6"
47
+ "prettier": "^3.0.3",
48
+ "rimraf": "^5.0.5",
49
+ "rollup": "^3.29.3",
50
+ "rollup-plugin-typescript2": "^0.36.0",
51
+ "typescript": "^5.2.2"
52
52
  },
53
53
  "dependencies": {
54
- "@ne1410s/text": "^0.3.7",
54
+ "@ne1410s/text": "^0.3.9",
55
55
  "asn1js": "^3.0.5",
56
56
  "pkijs": "^3.0.15"
57
57
  }