@hot-updater/plugin-core 0.32.0 → 0.33.1

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.
@@ -1,14 +1,12 @@
1
1
  import { DatabasePlugin, DatabasePluginHooks } from "./types/index.cjs";
2
2
 
3
3
  //#region src/createBlobDatabasePlugin.d.ts
4
- interface BlobDatabasePluginConfig {
5
- managementIndexPageSize?: number;
6
- }
7
4
  interface BlobOperations {
8
5
  listObjects: (prefix: string) => Promise<string[]>;
9
6
  loadObject: <T>(key: string) => Promise<T | null>;
10
7
  uploadObject: <T>(key: string, data: T) => Promise<void>;
11
8
  deleteObject: (key: string) => Promise<void>;
9
+ shouldSkipLoadObjectError?: (error: unknown, key: string) => boolean;
12
10
  invalidatePaths: (paths: string[]) => Promise<void>;
13
11
  apiBasePath: string;
14
12
  }
@@ -27,4 +25,4 @@ declare const createBlobDatabasePlugin: <TConfig>({
27
25
  factory: (config: TConfig) => BlobOperations;
28
26
  }) => (config: TConfig, hooks?: DatabasePluginHooks) => () => DatabasePlugin<unknown>;
29
27
  //#endregion
30
- export { BlobDatabasePluginConfig, BlobOperations, createBlobDatabasePlugin };
28
+ export { BlobOperations, createBlobDatabasePlugin };
@@ -1,14 +1,12 @@
1
1
  import { DatabasePlugin, DatabasePluginHooks } from "./types/index.mjs";
2
2
 
3
3
  //#region src/createBlobDatabasePlugin.d.ts
4
- interface BlobDatabasePluginConfig {
5
- managementIndexPageSize?: number;
6
- }
7
4
  interface BlobOperations {
8
5
  listObjects: (prefix: string) => Promise<string[]>;
9
6
  loadObject: <T>(key: string) => Promise<T | null>;
10
7
  uploadObject: <T>(key: string, data: T) => Promise<void>;
11
8
  deleteObject: (key: string) => Promise<void>;
9
+ shouldSkipLoadObjectError?: (error: unknown, key: string) => boolean;
12
10
  invalidatePaths: (paths: string[]) => Promise<void>;
13
11
  apiBasePath: string;
14
12
  }
@@ -27,4 +25,4 @@ declare const createBlobDatabasePlugin: <TConfig>({
27
25
  factory: (config: TConfig) => BlobOperations;
28
26
  }) => (config: TConfig, hooks?: DatabasePluginHooks) => () => DatabasePlugin<unknown>;
29
27
  //#endregion
30
- export { BlobDatabasePluginConfig, BlobOperations, createBlobDatabasePlugin };
28
+ export { BlobOperations, createBlobDatabasePlugin };