@solibo/home-api 1.1.104 → 1.1.105

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.
@@ -37,17 +37,6 @@ if (typeof Array.prototype.fill === 'undefined') {
37
37
  Object.defineProperty(TypedArray.prototype, 'fill', {value: Array.prototype.fill});
38
38
  }
39
39
  });
40
- if (typeof Math.trunc === 'undefined') {
41
- Math.trunc = function (x) {
42
- if (isNaN(x)) {
43
- return NaN;
44
- }
45
- if (x > 0) {
46
- return Math.floor(x);
47
- }
48
- return Math.ceil(x);
49
- };
50
- }
51
40
  if (typeof Math.clz32 === 'undefined') {
52
41
  Math.clz32 = function (log, LN2) {
53
42
  return function (x) {
@@ -59,11 +48,16 @@ if (typeof Math.clz32 === 'undefined') {
59
48
  };
60
49
  }(Math.log, Math.LN2);
61
50
  }
62
- if (typeof String.prototype.startsWith === 'undefined') {
63
- Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
64
- position = position || 0;
65
- return this.lastIndexOf(searchString, position) === position;
66
- }});
51
+ if (typeof Math.trunc === 'undefined') {
52
+ Math.trunc = function (x) {
53
+ if (isNaN(x)) {
54
+ return NaN;
55
+ }
56
+ if (x > 0) {
57
+ return Math.floor(x);
58
+ }
59
+ return Math.ceil(x);
60
+ };
67
61
  }
68
62
  if (typeof String.prototype.endsWith === 'undefined') {
69
63
  Object.defineProperty(String.prototype, 'endsWith', {value: function (searchString, position) {
@@ -76,6 +70,12 @@ if (typeof String.prototype.endsWith === 'undefined') {
76
70
  return lastIndex !== -1 && lastIndex === position;
77
71
  }});
78
72
  }
73
+ if (typeof String.prototype.startsWith === 'undefined') {
74
+ Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
75
+ position = position || 0;
76
+ return this.lastIndexOf(searchString, position) === position;
77
+ }});
78
+ }
79
79
  //endregion
80
80
  //region block: imports
81
81
  var imul_0 = Math.imul;
@@ -262,7 +262,7 @@ initMetadataForClass(ContextScope, 'ContextScope', VOID, VOID, [CoroutineScope])
262
262
  initMetadataForClass(Symbol, 'Symbol');
263
263
  initMetadataForInterface(SelectInstance, 'SelectInstance');
264
264
  initMetadataForClass(ClauseData, 'ClauseData', VOID, VOID, VOID, [1]);
265
- initMetadataForClass(SelectImplementation, 'SelectImplementation', VOID, VOID, [CancelHandler, SelectInstance, Waiter], [0, 2]);
265
+ initMetadataForClass(SelectImplementation, 'SelectImplementation', VOID, VOID, [CancelHandler, Waiter, SelectInstance], [0, 2]);
266
266
  initMetadataForClass(TrySelectDetailedResult, 'TrySelectDetailedResult', VOID, Enum);
267
267
  initMetadataForClass(SetTimeoutBasedDispatcher, 'SetTimeoutBasedDispatcher', VOID, CoroutineDispatcher, [CoroutineDispatcher, Delay], [1]);
268
268
  initMetadataForObject(NodeDispatcher, 'NodeDispatcher', VOID, SetTimeoutBasedDispatcher, VOID, [1]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "main": "solibo-sdk-sdk-home-api.mjs",
3
- "version": "1.1.104",
3
+ "version": "1.1.105",
4
4
  "name": "@solibo/home-api",
5
5
  "dependencies": {
6
6
  "ws": "8.18.3",