@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.
Files changed (2) hide show
  1. package/index.js +3 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,5 +1,6 @@
1
- const version="1.1.5"
2
- const CheerpX = await import(`https://cxrtnc.leaningtech.com/${version}/cx.esm.js`);
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leaningtech/cheerpx",
3
- "version": "1.1.5",
3
+ "version": "1.2.0",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",