@-0/browser
Advanced tools
Comparing version 0.3.17 to 0.3.18
@@ -15,9 +15,9 @@ import { DOM_NODE, URL_FULL, CMD_SUB$, CMD_ARGS, CMD_SRC$, CMD_WORK, } from "@-0/keys"; | ||
const url = acc[URL_FULL]; | ||
const node = acc[DOM_NODE]; | ||
const node = acc[DOM_NODE] || document; | ||
const props = { [URL_FULL]: url, [DOM_NODE]: node }; | ||
if (url && node) | ||
if (url) | ||
return run$.next(routing_task(props)); | ||
console.warn(Err_missing_props("_URL_NAVIGATED$_DOM (registerRouterDOM)", props)); | ||
console.warn(Err_missing_props("_URL_NAVIGATED$_DOM (from registerRouterDOM)", props)); | ||
}, | ||
}); | ||
}; |
@@ -5,4 +5,4 @@ import { Atom } from "@thi.ng/atom"; | ||
export const $store$ = new Atom($$_DEFAULT); | ||
export const set$$tate = (path, val, store = $store$) => store.swapIn(path, (x) => { | ||
export const set$$tate = (path, val, store = $store$) => store.swapIn(path, x => { | ||
return isPlainObject(x) && isPlainObject(val) ? Object.assign(Object.assign({}, x), val) : val; | ||
}); |
@@ -5,3 +5,3 @@ { | ||
"license": "MIT", | ||
"version": "0.3.17", | ||
"version": "0.3.18", | ||
"description": "Browser helpers for -0 state management, routing and the interaction between", | ||
@@ -35,24 +35,24 @@ "main": "./lib/index.js", | ||
"dependencies": { | ||
"@-0/keys": "^0.3.17", | ||
"@-0/utils": "^0.3.17", | ||
"@-0/spool": "^0.3.14", | ||
"@thi.ng/paths": "^4.2.9", | ||
"@thi.ng/rstream": "^6.0.10" | ||
"@-0/keys": "^0.3.19", | ||
"@-0/utils": "^0.3.19", | ||
"@-0/spool": "^0.3.15", | ||
"@thi.ng/paths": "^4.2.12", | ||
"@thi.ng/rstream": "^6.0.16" | ||
}, | ||
"devDependencies": { | ||
"@babel/plugin-transform-modules-commonjs": "^7.14.5", | ||
"@thi.ng/arrays": "^0.10.13", | ||
"@thi.ng/associative": "5.2.6", | ||
"@thi.ng/atom": "^4.1.37", | ||
"@thi.ng/checks": "^2.9.8", | ||
"@thi.ng/paths": "^4.2.9", | ||
"@thi.ng/rstream": "^6.0.10", | ||
"@thi.ng/transducers": "^7.7.4", | ||
"@types/jest": "^26.0.24", | ||
"@types/node": "^16.4.0", | ||
"@typescript-eslint/eslint-plugin": "^4.28.4", | ||
"@typescript-eslint/parser": "^4.28.4", | ||
"@babel/plugin-transform-modules-commonjs": "^7.15.0", | ||
"@thi.ng/arrays": "^1.0.1", | ||
"@thi.ng/associative": "5.2.11", | ||
"@thi.ng/atom": "^4.1.40", | ||
"@thi.ng/checks": "^2.9.10", | ||
"@thi.ng/paths": "^4.2.12", | ||
"@thi.ng/rstream": "^6.0.16", | ||
"@thi.ng/transducers": "^7.8.3", | ||
"@types/jest": "^27.0.1", | ||
"@types/node": "^16.6.1", | ||
"@typescript-eslint/eslint-plugin": "^4.29.2", | ||
"@typescript-eslint/parser": "^4.29.2", | ||
"babel-jest": "^27.0.6", | ||
"cross-env": "^7.0.3", | ||
"eslint": "^7.31.0", | ||
"eslint": "^7.32.0", | ||
"eslint-plugin-jest": "^24.4.0", | ||
@@ -59,0 +59,0 @@ "gh-pages": "^3.2.3", |
46903
Updated@-0/keys@^0.3.19
Updated@-0/spool@^0.3.15
Updated@-0/utils@^0.3.19
Updated@thi.ng/paths@^4.2.12
Updated@thi.ng/rstream@^6.0.16