Comparing version 0.25.0 to 0.25.1
{ | ||
"name": "cerebral", | ||
"version": "0.25.0", | ||
"version": "0.25.1", | ||
"description": "A state controller with its own debugger", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -5,2 +5,9 @@ var utils = require('./utils.js'); | ||
if (!utils.isDeveloping()) { | ||
return { | ||
update: function () {}, | ||
start: function () {} | ||
}; | ||
} | ||
var isInitialized = false; | ||
@@ -140,6 +147,4 @@ var disableDebugger = false; | ||
start: function () { | ||
if (utils.isDeveloping()) { | ||
var event = new Event('cerebral.dev.cerebralPing'); | ||
window.dispatchEvent(event); | ||
} | ||
var event = new Event('cerebral.dev.cerebralPing'); | ||
window.dispatchEvent(event); | ||
} | ||
@@ -146,0 +151,0 @@ }; |
@@ -43,3 +43,3 @@ var types = require('./types.js'); | ||
isDeveloping: function () { | ||
return !global.process || global.process.env.NODE_ENV !== 'production'; | ||
return typeof process === 'undefined' || process.env.NODE_ENV !== 'production'; | ||
}, | ||
@@ -46,0 +46,0 @@ verifyInput: function (actionName, signalName, input, signalArgs) { |
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
4350465
48284
5