next-box 2.5.77 → 2.5.78

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.
@@ -67,7 +67,7 @@ export declare class StorageApi extends Api {
67
67
  /**
68
68
  * Submit a file change request
69
69
  */
70
- replace(body: any, path?: string, options?: ReplaceOption): Promise<StorageElement>;
70
+ replace(body: any, path?: string, options?: ReplaceOption): Promise<ResponseItem<StorageElement>>;
71
71
  /**
72
72
  * Synchronous writing to files
73
73
  */
@@ -1,4 +1,4 @@
1
- import { StorageCreateConfig } from '../api';
1
+ import { ResponseItem, StorageCreateConfig } from '../api';
2
2
  import { AppState, StorageElement } from '../types';
3
3
  import { Api } from './api';
4
4
  declare const VERSION: unique symbol;
@@ -24,9 +24,9 @@ export declare class FileEngine<T> extends Api {
24
24
  migration(version: number, upgrade: MigrateHandler): void;
25
25
  info(): Promise<StorageElement>;
26
26
  download(): Promise<T>;
27
- create(body: T, config?: StorageCreateConfig): Promise<StorageElement>;
27
+ create(body: T, config?: StorageCreateConfig): Promise<ResponseItem<StorageElement>>;
28
28
  delete(hard?: boolean): Promise<null>;
29
- replace(body: T): Promise<StorageElement>;
29
+ replace(body: T): Promise<ResponseItem<StorageElement>>;
30
30
  liveReplace(body: any, finalize?: () => void): void;
31
31
  private runMigrate;
32
32
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-box",
3
- "version": "2.5.77",
3
+ "version": "2.5.78",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",