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

@xstate/fsm

Package Overview
Dependencies
Maintainers
3
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xstate/fsm - npm Package Compare versions

Comparing version 2.0.0 to 3.0.0-alpha.0

dist/declarations/src/index.d.ts

39

package.json
{
"name": "@xstate/fsm",
"version": "2.0.0",
"version": "3.0.0-alpha.0",
"description": "XState for finite state machines",

@@ -20,12 +20,14 @@ "keywords": [

"license": "MIT",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"module": "es/index.js",
"main": "dist/xstate-fsm.cjs.js",
"module": "dist/xstate-fsm.esm.js",
"exports": {
".": {
"module": "./dist/xstate-fsm.esm.js",
"default": "./dist/xstate-fsm.cjs.js"
},
"./package.json": "./package.json"
},
"sideEffects": false,
"files": [
"dist",
"lib/**/*.js",
"lib/**/*.d.ts",
"es/**/*.js",
"es/**/*.d.ts"
"dist"
],

@@ -36,22 +38,7 @@ "repository": {

},
"scripts": {
"clean": "rm -rf lib es dist tsconfig.tsbuildinfo",
"build": "rollup -c",
"test": "jest",
"prepare": "npm run build"
},
"scripts": {},
"bugs": {
"url": "https://github.com/statelyai/xstate/issues"
},
"devDependencies": {
"jest": "^26.6.3",
"lerna-alias": "3.0.3-0",
"rollup": "^2.69.0",
"rollup-plugin-filesize": "^6.2.1",
"rollup-plugin-replace": "^2.2.0",
"rollup-plugin-terser": "^5.1.2",
"rollup-plugin-typescript2": "^0.30.0",
"ts-jest": "^26.5.6",
"typescript": "^4.5.2"
}
"devDependencies": {}
}

@@ -78,5 +78,7 @@ # @xstate/fsm

const toggledState = toggleMachine.transition(initialState, 'TOGGLE');
const toggledState = toggleMachine.transition(initialState, { type: 'TOGGLE' });
toggledState.value;
const untoggledState = toggleMachine.transition(toggledState, 'TOGGLE');
const untoggledState = toggleMachine.transition(toggledState, {
type: 'TOGGLE'
});
untoggledState.value;

@@ -99,5 +101,5 @@ // => 'inactive'

toggleService.send('TOGGLE');
toggleService.send('TOGGLE');
toggleService.send({ type: 'TOGGLE' });
toggleService.send({ type: 'TOGGLE' });
toggleService.stop();
```
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