@xstate/inspect
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -159,9 +159,9 @@ var __assign = (this && this.__assign) || function () { | ||
var originalSend = service.send.bind(service); | ||
service.send = function inspectSend(event) { | ||
service.send = function inspectSend(event, payload) { | ||
inspectService.send({ | ||
type: 'service.event', | ||
event: JSON.stringify(toSCXMLEvent(toEventObject(event))), | ||
event: JSON.stringify(toSCXMLEvent(toEventObject(event, payload))), | ||
sessionId: service.sessionId | ||
}); | ||
return originalSend(event); | ||
return originalSend(event, payload); | ||
}; | ||
@@ -168,0 +168,0 @@ service.subscribe(function (state) { |
@@ -163,9 +163,9 @@ "use strict"; | ||
var originalSend = service.send.bind(service); | ||
service.send = function inspectSend(event) { | ||
service.send = function inspectSend(event, payload) { | ||
inspectService.send({ | ||
type: 'service.event', | ||
event: JSON.stringify(utils_1.toSCXMLEvent(utils_1.toEventObject(event))), | ||
event: JSON.stringify(utils_1.toSCXMLEvent(utils_1.toEventObject(event, payload))), | ||
sessionId: service.sessionId | ||
}); | ||
return originalSend(event); | ||
return originalSend(event, payload); | ||
}; | ||
@@ -172,0 +172,0 @@ service.subscribe(function (state) { |
{ | ||
"name": "@xstate/inspect", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "XState inspection utilities", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
28542
10
0
85