@owocow/saber-ui 0.0.3 → 0.0.4

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,4 +1,4 @@
1
- import t from "crypto-js";
1
+ import { C as t } from "../index-BealGwXp.js";
2
2
  function o() {
3
3
  const e = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
4
4
  let n = "";
@@ -12,25 +12,25 @@ function a() {
12
12
  function i(e) {
13
13
  return t.enc.Base64.stringify(e);
14
14
  }
15
- function d(e) {
15
+ function s(e) {
16
16
  return t.enc.Base64.parse(e);
17
17
  }
18
- function p(e, n) {
18
+ function d(e, n) {
19
19
  return t.AES.encrypt(e, n, {
20
20
  mode: t.mode.ECB,
21
21
  padding: t.pad.Pkcs7
22
22
  }).toString();
23
23
  }
24
- function s(e, n) {
24
+ function p(e, n) {
25
25
  return t.AES.decrypt(e, n, {
26
26
  mode: t.mode.ECB,
27
27
  padding: t.pad.Pkcs7
28
28
  }).toString(t.enc.Utf8);
29
29
  }
30
30
  export {
31
- d as decryptBase64,
32
- s as decryptWithAes,
31
+ s as decryptBase64,
32
+ p as decryptWithAes,
33
33
  i as encryptBase64,
34
- p as encryptWithAes,
34
+ d as encryptWithAes,
35
35
  a as generateAesKey
36
36
  };
@@ -1,4 +1,4 @@
1
- import c from "crypto-js";
1
+ import { C as c } from "../index-BealGwXp.js";
2
2
  let t = "", a = "";
3
3
  function p(e) {
4
4
  t = e.secret, a = e.prefix ?? "";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@owocow/saber-ui",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "Saber application foundation for Vue 3 projects built on Nuxt UI",
5
5
  "type": "module",
6
6
  "sideEffects": false,