Comparing version 0.1.8 to 0.1.9
@@ -187,3 +187,3 @@ ( // Module boilerplate to support node.js and AMD. | ||
} | ||
base = base.substr(0, base.lastIndexOf("/")); | ||
base = resolve(base, '..'); | ||
} | ||
@@ -243,3 +243,3 @@ } | ||
} else { | ||
tryNext(base.substr(0, base.lastIndexOf("/"))); | ||
tryNext(resolve(base, '..')); | ||
} | ||
@@ -405,3 +405,9 @@ }); | ||
plugin.setup(plugin, imports, function (err, provided) { | ||
try { | ||
plugin.setup(plugin, imports, register); | ||
} catch(e) { | ||
return app.emit("error", e); | ||
} | ||
function register(err, provided) { | ||
if (err) { return app.emit("error", err); } | ||
@@ -414,2 +420,3 @@ plugin.provides.forEach(function (name) { | ||
services[name] = provided[name]; | ||
provided[name].name = name; | ||
app.emit("service", name, services[name]); | ||
@@ -421,4 +428,4 @@ }); | ||
app.emit("plugin", plugin); | ||
startPlugins(); | ||
}); | ||
process.nextTick(startPlugins); | ||
} | ||
} | ||
@@ -425,0 +432,0 @@ |
{ | ||
"name": "architect", | ||
"description": "A Simple yet powerful plugin system for node applications", | ||
"version": "0.1.8", | ||
"version": "0.1.9", | ||
"author": "ajax.org B.V. <info@ajax.org>", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
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
Non-existent author
Supply chain riskThe package was published by an npm account that no longer exists.
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
23179
461
1