verteilen-core 1.3.10 → 1.3.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
@@ -114,7 +114,7 @@ const _CreateRecordIOLoader = (loader, memory, type, folder, ext = ".json") => {
114
114
  if (cache) {
115
115
  const b = arr.findIndex(x => x.uuid == name);
116
116
  if (b != -1)
117
- return arr[b];
117
+ return JSON.stringify(arr[b]);
118
118
  }
119
119
  const root = loader.join(loader.root, folder);
120
120
  if (!loader.exists(root))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "verteilen-core",
3
- "version": "1.3.10",
3
+ "version": "1.3.11",
4
4
  "license": "MIT",
5
5
  "homepage": "https://verteilen.github.io/wiki/",
6
6
  "author": "Elly",
package/src/server/io.ts CHANGED
@@ -195,7 +195,7 @@ export const _CreateRecordIOLoader = (loader:RecordIOBase, memory:MemoryData, ty
195
195
  const arr = get_array(type)
196
196
  if(cache){
197
197
  const b = arr.findIndex(x => x.uuid == name)
198
- if(b != -1) return arr[b]
198
+ if(b != -1) return JSON.stringify(arr[b])
199
199
  }
200
200
  const root = loader.join(loader.root, folder)
201
201
  if(!loader.exists(root)) await loader.mkdir(root)