Socket
Socket
Sign inDemoInstall

state-toggle

Package Overview
Dependencies
0
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.0 to 2.0.1

6

index.d.ts

@@ -8,5 +8,5 @@ /**

* @param {boolean} state
* @param {*} ctx
* @returns {() => Function}
* @param {Record<string, any>} [ctx]
* @returns {() => () => void}
*/
export function stateToggle(key: string, state: boolean, ctx: any): () => Function;
export function stateToggle(key: string, state: boolean, ctx?: Record<string, any>): () => () => void;

@@ -8,4 +8,4 @@ /**

* @param {boolean} state
* @param {*} ctx
* @returns {() => Function}
* @param {Record<string, any>} [ctx]
* @returns {() => () => void}
*/

@@ -17,2 +17,3 @@ export function stateToggle(key, state, ctx) {

* Bound enter function to set `state` as `key` on `ctx`.
* @this {Record<string, any>}
* @returns {() => void}

@@ -19,0 +20,0 @@ */

{
"name": "state-toggle",
"version": "2.0.0",
"version": "2.0.1",
"description": "Enter/exit a state",

@@ -30,2 +30,3 @@ "license": "MIT",

"devDependencies": {
"@types/tape": "^4.0.0",
"c8": "^7.0.0",

@@ -32,0 +33,0 @@ "prettier": "^2.0.0",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc