@salesforce/nimbus-plugin-lds 1.245.0 → 1.246.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/dist/index.js +2 -2
- package/dist/types/JsSqliteStorePlugin/JsSqliteStorePlugin.d.ts +1 -1
- package/dist/types/JsSqliteStorePlugin/JsSqliteStorePluginBase.d.ts +1 -1
- package/dist/types/JsSqliteStorePlugin/JsWorkerSqliteStorePlugin.d.ts +1 -1
- package/dist/types/SqliteStorePlugin.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -250,7 +250,7 @@ class JsSqliteStorePlugin extends JsSqliteStorePluginBase {
|
|
|
250
250
|
}
|
|
251
251
|
}
|
|
252
252
|
supportsBatchUpdates() {
|
|
253
|
-
return true;
|
|
253
|
+
return Promise.resolve(true);
|
|
254
254
|
}
|
|
255
255
|
}
|
|
256
256
|
|
|
@@ -392,7 +392,7 @@ class JsSqliteStoreWebWorkerPlugin extends JsSqliteStorePluginBase {
|
|
|
392
392
|
return Promise.resolve();
|
|
393
393
|
}
|
|
394
394
|
supportsBatchUpdates() {
|
|
395
|
-
return true;
|
|
395
|
+
return Promise.resolve(true);
|
|
396
396
|
}
|
|
397
397
|
}
|
|
398
398
|
|
|
@@ -19,6 +19,6 @@ export declare class JsSqliteStorePlugin extends JsSqliteStorePluginBase impleme
|
|
|
19
19
|
resetDatabase(): void;
|
|
20
20
|
query(sql: string, params: SqliteType[], onResult: (result: SqliteResult) => void, onError: (message: string) => void): Promise<void>;
|
|
21
21
|
batchOperations(operations: SqliteOperation[], onCompletion: (error: string | null) => void): Promise<void>;
|
|
22
|
-
supportsBatchUpdates(): boolean
|
|
22
|
+
supportsBatchUpdates(): Promise<boolean>;
|
|
23
23
|
}
|
|
24
24
|
export {};
|
|
@@ -6,7 +6,7 @@ export declare abstract class JsSqliteStorePluginBase implements SqliteStorePlug
|
|
|
6
6
|
protected listeners: ListenerMap;
|
|
7
7
|
abstract query(sql: string, params: SqliteType[], onResult: (result: SqliteResult) => void, onError: (message: string) => void): Promise<void>;
|
|
8
8
|
abstract batchOperations(operations: SqliteOperation[], onCompletion: (error: string | null) => void): Promise<void>;
|
|
9
|
-
abstract supportsBatchUpdates(): boolean
|
|
9
|
+
abstract supportsBatchUpdates(): Promise<boolean>;
|
|
10
10
|
registerOnChangedListener(listener: (changes: SqliteStoreChange[]) => void): Promise<string>;
|
|
11
11
|
unsubscribeOnChangedListener(id: string): Promise<void>;
|
|
12
12
|
protected notifyListeners(operations: SqliteOperation[]): void;
|
|
@@ -9,5 +9,5 @@ export declare class JsSqliteStoreWebWorkerPlugin extends JsSqliteStorePluginBas
|
|
|
9
9
|
constructor();
|
|
10
10
|
query(sql: string, params: SqliteType[], onResult: (result: SqliteResult) => void, onError: (message: string) => void): Promise<void>;
|
|
11
11
|
batchOperations(operations: SqliteOperation[], onCompletion: (error: string | null) => void): Promise<void>;
|
|
12
|
-
supportsBatchUpdates(): boolean
|
|
12
|
+
supportsBatchUpdates(): Promise<boolean>;
|
|
13
13
|
}
|
|
@@ -32,7 +32,7 @@ export interface SqliteStorePlugin {
|
|
|
32
32
|
/**
|
|
33
33
|
* check for older native plugins that do not yet support the update batch operations
|
|
34
34
|
*/
|
|
35
|
-
supportsBatchUpdates(): boolean
|
|
35
|
+
supportsBatchUpdates(): Promise<boolean>;
|
|
36
36
|
}
|
|
37
37
|
/**
|
|
38
38
|
* An operation to perform on the database.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/nimbus-plugin-lds",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.246.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "Nimbus plugins for LDS on Mobile native integrations: durable store, networking, and draft queue.",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|