@sinclair/typebox-codegen
Advanced tools
@@ -299,3 +299,3 @@ "use strict"; | ||
| } | ||
| buffer.push('}).compile()'); | ||
| buffer.push('}).export()'); | ||
| buffer.push('\n'); | ||
@@ -302,0 +302,0 @@ for (const type of model.types.filter((type) => Types.TypeGuard.IsSchema(type))) { |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -141,6 +141,6 @@ "use strict"; | ||
| if (key === `^(0|[1-9][0-9]*)$`) { | ||
| return UnsupportedType(schema); | ||
| return Type('v.record', `v.number(), ${type}`, []); | ||
| } | ||
| else { | ||
| return Type(`v.record`, type, []); | ||
| return Type(`v.record`, `v.string(), ${type}`, []); | ||
| } | ||
@@ -147,0 +147,0 @@ } |
@@ -0,0 +0,0 @@ "use strict"; |
+2
-2
| { | ||
| "name": "@sinclair/typebox-codegen", | ||
| "version": "0.10.3", | ||
| "version": "0.10.4", | ||
| "description": "Code Generation Tools for TypeBox", | ||
@@ -32,3 +32,3 @@ "main": "index.js", | ||
| "dependencies": { | ||
| "@sinclair/typebox": "^0.32.6", | ||
| "@sinclair/typebox": "^0.33.1", | ||
| "prettier": "^2.8.7", | ||
@@ -35,0 +35,0 @@ "typescript": "^5.4.5" |
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 2 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 2 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
161685
0+ Added
- Removed
Updated