@rvoh/psychic 0.37.0-beta.8 → 0.37.0

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.
@@ -290,7 +290,7 @@ class PsychicController {
290
290
  this.defaultSerializerPassthrough, this.renderOpts);
291
291
  }
292
292
  }
293
- else {
293
+ else if (data instanceof dream_1.Dream || data.serializers) {
294
294
  const serializer = (0, dream_1.inferSerializerFromDreamOrViewModel)(data, opts.serializerKey ||
295
295
  psychicControllerClass['controllerActionMetadata'][this.action]?.['serializerKey'] ||
296
296
  'default');
@@ -1,4 +1,4 @@
1
- import { DreamSerializerBuilder, GlobalNameNotSet, inferSerializerFromDreamOrViewModel, isDreamSerializer, ObjectSerializerBuilder, } from '@rvoh/dream';
1
+ import { Dream, DreamSerializerBuilder, GlobalNameNotSet, inferSerializerFromDreamOrViewModel, isDreamSerializer, ObjectSerializerBuilder, } from '@rvoh/dream';
2
2
  import ParamValidationError from '../error/controller/ParamValidationError.js';
3
3
  import HttpStatusBadGateway from '../error/http/BadGateway.js';
4
4
  import HttpStatusBadRequest from '../error/http/BadRequest.js';
@@ -284,7 +284,7 @@ export default class PsychicController {
284
284
  this.defaultSerializerPassthrough, this.renderOpts);
285
285
  }
286
286
  }
287
- else {
287
+ else if (data instanceof Dream || data.serializers) {
288
288
  const serializer = inferSerializerFromDreamOrViewModel(data, opts.serializerKey ||
289
289
  psychicControllerClass['controllerActionMetadata'][this.action]?.['serializerKey'] ||
290
290
  'default');
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "type": "module",
3
3
  "name": "@rvoh/psychic",
4
4
  "description": "Typescript web framework",
5
- "version": "0.37.0-beta.8",
5
+ "version": "0.37.0",
6
6
  "author": "RVOHealth",
7
7
  "repository": {
8
8
  "type": "git",