@firebase/util 1.5.2 → 1.6.0
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.d.ts +0 -1
- package/dist/index.esm2017.js +1 -157
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +2 -168
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +0 -169
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.node.d.ts +0 -1
- package/dist/node-esm/index.d.ts +0 -1
- package/dist/node-esm/index.node.d.ts +0 -1
- package/dist/node-esm/index.node.esm.js +1 -157
- package/dist/node-esm/index.node.esm.js.map +1 -1
- package/dist/util-public.d.ts +0 -12
- package/dist/util.d.ts +0 -71
- package/package.json +1 -1
- package/dist/node-esm/src/indexeddb.d.ts +0 -66
- package/dist/src/indexeddb.d.ts +0 -66
package/dist/util.d.ts
CHANGED
|
@@ -180,34 +180,6 @@ export declare function createMockUserToken(token: EmulatorMockTokenOptions, pro
|
|
|
180
180
|
*/
|
|
181
181
|
export declare function createSubscribe<T>(executor: Executor<T>, onNoObservers?: Executor<T>): Subscribe<T>;
|
|
182
182
|
|
|
183
|
-
/**
|
|
184
|
-
* @license
|
|
185
|
-
* Copyright 2022 Google LLC
|
|
186
|
-
*
|
|
187
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
188
|
-
* you may not use this file except in compliance with the License.
|
|
189
|
-
* You may obtain a copy of the License at
|
|
190
|
-
*
|
|
191
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
192
|
-
*
|
|
193
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
194
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
195
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
196
|
-
* See the License for the specific language governing permissions and
|
|
197
|
-
* limitations under the License.
|
|
198
|
-
*/
|
|
199
|
-
/**
|
|
200
|
-
* @internal
|
|
201
|
-
*/
|
|
202
|
-
export declare class DBWrapper {
|
|
203
|
-
private _db;
|
|
204
|
-
objectStoreNames: DOMStringList;
|
|
205
|
-
constructor(_db: IDBDatabase);
|
|
206
|
-
transaction(storeNames: string[] | string, mode?: IDBTransactionMode): TransactionWrapper;
|
|
207
|
-
createObjectStore(storeName: string, options?: IDBObjectStoreParameters): ObjectStoreWrapper;
|
|
208
|
-
close(): void;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
183
|
/**
|
|
212
184
|
* Decodes a Firebase auth. token into constituent parts.
|
|
213
185
|
*
|
|
@@ -302,11 +274,6 @@ export declare class Deferred<R> {
|
|
|
302
274
|
wrapCallback(callback?: (error?: unknown, value?: unknown) => void): (error: unknown, value?: unknown) => void;
|
|
303
275
|
}
|
|
304
276
|
|
|
305
|
-
/**
|
|
306
|
-
* @internal
|
|
307
|
-
*/
|
|
308
|
-
export declare function deleteDB(dbName: string): Promise<void>;
|
|
309
|
-
|
|
310
277
|
export declare type EmulatorMockTokenOptions = ({
|
|
311
278
|
user_id: string;
|
|
312
279
|
} | {
|
|
@@ -491,15 +458,6 @@ export declare function getModularInstance<ExpService>(service: Compat<ExpServic
|
|
|
491
458
|
*/
|
|
492
459
|
export declare function getUA(): string;
|
|
493
460
|
|
|
494
|
-
/**
|
|
495
|
-
* @internal
|
|
496
|
-
*/
|
|
497
|
-
declare class IndexWrapper {
|
|
498
|
-
private _index;
|
|
499
|
-
constructor(_index: IDBIndex);
|
|
500
|
-
get(key: string): Promise<unknown>;
|
|
501
|
-
}
|
|
502
|
-
|
|
503
461
|
/**
|
|
504
462
|
* Attempts to peer into an auth token and determine if it's an admin auth token by looking at the claims portion.
|
|
505
463
|
*
|
|
@@ -651,20 +609,6 @@ export declare const MAX_VALUE_MILLIS: number;
|
|
|
651
609
|
*/
|
|
652
610
|
export declare type NextFn<T> = (value: T) => void;
|
|
653
611
|
|
|
654
|
-
/**
|
|
655
|
-
* @internal
|
|
656
|
-
*/
|
|
657
|
-
declare class ObjectStoreWrapper {
|
|
658
|
-
private _store;
|
|
659
|
-
constructor(_store: IDBObjectStore);
|
|
660
|
-
index(name: string): IndexWrapper;
|
|
661
|
-
createIndex(name: string, keypath: string, options: IDBIndexParameters): IndexWrapper;
|
|
662
|
-
get(key: string): Promise<unknown>;
|
|
663
|
-
put(value: unknown, key?: string): Promise<unknown>;
|
|
664
|
-
delete(key: string): Promise<unknown>;
|
|
665
|
-
clear(): Promise<unknown>;
|
|
666
|
-
}
|
|
667
|
-
|
|
668
612
|
export declare interface Observable<T> {
|
|
669
613
|
subscribe: Subscribe<T>;
|
|
670
614
|
}
|
|
@@ -675,11 +619,6 @@ export declare interface Observer<T> {
|
|
|
675
619
|
complete: CompleteFn;
|
|
676
620
|
}
|
|
677
621
|
|
|
678
|
-
/**
|
|
679
|
-
* @internal
|
|
680
|
-
*/
|
|
681
|
-
export declare function openDB(dbName: string, dbVersion: number, upgradeCallback: (db: DBWrapper, oldVersion: number, newVersion: number | null, transaction: TransactionWrapper) => void): Promise<DBWrapper>;
|
|
682
|
-
|
|
683
622
|
/**
|
|
684
623
|
* @license
|
|
685
624
|
* Copyright 2020 Google LLC
|
|
@@ -864,16 +803,6 @@ export declare interface Subscribe<T> {
|
|
|
864
803
|
(observer: PartialObserver<T>): Unsubscribe;
|
|
865
804
|
}
|
|
866
805
|
|
|
867
|
-
/**
|
|
868
|
-
* @internal
|
|
869
|
-
*/
|
|
870
|
-
declare class TransactionWrapper {
|
|
871
|
-
private _transaction;
|
|
872
|
-
complete: Promise<void>;
|
|
873
|
-
constructor(_transaction: IDBTransaction);
|
|
874
|
-
objectStore(storeName: string): ObjectStoreWrapper;
|
|
875
|
-
}
|
|
876
|
-
|
|
877
806
|
export declare type Unsubscribe = () => void;
|
|
878
807
|
|
|
879
808
|
/**
|
package/package.json
CHANGED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2022 Google LLC
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
17
|
-
/**
|
|
18
|
-
* @internal
|
|
19
|
-
*/
|
|
20
|
-
export declare class DBWrapper {
|
|
21
|
-
private _db;
|
|
22
|
-
objectStoreNames: DOMStringList;
|
|
23
|
-
constructor(_db: IDBDatabase);
|
|
24
|
-
transaction(storeNames: string[] | string, mode?: IDBTransactionMode): TransactionWrapper;
|
|
25
|
-
createObjectStore(storeName: string, options?: IDBObjectStoreParameters): ObjectStoreWrapper;
|
|
26
|
-
close(): void;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* @internal
|
|
30
|
-
*/
|
|
31
|
-
declare class TransactionWrapper {
|
|
32
|
-
private _transaction;
|
|
33
|
-
complete: Promise<void>;
|
|
34
|
-
constructor(_transaction: IDBTransaction);
|
|
35
|
-
objectStore(storeName: string): ObjectStoreWrapper;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* @internal
|
|
39
|
-
*/
|
|
40
|
-
declare class ObjectStoreWrapper {
|
|
41
|
-
private _store;
|
|
42
|
-
constructor(_store: IDBObjectStore);
|
|
43
|
-
index(name: string): IndexWrapper;
|
|
44
|
-
createIndex(name: string, keypath: string, options: IDBIndexParameters): IndexWrapper;
|
|
45
|
-
get(key: string): Promise<unknown>;
|
|
46
|
-
put(value: unknown, key?: string): Promise<unknown>;
|
|
47
|
-
delete(key: string): Promise<unknown>;
|
|
48
|
-
clear(): Promise<unknown>;
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* @internal
|
|
52
|
-
*/
|
|
53
|
-
declare class IndexWrapper {
|
|
54
|
-
private _index;
|
|
55
|
-
constructor(_index: IDBIndex);
|
|
56
|
-
get(key: string): Promise<unknown>;
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* @internal
|
|
60
|
-
*/
|
|
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
|
-
*/
|
|
65
|
-
export declare function deleteDB(dbName: string): Promise<void>;
|
|
66
|
-
export {};
|
package/dist/src/indexeddb.d.ts
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2022 Google LLC
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
17
|
-
/**
|
|
18
|
-
* @internal
|
|
19
|
-
*/
|
|
20
|
-
export declare class DBWrapper {
|
|
21
|
-
private _db;
|
|
22
|
-
objectStoreNames: DOMStringList;
|
|
23
|
-
constructor(_db: IDBDatabase);
|
|
24
|
-
transaction(storeNames: string[] | string, mode?: IDBTransactionMode): TransactionWrapper;
|
|
25
|
-
createObjectStore(storeName: string, options?: IDBObjectStoreParameters): ObjectStoreWrapper;
|
|
26
|
-
close(): void;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* @internal
|
|
30
|
-
*/
|
|
31
|
-
declare class TransactionWrapper {
|
|
32
|
-
private _transaction;
|
|
33
|
-
complete: Promise<void>;
|
|
34
|
-
constructor(_transaction: IDBTransaction);
|
|
35
|
-
objectStore(storeName: string): ObjectStoreWrapper;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* @internal
|
|
39
|
-
*/
|
|
40
|
-
declare class ObjectStoreWrapper {
|
|
41
|
-
private _store;
|
|
42
|
-
constructor(_store: IDBObjectStore);
|
|
43
|
-
index(name: string): IndexWrapper;
|
|
44
|
-
createIndex(name: string, keypath: string, options: IDBIndexParameters): IndexWrapper;
|
|
45
|
-
get(key: string): Promise<unknown>;
|
|
46
|
-
put(value: unknown, key?: string): Promise<unknown>;
|
|
47
|
-
delete(key: string): Promise<unknown>;
|
|
48
|
-
clear(): Promise<unknown>;
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* @internal
|
|
52
|
-
*/
|
|
53
|
-
declare class IndexWrapper {
|
|
54
|
-
private _index;
|
|
55
|
-
constructor(_index: IDBIndex);
|
|
56
|
-
get(key: string): Promise<unknown>;
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* @internal
|
|
60
|
-
*/
|
|
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
|
-
*/
|
|
65
|
-
export declare function deleteDB(dbName: string): Promise<void>;
|
|
66
|
-
export {};
|