@sylphx/lens-server 2.3.0 → 2.3.1

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/index.js CHANGED
@@ -450,7 +450,8 @@ class LensServerImpl {
450
450
  }
451
451
  });
452
452
  };
453
- const emit = createEmit(emitHandler);
453
+ const isArrayOutput = Array.isArray(def._output);
454
+ const emit = createEmit(emitHandler, isArrayOutput);
454
455
  const onCleanup = (fn) => {
455
456
  cleanups.push(fn);
456
457
  return () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sylphx/lens-server",
3
- "version": "2.3.0",
3
+ "version": "2.3.1",
4
4
  "description": "Server runtime for Lens API framework",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -344,7 +344,9 @@ class LensServerImpl<
344
344
  });
345
345
  };
346
346
 
347
- const emit = createEmit(emitHandler);
347
+ // Detect array output type: [EntityDef] is stored as single-element array
348
+ const isArrayOutput = Array.isArray(def._output);
349
+ const emit = createEmit(emitHandler, isArrayOutput);
348
350
  const onCleanup = (fn: () => void) => {
349
351
  cleanups.push(fn);
350
352
  return () => {