@doordeck/doordeck-headless-sdk 0.150.0 → 0.153.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.
@@ -911,7 +911,7 @@
911
911
  initMetadataForClass(TileLocksResponse, 'TileLocksResponse');
912
912
  //endregion
913
913
  function ProjectVersion() {
914
- this.i5q_1 = '0.150.0';
914
+ this.i5q_1 = '0.153.0';
915
915
  }
916
916
  var ProjectVersion_instance;
917
917
  function ProjectVersion_getInstance() {
@@ -1066,6 +1066,7 @@
1066
1066
  var PlatformType_APPLE_IOS_instance;
1067
1067
  var PlatformType_APPLE_WATCH_instance;
1068
1068
  var PlatformType_WINDOWS_instance;
1069
+ var PlatformType_JS_instance;
1069
1070
  var PlatformType_JS_BROWSER_instance;
1070
1071
  var PlatformType_JS_NODE_instance;
1071
1072
  var PlatformType_entriesInitialized;
@@ -1080,8 +1081,9 @@
1080
1081
  PlatformType_APPLE_IOS_instance = new PlatformType('APPLE_IOS', 4);
1081
1082
  PlatformType_APPLE_WATCH_instance = new PlatformType('APPLE_WATCH', 5);
1082
1083
  PlatformType_WINDOWS_instance = new PlatformType('WINDOWS', 6);
1083
- PlatformType_JS_BROWSER_instance = new PlatformType('JS_BROWSER', 7);
1084
- PlatformType_JS_NODE_instance = new PlatformType('JS_NODE', 8);
1084
+ PlatformType_JS_instance = new PlatformType('JS', 7);
1085
+ PlatformType_JS_BROWSER_instance = new PlatformType('JS_BROWSER', 8);
1086
+ PlatformType_JS_NODE_instance = new PlatformType('JS_NODE', 9);
1085
1087
  }
1086
1088
  function PlatformType(name, ordinal) {
1087
1089
  Enum.call(this, name, ordinal);
@@ -1238,6 +1240,10 @@
1238
1240
  installContentNegotiation($this$HttpClient);
1239
1241
  return Unit_instance;
1240
1242
  }
1243
+ function PlatformType_JS_getInstance() {
1244
+ PlatformType_initEntries();
1245
+ return PlatformType_JS_instance;
1246
+ }
1241
1247
  function PlatformType_JS_BROWSER_getInstance() {
1242
1248
  PlatformType_initEntries();
1243
1249
  return PlatformType_JS_BROWSER_instance;
@@ -26738,6 +26744,11 @@
26738
26744
  return isNode;
26739
26745
  }
26740
26746
  var isNode;
26747
+ function get_isBrowser() {
26748
+ _init_properties_Platform_js_kt__pt1n1u();
26749
+ return isBrowser;
26750
+ }
26751
+ var isBrowser;
26741
26752
  function ApplicationContext() {
26742
26753
  }
26743
26754
  var ApplicationContext_instance;
@@ -26749,8 +26760,10 @@
26749
26760
  var tmp;
26750
26761
  if (get_isNode()) {
26751
26762
  tmp = PlatformType_JS_NODE_getInstance();
26752
- } else {
26763
+ } else if (get_isBrowser()) {
26753
26764
  tmp = PlatformType_JS_BROWSER_getInstance();
26765
+ } else {
26766
+ tmp = PlatformType_JS_getInstance();
26754
26767
  }
26755
26768
  return tmp;
26756
26769
  }
@@ -26766,6 +26779,8 @@
26766
26779
  platformType$delegate = lazy_0(platformType$delegate$lambda);
26767
26780
  var tmp = typeof process !== 'undefined' && process.versions != null && process.versions.node != null;
26768
26781
  isNode = (!(tmp == null) ? typeof tmp === 'boolean' : false) ? tmp : THROW_CCE();
26782
+ var tmp_0 = typeof window !== 'undefined';
26783
+ isBrowser = (!(tmp_0 == null) ? typeof tmp_0 === 'boolean' : false) ? tmp_0 : THROW_CCE();
26769
26784
  }
26770
26785
  }
26771
26786
  function get_account() {
@@ -48,12 +48,6 @@ if (typeof Math.clz32 === 'undefined') {
48
48
  };
49
49
  }(Math.log, Math.LN2);
50
50
  }
51
- if (typeof String.prototype.startsWith === 'undefined') {
52
- Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
53
- position = position || 0;
54
- return this.lastIndexOf(searchString, position) === position;
55
- }});
56
- }
57
51
  if (typeof String.prototype.endsWith === 'undefined') {
58
52
  Object.defineProperty(String.prototype, 'endsWith', {value: function (searchString, position) {
59
53
  var subjectString = this.toString();
@@ -65,6 +59,12 @@ if (typeof String.prototype.endsWith === 'undefined') {
65
59
  return lastIndex !== -1 && lastIndex === position;
66
60
  }});
67
61
  }
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
+ }});
67
+ }
68
68
  //endregion
69
69
  (function (_) {
70
70
  'use strict';
@@ -270,7 +270,7 @@
270
270
  initMetadataForCoroutine($doSelectSuspendCOROUTINE$, CoroutineImpl);
271
271
  initMetadataForCoroutine($completeCOROUTINE$, CoroutineImpl);
272
272
  initMetadataForCoroutine($processResultAndInvokeBlockRecoveringExceptionCOROUTINE$, CoroutineImpl);
273
- initMetadataForClass(SelectImplementation, 'SelectImplementation', VOID, VOID, [CancelHandler, SelectInstance, Waiter], [0, 2]);
273
+ initMetadataForClass(SelectImplementation, 'SelectImplementation', VOID, VOID, [CancelHandler, Waiter, SelectInstance], [0, 2]);
274
274
  initMetadataForClass(TrySelectDetailedResult, 'TrySelectDetailedResult', VOID, Enum);
275
275
  initMetadataForClass(CancellableContinuationWithOwner, 'CancellableContinuationWithOwner', VOID, VOID, [CancellableContinuation, Waiter]);
276
276
  initMetadataForClass(SemaphoreAndMutexImpl, 'SemaphoreAndMutexImpl', VOID, VOID, VOID, [0]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@doordeck/doordeck-headless-sdk",
3
- "version": "0.150.0",
3
+ "version": "0.153.0",
4
4
  "main": "kotlin/doordeck-sdk.js",
5
5
  "types": "kotlin/doordeck-sdk.d.ts",
6
6
  "devDependencies": {