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

@atomico/hooks

Package Overview
Dependencies
Maintainers
1
Versions
115
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atomico/hooks - npm Package Compare versions

Comparing version 3.3.0 to 3.3.1

2

package.json
{
"name": "@atomico/hooks",
"description": "Series of utilities in hooks format to extend the operation of Atomico",
"version": "3.3.0",
"version": "3.3.1",
"type": "module",

@@ -6,0 +6,0 @@ "exports": {

@@ -19,2 +19,3 @@ import { useHost, useState, useEffect, useEvent } from "atomico";

/**
* Associate a subscriber and return a callback to describe
* @param {(value:any)=>void} callback

@@ -24,3 +25,7 @@ */

// Notify subs
/**
* Notify subs and gives them the new state
* @param {*} state
* @returns {void}
*/
host.sync = (state) => [...subs].forEach((fn) => fn(state));

@@ -27,0 +32,0 @@

@@ -18,2 +18,4 @@ import { useState, useEffect } from "atomico";

if (!routes) return;
// Returns to the default state to recycle the routes object
setState(DefaultState);

@@ -20,0 +22,0 @@ const reduce = () => {

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