New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@nexcodepl/store

Package Overview
Dependencies
Maintainers
0
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nexcodepl/store - npm Package Compare versions

Comparing version
1.0.14
to
1.0.15
+2
-2
dist/store.d.ts

@@ -1,2 +0,2 @@

import { StoreConfig, StoreReadonly, StoreSetState, StoreSubscriber } from "./types.js";
import { StoreConfig, StoreInitState, StoreReadonly, StoreSetState, StoreSubscriber } from "./types.js";
export declare class Store<T> implements StoreReadonly<T> {

@@ -6,3 +6,3 @@ protected _state: T;

protected _subscribersSet: Set<StoreSubscriber<T>>;
constructor(initState: T, config?: StoreConfig<T>);
constructor(initState: StoreInitState<T>, config?: StoreConfig<T>);
current(): Readonly<T>;

@@ -9,0 +9,0 @@ subscribe(subscriber: StoreSubscriber<T>): () => void;

@@ -7,3 +7,3 @@ import { compare } from "./compare.js";

constructor(initState, config) {
this._state = initState;
this._state = isInitStateFunction(initState) ? initState() : initState;
this._config = config;

@@ -60,1 +60,4 @@ this._subscribersSet = new Set();

}
function isInitStateFunction(initState) {
return typeof initState === "function";
}

@@ -23,1 +23,3 @@ export type Primitive = string | number | boolean | bigint | symbol | undefined | null;

}
export type StoreInitStateFunction<T> = () => T;
export type StoreInitState<T> = T | StoreInitStateFunction<T>;
{
"name": "@nexcodepl/store",
"version": "1.0.14",
"version": "1.0.15",
"description": "State management library",

@@ -5,0 +5,0 @@ "main": "./dist/index.js",