@e-mc/cloud 0.13.6 → 0.13.7
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 +7 -7
- package/index.js +10 -10
- package/package.json +4 -4
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.
|
|
12
|
+
* [View Source](https://www.unpkg.com/@e-mc/types@0.13.7/lib/index.d.ts)
|
|
13
13
|
|
|
14
14
|
```typescript
|
|
15
15
|
import type { 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.
|
|
184
|
-
- https://www.unpkg.com/@e-mc/types@0.13.
|
|
185
|
-
- https://www.unpkg.com/@e-mc/types@0.13.
|
|
186
|
-
- https://www.unpkg.com/@e-mc/types@0.13.
|
|
187
|
-
- https://www.unpkg.com/@e-mc/types@0.13.
|
|
188
|
-
- https://www.unpkg.com/@e-mc/types@0.13.
|
|
183
|
+
- https://www.unpkg.com/@e-mc/types@0.13.7/lib/asset.d.ts
|
|
184
|
+
- https://www.unpkg.com/@e-mc/types@0.13.7/lib/cloud.d.ts
|
|
185
|
+
- https://www.unpkg.com/@e-mc/types@0.13.7/lib/core.d.ts
|
|
186
|
+
- https://www.unpkg.com/@e-mc/types@0.13.7/lib/db.d.ts
|
|
187
|
+
- https://www.unpkg.com/@e-mc/types@0.13.7/lib/logger.d.ts
|
|
188
|
+
- https://www.unpkg.com/@e-mc/types@0.13.7/lib/settings.d.ts
|
|
189
189
|
|
|
190
190
|
## LICENSE
|
|
191
191
|
|
package/index.js
CHANGED
|
@@ -109,9 +109,9 @@ class Cloud extends core_1.ClientDb {
|
|
|
109
109
|
const cloudStorage = item.cloudStorage;
|
|
110
110
|
if ((0, types_1.isArray)(cloudStorage) && !(0, types_1.ignoreFlag)(item)) {
|
|
111
111
|
if (item.invalid) {
|
|
112
|
-
|
|
112
|
+
for (const storage of cloudStorage) {
|
|
113
113
|
instance.formatMessage(64, storage.service, ["Upload failed", storage.bucket], (0, types_1.errorValue)("File not found", item.uri || item.filename || "Unknown"), Cloud.optionsLogMessage('WARN'));
|
|
114
|
-
}
|
|
114
|
+
}
|
|
115
115
|
continue;
|
|
116
116
|
}
|
|
117
117
|
resume: {
|
|
@@ -187,9 +187,9 @@ class Cloud extends core_1.ClientDb {
|
|
|
187
187
|
}
|
|
188
188
|
if (rawFiles.length > 0) {
|
|
189
189
|
const options = { preferBuffer: process.env.EMC_CLOUD_UPLOAD_BUFFER === 'true' };
|
|
190
|
-
|
|
190
|
+
for (const item of rawFiles) {
|
|
191
191
|
tasks.push(...Cloud.uploadAsset(state, item, options));
|
|
192
|
-
}
|
|
192
|
+
}
|
|
193
193
|
}
|
|
194
194
|
if (tasks.length > 0) {
|
|
195
195
|
await instance.allSettled(tasks, ["Upload raw assets", instance.moduleName]);
|
|
@@ -234,13 +234,13 @@ class Cloud extends core_1.ClientDb {
|
|
|
234
234
|
}
|
|
235
235
|
}
|
|
236
236
|
for (const [item, data] of localStorage) {
|
|
237
|
-
getFiles(item, data)
|
|
238
|
-
|
|
237
|
+
for (const group of getFiles(item, data)) {
|
|
238
|
+
for (const value of group) {
|
|
239
239
|
if (value) {
|
|
240
240
|
this.deleteFile(value, { emptyDir: true });
|
|
241
241
|
}
|
|
242
|
-
}
|
|
243
|
-
}
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
244
|
}
|
|
245
245
|
for (const item of this.assets) {
|
|
246
246
|
const cloudStorage = item.cloudStorage;
|
|
@@ -784,11 +784,11 @@ class Cloud extends core_1.ClientDb {
|
|
|
784
784
|
if (client?.executeBatchQuery) {
|
|
785
785
|
const credential = this.getCredential(data);
|
|
786
786
|
if (this.hasCoerce(service, 'options', credential)) {
|
|
787
|
-
|
|
787
|
+
for (const item of batch) {
|
|
788
788
|
if (item.options) {
|
|
789
789
|
(0, types_1.coerceObject)(item.options);
|
|
790
790
|
}
|
|
791
|
-
}
|
|
791
|
+
}
|
|
792
792
|
}
|
|
793
793
|
if (ignoreErrors) {
|
|
794
794
|
return client.executeBatchQuery.call(this, credential, batch, sessionKey);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@e-mc/cloud",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.7",
|
|
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.
|
|
23
|
-
"@e-mc/db": "0.13.
|
|
24
|
-
"@e-mc/types": "0.13.
|
|
22
|
+
"@e-mc/core": "0.13.7",
|
|
23
|
+
"@e-mc/db": "0.13.7",
|
|
24
|
+
"@e-mc/types": "0.13.7",
|
|
25
25
|
"mime-types": "^3.0.2"
|
|
26
26
|
}
|
|
27
27
|
}
|