@multiplatform.one/utils 10.7.3 → 10.9.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/lib/dev.cjs CHANGED
@@ -196,7 +196,7 @@ function importsBinding(file, binding) {
196
196
  } catch {
197
197
  return false;
198
198
  }
199
- return new RegExp(`(?:import|require)[^;]*\\b${binding}\\b[^;]*['"]react-native['"]`, "s").test(source);
199
+ return new RegExp(String.raw`(?:import|require)[^;]*\b${binding}\b[^;]*['"]react-native['"]`, "s").test(source);
200
200
  }
201
201
  /** `src/shims/<name>` from source, `../src/shims/<name>` from the built `lib`, else from the installed package. */
202
202
  function stubFile(name) {
package/lib/dev.mjs CHANGED
@@ -164,7 +164,7 @@ function importsBinding(file, binding) {
164
164
  } catch {
165
165
  return false;
166
166
  }
167
- return new RegExp(`(?:import|require)[^;]*\\b${binding}\\b[^;]*['"]react-native['"]`, "s").test(source);
167
+ return new RegExp(String.raw`(?:import|require)[^;]*\b${binding}\b[^;]*['"]react-native['"]`, "s").test(source);
168
168
  }
169
169
  /** `src/shims/<name>` from source, `../src/shims/<name>` from the built `lib`, else from the installed package. */
170
170
  function stubFile(name) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@multiplatform.one/utils",
3
- "version": "10.7.3",
3
+ "version": "10.9.0",
4
4
  "description": "utilities for multiplatform.one",
5
5
  "keywords": [
6
6
  "multiplatform.one",
@@ -185,9 +185,10 @@ function importsBinding(file: string, binding: string): boolean {
185
185
  } catch {
186
186
  return false;
187
187
  }
188
- return new RegExp(`(?:import|require)[^;]*\\b${binding}\\b[^;]*['"]react-native['"]`, "s").test(
189
- source,
190
- );
188
+ return new RegExp(
189
+ String.raw`(?:import|require)[^;]*\b${binding}\b[^;]*['"]react-native['"]`,
190
+ "s",
191
+ ).test(source);
191
192
  }
192
193
 
193
194
  /** `src/shims/<name>` from source, `../src/shims/<name>` from the built `lib`, else from the installed package. */