@sv443-network/coreutils 3.0.1 → 3.0.2
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
CHANGED
|
@@ -42,10 +42,10 @@ export type StoreFilter = string[] | ((id: string) => boolean);
|
|
|
42
42
|
*
|
|
43
43
|
* - ⚠️ Needs to run in a secure context (HTTPS) due to the use of the SubtleCrypto API if checksumming is enabled.
|
|
44
44
|
*/
|
|
45
|
-
export declare class DataStoreSerializer
|
|
46
|
-
protected stores: DataStore<
|
|
45
|
+
export declare class DataStoreSerializer {
|
|
46
|
+
protected stores: DataStore<DataStoreData>[];
|
|
47
47
|
protected options: Required<DataStoreSerializerOptions>;
|
|
48
|
-
constructor(stores: DataStore<
|
|
48
|
+
constructor(stores: DataStore<DataStoreData>[], options?: DataStoreSerializerOptions);
|
|
49
49
|
/** Calculates the checksum of a string */
|
|
50
50
|
protected calcChecksum(input: string): Promise<string>;
|
|
51
51
|
/**
|
|
@@ -114,5 +114,5 @@ export declare class DataStoreSerializer<TData extends DataStoreData> {
|
|
|
114
114
|
/** Checks if a given value is a SerializedDataStore object */
|
|
115
115
|
static isSerializedDataStoreObj(obj: unknown): obj is SerializedDataStore;
|
|
116
116
|
/** Returns the DataStore instances whose IDs match the provided array or function */
|
|
117
|
-
protected getStoresFiltered(stores?: StoreFilter): DataStore<
|
|
117
|
+
protected getStoresFiltered(stores?: StoreFilter): DataStore<DataStoreData>[];
|
|
118
118
|
}
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sv443-network/coreutils",
|
|
3
3
|
"libName": "@sv443-network/coreutils",
|
|
4
|
-
"version": "3.0.
|
|
4
|
+
"version": "3.0.2",
|
|
5
5
|
"description": "Cross-platform, general-purpose, JavaScript core library for Node, Deno and the browser. Intended to be used in conjunction with `@sv443-network/userutils` and `@sv443-network/djsutils`, but can be used independently as well.",
|
|
6
6
|
"main": "dist/CoreUtils.cjs",
|
|
7
7
|
"module": "dist/CoreUtils.mjs",
|
|
8
8
|
"types": "dist/lib/index.d.ts",
|
|
9
9
|
"exports": {
|
|
10
10
|
".": {
|
|
11
|
-
"browser": "./dist/CoreUtils.
|
|
11
|
+
"browser": "./dist/CoreUtils.mjs",
|
|
12
12
|
"types": "./dist/lib/index.d.ts",
|
|
13
13
|
"require": "./dist/CoreUtils.cjs",
|
|
14
14
|
"import": "./dist/CoreUtils.mjs"
|