Socket
Socket
Sign inDemoInstall

xstate

Package Overview
Dependencies
Maintainers
3
Versions
248
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xstate - npm Package Compare versions

Comparing version 5.7.0 to 5.7.1

10

dist/declarations/src/State.d.ts

@@ -55,3 +55,3 @@ import type { StateNode } from "./StateNode.js";

*/
matches: (this: MachineSnapshot<TContext, TEvent, TChildren, TStateValue, TTag, TOutput>, partialStateValue: ToTestStateValue<TStateValue>) => boolean;
matches: (partialStateValue: ToTestStateValue<TStateValue>) => boolean;
/**

@@ -61,3 +61,3 @@ * Whether the current state nodes has a state node with the specified `tag`.

*/
hasTag: (this: MachineSnapshot<TContext, TEvent, TChildren, TStateValue, TTag, TOutput>, tag: TTag) => boolean;
hasTag: (tag: TTag) => boolean;
/**

@@ -71,5 +71,5 @@ * Determines whether sending the `event` will cause a non-forbidden transition

*/
can: (this: MachineSnapshot<TContext, TEvent, TChildren, TStateValue, TTag, TOutput>, event: TEvent) => boolean;
getMeta: (this: MachineSnapshot<TContext, TEvent, TChildren, TStateValue, TTag, TOutput>) => Record<string, any>;
toJSON: (this: MachineSnapshot<TContext, TEvent, TChildren, TStateValue, TTag, TOutput>) => unknown;
can: (event: TEvent) => boolean;
getMeta: () => Record<string, any>;
toJSON: () => unknown;
}

@@ -76,0 +76,0 @@ interface ActiveMachineSnapshot<TContext extends MachineContext, TEvent extends EventObject, TChildren extends Record<string, AnyActorRef | undefined>, TStateValue extends StateValue, TTag extends string, TOutput> extends MachineSnapshotBase<TContext, TEvent, TChildren, TStateValue, TTag, TOutput> {

{
"name": "xstate",
"version": "5.7.0",
"version": "5.7.1",
"description": "Finite State Machines and Statecharts for the Modern Web.",

@@ -5,0 +5,0 @@ "main": "dist/xstate.cjs.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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