@baeckerherz/expo-mapbox-navigation 0.1.28 → 1.0.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@baeckerherz/expo-mapbox-navigation",
3
- "version": "0.1.28",
3
+ "version": "1.0.0",
4
4
  "description": "Expo module wrapping Mapbox Navigation SDK v3 for iOS and Android",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -118,7 +118,7 @@ const withMapboxNavPodfile = (config, { navigationSdkVersion }) => {
118
118
  if (!contents.includes(PLUGIN_MARKER)) {
119
119
  const insertion = /(ccache_enabled\?\(podfile_properties\),\n\s*\))\s*\n( end\nend)/;
120
120
  if (insertion.test(contents)) {
121
- contents = contents.replace(insertion, `$1\n${hook}\n$2`);
121
+ contents = contents.replace(insertion, (_match, p1, p2) => `${p1}\n${hook}\n${p2}`);
122
122
  }
123
123
  }
124
124
  fs.writeFileSync(podfilePath, contents);
@@ -109,7 +109,7 @@ export const withMapboxNavPodfile: ConfigPlugin<PodfileOptions> = (
109
109
  const insertion =
110
110
  /(ccache_enabled\?\(podfile_properties\),\n\s*\))\s*\n( end\nend)/;
111
111
  if (insertion.test(contents)) {
112
- contents = contents.replace(insertion, `$1\n${hook}\n$2`);
112
+ contents = contents.replace(insertion, (_match, p1, p2) => `${p1}\n${hook}\n${p2}`);
113
113
  }
114
114
  }
115
115