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.3.0 to 0.3.1

14

create-map/index.js

@@ -23,10 +23,12 @@ import { clean } from '../clean-stores/index.js'

setKey(key, newValue) {
if (typeof newValue === 'undefined') {
if (key in store.value) {
delete store.value[key]
if (store.value) {
if (typeof newValue === 'undefined') {
if (key in store.value) {
delete store.value[key]
store.notify(key)
}
} else if (store.value[key] !== newValue) {
store.value[key] = newValue
store.notify(key)
}
} else if (store.value[key] !== newValue) {
store.value[key] = newValue
store.notify(key)
}

@@ -33,0 +35,0 @@ },

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

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

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