@statelyai/sky
Advanced tools
Comparing version 0.0.9 to 0.0.10
@@ -1,6 +0,7 @@ | ||
import { AnyStateMachine } from 'xstate'; | ||
import { AnyActorLogic, AnyEventObject, AnyStateMachine, SnapshotFrom, StateValue } from 'xstate'; | ||
export type SkyConfig = { | ||
config: any; | ||
actorId: string; | ||
prettyConfigString: string; | ||
configString: string; | ||
implementationString: string; | ||
} | { | ||
@@ -13,3 +14,2 @@ error: string; | ||
} | ||
import { AnyActorLogic, AnyEventObject, PersistedStateFrom, StateValue } from 'xstate'; | ||
interface SafeSkyEvent { | ||
@@ -58,3 +58,3 @@ apiKey: string; | ||
type: 'actor.start'; | ||
persistedState: PersistedStateFrom<AnyActorLogic>; | ||
snapshot: SnapshotFrom<AnyActorLogic>; | ||
} | { | ||
@@ -61,0 +61,0 @@ type: 'actor.send'; |
@@ -123,3 +123,3 @@ 'use strict'; | ||
actor = xstate.createActor(machine, { | ||
state: skyEvent.persistedState | ||
snapshot: skyEvent.snapshot | ||
}); | ||
@@ -126,0 +126,0 @@ |
@@ -114,3 +114,3 @@ import PartySocket from 'partysocket'; | ||
actor = createActor(machine, { | ||
state: skyEvent.persistedState | ||
snapshot: skyEvent.snapshot | ||
}); | ||
@@ -117,0 +117,0 @@ |
{ | ||
"name": "@statelyai/sky", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"description": "", | ||
@@ -33,6 +33,6 @@ "main": "dist/statelyai-sky.cjs.js", | ||
"dependencies": { | ||
"partysocket": "0.0.12", | ||
"partysocket": "0.0.17", | ||
"superjson": "1.13.1", | ||
"xstate": "5.0.0-beta.37" | ||
"xstate": "5.2.1" | ||
} | ||
} |
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
14572
+ Addedpartysocket@0.0.17(transitive)
+ Addedxstate@5.2.1(transitive)
- Removedpartysocket@0.0.12(transitive)
- Removedxstate@5.0.0-beta.37(transitive)
Updatedpartysocket@0.0.17
Updatedxstate@5.2.1