dphelper 3.9.9 → 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 +4 -5
- package/dphelper.umd.js +1 -0
- package/index.cjs +1 -1
- package/package.json +5 -77
- package/types/dphelper.d.ts +9 -9
- package/index.js +0 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dphelper",
|
|
3
3
|
"codeName": "dphelper",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "4.0.1",
|
|
5
5
|
"description": "dphelper devtools for developers",
|
|
6
6
|
"main": "./index.cjs",
|
|
7
7
|
"browser": "./index.cjs",
|
|
@@ -48,9 +48,6 @@
|
|
|
48
48
|
"url": "https://www.patreon.com/passariello"
|
|
49
49
|
}
|
|
50
50
|
],
|
|
51
|
-
"workspaces": [
|
|
52
|
-
"tests"
|
|
53
|
-
],
|
|
54
51
|
"engines": {
|
|
55
52
|
"node": ">=18.0.0"
|
|
56
53
|
},
|
|
@@ -71,79 +68,10 @@
|
|
|
71
68
|
}
|
|
72
69
|
},
|
|
73
70
|
"overrides": {
|
|
74
|
-
"
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
"
|
|
78
|
-
"array.prototype.flatmap": "npm:@socketregistry/array.prototype.flatmap@^1",
|
|
79
|
-
"array.prototype.tosorted": "npm:@socketregistry/array.prototype.tosorted@^1",
|
|
80
|
-
"arraybuffer.prototype.slice": "npm:@socketregistry/arraybuffer.prototype.slice@^1",
|
|
81
|
-
"available-typed-arrays": "npm:@socketregistry/available-typed-arrays@^1",
|
|
82
|
-
"define-properties": "npm:@socketregistry/define-properties@^1",
|
|
83
|
-
"es-define-property": "npm:@socketregistry/es-define-property@^1",
|
|
84
|
-
"es-iterator-helpers": "npm:@socketregistry/es-iterator-helpers@^1",
|
|
85
|
-
"es-set-tostringtag": "npm:@socketregistry/es-set-tostringtag@^1",
|
|
86
|
-
"for-each": "npm:@socketregistry/for-each@^1",
|
|
87
|
-
"function-bind": "npm:@socketregistry/function-bind@^1",
|
|
88
|
-
"function.prototype.name": "npm:@socketregistry/function.prototype.name@^1",
|
|
89
|
-
"functions-have-names": "npm:@socketregistry/functions-have-names@^1",
|
|
90
|
-
"get-symbol-description": "npm:@socketregistry/get-symbol-description@^1",
|
|
91
|
-
"globalthis": "npm:@socketregistry/globalthis@^1",
|
|
92
|
-
"gopd": "npm:@socketregistry/gopd@^1",
|
|
93
|
-
"has-property-descriptors": "npm:@socketregistry/has-property-descriptors@^1",
|
|
94
|
-
"has-proto": "npm:@socketregistry/has-proto@^1",
|
|
95
|
-
"has-symbols": "npm:@socketregistry/has-symbols@^1",
|
|
96
|
-
"has-tostringtag": "npm:@socketregistry/has-tostringtag@^1",
|
|
97
|
-
"hasown": "npm:@socketregistry/hasown@^1",
|
|
98
|
-
"indent-string": "npm:@socketregistry/indent-string@^1",
|
|
99
|
-
"internal-slot": "npm:@socketregistry/internal-slot@^1",
|
|
100
|
-
"is-array-buffer": "npm:@socketregistry/is-array-buffer@^1",
|
|
101
|
-
"is-bigint": "npm:@socketregistry/is-bigint@^1",
|
|
102
|
-
"is-boolean-object": "npm:@socketregistry/is-boolean-object@^1",
|
|
103
|
-
"is-core-module": "npm:@socketregistry/is-core-module@^1",
|
|
104
|
-
"is-date-object": "npm:@socketregistry/is-date-object@^1",
|
|
105
|
-
"is-generator-function": "npm:@socketregistry/is-generator-function@^1",
|
|
106
|
-
"is-map": "npm:@socketregistry/is-map@^1",
|
|
107
|
-
"is-negative-zero": "npm:@socketregistry/is-negative-zero@^1",
|
|
108
|
-
"is-number-object": "npm:@socketregistry/is-number-object@^1",
|
|
109
|
-
"is-regex": "npm:@socketregistry/is-regex@^1",
|
|
110
|
-
"is-set": "npm:@socketregistry/is-set@^1",
|
|
111
|
-
"is-shared-array-buffer": "npm:@socketregistry/is-shared-array-buffer@^1",
|
|
112
|
-
"is-string": "npm:@socketregistry/is-string@^1",
|
|
113
|
-
"is-symbol": "npm:@socketregistry/is-symbol@^1",
|
|
114
|
-
"is-typed-array": "npm:@socketregistry/is-typed-array@^1",
|
|
115
|
-
"is-weakmap": "npm:@socketregistry/is-weakmap@^1",
|
|
116
|
-
"is-weakref": "npm:@socketregistry/is-weakref@^1",
|
|
117
|
-
"is-weakset": "npm:@socketregistry/is-weakset@^1",
|
|
118
|
-
"isarray": "npm:@socketregistry/isarray@^1",
|
|
119
|
-
"iterator.prototype": "npm:@socketregistry/iterator.prototype@^1",
|
|
120
|
-
"object-assign": "npm:@socketregistry/object-assign@^1",
|
|
121
|
-
"object-keys": "npm:@socketregistry/object-keys@^1",
|
|
122
|
-
"object.assign": "npm:@socketregistry/object.assign@^1",
|
|
123
|
-
"object.entries": "npm:@socketregistry/object.entries@^1",
|
|
124
|
-
"object.fromentries": "npm:@socketregistry/object.fromentries@^1",
|
|
125
|
-
"object.values": "npm:@socketregistry/object.values@^1",
|
|
126
|
-
"path-parse": "npm:@socketregistry/path-parse@^1",
|
|
127
|
-
"reflect.getprototypeof": "npm:@socketregistry/reflect.getprototypeof@^1",
|
|
128
|
-
"regexp.prototype.flags": "npm:@socketregistry/regexp.prototype.flags@^1",
|
|
129
|
-
"safe-array-concat": "npm:@socketregistry/safe-array-concat@^1",
|
|
130
|
-
"safe-regex-test": "npm:@socketregistry/safe-regex-test@^1",
|
|
131
|
-
"safer-buffer": "npm:@socketregistry/safer-buffer@^1",
|
|
132
|
-
"set-function-length": "npm:@socketregistry/set-function-length@^1",
|
|
133
|
-
"side-channel": "npm:@socketregistry/side-channel@^1",
|
|
134
|
-
"string.prototype.matchall": "npm:@socketregistry/string.prototype.matchall@^1",
|
|
135
|
-
"string.prototype.repeat": "npm:@socketregistry/string.prototype.repeat@^1",
|
|
136
|
-
"string.prototype.trim": "npm:@socketregistry/string.prototype.trim@^1",
|
|
137
|
-
"string.prototype.trimend": "npm:@socketregistry/string.prototype.trimend@^1",
|
|
138
|
-
"string.prototype.trimstart": "npm:@socketregistry/string.prototype.trimstart@^1",
|
|
139
|
-
"typed-array-buffer": "npm:@socketregistry/typed-array-buffer@^1",
|
|
140
|
-
"typed-array-byte-length": "npm:@socketregistry/typed-array-byte-length@^1",
|
|
141
|
-
"typed-array-byte-offset": "npm:@socketregistry/typed-array-byte-offset@^1",
|
|
142
|
-
"typed-array-length": "npm:@socketregistry/typed-array-length@^1",
|
|
143
|
-
"unbox-primitive": "npm:@socketregistry/unbox-primitive@^1",
|
|
144
|
-
"which-boxed-primitive": "npm:@socketregistry/which-boxed-primitive@^1",
|
|
145
|
-
"which-collection": "npm:@socketregistry/which-collection@^1",
|
|
146
|
-
"which-typed-array": "npm:@socketregistry/which-typed-array@^1"
|
|
71
|
+
"object-assign": "npm:@socketregistry/object-assign@^1"
|
|
72
|
+
},
|
|
73
|
+
"resolutions": {
|
|
74
|
+
"object-assign": "npm:@socketregistry/object-assign@^1"
|
|
147
75
|
},
|
|
148
76
|
"module": "./index.js",
|
|
149
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
|
*/
|