@acanto/core-helpers
Advanced tools
Comparing version 0.0.33 to 0.0.34
@@ -38,1 +38,22 @@ import { $ } from "@acanto/core-dom"; | ||
} | ||
/** | ||
* @see https://stackoverflow.com/a/37673534/1938970 | ||
* | ||
* @example | ||
* ```js | ||
* const deferred = new Defer(); | ||
* deferred.resolve(); | ||
* deferred.then(handleSuccess, handleError); | ||
*/ | ||
export function Defer<T>() /* : PromiseConstructor */ { | ||
const p = (this.promise = new Promise((resolve, reject) => { | ||
this.resolve = resolve; | ||
this.reject = reject; | ||
})); | ||
this.then = p.then.bind(p); | ||
this.catch = p.catch.bind(p); | ||
if (p.finally) { | ||
this.finally = p.finally.bind(p); | ||
} | ||
} |
{ | ||
"name": "@acanto/core-helpers", | ||
"version": "0.0.33", | ||
"version": "0.0.34", | ||
"author": "Acanto <info@acanto.net> (https://acanto.agency/)", | ||
@@ -17,3 +17,3 @@ "license": "ISC", | ||
"@acanto/core-dom": "^0.0.18", | ||
"@acanto/core-forms": "^0.0.42", | ||
"@acanto/core-forms": "^0.0.43", | ||
"date-fns": "^2.16.1", | ||
@@ -24,3 +24,3 @@ "lodash.debounce": "^4.0.8", | ||
"sideEffects": false, | ||
"gitHead": "65d3acd9ef64d963bed7ad79144537c051a4bdf7" | ||
"gitHead": "ce8a3a31c3c90fb08d496e6d33c0f3af7a59e377" | ||
} |
AI-detected possible typosquat
Supply chain riskAI has identified this package as a potential typosquat of a more popular package. This suggests that the package may be intentionally mimicking another package's name, description, or other metadata.
Found 1 instance in 1 package
28017
1017
1
+ Added@acanto/core-forms@0.0.43(transitive)
- Removed@acanto/core-forms@0.0.42(transitive)
Updated@acanto/core-forms@^0.0.43