@e-mc/cloud 0.10.2 → 0.10.4

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.10.2/lib/index.d.ts)
12
+ * [View Source](https://www.unpkg.com/@e-mc/types@0.10.4/lib/index.d.ts)
13
13
 
14
14
  ```typescript
15
15
  import type { IHost, IScopeOrigin } from "./index";
@@ -174,12 +174,12 @@ const rows = await instance.getDatabaseRows({ service: "aws-v3", credential: "ma
174
174
 
175
175
  ## References
176
176
 
177
- - https://www.unpkg.com/@e-mc/types@0.10.2/lib/asset.d.ts
178
- - https://www.unpkg.com/@e-mc/types@0.10.2/lib/cloud.d.ts
179
- - https://www.unpkg.com/@e-mc/types@0.10.2/lib/core.d.ts
180
- - https://www.unpkg.com/@e-mc/types@0.10.2/lib/db.d.ts
181
- - https://www.unpkg.com/@e-mc/types@0.10.2/lib/logger.d.ts
182
- - https://www.unpkg.com/@e-mc/types@0.10.2/lib/settings.d.ts
177
+ - https://www.unpkg.com/@e-mc/types@0.10.4/lib/asset.d.ts
178
+ - https://www.unpkg.com/@e-mc/types@0.10.4/lib/cloud.d.ts
179
+ - https://www.unpkg.com/@e-mc/types@0.10.4/lib/core.d.ts
180
+ - https://www.unpkg.com/@e-mc/types@0.10.4/lib/db.d.ts
181
+ - https://www.unpkg.com/@e-mc/types@0.10.4/lib/logger.d.ts
182
+ - https://www.unpkg.com/@e-mc/types@0.10.4/lib/settings.d.ts
183
183
 
184
184
  ## LICENSE
185
185
 
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/index.js CHANGED
@@ -2,8 +2,8 @@
2
2
  const path = require("path");
3
3
  const fs = require("fs");
4
4
  const crypto = require("crypto");
5
- const core_1 = require("@e-mc/core");
6
5
  const types_1 = require("@e-mc/types");
6
+ const core_1 = require("@e-mc/core");
7
7
  const SERVICE_CLIENT = new Map();
8
8
  const SERVICE_UPLOAD = {};
9
9
  const SERVICE_DOWNLOAD = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-mc/cloud",
3
- "version": "0.10.2",
3
+ "version": "0.10.4",
4
4
  "description": "Cloud constructor for E-mc.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -17,12 +17,12 @@
17
17
  "squared-functions"
18
18
  ],
19
19
  "author": "An Pham <anpham6@gmail.com>",
20
- "license": "BSD 3-Clause",
20
+ "license": "BSD-3-Clause",
21
21
  "homepage": "https://github.com/anpham6/e-mc#readme",
22
22
  "dependencies": {
23
- "@e-mc/core": "0.10.2",
24
- "@e-mc/db": "0.10.2",
25
- "@e-mc/types": "0.10.2",
23
+ "@e-mc/core": "0.10.4",
24
+ "@e-mc/db": "0.10.4",
25
+ "@e-mc/types": "0.10.4",
26
26
  "mime-types": "^2.1.35"
27
27
  }
28
28
  }
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, U = unknown, V = unknown> {
6
6
  CLOUD_SERVICE_NAME: string;
@@ -32,6 +32,6 @@ export interface CloudScopeOrigin<T extends IFileManager<U>, U extends CloudAsse
32
32
 
33
33
  export type ServiceHost<T, U = unknown> = (this: IModule, credential: U, service?: string, sdk?: string) => T;
34
34
  export type UploadCallback = (data: UploadData, callback: (err: unknown, value?: string) => void) => void;
35
- export type DownloadCallback = (data: DownloadData, callback: (err: unknown, value?: Null<Bufferable>) => void) => void;
35
+ export type DownloadCallback = (data: DownloadData, callback: (err: unknown, value?: Null<string | Buffer>) => void) => void;
36
36
  export type UploadHost = ServiceHost<UploadCallback>;
37
37
  export type DownloadHost = ServiceHost<DownloadCallback>;
package/util.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import type { UploadContent } from '../types/lib/cloud';
2
- import type { AuthValue } from '../types/lib/http';
1
+ import type { UploadContent } from '@e-mc/types/lib/cloud';
2
+ import type { AuthValue } from '@e-mc/types/lib/http';
3
3
 
4
4
  import type { Readable } from 'stream';
5
5