@radhya/mach 2.0.39 → 2.0.41

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.
@@ -109,11 +109,14 @@ module.exports = function withMachDeepLinks(config) {
109
109
  config.extra = { ...(config.extra || {}) }
110
110
 
111
111
  if (ota.enabled && ota.url) {
112
+ const existingUpdates = config.updates || {}
112
113
  config.updates = {
113
- ...(config.updates || {}),
114
+ ...existingUpdates,
115
+ enabled: existingUpdates.enabled !== false,
116
+ checkAutomatically: existingUpdates.checkAutomatically || 'ON_LOAD',
114
117
  url: ota.url,
115
118
  requestHeaders: {
116
- ...(config.updates && config.updates.requestHeaders ? config.updates.requestHeaders : {}),
119
+ ...(existingUpdates.requestHeaders || {}),
117
120
  'expo-channel-name': ota.channel,
118
121
  },
119
122
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@radhya/mach",
3
- "version": "2.0.39",
3
+ "version": "2.0.41",
4
4
  "description": "Mach CLI: Cloud Build Orchestrator for React Native & Expo",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",