Comparing version 0.1.4 to 0.1.5
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27997