@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/README.md +367 -90
- package/dist/html-imports.js +1 -1
- package/dist/html-imports.js.map +2 -2
- package/dist/main.js +1 -1
- package/dist/main.js.map +2 -2
- package/package.json +1 -1
- package/src/html-imports/index.js +4 -1
package/package.json
CHANGED
|
@@ -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(
|
|
99
|
+
const request = _HTMLImportsProvider.createRequest( options );
|
|
97
100
|
return context[ config.CONTEXT_API.api.context ].request( request, callback );
|
|
98
101
|
}
|
|
99
102
|
}
|