@xstate/inspect
Advanced tools
Comparing version 0.5.1 to 0.5.2
# @xstate/inspect | ||
## 0.5.2 | ||
### Patch Changes | ||
- [#2827](https://github.com/statelyai/xstate/pull/2827) [`49de77085`](https://github.com/statelyai/xstate/commit/49de770856965b0acec846c1ff5c29463335aab0) Thanks [@erlendfh](https://github.com/erlendfh)! - Fixed a bug in `createWebsocketReceiver` so that it works as expected with a WebSocket connection. | ||
## 0.5.1 | ||
@@ -4,0 +10,0 @@ |
@@ -207,3 +207,3 @@ import { __assign } from './_virtual/_tslib.js'; | ||
var _a = options.protocol, protocol = _a === void 0 ? 'ws' : _a; | ||
var ws = new WebSocket(protocol + "://" + options.server); | ||
var ws = new WebSocket("".concat(protocol, "://").concat(options.server)); | ||
var observers = new Set(); | ||
@@ -240,3 +240,3 @@ var latestEvent; | ||
var eventObject = JSON.parse(event.data); | ||
if (isReceiverEvent(latestEvent)) { | ||
if (isReceiverEvent(eventObject)) { | ||
latestEvent = parseReceiverEvent(eventObject); | ||
@@ -243,0 +243,0 @@ observers.forEach(function (observer) { |
@@ -211,3 +211,3 @@ 'use strict'; | ||
var _a = options.protocol, protocol = _a === void 0 ? 'ws' : _a; | ||
var ws = new WebSocket(protocol + "://" + options.server); | ||
var ws = new WebSocket("".concat(protocol, "://").concat(options.server)); | ||
var observers = new Set(); | ||
@@ -244,3 +244,3 @@ var latestEvent; | ||
var eventObject = JSON.parse(event.data); | ||
if (utils.isReceiverEvent(latestEvent)) { | ||
if (utils.isReceiverEvent(eventObject)) { | ||
latestEvent = utils.parseReceiverEvent(eventObject); | ||
@@ -247,0 +247,0 @@ observers.forEach(function (observer) { |
{ | ||
"name": "@xstate/inspect", | ||
"version": "0.5.1", | ||
"version": "0.5.2", | ||
"description": "XState inspection utilities", | ||
@@ -44,3 +44,3 @@ "keywords": [ | ||
"rollup-plugin-typescript2": "^0.30.0", | ||
"typescript": "^4.3.5", | ||
"typescript": "^4.5.2", | ||
"ws": "^7.3.1", | ||
@@ -47,0 +47,0 @@ "xstate": "*" |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
54392
1