Comparing version 0.20.7 to 0.20.8
function play (input, state, output, services) { | ||
services.recorder.seek(0); | ||
state.merge('recorder', { | ||
isPlaying: true | ||
}); | ||
services.recorder.seek(0, true); | ||
services.recorder.play(); | ||
} | ||
export default play; |
@@ -29,3 +29,3 @@ import React from 'react'; | ||
{ | ||
this.props.recorder.isRecording ? | ||
this.props.recorder.isRecording && !this.props.recorder.isPlaying ? | ||
<button className="btn btn-stop" onClick={() => this.stop()} disabled={this.props.isSaving}>Stop</button> : | ||
@@ -32,0 +32,0 @@ null |
{ | ||
"name": "cerebral", | ||
"version": "0.20.7", | ||
"version": "0.20.8", | ||
"description": "A state controller with its own debugger", | ||
@@ -18,3 +18,3 @@ "main": "src/index.js", | ||
"babel-loader": "^5.0.0", | ||
"cerebral-baobab": "^0.2.2", | ||
"cerebral-baobab": "^0.3.1", | ||
"cerebral-react": "^0.2.0", | ||
@@ -21,0 +21,0 @@ "cerebral-router": "^0.4.2", |
@@ -28,4 +28,7 @@ var utils = require('./utils.js'); | ||
} | ||
signalMethodPath.call(null, signal.input, signal.branches); | ||
if (isCatchingUp) { | ||
signalMethodPath.call(null, signal.input, signal.branches); | ||
} else { | ||
signalMethodPath.call(null, signal.input); | ||
} | ||
}; | ||
@@ -32,0 +35,0 @@ |
@@ -110,3 +110,3 @@ var utils = require('./utils.js'); | ||
if (signalStore.isRemembering() || recorder.isPlaying()) { | ||
if (signalStore.isRemembering()) { | ||
@@ -182,3 +182,3 @@ currentBranch.forEach(function (action) { | ||
if (signalStore.isRemembering() || recorder.isPlaying()) { | ||
if (signalStore.isRemembering()) { | ||
@@ -185,0 +185,0 @@ var action = currentBranch; |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
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
2383133
79
28046
308
1