zod-nest 0.8.2 → 0.10.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.
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ var zod = require('zod');
4
4
  var common = require('@nestjs/common');
5
5
  var rxjs = require('rxjs');
6
6
  var operators = require('rxjs/operators');
7
- var constants = require('@nestjs/common/constants');
7
+ var constants_js = require('@nestjs/common/constants.js');
8
8
  var core = require('@nestjs/core');
9
9
  var stringify = require('fast-json-stable-stringify');
10
10
 
@@ -719,11 +719,11 @@ var ZodResponse = (opts) => {
719
719
  var POST_DEFAULT_STATUS = 201;
720
720
  var GENERIC_DEFAULT_STATUS = 200;
721
721
  var defaultStatusFor = (handler) => {
722
- const httpCode = Reflect.getMetadata(constants.HTTP_CODE_METADATA, handler);
722
+ const httpCode = Reflect.getMetadata(constants_js.HTTP_CODE_METADATA, handler);
723
723
  if (typeof httpCode === "number") {
724
724
  return httpCode;
725
725
  }
726
- const method = Reflect.getMetadata(constants.METHOD_METADATA, handler);
726
+ const method = Reflect.getMetadata(constants_js.METHOD_METADATA, handler);
727
727
  if (method === common.RequestMethod.POST) {
728
728
  return POST_DEFAULT_STATUS;
729
729
  }