dphelper 4.0.0 → 4.0.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/README.md +3 -4
- package/{index.js → dphelper.umd.js} +1 -1
- package/index.cjs +1 -1
- package/package.json +3 -7
- package/types/dphelper.d.ts +9 -9
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dphelper",
|
|
3
3
|
"codeName": "dphelper",
|
|
4
|
-
"version": "4.0.
|
|
4
|
+
"version": "4.0.1",
|
|
5
5
|
"description": "dphelper devtools for developers",
|
|
6
6
|
"main": "./index.cjs",
|
|
7
7
|
"browser": "./index.cjs",
|
|
@@ -68,14 +68,10 @@
|
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
70
|
"overrides": {
|
|
71
|
-
"
|
|
72
|
-
"object-assign": "npm:@socketregistry/object-assign@^1",
|
|
73
|
-
"path-parse": "npm:@socketregistry/path-parse@^1"
|
|
71
|
+
"object-assign": "npm:@socketregistry/object-assign@^1"
|
|
74
72
|
},
|
|
75
73
|
"resolutions": {
|
|
76
|
-
"
|
|
77
|
-
"object-assign": "npm:@socketregistry/object-assign@^1",
|
|
78
|
-
"path-parse": "npm:@socketregistry/path-parse@^1"
|
|
74
|
+
"object-assign": "npm:@socketregistry/object-assign@^1"
|
|
79
75
|
},
|
|
80
76
|
"module": "./index.js",
|
|
81
77
|
"exports": {
|
package/types/dphelper.d.ts
CHANGED
|
@@ -441,15 +441,15 @@
|
|
|
441
441
|
v4: string
|
|
442
442
|
v5: string
|
|
443
443
|
}
|
|
444
|
-
hashPass: (u: string, p: string
|
|
445
|
-
crypt: (u: string, p: string
|
|
446
|
-
deCrypt: (u: string, p: string
|
|
447
|
-
AES_KeyGen: (passKey?: string) => string
|
|
448
|
-
SHA256_Hex: (passKey: string) => string
|
|
444
|
+
hashPass: (u: string, p: string) => Promise<string>
|
|
445
|
+
crypt: (u: string, p: string) => Promise<string>
|
|
446
|
+
deCrypt: (u: string, p: string) => Promise<string>
|
|
447
|
+
AES_KeyGen: (passKey?: string) => Promise<string>
|
|
448
|
+
SHA256_Hex: (passKey: string) => Promise<string>
|
|
449
449
|
ulid: () => string
|
|
450
|
-
fingerprint: () => string
|
|
451
|
-
saveEncrypted: (key: string, value: string, secret: string) => void
|
|
452
|
-
getEncrypted: (key: string, secret: string) => string | null
|
|
450
|
+
fingerprint: (options?: { requireConsent?: boolean; consent?: boolean }) => Promise<string>
|
|
451
|
+
saveEncrypted: (key: string, value: string, secret: string) => Promise<void>
|
|
452
|
+
getEncrypted: (key: string, secret: string) => Promise<string | null>
|
|
453
453
|
}
|
|
454
454
|
|
|
455
455
|
// --- shortcut ---
|
|
@@ -508,7 +508,7 @@
|
|
|
508
508
|
/**
|
|
509
509
|
* Create a Proxy object linked to localStorage for auto-sync with optional encryption.
|
|
510
510
|
*/
|
|
511
|
-
storageProxy: <T extends object>(key: string, initialValue: T, secret?: string) => T
|
|
511
|
+
storageProxy: <T extends object>(key: string, initialValue: T, secret?: string) => Promise<T>
|
|
512
512
|
/**
|
|
513
513
|
* Low-latency cross-tab event bus.
|
|
514
514
|
*/
|