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.4 to 0.4.5

5

create-map/index.d.ts
type AllKeys<T> = T extends any ? keyof T : never
type Get<T, K> = Extract<T, { [K1 in K]: any }>[K];

@@ -83,3 +84,3 @@ export interface MapStore<Value extends object = any> {

*/
setKey<Key extends keyof Value>(key: Key, value: Value[Key]): void
setKey<Key extends AllKeys<Value>>(key: Key, value: Get<Value, Key>): void

@@ -96,3 +97,3 @@ /**

*/
notify(key: keyof Value): void
notify(key: AllKeys<Value>): void
}

@@ -99,0 +100,0 @@

2

package.json
{
"name": "nanostores",
"version": "0.4.4",
"version": "0.4.5",
"description": "A tiny (172 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