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

wrap-request

Package Overview
Dependencies
Maintainers
1
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wrap-request - npm Package Compare versions

Comparing version
7.0.5
to
7.0.6
+7
-0
CHANGELOG.md

@@ -5,2 +5,9 @@ # Changelog

### [7.0.6](https://github.com/misantronic/wrap-request/compare/v7.0.5...v7.0.6) (2023-06-09)
### Bug Fixes
* update return-type of `didFetch` ([eff137a](https://github.com/misantronic/wrap-request/commit/eff137a0d296e4e2d975e420b3c7b77bd855e4af))
### [7.0.5](https://github.com/misantronic/wrap-request/compare/v7.0.4...v7.0.5) (2023-06-05)

@@ -7,0 +14,0 @@

+1
-1

@@ -67,3 +67,3 @@ export declare type WrapRequestState = 'loading' | 'fetched' | 'error';

reset(value?: $, params?: P): void;
didFetch<T = any>(cb: ($: RESULT<$$, DD>) => T): T | null;
didFetch<T = any>(cb: ($: $$) => T): T | null;
when(): Promise<$$>;

@@ -70,0 +70,0 @@ /**

{
"name": "wrap-request",
"version": "7.0.5",
"version": "7.0.6",
"description": "a request wrapper for asynchronous operations",

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

@@ -291,5 +291,5 @@ export type WrapRequestState = 'loading' | 'fetched' | 'error';

public didFetch<T = any>(cb: ($: RESULT<$$, DD>) => T) {
public didFetch<T = any>(cb: ($: $$) => T) {
if (this.fetched) {
return cb(this.$);
return cb(this.$ as $$);
}

@@ -296,0 +296,0 @@