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

@nanostores/query

Package Overview
Dependencies
Maintainers
4
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nanostores/query - npm Package Compare versions

Comparing version 0.2.2 to 0.2.3

4

dist/main.d.ts

@@ -7,3 +7,3 @@ import { MapStore, ReadableAtom } from "nanostores";

declare type KeyParts = SomeKey[];
declare type KeySelector = Key | Key[] | ((key: Key) => boolean);
export declare type KeySelector = Key | Key[] | ((key: Key) => boolean);
export declare type Fetcher<T> = (...args: KeyParts) => Promise<T>;

@@ -39,3 +39,3 @@ declare type EventTypes = {

data: Data;
invalidate: (key: Key) => void;
invalidate: (key: KeySelector) => void;
getCacheUpdater: <T = unknown>(key: Key, shouldRevalidate?: boolean) => [(newValue?: T) => void, T | undefined];

@@ -42,0 +42,0 @@ }) => Promise<Result>;

@@ -230,3 +230,3 @@ import { map, onStart, onStop, atom } from "nanostores";

store.setKey("loading", false);
invalidateKeys(keysToInvalidate);
keysToInvalidate.forEach(invalidateKeys);
}

@@ -233,0 +233,0 @@ };

{
"name": "@nanostores/query",
"version": "0.2.2",
"version": "0.2.3",
"description": "Tiny remote data fetching library for Nano Stores",

@@ -5,0 +5,0 @@ "scripts": {

Sorry, the diff of this file is not supported yet

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