@firebase/util 1.5.0 → 1.5.1-2022222232915
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/CHANGELOG.md +6 -0
- package/dist/index.esm2017.js +21 -0
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +21 -0
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +21 -0
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/node-esm/index.node.esm.js +21 -0
- package/dist/node-esm/index.node.esm.js.map +1 -1
- package/dist/node-esm/src/indexeddb.d.ts +18 -0
- package/dist/src/indexeddb.d.ts +18 -0
- package/dist/tsdoc-metadata.json +11 -0
- package/dist/util-public.d.ts +852 -0
- package/dist/util.d.ts +911 -0
- package/package.json +6 -4
|
@@ -14,6 +14,9 @@
|
|
|
14
14
|
* See the License for the specific language governing permissions and
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
|
+
/**
|
|
18
|
+
* @internal
|
|
19
|
+
*/
|
|
17
20
|
export declare class DBWrapper {
|
|
18
21
|
private _db;
|
|
19
22
|
objectStoreNames: DOMStringList;
|
|
@@ -22,12 +25,18 @@ export declare class DBWrapper {
|
|
|
22
25
|
createObjectStore(storeName: string, options?: IDBObjectStoreParameters): ObjectStoreWrapper;
|
|
23
26
|
close(): void;
|
|
24
27
|
}
|
|
28
|
+
/**
|
|
29
|
+
* @internal
|
|
30
|
+
*/
|
|
25
31
|
declare class TransactionWrapper {
|
|
26
32
|
private _transaction;
|
|
27
33
|
complete: Promise<void>;
|
|
28
34
|
constructor(_transaction: IDBTransaction);
|
|
29
35
|
objectStore(storeName: string): ObjectStoreWrapper;
|
|
30
36
|
}
|
|
37
|
+
/**
|
|
38
|
+
* @internal
|
|
39
|
+
*/
|
|
31
40
|
declare class ObjectStoreWrapper {
|
|
32
41
|
private _store;
|
|
33
42
|
constructor(_store: IDBObjectStore);
|
|
@@ -38,11 +47,20 @@ declare class ObjectStoreWrapper {
|
|
|
38
47
|
delete(key: string): Promise<unknown>;
|
|
39
48
|
clear(): Promise<unknown>;
|
|
40
49
|
}
|
|
50
|
+
/**
|
|
51
|
+
* @internal
|
|
52
|
+
*/
|
|
41
53
|
declare class IndexWrapper {
|
|
42
54
|
private _index;
|
|
43
55
|
constructor(_index: IDBIndex);
|
|
44
56
|
get(key: string): Promise<unknown>;
|
|
45
57
|
}
|
|
58
|
+
/**
|
|
59
|
+
* @internal
|
|
60
|
+
*/
|
|
46
61
|
export declare function openDB(dbName: string, dbVersion: number, upgradeCallback: (db: DBWrapper, oldVersion: number, newVersion: number | null, transaction: TransactionWrapper) => void): Promise<DBWrapper>;
|
|
62
|
+
/**
|
|
63
|
+
* @internal
|
|
64
|
+
*/
|
|
47
65
|
export declare function deleteDB(dbName: string): Promise<void>;
|
|
48
66
|
export {};
|
package/dist/src/indexeddb.d.ts
CHANGED
|
@@ -14,6 +14,9 @@
|
|
|
14
14
|
* See the License for the specific language governing permissions and
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
|
+
/**
|
|
18
|
+
* @internal
|
|
19
|
+
*/
|
|
17
20
|
export declare class DBWrapper {
|
|
18
21
|
private _db;
|
|
19
22
|
objectStoreNames: DOMStringList;
|
|
@@ -22,12 +25,18 @@ export declare class DBWrapper {
|
|
|
22
25
|
createObjectStore(storeName: string, options?: IDBObjectStoreParameters): ObjectStoreWrapper;
|
|
23
26
|
close(): void;
|
|
24
27
|
}
|
|
28
|
+
/**
|
|
29
|
+
* @internal
|
|
30
|
+
*/
|
|
25
31
|
declare class TransactionWrapper {
|
|
26
32
|
private _transaction;
|
|
27
33
|
complete: Promise<void>;
|
|
28
34
|
constructor(_transaction: IDBTransaction);
|
|
29
35
|
objectStore(storeName: string): ObjectStoreWrapper;
|
|
30
36
|
}
|
|
37
|
+
/**
|
|
38
|
+
* @internal
|
|
39
|
+
*/
|
|
31
40
|
declare class ObjectStoreWrapper {
|
|
32
41
|
private _store;
|
|
33
42
|
constructor(_store: IDBObjectStore);
|
|
@@ -38,11 +47,20 @@ declare class ObjectStoreWrapper {
|
|
|
38
47
|
delete(key: string): Promise<unknown>;
|
|
39
48
|
clear(): Promise<unknown>;
|
|
40
49
|
}
|
|
50
|
+
/**
|
|
51
|
+
* @internal
|
|
52
|
+
*/
|
|
41
53
|
declare class IndexWrapper {
|
|
42
54
|
private _index;
|
|
43
55
|
constructor(_index: IDBIndex);
|
|
44
56
|
get(key: string): Promise<unknown>;
|
|
45
57
|
}
|
|
58
|
+
/**
|
|
59
|
+
* @internal
|
|
60
|
+
*/
|
|
46
61
|
export declare function openDB(dbName: string, dbVersion: number, upgradeCallback: (db: DBWrapper, oldVersion: number, newVersion: number | null, transaction: TransactionWrapper) => void): Promise<DBWrapper>;
|
|
62
|
+
/**
|
|
63
|
+
* @internal
|
|
64
|
+
*/
|
|
47
65
|
export declare function deleteDB(dbName: string): Promise<void>;
|
|
48
66
|
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// This file is read by tools that parse documentation comments conforming to the TSDoc standard.
|
|
2
|
+
// It should be published with your NPM package. It should not be tracked by Git.
|
|
3
|
+
{
|
|
4
|
+
"tsdocVersion": "0.12",
|
|
5
|
+
"toolPackages": [
|
|
6
|
+
{
|
|
7
|
+
"packageName": "@microsoft/api-extractor",
|
|
8
|
+
"packageVersion": "0.1.2"
|
|
9
|
+
}
|
|
10
|
+
]
|
|
11
|
+
}
|