@webqit/oohtml 4.1.8 → 4.1.10

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": "4.1.8",
17
+ "version": "4.1.10",
18
18
  "license": "MIT",
19
19
  "repository": {
20
20
  "type": "git",
@@ -126,7 +126,7 @@ export default function() {
126
126
  priv.disconnectedCallback = () => {
127
127
  priv.hydrationImportRequest?.abort();
128
128
  priv.hydrationImportRequest = null;
129
- if ( priv.anchorNode.isConnected ) return;
129
+ if ( priv.anchorNode?.isConnected ) return;
130
130
  priv.moduleRefRealtime?.disconnect();
131
131
  priv.moduleRefRealtime = null;
132
132
  };
package/test/index.js CHANGED
@@ -27,8 +27,8 @@ export function createDocumentPrefixed( prefix, head = '', body = '', callback =
27
27
  <head>
28
28
  <meta name="$q-compiler-url" content="../quantum-js/dist/compiler.js">
29
29
  ${ prefix ? `<meta name="webqit" content="prefix=${ prefix };">` : `` }
30
- <script ssr src="/dist/main.lite.js"></script>
31
30
  ${ head }
31
+ <script ssr src="/dist/main.lite.js"></script>
32
32
  </head>
33
33
  <body>${ body }</body>
34
34
  </html>`;
@@ -10,7 +10,8 @@ describe(`Test: Scoped JS`, function() {
10
10
  describe(`Scripts`, function() {
11
11
 
12
12
  it(`Should do basic observe`, async function() {
13
- const head = '', body = `
13
+ const head = ``;
14
+ const body = `
14
15
  <h1>Hello World!</h1>
15
16
  <script scoped quantum>
16
17
  testRecords.push( this );
@@ -19,7 +20,7 @@ describe(`Test: Scoped JS`, function() {
19
20
 
20
21
  const window = createDocument( head, body );
21
22
  window.testRecords = [];
22
- await delay( 300 ); // Takes time to dynamically load Reflex compiler
23
+ await delay( 500 ); // Takes time to dynamically load Reflex compiler
23
24
 
24
25
  expect( window.testRecords ).to.have.length( 1 );
25
26
  expect( window.testRecords[ 0 ] ).to.eql( window.document.body );