Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nanostores

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nanostores - npm Package Compare versions

Comparing version 0.4.1 to 0.4.2

8

effect/index.js

@@ -16,4 +16,8 @@ let effects = 0

let endEffect = startEffect()
let result = await cb()
endEffect()
let result
try {
result = await cb()
} finally {
endEffect()
}
return result

@@ -20,0 +24,0 @@ }

{
"name": "nanostores",
"version": "0.4.1",
"version": "0.4.2",
"description": "A tiny (172 bytes) state manager for React/Preact/Vue/Svelte with many atomic tree-shakable stores",

@@ -5,0 +5,0 @@ "keywords": [

@@ -119,6 +119,6 @@ # Nano Stores

Stores have two modes: **active** and **disabled**. From the beginning,
the store is in disabled mode and does not keep value. On the first subscriber,
the store will call the initializer and will move to active mode.
One second after unsubscribing of the last listener, the store will call
the destructor.
the store is in disabled mode and does not keep value. On the first call
of `store.listen` or `store.subscribe`, the store will call the initializer
and will move to active mode. One second after unsubscribing
of the last listener, the store will call the destructor.

@@ -125,0 +125,0 @@ The only way to get store’s value is to subscribe to store’s changes:

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