@nestia/core 1.0.13 → 1.0.15

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nestia/core",
3
- "version": "1.0.13",
3
+ "version": "1.0.15",
4
4
  "description": "Super-fast validation decorators of NestJS",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
@@ -63,10 +63,9 @@
63
63
  "raw-body": "*",
64
64
  "reflect-metadata": "*",
65
65
  "rxjs": "*",
66
- "typia": "^3.5.5"
66
+ "typia": "^3.6.2"
67
67
  },
68
68
  "peerDependencies": {
69
- "ttypescript": ">= 1.5.15",
70
69
  "typescript": ">= 4.5.2"
71
70
  },
72
71
  "files": [
@@ -107,13 +107,13 @@ export namespace PluginConfigurator {
107
107
  /**
108
108
  * Validate JSON typed response body.
109
109
  *
110
- * - null: Just use JSON.stringify() function, without boosting
111
- * - "stringify": Use typia.stringify() function, but dangerous
112
110
  * - "assert": Use typia.assertStringify() function
113
111
  * - "is": Use typia.isStringify() function
114
112
  * - "validate": Use typia.validateStringify() function
113
+ * - "stringify": Use typia.stringify() function, but dangerous
114
+ * - null: Just use JSON.stringify() function, without boosting
115
115
  */
116
- "stringify": "is"
116
+ "stringify": "assert"
117
117
  }`) as Comment.CommentObject,
118
118
  );
119
119
  if (typia === undefined)
@@ -38,17 +38,19 @@ export namespace TypedRouteProgrammer {
38
38
  ]);
39
39
 
40
40
  // RETURNS
41
- if (project.options.stringify === "stringify")
42
- return parameter("stringify", StringifyProgrammer.generate);
43
- else if (project.options.stringify === "assert")
44
- return parameter("assert", AssertStringifyProgrammer.generate);
41
+ if (project.options.stringify === "is")
42
+ return parameter("is", IsStringifyProgrammer.generate);
45
43
  else if (project.options.stringify === "validate")
46
44
  return parameter(
47
45
  "validate",
48
46
  ValidateStringifyProgrammer.generate,
49
47
  );
48
+ else if (project.options.stringify === "stringify")
49
+ return parameter("stringify", StringifyProgrammer.generate);
50
50
  else if (project.options.stringify === null)
51
51
  return ts.factory.createNull();
52
- return parameter("is", IsStringifyProgrammer.generate);
52
+
53
+ // ASSERT IS DEFAULT
54
+ return parameter("assert", AssertStringifyProgrammer.generate);
53
55
  };
54
56
  }