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

async-ref

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

async-ref - npm Package Compare versions

Comparing version 0.1.4 to 0.1.5

4

dist/index.js

@@ -66,4 +66,2 @@ var __defProp = Object.defineProperty;

__privateSet(this, _notify, notify);
const derefResolve = __privateGet(this, _resolve);
const derefReject = __privateGet(this, _reject);
__privateSet(this, _promise, new Promise((resolve, reject) => {

@@ -77,2 +75,4 @@ if (__privateGet(this, _state).status === 1 /* Success */) {

}
const derefResolve = __privateGet(this, _resolve);
const derefReject = __privateGet(this, _reject);
__privateSet(this, _resolve, (value) => {

@@ -79,0 +79,0 @@ derefResolve(value);

{
"name": "async-ref",
"description": "Async ref objects for React. A tiny bridge between React.useSyncExternalStore and React.Suspense.",
"version": "0.1.4",
"version": "0.1.5",
"main": "dist/index.js",

@@ -6,0 +6,0 @@ "module": "dist/index.mjs",

@@ -43,5 +43,2 @@ type Notify = () => void;

const derefResolve = this.#resolve;
const derefReject = this.#reject;
this.#promise = new Promise((resolve, reject) => {

@@ -60,2 +57,5 @@ /**

const derefResolve = this.#resolve;
const derefReject = this.#reject;
/**

@@ -62,0 +62,0 @@ * If it has not been resolved yet, then wrap the previous #resolve and #reject

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

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