@salesforce/nimbus-plugin-lds 1.387.0 → 1.389.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 CHANGED
@@ -459,19 +459,6 @@ class MockNimbusBinaryStorePlugin {
459
459
  this.streamsInProgress = new Map();
460
460
  this.streamTypes = new Map();
461
461
  }
462
- storeBinary(data, type, size, onSuccess, _onError) {
463
- const uri = this.counter.toString();
464
- this.counter++;
465
- this.store.set(uri, {
466
- data,
467
- type,
468
- size,
469
- canonicalUrl: null,
470
- ttlSeconds: null,
471
- expiration: null,
472
- });
473
- onSuccess(uri);
474
- }
475
462
  cacheBinary(url, ttlSeconds, onSuccess, _onError) {
476
463
  // not gonna actually download a file in this mock impl
477
464
  const mockData = new Uint8Array([1, 2, 3, 4, 5]);
@@ -19,18 +19,6 @@ declare module 'nimbus-types' {
19
19
  *
20
20
  */
21
21
  export interface BinaryStorePlugin {
22
- /**
23
- * Stores a binary file in the store. The file will not have a TTL. This is
24
- * meant to store local-only files.
25
- *
26
- * @param data The data of the binary file to put into the store.
27
- * @param type The MIME type of the binary file. Ex: "image/png".
28
- * @param size The number of bytes of data contained within the file.
29
- * @param onSuccess Callback to call with the string representing the URI of
30
- * the binary file.
31
- * @param onError Callback to call if there was an error.
32
- */
33
- storeBinary(data: Uint8Array, type: string, size: number, onSuccess: (uri: string) => void, onError: (errorMessage: string) => void): void;
34
22
  /**
35
23
  * Caches a binary file in the store. This is meant to locally cache a file
36
24
  * thats source-of-truth exists at the given URL.
@@ -13,7 +13,6 @@ export declare class MockNimbusBinaryStorePlugin implements BinaryStorePlugin {
13
13
  private store;
14
14
  private streamsInProgress;
15
15
  private streamTypes;
16
- storeBinary(data: Uint8Array, type: string, size: number, onSuccess: (uri: string) => void, _onError: (errorMessage: string) => void): void;
17
16
  cacheBinary(url: string, ttlSeconds: number, onSuccess: (uri: string) => void, _onError: (errorMessage: string) => void): void;
18
17
  removeBinary(uri: string, onSuccess: (wasFound: boolean) => void, _onError: (errorMessage: string) => void): void;
19
18
  setCanonicalUrl(uri: string, canonicalUrl: string, ttlSeconds: number, onSuccess: (uri: string) => void, onError: (errorMessage: string) => void): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/nimbus-plugin-lds",
3
- "version": "1.387.0",
3
+ "version": "1.389.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.387.0",
28
+ "@salesforce/lds-store-sql": "^1.389.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",