Comparing version 2.2.6 to 2.2.7
@@ -25,3 +25,3 @@ "use strict"; | ||
createElement(type, props, ...children) { | ||
if (type === "style" && typeof (props === null || props === void 0 ? void 0 : props.src) === "string") { | ||
if (type === "style" && props && typeof props.src === "string") { | ||
children.push(props.src); | ||
@@ -28,0 +28,0 @@ delete props.src; |
{ | ||
"name": "grandjs", | ||
"version": "2.2.6", | ||
"version": "2.2.7", | ||
"description": "A backend framework for solid web apps based on node.js", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -25,3 +25,3 @@ /** | ||
createElement(type:any, props:OptionalObject, ...children:any[]) { | ||
if(type === "style" && typeof props?.src === "string") { | ||
if(type === "style" && props && typeof props.src === "string") { | ||
children.push(props.src); | ||
@@ -28,0 +28,0 @@ delete props.src; |
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
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
229879