Socket
Socket
Sign inDemoInstall

@reach/machine

Package Overview
Dependencies
Maintainers
4
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@reach/machine - npm Package Compare versions

Comparing version 0.10.5 to 0.11.0

6

dist/index.d.ts

@@ -24,3 +24,7 @@ /// <reference types="react" />

*/
export declare function useMachine<TC extends object, TE extends MachineEventWithRefs = MachineEventWithRefs, TS extends Typestate<TC> = any>(initialMachine: StateMachine.Machine<TC, TE, TS>, refs: MachineToReactRefMap<TE>, DEBUG?: boolean): [Omit<StateMachine.State<TC, TE, TS>, "actions">, StateMachine.Service<TC, DistributiveOmit<TE, "refs">>["send"], StateMachine.Service<TC, TE>];
export declare function useMachine<TC extends object, TE extends MachineEventWithRefs = MachineEventWithRefs, TS extends Typestate<TC> = any>(initialMachine: StateMachine.Machine<TC, TE, TS>, refs: MachineToReactRefMap<TE>, DEBUG?: boolean): [
Omit<StateMachine.State<TC, TE, TS>, "actions">,
StateMachine.Service<TC, DistributiveOmit<TE, "refs">>["send"],
StateMachine.Service<TC, TE>
];
/**

@@ -27,0 +31,0 @@ * Converts an object with React refs into an object with the same keys and

8

package.json
{
"name": "@reach/machine",
"version": "0.10.5",
"version": "0.11.0",
"description": "State machine utilities for the Reach UI library.",

@@ -13,6 +13,6 @@ "author": "React Training <hello@reacttraining.com>",

"scripts": {
"build": "ts-node ../../scripts/build"
"build": "ts-node --transpile-only ../../scripts/build-package $npm_package_name"
},
"dependencies": {
"@reach/utils": "0.10.5",
"@reach/utils": "0.11.0",
"@xstate/fsm": "1.4.0",

@@ -32,3 +32,3 @@ "tslib": "^2.0.0"

],
"gitHead": "86a046f54d53b6420e392b3fa56dd991d9d4e458"
"gitHead": "7eaa66982cd17fb012c13c97e6a1770f75b6ce00"
}

Sorry, the diff of this file is not supported yet

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