Comparing version 1.0.1 to 1.1.0
{ | ||
"name": "statware", | ||
"description": "Node.js process/system/custom metrics aggregation suite with middle-ware like abilities.", | ||
"version": "1.0.1", | ||
"version": "1.1.0", | ||
"author": "Bryce B. Baril <bryce@ravenwall.com>", | ||
@@ -6,0 +6,0 @@ "dependencies": { |
@@ -142,3 +142,3 @@ statware | ||
Create a toplevel namespace inside the statInstance that behaves almost identically to `statwareInstance` except it cannot `registerHelpers` or define deeper namespaces. | ||
Create a toplevel namespace inside the statInstance that behaves almost identically to `statwareInstance` except it cannot deeper namespaces. | ||
@@ -145,0 +145,0 @@ `stawareInstance.installProcessInfo()` |
@@ -121,8 +121,11 @@ "use strict"; | ||
}}) | ||
Object.defineProperty(space, "registerHelper", {value: function (fn) { | ||
parent.registerHelper(function (status, next) { | ||
var ns = status[name] | ||
fn(ns, next) | ||
}) | ||
}}) | ||
Object.defineProperty(space, "namespace", {value: function () { | ||
throw new Error("This is already a namespace. Nested namespaces not supported.") | ||
}}) | ||
Object.defineProperty(space, "registerHelper", {value: function () { | ||
throw new Error("This is a namespace, install helpers on the parent instance.") | ||
}}) | ||
@@ -129,0 +132,0 @@ this._stats[name] = space |
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
11666
186