@salesforce/nimbus-plugin-lds 1.320.0 → 1.322.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 +5 -12
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -435,12 +435,10 @@ class MockNimbusNetworkAdapter {
|
|
|
435
435
|
throw Error('Method not implemented.');
|
|
436
436
|
}
|
|
437
437
|
setAsGlobalNimbusPlugin() {
|
|
438
|
-
var _a;
|
|
439
438
|
globalThis.__nimbus = {
|
|
440
439
|
...(globalThis.__nimbus || {}),
|
|
441
440
|
plugins: {
|
|
442
|
-
|
|
443
|
-
...(((_a = globalThis.__nimbus) === null || _a === void 0 ? void 0 : _a.plugins) || {}),
|
|
441
|
+
...(globalThis.__nimbus?.plugins || {}),
|
|
444
442
|
LdsNetworkAdapter: this,
|
|
445
443
|
},
|
|
446
444
|
};
|
|
@@ -448,12 +446,10 @@ class MockNimbusNetworkAdapter {
|
|
|
448
446
|
}
|
|
449
447
|
|
|
450
448
|
function mockNimbusBinaryStorePlugin(plugin) {
|
|
451
|
-
var _a;
|
|
452
449
|
globalThis.__nimbus = {
|
|
453
450
|
...(globalThis.__nimbus || {}),
|
|
454
451
|
plugins: {
|
|
455
|
-
|
|
456
|
-
...(((_a = globalThis.__nimbus) === null || _a === void 0 ? void 0 : _a.plugins) || {}),
|
|
452
|
+
...(globalThis.__nimbus?.plugins || {}),
|
|
457
453
|
LdsBinaryStorePlugin: plugin,
|
|
458
454
|
},
|
|
459
455
|
};
|
|
@@ -532,9 +528,8 @@ class MockNimbusBinaryStorePlugin {
|
|
|
532
528
|
onSuccess(uri);
|
|
533
529
|
}
|
|
534
530
|
closeStream(uri, onSuccess, _onError) {
|
|
535
|
-
|
|
536
|
-
const
|
|
537
|
-
const type = (_b = this.streamTypes.get(uri)) !== null && _b !== void 0 ? _b : 'undefined';
|
|
531
|
+
const data = this.streamsInProgress.get(uri) ?? new Uint8Array();
|
|
532
|
+
const type = this.streamTypes.get(uri) ?? 'undefined';
|
|
538
533
|
this.streamsInProgress.delete(uri);
|
|
539
534
|
this.streamTypes.delete(uri);
|
|
540
535
|
// also add it to the store for testing
|
|
@@ -551,12 +546,10 @@ class MockNimbusBinaryStorePlugin {
|
|
|
551
546
|
}
|
|
552
547
|
|
|
553
548
|
function mockJSLoggerPlugin(plugin) {
|
|
554
|
-
var _a;
|
|
555
549
|
globalThis.__nimbus = {
|
|
556
550
|
...(globalThis.__nimbus || {}),
|
|
557
551
|
plugins: {
|
|
558
|
-
|
|
559
|
-
...(((_a = globalThis.__nimbus) === null || _a === void 0 ? void 0 : _a.plugins) || {}),
|
|
552
|
+
...(globalThis.__nimbus?.plugins || {}),
|
|
560
553
|
JSLoggerPlugin: plugin,
|
|
561
554
|
},
|
|
562
555
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/nimbus-plugin-lds",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.322.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.
|
|
28
|
+
"@salesforce/lds-store-sql": "^1.322.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",
|