@dynamic-labs/react-native-extension 4.91.2 → 4.91.4

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 (3) hide show
  1. package/index.cjs +10 -1
  2. package/index.js +10 -1
  3. package/package.json +6 -6
package/index.cjs CHANGED
@@ -35,7 +35,7 @@ function _interopNamespace(e) {
35
35
  return Object.freeze(n);
36
36
  }
37
37
 
38
- var version = "4.91.2";
38
+ var version = "4.91.4";
39
39
 
40
40
  function _extends() {
41
41
  return _extends = Object.assign ? Object.assign.bind() : function (n) {
@@ -1141,6 +1141,15 @@ const setupEmbeddedWebView = ({
1141
1141
  native.setDebuggingEnabled(_webviewDebuggingEnabled).catch(err => {
1142
1142
  logger.warn('EmbeddedWebView.setDebuggingEnabled failed', err);
1143
1143
  });
1144
+ // Arm the loading timer before calling setUrl so the pre-onLoadStart window
1145
+ // is covered. On cold boot the native 2s navigation-decision timeout can
1146
+ // fire before JS responds to onShouldStartLoad, silently cancelling the load
1147
+ // without emitting onLoadError — leaving onLoadStart (and therefore the
1148
+ // timer) never triggered. The onLoadStart handler clears and re-arms this
1149
+ // timer when it fires, so behaviour after onLoadStart is unchanged.
1150
+ loadingTimer = setTimeout(() => {
1151
+ raiseFailure('html_load');
1152
+ }, _loadingTimeoutMs);
1144
1153
  native.setUrl(builtUrl.toString()).catch(err => {
1145
1154
  logger.warn('EmbeddedWebView.setUrl failed', err);
1146
1155
  });
package/index.js CHANGED
@@ -13,7 +13,7 @@ import { createURL, getInitialURL, addEventListener, openURL } from 'expo-linkin
13
13
  import { openAuthSessionAsync } from 'expo-web-browser';
14
14
  import { createPasskey, PasskeyStamper } from '@turnkey/react-native-passkey-stamper';
15
15
 
16
- var version = "4.91.2";
16
+ var version = "4.91.4";
17
17
 
18
18
  function _extends() {
19
19
  return _extends = Object.assign ? Object.assign.bind() : function (n) {
@@ -1119,6 +1119,15 @@ const setupEmbeddedWebView = ({
1119
1119
  native.setDebuggingEnabled(_webviewDebuggingEnabled).catch(err => {
1120
1120
  logger.warn('EmbeddedWebView.setDebuggingEnabled failed', err);
1121
1121
  });
1122
+ // Arm the loading timer before calling setUrl so the pre-onLoadStart window
1123
+ // is covered. On cold boot the native 2s navigation-decision timeout can
1124
+ // fire before JS responds to onShouldStartLoad, silently cancelling the load
1125
+ // without emitting onLoadError — leaving onLoadStart (and therefore the
1126
+ // timer) never triggered. The onLoadStart handler clears and re-arms this
1127
+ // timer when it fires, so behaviour after onLoadStart is unchanged.
1128
+ loadingTimer = setTimeout(() => {
1129
+ raiseFailure('html_load');
1130
+ }, _loadingTimeoutMs);
1122
1131
  native.setUrl(builtUrl.toString()).catch(err => {
1123
1132
  logger.warn('EmbeddedWebView.setUrl failed', err);
1124
1133
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/react-native-extension",
3
- "version": "4.91.2",
3
+ "version": "4.91.4",
4
4
  "main": "./index.cjs",
5
5
  "module": "./index.js",
6
6
  "types": "./src/index.d.ts",
@@ -18,11 +18,11 @@
18
18
  "@turnkey/react-native-passkey-stamper": "1.2.7",
19
19
  "@react-native-documents/picker": "^11.0.0",
20
20
  "react-native-fs": ">=2.20.0",
21
- "@dynamic-labs/assert-package-version": "4.91.2",
22
- "@dynamic-labs/client": "4.91.2",
23
- "@dynamic-labs/logger": "4.91.2",
24
- "@dynamic-labs/message-transport": "4.91.2",
25
- "@dynamic-labs/webview-messages": "4.91.2"
21
+ "@dynamic-labs/assert-package-version": "4.91.4",
22
+ "@dynamic-labs/client": "4.91.4",
23
+ "@dynamic-labs/logger": "4.91.4",
24
+ "@dynamic-labs/message-transport": "4.91.4",
25
+ "@dynamic-labs/webview-messages": "4.91.4"
26
26
  },
27
27
  "peerDependencies": {
28
28
  "react": ">=18.0.0 <20.0.0",