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

@formoe/use-async

Package Overview
Dependencies
Maintainers
3
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@formoe/use-async - npm Package Compare versions

Comparing version 1.0.2 to 1.1.0

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

# [1.1.0](https://gitlab.com/formoe/formoe/compare/@formoe/use-async@1.0.2...@formoe/use-async@1.1.0) (2020-11-10)
### Features
* **use-async:** add reset function ([90e3af1](https://gitlab.com/formoe/formoe/commit/90e3af15b3f0ecad32f8e78a43a9dc23944a7bab))
## [1.0.2](https://gitlab.com/formoe/formoe/compare/@formoe/use-async@1.0.1...@formoe/use-async@1.0.2) (2020-10-02)

@@ -8,0 +19,0 @@

10

dist/index.js

@@ -164,6 +164,14 @@ "use strict";

}, [asyncFunction, request]);
var reset = (0, _react.useCallback)(function () {
setRequest();
setResult({
request: undefined
});
setInProgress(false);
}, []);
return {
result: result,
inProgress: inProgress,
setRequest: setRequest
setRequest: setRequest,
reset: reset
};

@@ -170,0 +178,0 @@ }

4

package.json
{
"name": "@formoe/use-async",
"version": "1.0.2",
"version": "1.1.0",
"description": "",

@@ -21,3 +21,3 @@ "main": "dist/index.js",

},
"gitHead": "17761f4788794f59e929097f0d45aa82665e3303"
"gitHead": "c310a148844f6b041a534b70bdf8370a2e21ea0a"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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