Comparing version 1.1.4 to 1.1.5
@@ -556,13 +556,2 @@ import * as assert from "node:assert/strict"; | ||
} | ||
// Try self-accept | ||
const invalidated = []; | ||
for (const node of cycleNodes) { | ||
if (node.previous !== undefined) { | ||
const current = node.select(); | ||
const namespace = () => current.moduleNamespace()(); | ||
if (!await tryAcceptSelf(node.previous, namespace)) { | ||
invalidated.push(node); | ||
} | ||
} | ||
} | ||
// 3) Evaluate | ||
@@ -597,2 +586,13 @@ const maybe = maybeAll(Fn.map(cycleNodes, node => maybeThen(function* () { | ||
} | ||
// Try self-accept | ||
const invalidated = []; | ||
for (const node of cycleNodes) { | ||
if (node.previous !== undefined) { | ||
const current = node.select(); | ||
const namespace = () => current.moduleNamespace()(); | ||
if (!await tryAcceptSelf(node.previous, namespace)) { | ||
invalidated.push(node); | ||
} | ||
} | ||
} | ||
return { forwardResults, invalidated, treeDidUpdate: true }; | ||
@@ -599,0 +599,0 @@ }); |
{ | ||
"name": "dynohot", | ||
"type": "module", | ||
"version": "1.1.4", | ||
"version": "1.1.5", | ||
"exports": { | ||
@@ -6,0 +6,0 @@ ".": "./dist/loader/loader.js", |
@@ -76,3 +76,4 @@ [![npm version](https://badgen.now.sh/npm/v/dynohot)](https://www.npmjs.com/package/dynohot) | ||
// 🔥 This is what you have to do. This is "self accepting". | ||
import.meta.hot?.accept(() => { | ||
import.meta.hot?.accept(); | ||
import.meta.hot?.dispose(() => { | ||
server.close(); | ||
@@ -79,0 +80,0 @@ }); |
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
154547
367