Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@xstate/inspect

Package Overview
Dependencies
Maintainers
3
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xstate/inspect - npm Package Compare versions

Comparing version 0.5.1 to 0.5.2

6

CHANGELOG.md
# @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 @@

4

es/browser.js

@@ -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": "*"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc