@dynatrace/react-native-plugin 2.325.1 → 2.325.2

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/README.md CHANGED
@@ -1491,6 +1491,9 @@ If you are struggling with a problem, submit a support ticket to Dynatrace (supp
1491
1491
  <br/><br/>
1492
1492
  ## Changelog
1493
1493
 
1494
+ 2.325.2
1495
+ * Fixed incombatability with Metro 0.83.2 and newer
1496
+
1494
1497
  2.325.1
1495
1498
  * Updated Android (8.325.1.1007) & iOS Agent (8.325.1.1012)
1496
1499
  * [New RUM experience preview] ReactNative version now added to RUM on Grail event base data
@@ -5,7 +5,13 @@ const fileOperation = require('@dynatrace/react-native-plugin/scripts/FileOperat
5
5
  const INSTRUMENTED_FILE_EXTENSION = require('@dynatrace/react-native-plugin/scripts/util/InstrumentUtil').INSTRUMENTED_FILE_EXTENSION;
6
6
  const originalSourceMapInfo = require('./getSourceMapInfoOrig');
7
7
  const getSourceMapInfo = (module, options) => {
8
- const dataOrig = originalSourceMapInfo(module, options);
8
+ let dataOrig;
9
+ if (originalSourceMapInfo.default !== undefined) {
10
+ dataOrig = originalSourceMapInfo.default(module, options);
11
+ }
12
+ else {
13
+ dataOrig = originalSourceMapInfo(module, options);
14
+ }
9
15
  try {
10
16
  if (!options.excludeSource) {
11
17
  const correctPath = module.path.replace(pathsConstants.getApplicationPath(), '') +
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynatrace/react-native-plugin",
3
- "version": "2.325.1",
3
+ "version": "2.325.2",
4
4
  "description": "This plugin gives you the ability to use the Dynatrace Mobile agent in your react native application.",
5
5
  "main": "index.js",
6
6
  "types": "types.d.ts",