@ocap/mcrypto 1.28.4 → 1.28.6

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.
@@ -1,5 +1,5 @@
1
1
  import crypter_default from "../protocols/crypter.mjs";
2
- import * as AES from "crypto-js/aes.js";
2
+ import AES from "crypto-js/aes.js";
3
3
  import encLatin1 from "crypto-js/enc-latin1.js";
4
4
  import encUtf8 from "crypto-js/enc-utf8.js";
5
5
  import encUtf16 from "crypto-js/enc-utf16.js";
@@ -25,10 +25,10 @@ const encoders = {
25
25
  var AesCrypter = class extends require_protocols_crypter.default {
26
26
  encrypt(message, secret) {
27
27
  const text = typeof message === "string" ? message : JSON.stringify(message);
28
- return crypto_js_aes.encrypt(text, secret).toString();
28
+ return crypto_js_aes.default.encrypt(text, secret).toString();
29
29
  }
30
30
  decrypt(cipher, secret, outputEncoding = "utf8") {
31
- return crypto_js_aes.decrypt(cipher, secret).toString(encoders[outputEncoding]);
31
+ return crypto_js_aes.default.decrypt(cipher, secret).toString(encoders[outputEncoding]);
32
32
  }
33
33
  };
34
34
  var aes_legacy_default = new AesCrypter();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ocap/mcrypto",
3
- "version": "1.28.4",
3
+ "version": "1.28.6",
4
4
  "type": "module",
5
5
  "description": "Crypto lib that provides signer,crypter,hasher interface",
6
6
  "keywords": [
@@ -59,7 +59,7 @@
59
59
  "tsdown": "^0.18.4",
60
60
  "type-fest": "^3.1.0",
61
61
  "typescript": "^5.6.2",
62
- "@ocap/e2e-test": "1.28.4"
62
+ "@ocap/e2e-test": "1.28.6"
63
63
  },
64
64
  "repository": {
65
65
  "type": "git",
@@ -79,7 +79,7 @@
79
79
  "js-sha3": "^0.8.0",
80
80
  "randombytes": "^2.1.0",
81
81
  "tweetnacl": "^1.0.3",
82
- "@ocap/util": "1.28.4"
82
+ "@ocap/util": "1.28.6"
83
83
  },
84
84
  "resolutions": {
85
85
  "bn.js": "5.2.2",