dphelper 3.5.1 → 3.7.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dphelper",
3
3
  "code": "dphelper",
4
- "version": "3.5.1",
4
+ "version": "3.7.1",
5
5
  "description": "dphelper devtools for developers",
6
6
  "main": "./index.cjs",
7
7
  "browser": "./index.cjs",
@@ -22,6 +22,9 @@
22
22
  }
23
23
  ],
24
24
  "keywords": [
25
+ "developer",
26
+ "devtools",
27
+ "ai",
25
28
  "dphelper",
26
29
  "front-end",
27
30
  "back-end",
@@ -32,17 +35,12 @@
32
35
  "uuid",
33
36
  "random",
34
37
  "window",
35
- "store",
36
38
  "easy",
37
39
  "pro",
38
40
  "powerful",
39
- "state",
40
41
  "status",
41
42
  "dp helper",
42
43
  "local",
43
- "storage",
44
- "indexdb",
45
- "idb",
46
44
  "devtool"
47
45
  ],
48
46
  "funding": [
@@ -281,20 +281,6 @@
281
281
  getSupportedLocales: () => string[]
282
282
  }
283
283
 
284
- // --- idb ---
285
- interface IDBTool {
286
- open: (dbName: string, version?: number, stores?: Record<string, string>) => Promise<IDBDatabase>
287
- put: (dbName: string, storeName: string, data: any) => Promise<IDBValidKey>
288
- get: (dbName: string, storeName: string, key: IDBValidKey) => Promise<any>
289
- getAll: (dbName: string, storeName: string) => Promise<any[]>
290
- delete: (dbName: string, storeName: string, key: IDBValidKey) => Promise<void>
291
- clear: (dbName: string, storeName: string) => Promise<void>
292
- count: (dbName: string, storeName: string) => Promise<number>
293
- query: (dbName: string, storeName: string, indexName: string, value: IDBValidKey, options?: { range?: IDBKeyRange, direction?: IDBCursorDirection, limit?: number }) => Promise<any[]>
294
- bulkPut: (dbName: string, storeName: string, items: any[]) => Promise<IDBValidKey[]>
295
- close: (dbName: string) => void
296
- }
297
-
298
284
  // --- image ---
299
285
  interface ImageTool {
300
286
  resize: (img: HTMLImageElement, width: number, height: number, quality?: "pixelated" | "auto") => string
@@ -705,7 +691,6 @@ interface _dphelper {
705
691
  readonly form: FormTool
706
692
  readonly format: FormatTool
707
693
  readonly i18n: I18nTool
708
- readonly idb: IdbTool
709
694
  readonly image: ImageTool
710
695
  readonly json: JsonTool
711
696
  readonly load: LoadTool