@compone/define
Advanced tools
Comparing version 1.1.3 to 1.1.4
@@ -10,2 +10,3 @@ const classed = require('@compone/class') | ||
if (arguments.length == 1) { component = name, name = `anon-${registry.anon++}` } | ||
if (component.wrapper) return component.wrapper | ||
if (!name.includes('-')) return; | ||
@@ -25,4 +26,3 @@ if (!client) return wrap(classed(component)) | ||
} else { | ||
wrapped = wrap(classed(component)) | ||
registry.define(name, wrapped) | ||
registry.define(name, wrapped = wrap(classed(component))) | ||
} | ||
@@ -29,0 +29,0 @@ |
{ | ||
"name": "@compone/define", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
2504