@thi.ng/defmulti
Advanced tools
Comparing version 3.0.38 to 3.0.39
# Change Log | ||
- **Last updated**: 2024-04-23T07:02:18Z | ||
- **Last updated**: 2024-05-08T18:24:31Z | ||
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub) | ||
@@ -5,0 +5,0 @@ |
@@ -29,4 +29,3 @@ import { unsupported } from "@thi.ng/errors/unsupported"; | ||
fn.remove = (id) => { | ||
if (!impls[id]) | ||
return false; | ||
if (!impls[id]) return false; | ||
delete impls[id]; | ||
@@ -51,4 +50,3 @@ return true; | ||
const impl = findImpl(impls, rels, id); | ||
if (impl) | ||
res.set(id, impl); | ||
if (impl) res.set(id, impl); | ||
} | ||
@@ -66,4 +64,3 @@ if (impls[DEFAULT]) { | ||
for (let a in rels) { | ||
for (let b of rels[a]) | ||
yield [a, b]; | ||
for (let b of rels[a]) yield [a, b]; | ||
} | ||
@@ -79,8 +76,6 @@ for (let id in impls) { | ||
const parents = rels[id]; | ||
if (!parents) | ||
return; | ||
if (!parents) return; | ||
for (let p of parents) { | ||
let impl = impls[p] || findImpl(impls, rels, p); | ||
if (impl) | ||
return impl; | ||
if (impl) return impl; | ||
} | ||
@@ -87,0 +82,0 @@ }; |
{ | ||
"name": "@thi.ng/defmulti", | ||
"version": "3.0.38", | ||
"version": "3.0.39", | ||
"description": "Dynamic, extensible multiple dispatch via user supplied dispatch function.", | ||
@@ -39,11 +39,11 @@ "type": "module", | ||
"dependencies": { | ||
"@thi.ng/api": "^8.11.1", | ||
"@thi.ng/errors": "^2.5.6", | ||
"@thi.ng/logger": "^3.0.11" | ||
"@thi.ng/api": "^8.11.2", | ||
"@thi.ng/errors": "^2.5.7", | ||
"@thi.ng/logger": "^3.0.12" | ||
}, | ||
"devDependencies": { | ||
"@microsoft/api-extractor": "^7.43.0", | ||
"esbuild": "^0.20.2", | ||
"typedoc": "^0.25.12", | ||
"typescript": "^5.4.3" | ||
"@microsoft/api-extractor": "^7.43.2", | ||
"esbuild": "^0.21.1", | ||
"typedoc": "^0.25.13", | ||
"typescript": "^5.4.5" | ||
}, | ||
@@ -94,3 +94,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "5dd66c18a3862a3af69a5b2f49563f7cbdd960c2\n" | ||
"gitHead": "df34b4a9e650cc7323575356de207d78933bdcf3\n" | ||
} |
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
59506
474
Updated@thi.ng/api@^8.11.2
Updated@thi.ng/errors@^2.5.7
Updated@thi.ng/logger@^3.0.12