@webqit/oohtml 2.1.60 → 2.1.62

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.60",
17
+ "version": "2.1.62",
18
18
  "license": "MIT",
19
19
  "repository": {
20
20
  "type": "git",
@@ -89,11 +89,14 @@ function exposeAPIs( config ) {
89
89
  return importRequest( this, ...arguments );
90
90
  } } );
91
91
  function importRequest( context, ref, live = false, callback = null ) {
92
+ let options = { detail: ref };
92
93
  if ( typeof live === 'function' ) {
93
94
  callback = live;
94
95
  live = false;
96
+ } else if ( typeof live === 'object' && live ) {
97
+ options = { ...live, ...options };
95
98
  }
96
- const request = _HTMLImportsProvider.createRequest( { detail: ref, live } );
99
+ const request = _HTMLImportsProvider.createRequest( options );
97
100
  return context[ config.CONTEXT_API.api.context ].request( request, callback );
98
101
  }
99
102
  }