You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@leight/context

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@leight/context - npm Package Compare versions

Comparing version

to
0.5.27

13

lib/api/index.d.ts

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

import { type IStateCreatorProps, type IStoreApi, type IStoreProps } from "@leight/zustand";
import { type IStateCreatorProps, type IStoreApi, type IStoreProps, type StoreApi } from "@leight/zustand";
import { type FC, type ReactNode } from "react";

@@ -20,2 +20,13 @@ export type IContextRender<TContext> = (context: TContext) => ReactNode;

}
/**
* Typed set of generated components used for working with Store; Provider, states and the others otherwise
* boilerplate code.
*/
export interface IStoreContext<TStoreProps extends IStoreProps> {
readonly Provider: IStoreProvider<TStoreProps>;
readonly useState: IUseState<TStoreProps>;
readonly useOptionalState: IUseOptionalState<TStoreProps>;
readonly useStore: () => StoreApi<TStoreProps["StoreProps"]>;
readonly useOptionalStore: () => StoreApi<TStoreProps["StoreProps"]> | null;
}
//# sourceMappingURL=index.d.ts.map

12

package.json
{
"version": "0.5.26",
"version": "0.5.27",
"name": "@leight/context",

@@ -31,10 +31,10 @@ "description": "Common context stuff.",

"dependencies": {
"@leight/zustand": "^0.5.63",
"@leight/zustand": "^0.5.64",
"react": "^18.2.0"
},
"devDependencies": {
"@leight/esbuild": "^0.5.42",
"@leight/eslint-config-eslint": "^0.5.51",
"@leight/tsconfig": "^0.5.65",
"@leight/turbowatch": "^0.5.30",
"@leight/esbuild": "^0.5.43",
"@leight/eslint-config-eslint": "^0.5.52",
"@leight/tsconfig": "^0.5.66",
"@leight/turbowatch": "^0.5.31",
"@types/node": "^18.15.0",

@@ -41,0 +41,0 @@ "@types/react": "^18.0.28",

import {
type IStateCreatorProps,
type IStoreApi,
type IStoreProps
type IStoreProps,
type StoreApi
} from "@leight/zustand";

@@ -39,1 +40,13 @@ import {

}
/**
* Typed set of generated components used for working with Store; Provider, states and the others otherwise
* boilerplate code.
*/
export interface IStoreContext<TStoreProps extends IStoreProps> {
readonly Provider: IStoreProvider<TStoreProps>;
readonly useState: IUseState<TStoreProps>;
readonly useOptionalState: IUseOptionalState<TStoreProps>;
readonly useStore: () => StoreApi<TStoreProps["StoreProps"]>;
readonly useOptionalStore: () => StoreApi<TStoreProps["StoreProps"]> | null;
}

Sorry, the diff of this file is not supported yet