polymatica-widget 2.1.4 → 2.1.5

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.
@@ -27,7 +27,7 @@ var WidgetOptionType;
27
27
  })(WidgetOptionType = exports.WidgetOptionType || (exports.WidgetOptionType = {}));
28
28
  exports.widgetOptionsTargetKey = "6ba1fa0f-7eab-49f8-80ef-0fed376661e2";
29
29
  function setWidgetOptionsTarget(options) {
30
- global[exports.widgetOptionsTargetKey] = options;
30
+ globalThis[exports.widgetOptionsTargetKey] = options;
31
31
  }
32
32
  exports.setWidgetOptionsTarget = setWidgetOptionsTarget;
33
33
  function valueConversion(type, source) {
package/config.js CHANGED
@@ -102,5 +102,5 @@ function colorPicker(params) {
102
102
  }
103
103
  exports.colorPicker = colorPicker;
104
104
  function push(option) {
105
- const target = global[widget_options_1.widgetOptionsTargetKey];
105
+ const target = globalThis[widget_options_1.widgetOptionsTargetKey];
106
106
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "polymatica-widget",
3
- "version": "2.1.4",
3
+ "version": "2.1.5",
4
4
  "description": "SDK для создания виджетов для платформы Polymatica",
5
5
  "keywords": [],
6
6
  "license": "ISC",