@axelarjs/utils
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -1,2 +0,2 @@ | ||
import { DependencyList, EffectCallback } from "react"; | ||
import { type DependencyList, type EffectCallback } from "react"; | ||
export declare const useChangedEffect: (effect: EffectCallback, deps?: DependencyList) => void; |
@@ -1,4 +0,4 @@ | ||
import { Draft } from "immer"; | ||
import { type Draft } from "immer"; | ||
export declare function usePersistedState<T>(storage: Storage, key: string, defaultValue: T): readonly [T, (valueOrProducerFn: T | ((draft: Draft<T>) => void)) => void]; | ||
export declare function useLocalStorageState<T>(key: string, defaultValue: T): readonly [T, (valueOrProducerFn: T | ((draft: Draft<T>) => void)) => void]; | ||
export declare function useSessionStorageState<T>(key: string, defaultValue: T): readonly [T, (valueOrProducerFn: T | ((draft: Draft<T>) => void)) => void]; |
@@ -1,2 +0,2 @@ | ||
import { DependencyList, EffectCallback } from "react"; | ||
import { type DependencyList, type EffectCallback } from "react"; | ||
export declare const useChangedEffect: (effect: EffectCallback, deps?: DependencyList) => void; |
@@ -1,2 +0,2 @@ | ||
import { useEffect, useRef } from "react"; | ||
import { useEffect, useRef, } from "react"; | ||
export const useChangedEffect = (effect, deps) => { | ||
@@ -3,0 +3,0 @@ const isFirstMountRef = useRef(true); |
@@ -1,4 +0,4 @@ | ||
import { Draft } from "immer"; | ||
import { type Draft } from "immer"; | ||
export declare function usePersistedState<T>(storage: Storage, key: string, defaultValue: T): readonly [T, (valueOrProducerFn: T | ((draft: Draft<T>) => void)) => void]; | ||
export declare function useLocalStorageState<T>(key: string, defaultValue: T): readonly [T, (valueOrProducerFn: T | ((draft: Draft<T>) => void)) => void]; | ||
export declare function useSessionStorageState<T>(key: string, defaultValue: T): readonly [T, (valueOrProducerFn: T | ((draft: Draft<T>) => void)) => void]; |
{ | ||
"name": "@axelarjs/utils", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"publishConfig": { | ||
@@ -17,11 +17,21 @@ "access": "public" | ||
"./index.js", | ||
"./index.d.ts", | ||
"./array.js", | ||
"./array.d.ts", | ||
"./case-conversion.js", | ||
"./case-conversion.d.ts", | ||
"./function.js", | ||
"./function.d.ts", | ||
"./guard.js", | ||
"./guard.d.ts", | ||
"./hex.js", | ||
"./hex.d.ts", | ||
"./monad.js", | ||
"./monad.d.ts", | ||
"./record.js", | ||
"./record.d.ts", | ||
"./string.js", | ||
"./types.js" | ||
"./string.d.ts", | ||
"./types.js", | ||
"./types.d.ts" | ||
], | ||
@@ -67,3 +77,3 @@ "exports": { | ||
"vitest": "^0.34.4", | ||
"@axelarjs/config": "0.1.2" | ||
"@axelarjs/config": "0.1.3" | ||
}, | ||
@@ -81,4 +91,6 @@ "dependencies": { | ||
"build": "scripts/build.sh", | ||
"clean": "scripts/clean.sh" | ||
"clean": "scripts/clean.sh", | ||
"lint": "eslint src --ext .ts", | ||
"lint:fix": "eslint src --ext .ts --fix" | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
import { DependencyList, EffectCallback } from "react"; | ||
import { type DependencyList, type EffectCallback } from "react"; | ||
export declare const useChangedEffect: (effect: EffectCallback, deps?: DependencyList) => void; |
@@ -1,4 +0,4 @@ | ||
import { Draft } from "immer"; | ||
import { type Draft } from "immer"; | ||
export declare function usePersistedState<T>(storage: Storage, key: string, defaultValue: T): readonly [T, (valueOrProducerFn: T | ((draft: Draft<T>) => void)) => void]; | ||
export declare function useLocalStorageState<T>(key: string, defaultValue: T): readonly [T, (valueOrProducerFn: T | ((draft: Draft<T>) => void)) => void]; | ||
export declare function useSessionStorageState<T>(key: string, defaultValue: T): readonly [T, (valueOrProducerFn: T | ((draft: Draft<T>) => void)) => void]; |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
97153
106
2261
0