@salesforce/nimbus-plugin-lds 1.332.0-dev2 → 1.332.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 +0 -6
- package/dist/types/JsSqliteStorePlugin/JsSqliteStorePlugin.d.ts +0 -1
- package/dist/types/JsSqliteStorePlugin/JsSqliteStorePluginBase.d.ts +0 -1
- package/dist/types/JsSqliteStorePlugin/JsWorkerSqliteStorePlugin.d.ts +0 -1
- package/dist/types/SqliteStorePlugin.d.ts +0 -4
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -258,9 +258,6 @@ class JsSqliteStorePlugin extends JsSqliteStorePluginBase {
|
|
|
258
258
|
onCompletion(message);
|
|
259
259
|
}
|
|
260
260
|
}
|
|
261
|
-
supportsBatchUpdates() {
|
|
262
|
-
return Promise.resolve(true);
|
|
263
|
-
}
|
|
264
261
|
}
|
|
265
262
|
|
|
266
263
|
var WorkerClass = null;
|
|
@@ -400,9 +397,6 @@ class JsSqliteStoreWebWorkerPlugin extends JsSqliteStorePluginBase {
|
|
|
400
397
|
});
|
|
401
398
|
return Promise.resolve();
|
|
402
399
|
}
|
|
403
|
-
supportsBatchUpdates() {
|
|
404
|
-
return Promise.resolve(true);
|
|
405
|
-
}
|
|
406
400
|
}
|
|
407
401
|
|
|
408
402
|
/*eslint-env es2020 */
|
|
@@ -19,6 +19,5 @@ 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(): Promise<boolean>;
|
|
23
22
|
}
|
|
24
23
|
export {};
|
|
@@ -6,7 +6,6 @@ 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(): Promise<boolean>;
|
|
10
9
|
registerOnChangedListener(listener: (changes: SqliteStoreChange[]) => void): Promise<string>;
|
|
11
10
|
unsubscribeOnChangedListener(id: string): Promise<void>;
|
|
12
11
|
protected notifyListeners(operations: SqliteOperation[]): void;
|
|
@@ -9,5 +9,4 @@ 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(): Promise<boolean>;
|
|
13
12
|
}
|
|
@@ -29,10 +29,6 @@ export interface SqliteStorePlugin {
|
|
|
29
29
|
* @param id the identifier given from registerOnChangedListener
|
|
30
30
|
*/
|
|
31
31
|
unsubscribeOnChangedListener(id: string): Promise<void>;
|
|
32
|
-
/**
|
|
33
|
-
* check for older native plugins that do not yet support the update batch operations
|
|
34
|
-
*/
|
|
35
|
-
supportsBatchUpdates(): Promise<boolean>;
|
|
36
32
|
}
|
|
37
33
|
/**
|
|
38
34
|
* 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.332.0
|
|
3
|
+
"version": "1.332.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",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@rollup/plugin-wasm": "^5.2.0",
|
|
28
|
-
"@salesforce/lds-store-sql": "^1.332.0
|
|
28
|
+
"@salesforce/lds-store-sql": "^1.332.0",
|
|
29
29
|
"@types/sql.js": "1.4.4",
|
|
30
30
|
"nimbus-types": "^2.0.0-alpha1",
|
|
31
31
|
"rollup-plugin-string": "^3.0.0",
|