Comparing version 2.1.0 to 2.1.1
@@ -77,5 +77,2 @@ var __defProp = Object.defineProperty; | ||
function invalidate() { | ||
if (stack.length && seqNo === sequenceNumber) { | ||
throw new Error(`[Quarx]: Circular dependency detected in ${name}`); | ||
} | ||
seqNo = 0; | ||
@@ -85,2 +82,5 @@ invalidated.add(run); | ||
function actualize() { | ||
if (isRunning) { | ||
throw new Error(`[Quarx]: Circular dependency detected in ${name}`); | ||
} | ||
if (seqNo === sequenceNumber) | ||
@@ -98,5 +98,2 @@ return; | ||
function run() { | ||
if (isRunning) { | ||
throw new Error(`[Quarx]: Self-dependency detected in ${name}`); | ||
} | ||
isRunning = true; | ||
@@ -103,0 +100,0 @@ const previousDeps = dependencies; |
@@ -7,3 +7,3 @@ { | ||
"name": "quarx", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "Simple dependency graph engine, MobX inspired", | ||
@@ -10,0 +10,0 @@ "main": "dist/index.js", |
@@ -67,5 +67,2 @@ const stack = []; | ||
function invalidate() { | ||
if (stack.length && seqNo === sequenceNumber) { | ||
throw new Error(`[Quarx]: Circular dependency detected in ${name}`); | ||
} | ||
seqNo = 0; | ||
@@ -76,2 +73,5 @@ invalidated.add(run); | ||
function actualize() { | ||
if (isRunning) { | ||
throw new Error(`[Quarx]: Circular dependency detected in ${name}`); | ||
} | ||
if (seqNo === sequenceNumber) return; | ||
@@ -88,5 +88,2 @@ if (!seqNo) return run(); | ||
function run() { | ||
if (isRunning) { | ||
throw new Error(`[Quarx]: Self-dependency detected in ${name}`); | ||
} | ||
isRunning = true; | ||
@@ -93,0 +90,0 @@ |
export default { | ||
files: ['tests/perf.spec.js'], | ||
require: 'esm' | ||
files: ['tests/perf.spec.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
18771
410