szld-libs 0.2.15 → 0.2.17

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.
package/es/index.js CHANGED
@@ -1,11 +1,14 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { useState } from "react";
2
+ import { useEffect, useState } from "react";
3
3
  import ReactDOM from "react-dom/client";
4
4
  import { BrowserRouter } from "react-router-dom";
5
- import { EditTable } from "./main";
5
+ import { HmacSHA512, EditTable } from "./main";
6
6
  import { Form } from "antd";
7
7
  import "./utils/compression-file";
8
8
  const Demo = () => {
9
+ useEffect(() => {
10
+ new HmacSHA512("17283");
11
+ }, []);
9
12
  Form.useForm();
10
13
  const [list, setList] = useState([
11
14
  {
package/es/main.d.ts CHANGED
@@ -14,4 +14,5 @@ import * as verfyCode from "./utils/verify-code";
14
14
  import useCaptcha from "./hooks/useCaptcha";
15
15
  import useChangePwd from "./hooks/useChangePwd";
16
16
  import useRemember from "./hooks/useRemember";
17
- export { AuthButton, BackHeader, CoralButton, CreateForm, EditTable, FormRules, SearchTable, UploadFile, download, fileType, showWorkFlow, useCaptcha, useChangePwd, useRemember, utils, verfyCode };
17
+ import HmacSHA512 from './utils/hmacSHA512';
18
+ export { AuthButton, BackHeader, CoralButton, CreateForm, EditTable, FormRules, HmacSHA512, SearchTable, UploadFile, download, fileType, showWorkFlow, useCaptcha, useChangePwd, useRemember, utils, verfyCode };
package/es/main.js CHANGED
@@ -14,6 +14,7 @@ import * as verifyCode from "./utils/verify-code";
14
14
  import { default as default10 } from "./hooks/useCaptcha";
15
15
  import { default as default11 } from "./hooks/useChangePwd";
16
16
  import { default as default12 } from "./hooks/useRemember";
17
+ import { default as default13 } from "./utils/hmacSHA512";
17
18
  export {
18
19
  default7 as AuthButton,
19
20
  default2 as BackHeader,
@@ -21,6 +22,7 @@ export {
21
22
  default3 as CreateForm,
22
23
  default6 as EditTable,
23
24
  formRules as FormRules,
25
+ default13 as HmacSHA512,
24
26
  default4 as SearchTable,
25
27
  default5 as UploadFile,
26
28
  download,
@@ -4,6 +4,7 @@ var __publicField = (obj, key, value) => {
4
4
  __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
5
5
  return value;
6
6
  };
7
+ import CryptoJS from "crypto-js";
7
8
  class HmacSHA512 {
8
9
  constructor(salt) {
9
10
  __publicField(this, "salt");
package/lib/index.js CHANGED
@@ -7,6 +7,9 @@ const main = require("./main");
7
7
  const antd = require("antd");
8
8
  require("./utils/compression-file");
9
9
  const Demo = () => {
10
+ react.useEffect(() => {
11
+ new main.HmacSHA512("17283");
12
+ }, []);
10
13
  antd.Form.useForm();
11
14
  const [list, setList] = react.useState([
12
15
  {
package/lib/main.d.ts CHANGED
@@ -14,4 +14,5 @@ import * as verfyCode from "./utils/verify-code";
14
14
  import useCaptcha from "./hooks/useCaptcha";
15
15
  import useChangePwd from "./hooks/useChangePwd";
16
16
  import useRemember from "./hooks/useRemember";
17
- export { AuthButton, BackHeader, CoralButton, CreateForm, EditTable, FormRules, SearchTable, UploadFile, download, fileType, showWorkFlow, useCaptcha, useChangePwd, useRemember, utils, verfyCode };
17
+ import HmacSHA512 from './utils/hmacSHA512';
18
+ export { AuthButton, BackHeader, CoralButton, CreateForm, EditTable, FormRules, HmacSHA512, SearchTable, UploadFile, download, fileType, showWorkFlow, useCaptcha, useChangePwd, useRemember, utils, verfyCode };
package/lib/main.js CHANGED
@@ -16,6 +16,7 @@ const verifyCode = require("./utils/verify-code");
16
16
  const useCaptcha = require("./hooks/useCaptcha");
17
17
  const useChangePwd = require("./hooks/useChangePwd");
18
18
  const useRemember = require("./hooks/useRemember");
19
+ const hmacSHA512 = require("./utils/hmacSHA512");
19
20
  function _interopNamespaceDefault(e) {
20
21
  const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
21
22
  if (e) {
@@ -53,3 +54,4 @@ exports.verfyCode = verifyCode__namespace;
53
54
  exports.useCaptcha = useCaptcha;
54
55
  exports.useChangePwd = useChangePwd;
55
56
  exports.useRemember = useRemember;
57
+ exports.HmacSHA512 = hmacSHA512;
@@ -5,6 +5,7 @@ var __publicField = (obj, key, value) => {
5
5
  __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
6
6
  return value;
7
7
  };
8
+ const CryptoJS = require("crypto-js");
8
9
  class HmacSHA512 {
9
10
  constructor(salt) {
10
11
  __publicField(this, "salt");
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "szld-libs",
3
3
  "private": false,
4
- "version": "0.2.15",
4
+ "version": "0.2.17",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",