@pubinfo-pr/module-pinia-crypto 0.189.1 → 0.197.1
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/dist/cipher.d.ts +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/runtime.d.ts +2 -2
- package/dist/types.d.ts +1 -1
- package/package.json +3 -3
package/dist/cipher.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { PiniaAesCipherOptions, PiniaCryptoCipher } from './types';
|
|
1
|
+
import type { PiniaAesCipherOptions, PiniaCryptoCipher } from './types';
|
|
2
2
|
export declare function createPiniaAesCipher(options?: PiniaAesCipherOptions): PiniaCryptoCipher;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ModuleOptions } from 'pubinfo-pr';
|
|
2
|
-
import { PiniaCryptoOptions } from './types';
|
|
1
|
+
import type { ModuleOptions } from 'pubinfo-pr';
|
|
2
|
+
import type { PiniaCryptoOptions } from './types';
|
|
3
3
|
import 'uno.css';
|
|
4
4
|
export declare function piniaCrypto(options?: PiniaCryptoOptions): ModuleOptions;
|
|
5
5
|
export { createPiniaAesCipher } from './cipher';
|
package/dist/index.js
CHANGED
|
@@ -11,7 +11,7 @@ import './index.css';var __create = Object.create, __defProp = Object.defineProp
|
|
|
11
11
|
}) : i, e)), __require = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (e, t) => (typeof require < "u" ? require : e)[t] }) : e)(function(e) {
|
|
12
12
|
if (typeof require < "u") return require.apply(this, arguments);
|
|
13
13
|
throw Error("Calling `require` for \"" + e + "\" in an environment that doesn't expose the `require` function.");
|
|
14
|
-
}),
|
|
14
|
+
}), _virtual_pubinfo_resolver_default = {
|
|
15
15
|
icons: {},
|
|
16
16
|
layouts: {},
|
|
17
17
|
pages: {}
|
|
@@ -3798,7 +3798,7 @@ function normalizeMatchers(e) {
|
|
|
3798
3798
|
function matchStore(e, t) {
|
|
3799
3799
|
return typeof e == "string" ? e === t.storeId : e instanceof RegExp ? e.test(t.storeId) : e(t);
|
|
3800
3800
|
}
|
|
3801
|
-
defineRouteModule("pinia-crypto",
|
|
3801
|
+
defineRouteModule("pinia-crypto", _virtual_pubinfo_resolver_default.pages), defineIconModule("pinia-crypto", _virtual_pubinfo_resolver_default.icons);
|
|
3802
3802
|
function piniaCrypto(e = {}) {
|
|
3803
3803
|
let t = createPiniaCryptoRuntime(e);
|
|
3804
3804
|
return {
|
package/dist/runtime.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PiniaPersistHookBasePayload, PiniaPersistReadHookPayload, PiniaPersistWriteHookPayload } from 'pubinfo-pr';
|
|
2
|
-
import { PiniaCryptoCipher, PiniaCryptoOptions } from './types';
|
|
1
|
+
import type { PiniaPersistHookBasePayload, PiniaPersistReadHookPayload, PiniaPersistWriteHookPayload } from 'pubinfo-pr';
|
|
2
|
+
import type { PiniaCryptoCipher, PiniaCryptoOptions } from './types';
|
|
3
3
|
interface PiniaCryptoRuntime {
|
|
4
4
|
enabled: boolean;
|
|
5
5
|
cipher?: PiniaCryptoCipher;
|
package/dist/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PiniaPersistHookBasePayload, PiniaPersistReadHookPayload, PiniaPersistWriteHookPayload } from 'pubinfo-pr';
|
|
1
|
+
import type { PiniaPersistHookBasePayload, PiniaPersistReadHookPayload, PiniaPersistWriteHookPayload } from 'pubinfo-pr';
|
|
2
2
|
export type StoreMatcher = string | RegExp | ((payload: PiniaPersistHookBasePayload) => boolean);
|
|
3
3
|
export interface PiniaCryptoCipher {
|
|
4
4
|
encrypt: (payload: PiniaPersistWriteHookPayload) => string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pubinfo-pr/module-pinia-crypto",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.197.1",
|
|
4
4
|
"description": "pubinfo 框架的加密集成",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -20,14 +20,14 @@
|
|
|
20
20
|
"node": "^20.19.0 || >=22.12.0"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
|
-
"pubinfo-pr": "0.
|
|
23
|
+
"pubinfo-pr": "0.197.1"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"crypto-js": "^4.2.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@types/crypto-js": "^4.2.2",
|
|
30
|
-
"pubinfo-pr": "0.
|
|
30
|
+
"pubinfo-pr": "0.197.1"
|
|
31
31
|
},
|
|
32
32
|
"scripts": {
|
|
33
33
|
"dev": "pubinfo build -w --sourcemap",
|