@xstate/graph
Advanced tools
Comparing version 1.0.0 to 1.1.0
{ | ||
"name": "@xstate/graph", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "XState graph utilities", | ||
@@ -17,6 +17,10 @@ "keywords": [ | ||
"main": "lib/index.js", | ||
"module": "es/index.js", | ||
"types": "lib/index.d.ts", | ||
"sideEffects": false, | ||
"files": [ | ||
"lib/**/*.js", | ||
"lib/**/*.d.ts" | ||
"lib/**/*.d.ts", | ||
"es/**/*.js", | ||
"es/**/*.d.ts" | ||
], | ||
@@ -28,5 +32,4 @@ "repository": { | ||
"scripts": { | ||
"clean": "rm -rf dist lib tsconfig.tsbuildinfo", | ||
"prebuild": "npm run clean", | ||
"build": "tsc", | ||
"clean": "rm -rf dist lib es tsconfig.tsbuildinfo", | ||
"build": "tsc && tsc --outDir es --module es2015", | ||
"test": "jest", | ||
@@ -39,13 +42,12 @@ "prepublish": "npm run build && npm run test" | ||
"peerDependencies": { | ||
"xstate": "^4.7.0" | ||
"xstate": "^4.9.0" | ||
}, | ||
"devDependencies": { | ||
"@types/jest": "^24.0.11", | ||
"jest": "^24.8.0", | ||
"lerna-alias": "3.0.3-0", | ||
"ts-jest": "^24.0.2", | ||
"typescript": "^3.7.2", | ||
"xstate": "^4.7.0" | ||
"ts-jest": "^24.1.9", | ||
"typescript": "^3.8.3", | ||
"xstate": "*" | ||
}, | ||
"dependencies": {} | ||
} |
@@ -17,6 +17,6 @@ # @xstate/graph | ||
import { Machine } from 'xstate'; | ||
import { simplePaths } from '@xstate/graph'; | ||
import { getSimplePaths } from '@xstate/graph'; | ||
const machine = Machine(/* ... */); | ||
const paths = simplePaths(machine); | ||
const paths = getSimplePaths(machine); | ||
``` | ||
@@ -51,3 +51,3 @@ | ||
```json | ||
```json5 | ||
{ | ||
@@ -174,3 +174,3 @@ "<SERIALIZED STATE>": { | ||
```json | ||
```json5 | ||
{ | ||
@@ -177,0 +177,0 @@ "<SERIALIZED STATE>": { |
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
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
45185
5
15
801