@e-mc/cloud 0.8.18 → 0.8.20

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
- - https://www.unpkg.com/@e-mc/types@0.8.18/lib/index.d.ts
12
+ - https://www.unpkg.com/@e-mc/types@0.8.20/lib/index.d.ts
13
13
 
14
14
  ```typescript
15
15
  import type { IHost, IScopeOrigin } from "./index";
@@ -67,12 +67,12 @@ interface CloudConstructor extends ClientDbConstructor<IHost> {
67
67
 
68
68
  ## References
69
69
 
70
- - https://www.unpkg.com/@e-mc/types@0.8.18/lib/asset.d.ts
71
- - https://www.unpkg.com/@e-mc/types@0.8.18/lib/cloud.d.ts
72
- - https://www.unpkg.com/@e-mc/types@0.8.18/lib/core.d.ts
73
- - https://www.unpkg.com/@e-mc/types@0.8.18/lib/db.d.ts
74
- - https://www.unpkg.com/@e-mc/types@0.8.18/lib/logger.d.ts
75
- - https://www.unpkg.com/@e-mc/types@0.8.18/lib/settings.d.ts
70
+ - https://www.unpkg.com/@e-mc/types@0.8.20/lib/asset.d.ts
71
+ - https://www.unpkg.com/@e-mc/types@0.8.20/lib/cloud.d.ts
72
+ - https://www.unpkg.com/@e-mc/types@0.8.20/lib/core.d.ts
73
+ - https://www.unpkg.com/@e-mc/types@0.8.20/lib/db.d.ts
74
+ - https://www.unpkg.com/@e-mc/types@0.8.20/lib/logger.d.ts
75
+ - https://www.unpkg.com/@e-mc/types@0.8.20/lib/settings.d.ts
76
76
 
77
77
  ## LICENSE
78
78
 
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.8.18",
3
+ "version": "0.8.20",
4
4
  "description": "Cloud constructor for E-mc.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -20,9 +20,9 @@
20
20
  "license": "MIT",
21
21
  "homepage": "https://github.com/anpham6/e-mc#readme",
22
22
  "dependencies": {
23
- "@e-mc/core": "0.8.18",
24
- "@e-mc/db": "0.8.18",
25
- "@e-mc/types": "0.8.18",
23
+ "@e-mc/core": "0.8.20",
24
+ "@e-mc/db": "0.8.20",
25
+ "@e-mc/types": "0.8.20",
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> {
6
6
  CLOUD_SERVICE_NAME: string;
package/util.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { UploadContent } from '../types/lib/cloud';
1
+ import type { UploadContent } from '@e-mc/types/lib/cloud';
2
2
 
3
3
  import type { Readable } from 'stream';
4
4
 
package/util.js CHANGED
@@ -28,7 +28,7 @@ async function readableAsBuffer(stream) {
28
28
  result = result ? Buffer.concat([result, chunk]) : chunk;
29
29
  })
30
30
  .on('end', () => resolve(result))
31
- .on('error', err => reject(err))
31
+ .on('error', reject)
32
32
  .read();
33
33
  });
34
34
  }