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 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "verteilen-core",
3
- "version": "1.2.10",
3
+ "version": "1.2.11",
4
4
  "license": "MIT",
5
5
  "homepage": "https://verteilen.github.io/wiki/",
6
6
  "author": "Elly",
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)