@venok/core 2.0.1-next.2 → 2.0.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.
@@ -19,7 +19,7 @@ var __require = /* @__PURE__ */ createRequire(import.meta.url);
19
19
  // packages/core/src/helpers/create-param-decorator.helper.ts
20
20
  import { uid } from "uid";
21
21
  import { assignCustomParameterMetadata, assignMetadata } from "../helpers/metadata.helper.js";
22
- import { isFunction, isNull, isString } from "../helpers/shared.helper.js";
22
+ import { isFunction, isNull } from "../helpers/shared.helper.js";
23
23
  import { ROUTE_ARGS_METADATA } from "../constants.js";
24
24
  var getHandlerArgsMetadata = (target, key) => {
25
25
  return Reflect.getMetadata(ROUTE_ARGS_METADATA, target.constructor, key) || {};
@@ -58,7 +58,7 @@ var createNativeParamDecorator = (paramtype) => {
58
58
  return (data, ...pipes) => {
59
59
  return (target, key, index) => {
60
60
  const args = getHandlerArgsMetadata(target, key);
61
- const hasParamData = isNull(data) || isString(data);
61
+ const hasParamData = isNull(data) || !isPipe(data);
62
62
  const paramData = hasParamData ? data : undefined;
63
63
  const paramPipes = hasParamData ? pipes : [data, ...pipes];
64
64
  setHandlerArgsMetadata(target, key, assignMetadata(args, paramtype, index, paramData, ...paramPipes));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@venok/core",
3
- "version": "2.0.1-next.2",
3
+ "version": "2.0.1",
4
4
  "description": "",
5
5
  "author": "shiz-ceo",
6
6
  "type": "module",