@e-mc/cloud 0.5.13 → 0.5.15

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/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import type { CloudConstructor, IFileManager } from '../types/lib';
2
- import type { CloudAsset } from '../types/lib/cloud';
3
-
4
- declare const Cloud: CloudConstructor<IFileManager<CloudAsset>>;
5
-
1
+ import type { CloudConstructor, IFileManager } from '@e-mc/types/lib';
2
+ import type { CloudAsset } from '@e-mc/types/lib/cloud';
3
+
4
+ declare const Cloud: CloudConstructor<IFileManager<CloudAsset>>;
5
+
6
6
  export = Cloud;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-mc/cloud",
3
- "version": "0.5.13",
3
+ "version": "0.5.15",
4
4
  "description": "Cloud constructor for E-mc.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -20,8 +20,8 @@
20
20
  "license": "MIT",
21
21
  "homepage": "https://github.com/anpham6/e-mc#readme",
22
22
  "dependencies": {
23
- "@e-mc/core": "0.5.13",
24
- "@e-mc/db": "0.5.13",
25
- "@e-mc/types": "0.5.13"
23
+ "@e-mc/core": "0.5.15",
24
+ "@e-mc/db": "0.5.15",
25
+ "@e-mc/types": "0.5.15"
26
26
  }
27
27
  }
package/types/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import type { ICloud, IFileManager, IModule, IScopeOrigin } from '../../types/lib';
2
- import type { BucketWebsiteOptions, CloudAsset, CloudDatabase, CloudService, CloudStorageUpload, DownloadData, UploadData } from '../../types/lib/cloud';
3
- import type { BatchQueryResult, QueryResult } from '../../types/lib/db';
1
+ import type { ICloud, IFileManager, IModule, IScopeOrigin } from '@e-mc/types/lib';
2
+ import type { BucketWebsiteOptions, CloudAsset, CloudDatabase, CloudService, CloudStorageUpload, DownloadData, UploadData } from '@e-mc/types/lib/cloud';
3
+ import type { BatchQueryResult, QueryResult } from '@e-mc/types/lib/db';
4
4
 
5
5
  export interface ICloudServiceClient<T extends CloudDatabase = CloudDatabase> {
6
6
  validateStorage?(credential: unknown, data?: CloudService): boolean;
@@ -26,6 +26,6 @@ export interface CloudScopeOrigin<T extends IFileManager<U>, U extends CloudAsse
26
26
 
27
27
  export type ServiceHost<T> = (this: IModule, credential: unknown, service?: string, sdk?: string) => T;
28
28
  export type UploadCallback = (data: UploadData, callback: (err: unknown, value?: string) => void) => void;
29
- export type DownloadCallback = (data: DownloadData, callback: (err: unknown, value?: Null<BufferContent>) => void) => void;
29
+ export type DownloadCallback = (data: DownloadData, callback: (err: unknown, value?: Null<string | Buffer>) => void) => void;
30
30
  export type UploadHost = ServiceHost<UploadCallback>;
31
31
  export type DownloadHost = ServiceHost<DownloadCallback>;