@leaningtech/cheerpx 1.1.5 → 1.2.0
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/index.js +3 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
const version="1.
|
|
2
|
-
const
|
|
1
|
+
const version="1.2.0"
|
|
2
|
+
const dynImport = new Function("x", "return import(x)");
|
|
3
|
+
const CheerpX = await dynImport(`https://cxrtnc.leaningtech.com/${version}/cx.esm.js`);
|
|
3
4
|
export const Linux = CheerpX.Linux;
|
|
4
5
|
export const HttpBytesDevice = CheerpX.HttpBytesDevice;
|
|
5
6
|
export const CloudDevice = CheerpX.CloudDevice;
|