@dynatrace/react-native-plugin 2.291.1 → 2.291.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 +2 -1
- package/lib/react-native/Touchables.js +28 -6
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1414,9 +1414,10 @@ If you are struggling with a problem, submit a support ticket to Dynatrace (supp
|
|
|
1414
1414
|
<br/><br/>
|
|
1415
1415
|
## Changelog
|
|
1416
1416
|
|
|
1417
|
-
2.291.
|
|
1417
|
+
2.291.2
|
|
1418
1418
|
* Update Android (8.291.1.1002) & iOS Agent (8.291.1.1004)
|
|
1419
1419
|
* Updated the way we report unhandled errors without a stacktrace
|
|
1420
|
+
* Touchable instrumentation was partly broken for static access
|
|
1420
1421
|
|
|
1421
1422
|
2.289.1
|
|
1422
1423
|
* Update Android (8.289.2.1007) & iOS Agent (8.289.1.1015)
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var _a, _b, _c;
|
|
2
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
4
|
exports.Pressable = exports.Text = exports.TouchableWithoutFeedback = exports.TouchableNativeFeedback = exports.TouchableHighlight = exports.TouchableOpacity = exports.Button = void 0;
|
|
4
5
|
const ReactNative = require("react-native");
|
|
@@ -6,12 +7,33 @@ const React = require("react");
|
|
|
6
7
|
const Types_1 = require("../instrumentor/model/Types");
|
|
7
8
|
exports.Button = React.forwardRef((props, ref) => React.createElement(ReactNative.Button, Object.assign({}, props, { ref: ref })));
|
|
8
9
|
exports.Button._dtInfo = { type: Types_1.Types.Button };
|
|
9
|
-
|
|
10
|
-
exports.TouchableOpacity
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
exports.
|
|
14
|
-
|
|
10
|
+
if (typeof ReactNative.TouchableOpacity === 'object') {
|
|
11
|
+
exports.TouchableOpacity = Object.assign({ _dtInfo: { type: Types_1.Types.TouchableOpacity } }, ReactNative.TouchableOpacity);
|
|
12
|
+
}
|
|
13
|
+
else {
|
|
14
|
+
exports.TouchableOpacity = (_a = class TouchableOpacity extends (ReactNative.TouchableOpacity) {
|
|
15
|
+
},
|
|
16
|
+
_a._dtInfo = { type: Types_1.Types.TouchableOpacity },
|
|
17
|
+
_a);
|
|
18
|
+
}
|
|
19
|
+
if (typeof ReactNative.TouchableHighlight === 'object') {
|
|
20
|
+
exports.TouchableHighlight = Object.assign({ _dtInfo: { type: Types_1.Types.TouchableHighlight } }, ReactNative.TouchableHighlight);
|
|
21
|
+
}
|
|
22
|
+
else {
|
|
23
|
+
exports.TouchableHighlight = (_b = class TouchableHighlight extends (ReactNative.TouchableHighlight) {
|
|
24
|
+
},
|
|
25
|
+
_b._dtInfo = { type: Types_1.Types.TouchableHighlight },
|
|
26
|
+
_b);
|
|
27
|
+
}
|
|
28
|
+
if (typeof ReactNative.TouchableNativeFeedback === 'object') {
|
|
29
|
+
exports.TouchableNativeFeedback = Object.assign({ _dtInfo: { type: Types_1.Types.TouchableNativeFeedback } }, ReactNative.TouchableNativeFeedback);
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
exports.TouchableNativeFeedback = (_c = class TouchableNativeFeedback extends (ReactNative.TouchableNativeFeedback) {
|
|
33
|
+
},
|
|
34
|
+
_c._dtInfo = { type: Types_1.Types.TouchableNativeFeedback },
|
|
35
|
+
_c);
|
|
36
|
+
}
|
|
15
37
|
exports.TouchableWithoutFeedback = React.forwardRef((props, ref) => React.createElement(ReactNative.TouchableWithoutFeedback, Object.assign({}, props, { ref: ref })));
|
|
16
38
|
exports.TouchableWithoutFeedback._dtInfo = { type: Types_1.Types.TouchableWithoutFeedback };
|
|
17
39
|
exports.Text = React.forwardRef((props, ref) => React.createElement(ReactNative.Text, Object.assign({}, props, { ref: ref })));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynatrace/react-native-plugin",
|
|
3
|
-
"version": "2.291.
|
|
3
|
+
"version": "2.291.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": "typings/react-native-dynatrace.d.ts",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"react-native": ">=0.62.0"
|
|
86
86
|
},
|
|
87
87
|
"devDependencies": {
|
|
88
|
-
"@babel/cli": "^7.
|
|
88
|
+
"@babel/cli": "^7.24.5",
|
|
89
89
|
"@babel/plugin-proposal-class-properties": "^7.8.3",
|
|
90
90
|
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.8.3",
|
|
91
91
|
"@babel/plugin-proposal-optional-chaining": "^7.8.3",
|