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

react-cancelable

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-cancelable - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

LICENSE

4

lib/cjs/useCancelableImg.d.ts
/**
* @description Hook to prepare cencelable image request.
* `fn` must return a Request as Blob
* @description Hook to prepare cancelable image request.
* `fn` must return a Request with Blob response
*/
export default function useCancelableImg(fn: CancelableRequestFn, opts?: UseCancelableReqParams): UseCancelableImgReturn;

@@ -9,4 +9,4 @@ "use strict";

/**
* @description Hook to prepare cencelable image request.
* `fn` must return a Request as Blob
* @description Hook to prepare cancelable image request.
* `fn` must return a Request with Blob response
*/

@@ -13,0 +13,0 @@ function useCancelableImg(fn, opts) {

/**
* @description Hook to prepare cencelable image request.
* `fn` must return a Request as Blob
* @description Hook to prepare cancelable image request.
* `fn` must return a Request with Blob response
*/
export default function useCancelableImg(fn: CancelableRequestFn, opts?: UseCancelableReqParams): UseCancelableImgReturn;
import { useState } from "react";
import useCancelableReq from "./useCancelableReq";
/**
* @description Hook to prepare cencelable image request.
* `fn` must return a Request as Blob
* @description Hook to prepare cancelable image request.
* `fn` must return a Request with Blob response
*/

@@ -7,0 +7,0 @@ export default function useCancelableImg(fn, opts) {

{
"name": "react-cancelable",
"version": "1.0.2",
"version": "1.0.3",
"main": "./lib/cjs/index.js",

@@ -5,0 +5,0 @@ "module": "./lib/esm/index.js",

<h1 align="center">react-cancelable</h1>
<p align="center"><i>Improve client's traffic experiense</i></span>
<p align="center"><i>Internet traffic economizer</i></span>
<br></br>

@@ -8,3 +8,4 @@

[![version][npm-version-badge]][npm-url]
[![downloads][total-downloads-badge]][npm-url]
[![downloads][weekly-downloads-badge]][npm-url]
<!-- [![downloads][total-downloads-badge]][npm-url] -->

@@ -14,2 +15,3 @@ [npm-url]: https://www.npmjs.com/package/react-cancelable

[total-downloads-badge]: https://img.shields.io/npm/dt/react-cancelable.svg
[weekly-downloads-badge]: https://img.shields.io/npm/dm/react-cancelable.svg

@@ -33,3 +35,3 @@ <br />

In most of cases client consumes a lot of excess traffic. Modern web applications make a huge bunch of requests per conventional time unit then a lot of clients don't wait until all requests made by web app are finished. As a result, the browser expects data that will no longer be used
In most of cases client consumes a lot of excess internet traffic. Modern web applications make a huge bunch of requests per conventional time unit then a lot of clients don't wait until all requests made by web app are finished. As a result, the browser expects data that will no longer be used

@@ -36,0 +38,0 @@ But don't worry you can easily deal with it with the latest AbortController API and react-cancelable

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