Comparing version 3.1.0 to 3.2.0
@@ -15,2 +15,3 @@ var __defProp = Object.defineProperty; | ||
createAtom: () => createAtom, | ||
getHydrationId: () => getHydrationId, | ||
observable: () => observable, | ||
@@ -26,2 +27,3 @@ untracked: () => untracked | ||
var batchDepth = 0; | ||
var getHydrationId = () => sequenceNumber; | ||
function tryCatch(fn, onError) { | ||
@@ -234,4 +236,5 @@ try { | ||
createAtom, | ||
getHydrationId, | ||
observable, | ||
untracked | ||
}); |
@@ -1,4 +0,4 @@ | ||
export { createAtom, autorun, batch, untracked } from './src/core'; | ||
export { createAtom, autorun, batch, untracked, getHydrationId } from './src/core'; | ||
export { computed } from './src/computed'; | ||
import { box } from './src/box' | ||
export const observable = { box }; |
@@ -7,3 +7,3 @@ { | ||
"name": "quarx", | ||
"version": "3.1.0", | ||
"version": "3.2.0", | ||
"description": "Simple dependency graph engine, MobX inspired", | ||
@@ -10,0 +10,0 @@ "main": "dist/index.js", |
@@ -8,2 +8,4 @@ const stack = []; | ||
export const getHydrationId = () => sequenceNumber; | ||
function tryCatch(fn, onError) { | ||
@@ -62,3 +64,3 @@ try { | ||
reportChanged() { | ||
// console.debug(`${name} changed`); | ||
// console.debug(`[Quarx]: ${name} changed`); | ||
({ actualize } = stack[stack.length - 1] || {}); | ||
@@ -110,2 +112,3 @@ for (let invalidate of observers.keys()) invalidate(); | ||
function run() { | ||
// console.debug(`[Quarx]: Running ${name}`, sequenceNumber); | ||
isRunning = true; | ||
@@ -112,0 +115,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
20295
465