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.6.3 to 0.6.4

dist/xstate-inspect.umd.min.js

8

CHANGELOG.md
# @xstate/inspect
## 0.6.4
### Patch Changes
- [#3144](https://github.com/statelyai/xstate/pull/3144) [`e08030faf`](https://github.com/statelyai/xstate/commit/e08030faf00e2bcb192040b6ba04178ecf057509) Thanks [@lecepin](https://github.com/lecepin)! - Added UMD build for this package that is available in the `dist` directory in the published package.
* [#3144](https://github.com/statelyai/xstate/pull/3144) [`e08030faf`](https://github.com/statelyai/xstate/commit/e08030faf00e2bcb192040b6ba04178ecf057509) Thanks [@lecepin](https://github.com/lecepin)! - Added proper `peerDependency` on XState. It was incorrectly omitted from the `package.json` of this package.
## 0.6.3

@@ -4,0 +12,0 @@

4

es/browser.js
import { __assign } from './_virtual/_tslib.js';
import { interpret, toSCXMLEvent, toEventObject, toObserver, toActorRef } from 'xstate';
import { createInspectMachine } from './inspectMachine.js';
import { stringifyMachine, stringifyState } from './serialize.js';
import { getLazy, stringify, isReceiverEvent, parseReceiverEvent } from './utils.js';
import { stringifyMachine, stringifyState } from './serialize.js';
import { createInspectMachine } from './inspectMachine.js';

@@ -7,0 +7,0 @@ var serviceMap = new Map();

import { __assign } from './_virtual/_tslib.js';
import safeStringify from 'fast-safe-stringify';
import { createMachine, State } from 'xstate';
import safeStringify from 'fast-safe-stringify';

@@ -5,0 +5,0 @@ function getLazy(value) {

@@ -7,5 +7,5 @@ 'use strict';

var xstate = require('xstate');
var inspectMachine = require('./inspectMachine.js');
var serialize = require('./serialize.js');
var utils = require('./utils.js');
var serialize = require('./serialize.js');
var inspectMachine = require('./inspectMachine.js');

@@ -12,0 +12,0 @@ var serviceMap = new Map();

@@ -7,4 +7,4 @@ 'use strict';

var xstate = require('xstate');
var inspectMachine = require('./inspectMachine.js');
var utils = require('./utils.js');
var inspectMachine = require('./inspectMachine.js');

@@ -11,0 +11,0 @@ var services = new Set();

@@ -6,4 +6,4 @@ 'use strict';

var _tslib = require('./_virtual/_tslib.js');
var safeStringify = require('fast-safe-stringify');
var xstate = require('xstate');
var safeStringify = require('fast-safe-stringify');

@@ -22,3 +22,3 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }

catch (e) {
return safeStringify__default['default'](value, replacer);
return safeStringify__default["default"](value, replacer);
}

@@ -25,0 +25,0 @@ }

{
"name": "@xstate/inspect",
"version": "0.6.3",
"version": "0.6.4",
"description": "XState inspection utilities",

@@ -25,3 +25,4 @@ "keywords": [

"es/**/*.js",
"es/**/*.d.ts"
"es/**/*.d.ts",
"dist/**/*.js"
],

@@ -42,4 +43,8 @@ "repository": {

"devDependencies": {
"@rollup/plugin-commonjs": "^17.0.0",
"@rollup/plugin-node-resolve": "^11.0.1",
"@types/ws": "^8.2.2",
"rollup": "^2.35.1",
"rollup": "^2.69.0",
"rollup-plugin-replace": "^2.2.0",
"rollup-plugin-terser": "^5.1.2",
"rollup-plugin-typescript2": "^0.30.0",

@@ -52,3 +57,4 @@ "typescript": "^4.5.2",

"@types/ws": "^8.0.0",
"ws": "^8.0.0"
"ws": "^8.0.0",
"xstate": "^4.30.6"
},

@@ -55,0 +61,0 @@ "peerDependenciesMeta": {

@@ -28,2 +28,11 @@ # @xstate/inspect

**Via CDN**
```html
<script src="https://unpkg.com/@xstate/inspect/dist/xstate-inspect.umd.min.js"></script>
```
By using the global variable `XStateInspect`
2. Import it at the beginning of your project, before any other code is called:

@@ -49,2 +58,3 @@

const service = interpret(someMachine, { devTools: true });
service.start();
```
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