Comparing version 1.1.8 to 1.1.9
@@ -1149,8 +1149,4 @@ "use strict"; | ||
return import_value3.Value.Clean(schema, value); | ||
if (Array.isArray(value)) | ||
value = import_value3.Value.Clean( | ||
schema, | ||
value.map((x) => classToObject(x)) | ||
); | ||
else value = import_value3.Value.Clean(schema, classToObject(value)); | ||
if (Array.isArray(value)) value = import_value3.Value.Clean(schema, value); | ||
else value = import_value3.Value.Clean(schema, value); | ||
return value; | ||
@@ -1710,6 +1706,9 @@ }; | ||
); | ||
if (descriptor && typeof descriptor.get === "function") | ||
if (descriptor && typeof descriptor.get === "function") { | ||
if (property === "__proto__") continue; | ||
console.log(property); | ||
result[property] = classToObject( | ||
instance[property] | ||
); | ||
} | ||
} | ||
@@ -1716,0 +1715,0 @@ return result; |
{ | ||
"name": "elysia", | ||
"description": "Ergonomic Framework for Human", | ||
"version": "1.1.8", | ||
"version": "1.1.9", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "saltyAom", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
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 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
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 1 instance in 1 package
2586826
55506