@webqit/oohtml 2.1.14 → 2.1.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -14,7 +14,7 @@
14
14
  "wicg-proposal"
15
15
  ],
16
16
  "homepage": "https://webqit.io/tooling/oohtml",
17
- "version": "2.1.14",
17
+ "version": "2.1.16",
18
18
  "license": "MIT",
19
19
  "repository": {
20
20
  "type": "git",
@@ -38,10 +38,10 @@
38
38
  "postpublish": "git push && git push --tags"
39
39
  },
40
40
  "dependencies": {
41
- "@webqit/dom": "^2.0.5",
42
- "@webqit/observer": "^2.0.6",
41
+ "@webqit/dom": "^2.0.8",
42
+ "@webqit/observer": "^2.0.7",
43
43
  "@webqit/subscript": "^2.1.39",
44
- "@webqit/util": "^0.8.10"
44
+ "@webqit/util": "^0.8.11"
45
45
  },
46
46
  "devDependencies": {
47
47
  "chai": "^4.3.4",
@@ -27,7 +27,7 @@ export default function init( { advanced = {}, ...$config } ) {
27
27
  return selector.concat( `script${ qualifier }[scoped],script${ qualifier }[contract]` );
28
28
  }, [] ).join( ',' );
29
29
  window.webqit.oohtml.Script = { compileCache: [ new Map, new Map, ] };
30
- window.webqit.SubscriptFunction = $config.SubscriptFunction/* allow for injection, e.g. from test runner */ || SubscriptFunction;
30
+ window.webqit.SubscriptFunction = config.SubscriptFunction/* allow for injection, e.g. from test runner */ || SubscriptFunction;
31
31
  window.webqit.Observer = Observer;
32
32
  realtime.call( window, config );
33
33
  }
package/src/util.js CHANGED
@@ -9,13 +9,16 @@ import { _merge } from '@webqit/util/obj/index.js';
9
9
  export const _ = ( ...args ) => _internals( 'oohtml', ...args );
10
10
 
11
11
  export function _init( name, $config, $defaults ) {
12
+ const _name = name.toUpperCase().replace( '-', '_' );
12
13
  const window = this, dom = webqitDom.call( window );
13
14
  window.webqit || ( window.webqit = {} );
14
15
  window.webqit.oohtml || ( window.webqit.oohtml = {} );
15
16
  window.webqit.oohtml.configs || ( window.webqit.oohtml.configs = {} );
16
- const config = _merge( 2, $defaults, $config, dom.meta( name ).json() );
17
- window.webqit.oohtml.configs[ name.toUpperCase().replace( '-', '_' ) ] = config;
18
- return { config, dom, window };
17
+ window.webqit.oohtml.configs[ _name ] || ( window.webqit.oohtml.configs[ _name ] = {} );
18
+ // ---------------------
19
+ _merge( 2, window.webqit.oohtml.configs[ _name ], $defaults, $config, dom.meta( name ).json() );
20
+ // ---------------------
21
+ return { config: window.webqit.oohtml.configs[ _name ], dom, window };
19
22
  }
20
23
 
21
24
  export function _compare( a, b, depth = 1, objectSizing = false ) {