New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@xstate/inspect

Package Overview
Dependencies
Maintainers
1
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.4.0 to 0.4.1

6

CHANGELOG.md
# @xstate/inspect
## 0.4.1
### Patch Changes
- [`d9282107`](https://github.com/davidkpiano/xstate/commit/d9282107b931b867d9cd297ede71b55fe11eb74d) [#1800](https://github.com/davidkpiano/xstate/pull/1800) Thanks [@davidkpiano](https://github.com/davidkpiano)! - Fixed a bug where services were not being registered by the inspect client, affecting the ability to send events to inspected services.
## 0.4.0

@@ -4,0 +10,0 @@

4

es/browser.js

@@ -59,2 +59,5 @@ import { __assign } from './_virtual/_tslib.js';

var listeners = new Set();
var sub = inspectService.subscribe(function (state) {
listeners.forEach(function (listener) { return listener.next(state); });
});
var targetWindow;

@@ -149,2 +152,3 @@ var client;

window.removeEventListener('message', messageHandler);
sub.unsubscribe();
}

@@ -151,0 +155,0 @@ };

@@ -7,2 +7,7 @@ import { createMachine, assign } from 'xstate';

var serviceMap = new Map();
// Listen for services being registered and index them
// by their sessionId for quicker lookup
var sub = devTools.onRegister(function (service) {
serviceMap.set(service.sessionId, service);
});
return createMachine({

@@ -46,2 +51,5 @@ initial: 'pendingConnection',

disconnected: {
entry: function () {
sub.unsubscribe();
},
type: 'final'

@@ -48,0 +56,0 @@ }

@@ -63,2 +63,5 @@ 'use strict';

var listeners = new Set();
var sub = inspectService.subscribe(function (state) {
listeners.forEach(function (listener) { return listener.next(state); });
});
var targetWindow;

@@ -153,2 +156,3 @@ var client;

window.removeEventListener('message', messageHandler);
sub.unsubscribe();
}

@@ -155,0 +159,0 @@ };

@@ -11,2 +11,7 @@ 'use strict';

var serviceMap = new Map();
// Listen for services being registered and index them
// by their sessionId for quicker lookup
var sub = devTools.onRegister(function (service) {
serviceMap.set(service.sessionId, service);
});
return xstate.createMachine({

@@ -50,2 +55,5 @@ initial: 'pendingConnection',

disconnected: {
entry: function () {
sub.unsubscribe();
},
type: 'final'

@@ -52,0 +60,0 @@ }

2

package.json
{
"name": "@xstate/inspect",
"version": "0.4.0",
"version": "0.4.1",
"description": "XState inspection utilities",

@@ -5,0 +5,0 @@ "keywords": [

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