@e-mc/cloud 0.13.8 → 0.13.9

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/README.md CHANGED
@@ -9,7 +9,7 @@
9
9
 
10
10
  ## Interface
11
11
 
12
- * [View Source](https://www.unpkg.com/@e-mc/types@0.13.8/lib/index.d.ts)
12
+ * [View Source](https://www.unpkg.com/@e-mc/types@0.13.9/lib/index.d.ts)
13
13
 
14
14
  ```typescript
15
15
  import type { IFileManager, IHost, IScopeOrigin } from "./index";
@@ -180,12 +180,12 @@ const rows = await instance.getDatabaseRows({ service: "aws-v3", credential: "ma
180
180
 
181
181
  ## References
182
182
 
183
- - https://www.unpkg.com/@e-mc/types@0.13.8/lib/asset.d.ts
184
- - https://www.unpkg.com/@e-mc/types@0.13.8/lib/cloud.d.ts
185
- - https://www.unpkg.com/@e-mc/types@0.13.8/lib/core.d.ts
186
- - https://www.unpkg.com/@e-mc/types@0.13.8/lib/db.d.ts
187
- - https://www.unpkg.com/@e-mc/types@0.13.8/lib/logger.d.ts
188
- - https://www.unpkg.com/@e-mc/types@0.13.8/lib/settings.d.ts
183
+ - https://www.unpkg.com/@e-mc/types@0.13.9/lib/asset.d.ts
184
+ - https://www.unpkg.com/@e-mc/types@0.13.9/lib/cloud.d.ts
185
+ - https://www.unpkg.com/@e-mc/types@0.13.9/lib/core.d.ts
186
+ - https://www.unpkg.com/@e-mc/types@0.13.9/lib/db.d.ts
187
+ - https://www.unpkg.com/@e-mc/types@0.13.9/lib/logger.d.ts
188
+ - https://www.unpkg.com/@e-mc/types@0.13.9/lib/settings.d.ts
189
189
 
190
190
  ## LICENSE
191
191
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-mc/cloud",
3
- "version": "0.13.8",
3
+ "version": "0.13.9",
4
4
  "description": "Cloud constructor for E-mc.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -19,9 +19,9 @@
19
19
  "license": "BSD-3-Clause",
20
20
  "homepage": "https://github.com/anpham6/e-mc#readme",
21
21
  "dependencies": {
22
- "@e-mc/core": "0.13.8",
23
- "@e-mc/db": "0.13.8",
24
- "@e-mc/types": "0.13.8",
22
+ "@e-mc/core": "0.13.9",
23
+ "@e-mc/db": "0.13.9",
24
+ "@e-mc/types": "0.13.9",
25
25
  "mime-types": "^3.0.2"
26
26
  }
27
27
  }
package/types/index.d.ts CHANGED
@@ -34,7 +34,7 @@ export interface CloudScopeOrigin<T extends IFileManager<U>, U extends CloudAsse
34
34
  }
35
35
 
36
36
  export type ServiceHost<T, U = unknown> = (this: IModule, credential: U, service?: string, sdk?: string) => T;
37
- export type UploadCallback = (data: UploadData, callback: (err: unknown, value?: string) => void) => void;
38
- export type DownloadCallback = (data: DownloadData, callback: (err: unknown, value?: string | Buffer | null) => void) => void;
37
+ export type UploadCallback<T = any> = (data: UploadData<T, any, any, any, any, any, any, any>, callback: (err: unknown, value?: string) => void) => void;
38
+ export type DownloadCallback<T = any> = (data: DownloadData<T, any, any>, callback: (err: unknown, value?: string | Buffer | null) => void) => void;
39
39
  export type UploadHost = ServiceHost<UploadCallback>;
40
40
  export type DownloadHost = ServiceHost<DownloadCallback>;