@maverick-js/signals
Advanced tools
Comparing version 5.0.4 to 5.0.5
@@ -91,9 +91,9 @@ // src/scheduler.ts | ||
function untrack(compute2) { | ||
const prevScope2 = currentScope; | ||
const prevObserver2 = currentObserver; | ||
const prevScope = currentScope; | ||
const prevObserver = currentObserver; | ||
currentScope = null; | ||
currentObserver = null; | ||
const result = compute2(); | ||
currentScope = prevScope2; | ||
currentObserver = prevObserver2; | ||
currentScope = prevScope; | ||
currentObserver = prevObserver; | ||
return result; | ||
@@ -294,7 +294,4 @@ } | ||
} | ||
var prevScope; | ||
var prevObserver; | ||
function compute(scope2, node, observer) { | ||
prevScope = currentScope; | ||
prevObserver = currentObserver; | ||
let prevScope = currentScope, prevObserver = currentObserver; | ||
currentScope = scope2; | ||
@@ -309,4 +306,2 @@ currentObserver = observer; | ||
currentObserver = prevObserver; | ||
prevScope = null; | ||
prevObserver = null; | ||
if (scope2) | ||
@@ -313,0 +308,0 @@ computeStack.pop(); |
@@ -89,9 +89,9 @@ // src/scheduler.ts | ||
function untrack(compute2) { | ||
const prevScope2 = currentScope; | ||
const prevObserver2 = currentObserver; | ||
const prevScope = currentScope; | ||
const prevObserver = currentObserver; | ||
currentScope = null; | ||
currentObserver = null; | ||
const result = compute2(); | ||
currentScope = prevScope2; | ||
currentObserver = prevObserver2; | ||
currentScope = prevScope; | ||
currentObserver = prevObserver; | ||
return result; | ||
@@ -292,7 +292,4 @@ } | ||
} | ||
var prevScope; | ||
var prevObserver; | ||
function compute(scope2, node, observer) { | ||
prevScope = currentScope; | ||
prevObserver = currentObserver; | ||
let prevScope = currentScope, prevObserver = currentObserver; | ||
currentScope = scope2; | ||
@@ -307,4 +304,2 @@ currentObserver = observer; | ||
currentObserver = prevObserver; | ||
prevScope = null; | ||
prevObserver = null; | ||
if (false) | ||
@@ -311,0 +306,0 @@ computeStack.pop(); |
@@ -5,3 +5,3 @@ { | ||
"license": "MIT", | ||
"version": "5.0.4", | ||
"version": "5.0.5", | ||
"type": "module", | ||
@@ -8,0 +8,0 @@ "module": "dist/prod/index.js", |
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
59208
1199