expo-dev-launcher 2.4.10 → 2.4.12

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.
package/CHANGELOG.md CHANGED
@@ -10,6 +10,22 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 2.4.12 — 2023-09-16
14
+
15
+ ### 💡 Others
16
+
17
+ - Revert [dev-launcher] Fetch dev sessions whenever navigating to Home screen (#24378))
18
+
19
+ ## 2.4.11 — 2023-09-15
20
+
21
+ ### 💡 Others
22
+
23
+ - Update dev sessions default ports to check. ([#24380](https://github.com/expo/expo/pull/24380) by [@gabrieldonadel](https://github.com/gabrieldonadel))
24
+
25
+ ### 🐛 Bug fixes
26
+
27
+ - Fetch dev sessions whenever navigating to the launcher home screen. ([#24378](https://github.com/expo/expo/pull/24378) by [@gabrieldonadel](https://github.com/gabrieldonadel))
28
+
13
29
  ## 2.4.10 — 2023-08-22
14
30
 
15
31
  ### 💡 Others
@@ -41,7 +41,7 @@ android {
41
41
  minSdkVersion safeExtGet('minSdkVersion', 21)
42
42
  targetSdkVersion safeExtGet("targetSdkVersion", 33)
43
43
  versionCode 9
44
- versionName "2.4.10"
44
+ versionName "2.4.12"
45
45
  }
46
46
 
47
47
  lintOptions {
@@ -1211,7 +1211,7 @@ __d((function(g,r,_i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule"
1211
1211
  }
1212
1212
  }
1213
1213
  `;function I(t,n,i,p){return S.apply(this,arguments)}function S(){return(S=(0,i.default)((function*(t,n,i,u){var o={appId:t,branchName:n,offset:(i-1)*u,limit:u,platform:s.Platform.OS.toUpperCase()};return{updates:(yield c.apiClient.request(v,o)).app.byId.updateBranchByName.updates.map((function(t){return j(j({},t),{},{createdAt:(0,p.default)(new Date(t.createdAt),'MMMM d, yyyy, h:mma')})})),page:i}}))).apply(this,arguments)}}),1152,[6,31,324,1095,1128,96,2,1053,1146,1148,1052,1149,1151,204]);
1214
- __d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.fetchDevSessions=v,e.getDevSessionsAsync=function(t){return f.apply(this,arguments)},e.getLocalPackagersAsync=p;var n=t(r(d[1])),l=r(d[2]),u=r(d[3]),s=l.Platform.select({ios:'http://localhost',android:'http://10.0.2.2'}),o='status',c=[8081,8082,19e3,19001,19002,19003,19004,19005];function f(){return(f=(0,n.default)((function*(t){var n=t.isAuthenticated,l=void 0!==n&&n,u=t.installationID,s=void 0===u?'':u,o=t.isDevice,c=void 0!==o&&o,f=t.timeout,h=[];if(l){var y=yield v(null,f);h=h.concat(y)}if(!h.length&&s){var D=yield v(s,f);h=h.concat(D)}if(!h.length&&!c){var $=yield p();h=h.concat($)}return h}))).apply(this,arguments)}function p(){return h.apply(this,arguments)}function h(){return h=(0,n.default)((function*(){var t=[];return yield Promise.all(c.map((function(){var l=(0,n.default)((function*(n){try{var l=`${s}:${n}`;200===(yield fetch(`${l}/${o}`)).status&&t.push({url:l,description:l,source:'desktop'})}catch(t){}}));return function(t){return l.apply(this,arguments)}})())),t})),h.apply(this,arguments)}function v(t,n){return y.apply(this,arguments)}function y(){return(y=(0,n.default)((function*(t,n){var l,s,o="/development-sessions",c={};return null!=t&&(o+=`?deviceId=${t}`,c['Expo-Dev-Client-ID']=t),n?null!=(l=(yield(0,u.restClientWithTimeout)(o,n,{headers:c})).data)?l:[]:null!=(s=(yield(0,u.restClient)(o,{headers:c})).data)?s:[]}))).apply(this,arguments)}}),1153,[6,324,2,1146]);
1214
+ __d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.fetchDevSessions=v,e.getDevSessionsAsync=function(t){return f.apply(this,arguments)},e.getLocalPackagersAsync=p;var n=t(r(d[1])),l=r(d[2]),u=r(d[3]),s=l.Platform.select({ios:'http://localhost',android:'http://10.0.2.2'}),o='status',c=[8081,8082,8083,8084,8085,19e3,19001,19002];function f(){return(f=(0,n.default)((function*(t){var n=t.isAuthenticated,l=void 0!==n&&n,u=t.installationID,s=void 0===u?'':u,o=t.isDevice,c=void 0!==o&&o,f=t.timeout,h=[];if(l){var y=yield v(null,f);h=h.concat(y)}if(!h.length&&s){var D=yield v(s,f);h=h.concat(D)}if(!h.length&&!c){var $=yield p();h=h.concat($)}return h}))).apply(this,arguments)}function p(){return h.apply(this,arguments)}function h(){return h=(0,n.default)((function*(){var t=[];return yield Promise.all(c.map((function(){var l=(0,n.default)((function*(n){try{var l=`${s}:${n}`;200===(yield fetch(`${l}/${o}`)).status&&t.push({url:l,description:l,source:'desktop'})}catch(t){}}));return function(t){return l.apply(this,arguments)}})())),t})),h.apply(this,arguments)}function v(t,n){return y.apply(this,arguments)}function y(){return(y=(0,n.default)((function*(t,n){var l,s,o="/development-sessions",c={};return null!=t&&(o+=`?deviceId=${t}`,c['Expo-Dev-Client-ID']=t),n?null!=(l=(yield(0,u.restClientWithTimeout)(o,n,{headers:c})).data)?l:[]:null!=(s=(yield(0,u.restClient)(o,{headers:c})).data)?s:[]}))).apply(this,arguments)}}),1153,[6,324,2,1146]);
1215
1215
  __d((function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.restoreUserAsync=function(){return y.apply(this,arguments)};var s=n(r(d[1])),t=r(d[2]),o=r(d[3]),u=r(d[4]);function y(){return(y=(0,s.default)((function*(){var n=yield(0,o.restoreSessionAsync)();if(n)return yield(0,t.setSessionAsync)(n),yield(0,u.getUserProfileAsync)()}))).apply(this,arguments)}}),1154,[6,324,1146,1147,1155]);
1216
1216
  __d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.getUserProfileAsync=function(){return s.apply(this,arguments)};var n=t(r(d[1])),o=r(d[2]),u=r(d[3]),l=o.gql`
1217
1217
  {
@@ -10,7 +10,7 @@ const baseAddress = Platform.select({
10
10
  });
11
11
 
12
12
  const statusPage = 'status';
13
- const portsToCheck = [8081, 8082, 19000, 19001, 19002, 19003, 19004, 19005];
13
+ const portsToCheck = [8081, 8082, 8083, 8084, 8085, 19000, 19001, 19002];
14
14
 
15
15
  export async function getDevSessionsAsync({
16
16
  isAuthenticated = false,
package/ios/main.jsbundle CHANGED
@@ -1208,7 +1208,7 @@ __d((function(g,r,_i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule"
1208
1208
  }
1209
1209
  }
1210
1210
  `;function I(t,n,i,p){return S.apply(this,arguments)}function S(){return(S=(0,i.default)((function*(t,n,i,u){var o={appId:t,branchName:n,offset:(i-1)*u,limit:u,platform:s.Platform.OS.toUpperCase()};return{updates:(yield c.apiClient.request(v,o)).app.byId.updateBranchByName.updates.map((function(t){return j(j({},t),{},{createdAt:(0,p.default)(new Date(t.createdAt),'MMMM d, yyyy, h:mma')})})),page:i}}))).apply(this,arguments)}}),1149,[6,31,324,1092,1125,96,2,1050,1143,1145,1049,1146,1148,206]);
1211
- __d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.fetchDevSessions=v,e.getDevSessionsAsync=function(t){return f.apply(this,arguments)},e.getLocalPackagersAsync=p;var n=t(r(d[1])),l=r(d[2]),u=r(d[3]),s=l.Platform.select({ios:'http://localhost',android:'http://10.0.2.2'}),o='status',c=[8081,8082,19e3,19001,19002,19003,19004,19005];function f(){return(f=(0,n.default)((function*(t){var n=t.isAuthenticated,l=void 0!==n&&n,u=t.installationID,s=void 0===u?'':u,o=t.isDevice,c=void 0!==o&&o,f=t.timeout,h=[];if(l){var y=yield v(null,f);h=h.concat(y)}if(!h.length&&s){var D=yield v(s,f);h=h.concat(D)}if(!h.length&&!c){var $=yield p();h=h.concat($)}return h}))).apply(this,arguments)}function p(){return h.apply(this,arguments)}function h(){return h=(0,n.default)((function*(){var t=[];return yield Promise.all(c.map((function(){var l=(0,n.default)((function*(n){try{var l=`${s}:${n}`;200===(yield fetch(`${l}/${o}`)).status&&t.push({url:l,description:l,source:'desktop'})}catch(t){}}));return function(t){return l.apply(this,arguments)}})())),t})),h.apply(this,arguments)}function v(t,n){return y.apply(this,arguments)}function y(){return(y=(0,n.default)((function*(t,n){var l,s,o="/development-sessions",c={};return null!=t&&(o+=`?deviceId=${t}`,c['Expo-Dev-Client-ID']=t),n?null!=(l=(yield(0,u.restClientWithTimeout)(o,n,{headers:c})).data)?l:[]:null!=(s=(yield(0,u.restClient)(o,{headers:c})).data)?s:[]}))).apply(this,arguments)}}),1150,[6,324,2,1143]);
1211
+ __d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.fetchDevSessions=v,e.getDevSessionsAsync=function(t){return f.apply(this,arguments)},e.getLocalPackagersAsync=p;var n=t(r(d[1])),l=r(d[2]),u=r(d[3]),s=l.Platform.select({ios:'http://localhost',android:'http://10.0.2.2'}),o='status',c=[8081,8082,8083,8084,8085,19e3,19001,19002];function f(){return(f=(0,n.default)((function*(t){var n=t.isAuthenticated,l=void 0!==n&&n,u=t.installationID,s=void 0===u?'':u,o=t.isDevice,c=void 0!==o&&o,f=t.timeout,h=[];if(l){var y=yield v(null,f);h=h.concat(y)}if(!h.length&&s){var D=yield v(s,f);h=h.concat(D)}if(!h.length&&!c){var $=yield p();h=h.concat($)}return h}))).apply(this,arguments)}function p(){return h.apply(this,arguments)}function h(){return h=(0,n.default)((function*(){var t=[];return yield Promise.all(c.map((function(){var l=(0,n.default)((function*(n){try{var l=`${s}:${n}`;200===(yield fetch(`${l}/${o}`)).status&&t.push({url:l,description:l,source:'desktop'})}catch(t){}}));return function(t){return l.apply(this,arguments)}})())),t})),h.apply(this,arguments)}function v(t,n){return y.apply(this,arguments)}function y(){return(y=(0,n.default)((function*(t,n){var l,s,o="/development-sessions",c={};return null!=t&&(o+=`?deviceId=${t}`,c['Expo-Dev-Client-ID']=t),n?null!=(l=(yield(0,u.restClientWithTimeout)(o,n,{headers:c})).data)?l:[]:null!=(s=(yield(0,u.restClient)(o,{headers:c})).data)?s:[]}))).apply(this,arguments)}}),1150,[6,324,2,1143]);
1212
1212
  __d((function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.restoreUserAsync=function(){return y.apply(this,arguments)};var s=n(r(d[1])),t=r(d[2]),o=r(d[3]),u=r(d[4]);function y(){return(y=(0,s.default)((function*(){var n=yield(0,o.restoreSessionAsync)();if(n)return yield(0,t.setSessionAsync)(n),yield(0,u.getUserProfileAsync)()}))).apply(this,arguments)}}),1151,[6,324,1143,1144,1152]);
1213
1213
  __d((function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.getUserProfileAsync=function(){return s.apply(this,arguments)};var n=t(r(d[1])),o=r(d[2]),u=r(d[3]),l=o.gql`
1214
1214
  {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "expo-dev-launcher",
3
3
  "title": "Expo Development Launcher",
4
- "version": "2.4.10",
4
+ "version": "2.4.12",
5
5
  "description": "Pre-release version of the Expo development launcher package for testing.",
6
6
  "main": "build/DevLauncher.js",
7
7
  "types": "build/DevLauncher.d.ts",
@@ -30,7 +30,7 @@
30
30
  "license": "MIT",
31
31
  "homepage": "https://docs.expo.dev",
32
32
  "dependencies": {
33
- "expo-dev-menu": "3.1.10",
33
+ "expo-dev-menu": "3.2.0",
34
34
  "resolve-from": "^5.0.0",
35
35
  "semver": "^7.5.3"
36
36
  },
@@ -64,5 +64,5 @@
64
64
  "./setupTests.ts"
65
65
  ]
66
66
  },
67
- "gitHead": "ca6e2711477ff273a7a91a81947f933dba2935b0"
67
+ "gitHead": "ac9d28b6536f3f6161692f08b29d8a4a58b51641"
68
68
  }