🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

awai-react

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

awai-react - npm Package Compare versions

Comparing version

to
0.0.1-alpha-6

17

dist/index.js

@@ -10,8 +10,18 @@ 'use strict';

let mounted = true;
let abortController;
setState(readable.getAsync());
(async () => {
while (mounted) {
await readable.events.changed;
if (mounted) {
setState(readable.getAsync());
abortController = new AbortController();
try {
await Promise.any([
readable.events.fulfilled.abortable(abortController),
readable.events.rejected.abortable(abortController),
readable.events.requested.abortable(abortController)
]);
if (mounted) {
setState(readable.getAsync());
}
} finally {
abortController.abort();
}

@@ -22,2 +32,3 @@ }

mounted = false;
abortController?.abort();
};

@@ -24,0 +35,0 @@ }, [readable]);

4

package.json
{
"name": "awai-react",
"version": "0.0.1-alpha-5",
"version": "v0.0.1-alpha-6",
"author": "Yuriy Yakym",

@@ -39,3 +39,3 @@ "description": "React hooks for Awai integration",

"@types/react": "^18.2.16",
"awai": "^0.0.1-alpha-3",
"awai": "^1.0.0-alpha-2",
"jest": "^29.6.2",

@@ -42,0 +42,0 @@ "jest-environment-jsdom": "^29.6.2",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet