@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 +2 -1
- package/package.json +1 -1
- package/src/server/create.ts +3 -1
package/dist/index.js
CHANGED
|
@@ -450,7 +450,8 @@ class LensServerImpl {
|
|
|
450
450
|
}
|
|
451
451
|
});
|
|
452
452
|
};
|
|
453
|
-
const
|
|
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
package/src/server/create.ts
CHANGED
|
@@ -344,7 +344,9 @@ class LensServerImpl<
|
|
|
344
344
|
});
|
|
345
345
|
};
|
|
346
346
|
|
|
347
|
-
|
|
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 () => {
|