@naturalcycles/cloud-storage-lib 1.9.1 → 1.9.2

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.
@@ -88,6 +88,8 @@ class CloudStorage {
88
88
  return [];
89
89
  const [content] = await f.download();
90
90
  return [{ filePath, content }];
91
+ }, {
92
+ concurrency: 16,
91
93
  });
92
94
  }
93
95
  async getFile(bucketName, filePath) {
package/package.json CHANGED
@@ -35,7 +35,7 @@
35
35
  "engines": {
36
36
  "node": ">=18.12.0"
37
37
  },
38
- "version": "1.9.1",
38
+ "version": "1.9.2",
39
39
  "description": "CommonStorage implementation based on Google Cloud Storage",
40
40
  "author": "Natural Cycles Team",
41
41
  "license": "MIT"
@@ -128,13 +128,18 @@ export class CloudStorage implements CommonStorage {
128
128
  prefix,
129
129
  maxResults: opt.limit || undefined,
130
130
  }) as ReadableTyped<File>
131
- ).flatMap(async f => {
132
- const filePath = this.normalizeFilename(f.name, fullPaths)
133
- if (filePath === SKIP) return []
134
-
135
- const [content] = await f.download()
136
- return [{ filePath, content }] as FileEntry[]
137
- })
131
+ ).flatMap(
132
+ async f => {
133
+ const filePath = this.normalizeFilename(f.name, fullPaths)
134
+ if (filePath === SKIP) return []
135
+
136
+ const [content] = await f.download()
137
+ return [{ filePath, content }] as FileEntry[]
138
+ },
139
+ {
140
+ concurrency: 16,
141
+ },
142
+ )
138
143
  }
139
144
 
140
145
  async getFile(bucketName: string, filePath: string): Promise<Buffer | null> {