@nweb/core
Advanced tools
+3
-3
@@ -88,2 +88,5 @@ "use strict"; | ||
| let module = type; | ||
| if (module.prototype?.annotation?.component !== true) { | ||
| return []; | ||
| } | ||
| if (typeof type === 'function') { | ||
@@ -97,5 +100,2 @@ try { | ||
| } | ||
| if (!module.annotation?.component) { | ||
| return []; | ||
| } | ||
| if (module.annotation?.conditional?.class?.call(module, this) === false) { | ||
@@ -102,0 +102,0 @@ this.logger.warn(`Component ${module.annotation.name} not match conditional`); |
+1
-1
| { | ||
| "name": "@nweb/core", | ||
| "version": "1.1.6", | ||
| "version": "1.1.7", | ||
| "description": "web核心组件", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index", |
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance in 1 package
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance in 1 package
140152
0.01%