New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@xstate/graph

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xstate/graph - npm Package Compare versions

Comparing version 1.0.0-rc1 to 1.0.0-rc1.1

3

lib/graph.d.ts

@@ -1,3 +0,4 @@

import { StateNode, State, DefaultContext, EventObject, StateMachine } from 'xstate';
import { StateNode, State, DefaultContext, Event, EventObject, StateMachine } from 'xstate';
import { StatePathsMap, StatePaths, AdjacencyMap } from './types';
export declare function toEventObject<TEvent extends EventObject>(event: Event<TEvent>): TEvent;
/**

@@ -4,0 +5,0 @@ * Returns all state nodes of the given `node`.

@@ -45,2 +45,9 @@ "use strict";

var utils_1 = require("xstate/lib/utils");
function toEventObject(event) {
if (typeof event === 'string' || typeof event === 'number') {
return { type: event };
}
return event;
}
exports.toEventObject = toEventObject;
var EMPTY_MAP = {};

@@ -111,3 +118,3 @@ /**

adjacency[stateHash] = {};
var potentialEvents = utils_1.flatten(nextEvents.map(function (nextEvent) { return events[nextEvent] || []; })).map(function (event) { return utils_1.toEventObject(event); });
var potentialEvents = utils_1.flatten(nextEvents.map(function (nextEvent) { return events[nextEvent] || []; })).map(function (event) { return toEventObject(event); });
try {

@@ -114,0 +121,0 @@ for (var potentialEvents_1 = __values(potentialEvents), potentialEvents_1_1 = potentialEvents_1.next(); !potentialEvents_1_1.done; potentialEvents_1_1 = potentialEvents_1.next()) {

{
"name": "@xstate/graph",
"version": "1.0.0-rc1",
"version": "1.0.0-rc1.1",
"description": "XState graph utilities",

@@ -36,3 +36,3 @@ "keywords": [

"peerDependencies": {
"xstate": "^4.5.0"
"xstate": "^4.7.0"
},

@@ -45,3 +45,4 @@ "devDependencies": {

"typescript": "^3.5.3"
}
},
"dependencies": {}
}

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