verteilen-core 1.2.10 → 1.2.11
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/dist/server/io.js +1 -1
- package/package.json +1 -1
- package/src/server/io.ts +1 -1
package/dist/server/io.js
CHANGED
|
@@ -71,7 +71,7 @@ const _CreateRecordIOLoader = (loader, memory, type, folder, ext = ".json") => {
|
|
|
71
71
|
if (!loader.exists(root))
|
|
72
72
|
await loader.mkdir(root);
|
|
73
73
|
const files = await loader.read_dir_file(root);
|
|
74
|
-
const r = files.map(x => loader.read_string(x, { encoding: 'utf8', flag: 'r' }));
|
|
74
|
+
const r = files.map(x => loader.read_string(loader.join(root, x), { encoding: 'utf8', flag: 'r' }));
|
|
75
75
|
const p = await Promise.all(r);
|
|
76
76
|
const arr = get_array(type);
|
|
77
77
|
arr.splice(0, arr.length);
|
package/package.json
CHANGED
package/src/server/io.ts
CHANGED
|
@@ -140,7 +140,7 @@ export const _CreateRecordIOLoader = (loader:RecordIOBase, memory:MemoryData, ty
|
|
|
140
140
|
if(!loader.exists(root)) await loader.mkdir(root)
|
|
141
141
|
const files = await loader.read_dir_file(root)
|
|
142
142
|
const r:Array<Promise<string>> = files.map(x =>
|
|
143
|
-
loader.read_string(x, { encoding: 'utf8', flag: 'r' })
|
|
143
|
+
loader.read_string(loader.join(root, x), { encoding: 'utf8', flag: 'r' })
|
|
144
144
|
)
|
|
145
145
|
const p = await Promise.all(r)
|
|
146
146
|
const arr = get_array(type)
|