@webqit/oohtml 2.1.49 → 2.1.50

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.49",
17
+ "version": "2.1.50",
18
18
  "license": "MIT",
19
19
  "repository": {
20
20
  "type": "git",
@@ -70,7 +70,7 @@ export default class _HTMLExportsManager {
70
70
  * @returns Void
71
71
  */
72
72
  export( entries, isConnected ) {
73
- let dirty, allFragments = Observer.get( this.modules, '#' ) || [];
73
+ let dirty, allFragments = this.modules[ '#' ] || [];
74
74
  Observer.batch( this.modules, () => {
75
75
  entries.forEach( entry => {
76
76
  if ( entry.nodeType !== 1 ) return;
@@ -139,7 +139,7 @@ export default class _HTMLExportsManager {
139
139
  const fire = ( type, detail ) => this.host.dispatchEvent( new this.window.CustomEvent( type, { detail } ) );
140
140
  const request = this.window.fetch( src, { signal: controller.signal, element: this.host } ).then( response => {
141
141
  return response.ok ? response.text() : Promise.reject( response.statusText );
142
- }).then( content => {
142
+ } ).then( content => {
143
143
  this.host.innerHTML = content.trim(); // IMPORTANT: .trim()
144
144
  fire( 'load' );
145
145
  return this.host;
@@ -102,7 +102,7 @@ describe(`HTML Modules`, function() {
102
102
  const timeout = 1000;
103
103
  mockRemoteFetch( window, { '/temp0.html': contents0, '/temp1.html': contents1, '/temp2.html': contents2 }, timeout );
104
104
  } );
105
- await delay( 20 );
105
+ await delay( 50 );
106
106
  const { webqit: { Observer } } = window;
107
107
  // -------
108
108
  // Add a remote module
@@ -153,7 +153,7 @@ describe(`HTML Modules`, function() {
153
153
  const body = `
154
154
  <div></div>`;
155
155
  const { document, window } = createDocument( head, body );
156
- await delay( 20 );
156
+ await delay( 50 );
157
157
 
158
158
  // -------
159
159
  const addScopedModules = () => {