noibu-react-native 0.2.1 → 0.2.3
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 +1 -1
- package/android/src/main/java/com/noibu/sessionreplay/reactnative/NoibuSessionReplayModule.kt +10 -0
- package/dist/api/clientConfig.js +225 -217
- package/dist/api/metroplexSocket.js +406 -416
- package/dist/constants.js +14 -2
- package/dist/entry/init.js +58 -56
- package/dist/monitors/appNavigationMonitor.js +2 -3
- package/dist/monitors/clickMonitor.js +16 -9
- package/dist/monitors/errorMonitor.js +30 -8
- package/dist/monitors/gqlErrorValidator.js +4 -4
- package/dist/monitors/httpDataBundler.js +525 -713
- package/dist/monitors/integrations/react-native-navigation-integration.js +4 -2
- package/dist/monitors/requestMonitor.js +350 -365
- package/dist/pageVisit/eventDebouncer.js +110 -0
- package/dist/pageVisit/pageVisitEventError.js +1 -1
- package/dist/pageVisit/pageVisitEventHTTP.js +78 -93
- package/dist/react/ErrorBoundary.js +18 -15
- package/dist/sessionRecorder/nativeSessionRecorderSubscription.js +3 -2
- package/dist/sessionRecorder/sessionRecorder.js +151 -150
- package/dist/{api → src/api}/clientConfig.d.ts +1 -1
- package/dist/{api → src/api}/metroplexSocket.d.ts +25 -25
- package/dist/{constants.d.ts → src/constants.d.ts} +44 -0
- package/dist/{entry → src/entry}/init.d.ts +1 -1
- package/dist/{monitors → src/monitors}/clickMonitor.d.ts +1 -1
- package/dist/{monitors → src/monitors}/gqlErrorValidator.d.ts +6 -6
- package/dist/src/monitors/httpDataBundler.d.ts +127 -0
- package/dist/src/monitors/requestMonitor.d.ts +10 -0
- package/dist/src/pageVisit/eventDebouncer.d.ts +31 -0
- package/dist/src/pageVisit/pageVisitEventHTTP.d.ts +25 -0
- package/dist/{sessionRecorder → src/sessionRecorder}/types.d.ts +1 -1
- package/dist/{storage → src/storage}/rnStorageProvider.d.ts +1 -1
- package/dist/{storage → src/storage}/storage.d.ts +1 -1
- package/dist/{storage → src/storage}/storageProvider.d.ts +3 -3
- package/dist/{utils → src/utils}/function.d.ts +25 -4
- package/dist/{utils → src/utils}/object.d.ts +9 -4
- package/dist/src/utils/piiRedactor.d.ts +11 -0
- package/dist/src/utils/polyfills.d.ts +7 -0
- package/dist/storage/rnStorageProvider.js +7 -5
- package/dist/storage/storage.js +43 -35
- package/dist/storage/storageProvider.js +23 -19
- package/dist/types/Config.d.ts +24 -20
- package/dist/types/PageVisit.types.d.ts +151 -0
- package/dist/types/PageVisitMetrics.types.d.ts +27 -0
- package/dist/types/RRWeb.d.ts +48 -0
- package/dist/types/StoredPageVisit.types.d.ts +2 -4
- package/dist/types/WrappedObjects.d.ts +6 -0
- package/dist/utils/function.js +110 -76
- package/dist/utils/object.js +58 -6
- package/dist/utils/piiRedactor.js +98 -0
- package/dist/utils/polyfills.js +24 -0
- package/package.json +24 -9
- package/dist/monitors/httpDataBundler.d.ts +0 -161
- package/dist/monitors/requestMonitor.d.ts +0 -10
- package/dist/pageVisit/pageVisitEventHTTP.d.ts +0 -18
- package/dist/types/PageVisit.d.ts +0 -22
- package/dist/types/globals.d.ts +0 -45
- /package/dist/{api → src/api}/helpCode.d.ts +0 -0
- /package/dist/{api → src/api}/inputManager.d.ts +0 -0
- /package/dist/{api → src/api}/storedMetrics.d.ts +0 -0
- /package/dist/{api → src/api}/storedPageVisit.d.ts +0 -0
- /package/dist/{const_matchers.d.ts → src/const_matchers.d.ts} +0 -0
- /package/dist/{entry → src/entry}/index.d.ts +0 -0
- /package/dist/{monitors → src/monitors}/appNavigationMonitor.d.ts +0 -0
- /package/dist/{monitors → src/monitors}/errorMonitor.d.ts +0 -0
- /package/dist/{monitors → src/monitors}/inputMonitor.d.ts +0 -0
- /package/dist/{monitors → src/monitors}/integrations/react-native-navigation-integration.d.ts +0 -0
- /package/dist/{monitors → src/monitors}/keyboardInputMonitor.d.ts +0 -0
- /package/dist/{monitors → src/monitors}/pageMonitor.d.ts +0 -0
- /package/dist/{pageVisit → src/pageVisit}/pageVisit.d.ts +0 -0
- /package/dist/{pageVisit → src/pageVisit}/pageVisitEventError.d.ts +0 -0
- /package/dist/{pageVisit → src/pageVisit}/userStep.d.ts +0 -0
- /package/dist/{react → src/react}/ErrorBoundary.d.ts +0 -0
- /package/dist/{sessionRecorder → src/sessionRecorder}/nativeSessionRecorderSubscription.d.ts +0 -0
- /package/dist/{sessionRecorder → src/sessionRecorder}/sessionRecorder.d.ts +0 -0
- /package/dist/{utils → src/utils}/date.d.ts +0 -0
- /package/dist/{utils → src/utils}/eventlistener.d.ts +0 -0
- /package/dist/{utils → src/utils}/log.d.ts +0 -0
- /package/dist/{utils → src/utils}/performance.d.ts +0 -0
- /package/dist/{utils → src/utils}/stacktrace-parser.d.ts +0 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
var _a, _b;
|
|
2
|
+
/**
|
|
3
|
+
* In case Promise.all is not available, use this polyfill
|
|
4
|
+
*/
|
|
5
|
+
const promiseAll = ((_b = (_a = Promise === null || Promise === void 0 ? void 0 : Promise.all) === null || _a === void 0 ? void 0 : _a.bind) === null || _b === void 0 ? void 0 : _b.call(_a, Promise)) ||
|
|
6
|
+
((values) => {
|
|
7
|
+
return new Promise(function (resolve, reject) {
|
|
8
|
+
const result = [];
|
|
9
|
+
let total = 0;
|
|
10
|
+
values.forEach((item, index) => {
|
|
11
|
+
Promise.resolve(item)
|
|
12
|
+
.then(res => {
|
|
13
|
+
result[index] = res;
|
|
14
|
+
total += 1;
|
|
15
|
+
if (total === values.length) {
|
|
16
|
+
resolve(result);
|
|
17
|
+
}
|
|
18
|
+
})
|
|
19
|
+
.catch(reject);
|
|
20
|
+
});
|
|
21
|
+
});
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
export { promiseAll };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "noibu-react-native",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"targetNjsVersion": "1.0.104",
|
|
5
5
|
"description": "React-Native SDK for NoibuJS to collect errors in React-Native applications",
|
|
6
6
|
"main": "dist/entry/index.js",
|
|
@@ -27,15 +27,25 @@
|
|
|
27
27
|
"optional": true
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
|
-
"
|
|
30
|
+
"optionalDependencies": {
|
|
31
31
|
"@react-native-async-storage/async-storage": "^1.19.0",
|
|
32
32
|
"fflate": "^0.8.2",
|
|
33
|
-
"react": ">=
|
|
33
|
+
"react-native-navigation": ">=2.29.0",
|
|
34
|
+
"react-native-url-polyfill": "^1.3.0",
|
|
35
|
+
"react-native-uuid": "^2.0.1"
|
|
36
|
+
},
|
|
37
|
+
"peerDependencies": {
|
|
38
|
+
"@react-native-async-storage/async-storage": "^1.19.0",
|
|
39
|
+
"fflate": "^0.8.2",
|
|
40
|
+
"react": ">=16.13.1 <=18",
|
|
34
41
|
"react-native": ">=0.63.0",
|
|
42
|
+
"react-native-navigation": ">=2.29.0",
|
|
35
43
|
"react-native-url-polyfill": "^1.3.0",
|
|
36
44
|
"react-native-uuid": "^2.0.1"
|
|
37
45
|
},
|
|
38
46
|
"devDependencies": {
|
|
47
|
+
"@jest/globals": "^29.7.0",
|
|
48
|
+
"@react-native-async-storage/async-storage": "1.19.0",
|
|
39
49
|
"@rollup/plugin-commonjs": "^25.0.0",
|
|
40
50
|
"@rollup/plugin-json": "^6.0.0",
|
|
41
51
|
"@rollup/plugin-node-resolve": "^15.1.0",
|
|
@@ -43,11 +53,12 @@
|
|
|
43
53
|
"@rollup/plugin-typescript": "^11.1.1",
|
|
44
54
|
"@tsconfig/react-native": "^3.0.2",
|
|
45
55
|
"@types/jest": "^29.5.1",
|
|
46
|
-
"@jest/globals": "^29.7.0",
|
|
47
56
|
"@types/node": "^20.2.3",
|
|
48
|
-
"@types/react": "
|
|
57
|
+
"@types/react": "16.14.62",
|
|
49
58
|
"@types/react-test-renderer": "^18.0.0",
|
|
50
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
59
|
+
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
|
60
|
+
"@typescript-eslint/parser": "^6.21.0",
|
|
61
|
+
"babel-jest": "^29.7.0",
|
|
51
62
|
"babel-plugin-transform-flow-strip-types": "^6.22.0",
|
|
52
63
|
"codecov": "^3.8.3",
|
|
53
64
|
"dotenv": "^16.1.3",
|
|
@@ -56,12 +67,16 @@
|
|
|
56
67
|
"eslint-config-prettier": "^8.8.0",
|
|
57
68
|
"eslint-plugin-jsdoc": "^44.2.4",
|
|
58
69
|
"eslint-plugin-prettier": "^4.2.1",
|
|
70
|
+
"fflate": "0.8.2",
|
|
59
71
|
"jest": "^29.7.0",
|
|
60
|
-
"@babel/preset-env": "^7.24.8",
|
|
61
|
-
"babel-jest": "^29.7.0",
|
|
62
72
|
"prettier": "^2.8.8",
|
|
73
|
+
"react": "16.13.1",
|
|
74
|
+
"react-native": "^0.63.0",
|
|
75
|
+
"react-native-navigation": "2.29.0",
|
|
76
|
+
"react-native-url-polyfill": "1.3.0",
|
|
77
|
+
"react-native-uuid": "2.0.1",
|
|
63
78
|
"rimraf": "^5.0.1",
|
|
64
|
-
"rollup": "^
|
|
79
|
+
"rollup": "^4.27.4",
|
|
65
80
|
"rollup-plugin-dotenv": "^0.5.0",
|
|
66
81
|
"ts-jest": "^29.2.3",
|
|
67
82
|
"typescript": "^5.5.3"
|
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
/** Bundles HTTP payloads and headers */
|
|
2
|
-
export class HTTPDataBundler {
|
|
3
|
-
/** gets http data payload allowed URLs */
|
|
4
|
-
static getHttpPayloadAllowedURLs(): string[];
|
|
5
|
-
/**
|
|
6
|
-
* gets the singleton instance
|
|
7
|
-
* @returns {HTTPDataBundler}
|
|
8
|
-
*/
|
|
9
|
-
static getInstance(): HTTPDataBundler;
|
|
10
|
-
/**
|
|
11
|
-
* Builds the HTTP payload allowed regexes for full and relative URLs
|
|
12
|
-
* @param allowedURLs A list of allowed URLs
|
|
13
|
-
* @param {'absolute' | 'relative'} strategy Use only absolute URLs if true, use only relative URL if false
|
|
14
|
-
* @returns a regex of allowed URLs
|
|
15
|
-
*/
|
|
16
|
-
static buildAllowedRegex(allowedURLs: any, strategy: "absolute" | "relative"): RegExp | null;
|
|
17
|
-
/**
|
|
18
|
-
* Takes an iterator and returns a map of strings representing headers.
|
|
19
|
-
* @param {object} headersIterable any iterable object
|
|
20
|
-
* @returns a map of strings (as expected by metroplex) representing HTTP
|
|
21
|
-
* request or response headers
|
|
22
|
-
*/
|
|
23
|
-
static headersMapFromIterable(headersIterable: object): Map<any, any>;
|
|
24
|
-
/**
|
|
25
|
-
* Takes a string of headers with 'name: value' and returns
|
|
26
|
-
* a map of strings representing headers.
|
|
27
|
-
* @param {string} headersString is all the headers in one string
|
|
28
|
-
* @returns a map of strings (as expected by metroplex) representing HTTP
|
|
29
|
-
* request or response headers
|
|
30
|
-
*/
|
|
31
|
-
static headersMapFromString(headersString: string): Map<any, any>;
|
|
32
|
-
/**
|
|
33
|
-
* For an XHR object, checks the responseType property and handles the response or
|
|
34
|
-
* responseText property accordingly to return a string representation of the response.
|
|
35
|
-
* @param {object} xhr an XMLHTTPRequest object
|
|
36
|
-
* @returns a string representation of the response, or null if this fails.
|
|
37
|
-
*/
|
|
38
|
-
static responseStringFromXHRResponseType(xhr: object): any;
|
|
39
|
-
/**
|
|
40
|
-
* Determins if the URL is absolute or relative
|
|
41
|
-
* @param {string} url
|
|
42
|
-
* @returns boolean indicating whether the URL passed is either absolute or relative
|
|
43
|
-
*/
|
|
44
|
-
static isAbsoluteURL(url: string): boolean;
|
|
45
|
-
contentTypeReadableRegex: RegExp;
|
|
46
|
-
initialURLPartsReversed: any[];
|
|
47
|
-
httpDataCollectionEnabled: boolean;
|
|
48
|
-
httpDataAllowedAbsoluteRegex: RegExp | null;
|
|
49
|
-
httpDataAllowedRelativeRegex: RegExp | null;
|
|
50
|
-
fuzzyFieldsToRedact: string[];
|
|
51
|
-
exactFieldsToRedact: string[];
|
|
52
|
-
/**
|
|
53
|
-
* Takes a URL and returns true if it is determined to be on the same domain as the URL
|
|
54
|
-
* the script is running on. Ignores protocol and path, and allows the URL to be a subdomain.
|
|
55
|
-
* @param {string} requestURL the URL of a request to compare to the script website's URL
|
|
56
|
-
*/
|
|
57
|
-
isURLSameDomain(requestURL: string): boolean;
|
|
58
|
-
/**
|
|
59
|
-
* Builds an HTTP Data bundle
|
|
60
|
-
* @param url
|
|
61
|
-
* @param requestHeaders is a map of request headers
|
|
62
|
-
* @param rawRequestPayload
|
|
63
|
-
* @param responseHeaders is a map of response headers
|
|
64
|
-
* @param responsePayload
|
|
65
|
-
* @param method
|
|
66
|
-
* @param shouldCollectPayload
|
|
67
|
-
*/
|
|
68
|
-
bundleHTTPData(url: any, requestHeaders: any, rawRequestPayload: any, responseHeaders: any, responsePayload: any, method: any, shouldCollectPayload: any): {
|
|
69
|
-
rqh: any;
|
|
70
|
-
rqp: string | null;
|
|
71
|
-
rsh: any;
|
|
72
|
-
rsp: string | null;
|
|
73
|
-
} | null;
|
|
74
|
-
/**
|
|
75
|
-
* Validates a request based on the URL and method. When enabled, will handle
|
|
76
|
-
* de-duping the requests
|
|
77
|
-
* @param {string} url
|
|
78
|
-
* @param {string} method
|
|
79
|
-
* @returns boolean indicating whether the validation passed
|
|
80
|
-
*/
|
|
81
|
-
isValidRequest(url: string, method: string): boolean;
|
|
82
|
-
/**
|
|
83
|
-
* Checks two things: that the URL is either on the same domain (or an address relative to the
|
|
84
|
-
* current domain), and also checks that the config http_data_collection flag is enabled.
|
|
85
|
-
* @param {string} url
|
|
86
|
-
* @returns boolean indicating whether the URL passed is either relative (in which case it is
|
|
87
|
-
* inherently on the current domain) or matches the current domain.
|
|
88
|
-
*/
|
|
89
|
-
shouldContinueForURL(url: string): boolean;
|
|
90
|
-
/**
|
|
91
|
-
* Checks whether HTTP payloads can be collected on this URL
|
|
92
|
-
* @param {string} url
|
|
93
|
-
* @returns boolean indicating whether HTTP payloads can be collected on this URL
|
|
94
|
-
*/
|
|
95
|
-
shouldCollectPayloadForURL(url: string): boolean;
|
|
96
|
-
/**
|
|
97
|
-
* Double checks content length if we couldn't read the headers, and redacts PII
|
|
98
|
-
* @param {string} payload
|
|
99
|
-
* @param {string} url
|
|
100
|
-
* @returns the restricted payload
|
|
101
|
-
*/
|
|
102
|
-
restrictPayload(payload: string, url: string): string | null;
|
|
103
|
-
/**
|
|
104
|
-
* Returns true if the content length is acceptable to collect
|
|
105
|
-
* If the headers are not found, check actual content for length
|
|
106
|
-
* @param {Headers} headers
|
|
107
|
-
* @returns boolean true if acceptable to collect
|
|
108
|
-
*/
|
|
109
|
-
contentLengthAcceptable(headers: Headers): boolean;
|
|
110
|
-
/**
|
|
111
|
-
* Returns true if the content type according to the headers is valid for collection.
|
|
112
|
-
* Also returns assumed true if content type is not stated in headers.
|
|
113
|
-
* @param {Map} headersMap
|
|
114
|
-
* @returns boolean true if acceptable to collect
|
|
115
|
-
*/
|
|
116
|
-
contentTypeAcceptable(headersMap: Map<any, any>): boolean;
|
|
117
|
-
/**
|
|
118
|
-
* Returns a descriptive string if we have to drop payload based on the length
|
|
119
|
-
* or type listed in the headers passed. Returns an empty string otherwise.
|
|
120
|
-
* @param {Headers} headers a Headers object
|
|
121
|
-
* @returns A string, which is empty if the payload doesn't need to be dropped, or is a
|
|
122
|
-
* descriptive string explaining the circumstances of the drop otherwise.
|
|
123
|
-
*/
|
|
124
|
-
dropPayloadIfNecessaryFromHeaders(headers: Headers): string;
|
|
125
|
-
/**
|
|
126
|
-
* Returns content length from the headers, if available
|
|
127
|
-
* If the headers are not found or not a number, return -1
|
|
128
|
-
* @param {} headersObject
|
|
129
|
-
* @returns content length
|
|
130
|
-
*/
|
|
131
|
-
contentLength(headersObject: any): number;
|
|
132
|
-
/**
|
|
133
|
-
* Accepts a value that could be any type used as a request payload, and returns a string
|
|
134
|
-
* representation. First attemtps to find a .toString() method, then tries to handle it
|
|
135
|
-
* like an XML or HTML element, then finally falls back to JSON.stringify(). If none of
|
|
136
|
-
* these are successful, returns null.
|
|
137
|
-
* @param {*} value request paylad body, of any type
|
|
138
|
-
* @returns string representation of the value passed, or null if this fails.
|
|
139
|
-
*/
|
|
140
|
-
stringFromRequestBody(value: any): any;
|
|
141
|
-
/**
|
|
142
|
-
* Removes possible PII from headers.
|
|
143
|
-
* @param {Map} dirtyHeaders a Map of HTTP response or request headers
|
|
144
|
-
* @returns a map of headers with PII redacted
|
|
145
|
-
*/
|
|
146
|
-
removePIIHeaders(dirtyHeaders: Map<any, any>): Map<any, any> | null;
|
|
147
|
-
/**
|
|
148
|
-
* Takes a body payload string and redacts any PII we're able to detect
|
|
149
|
-
*
|
|
150
|
-
* @param {string} dirtyBody the string from which we want to redact PII
|
|
151
|
-
* @returns the string with any PII we're able to detect redacted.
|
|
152
|
-
*/
|
|
153
|
-
removePIIBody(dirtyBody: string): string | null;
|
|
154
|
-
/**
|
|
155
|
-
* Try to parse content as a JSON object and
|
|
156
|
-
* iterate it recursively removing PII.
|
|
157
|
-
* Returns original content if nothing was changes or error is thrown.
|
|
158
|
-
* @param {String} content
|
|
159
|
-
*/
|
|
160
|
-
tryParseObjectAndRemovePII(content: string): string;
|
|
161
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Determines if a response is a failure
|
|
3
|
-
* @param {number} code
|
|
4
|
-
*/
|
|
5
|
-
export function isHttpCodeFailure(code: number): boolean;
|
|
6
|
-
/** Class representing a PageVisitEventHTTP */
|
|
7
|
-
export class PageVisitEventHTTP {
|
|
8
|
-
/**
|
|
9
|
-
* Creates an instance of the http event for the pv
|
|
10
|
-
* @param {} httpEvent
|
|
11
|
-
* @param {} httpData
|
|
12
|
-
*/
|
|
13
|
-
constructor(httpEvent: any, httpData: any);
|
|
14
|
-
httpEvent: any;
|
|
15
|
-
httpData: any;
|
|
16
|
-
/** Saves the HTTP event to the pageVisit Queue */
|
|
17
|
-
saveHTTPEvent(): void;
|
|
18
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export type Event = {
|
|
2
|
-
type: string;
|
|
3
|
-
};
|
|
4
|
-
export type EventPayload = Partial<{
|
|
5
|
-
txt: string;
|
|
6
|
-
src: string;
|
|
7
|
-
hid: string;
|
|
8
|
-
tag: string;
|
|
9
|
-
type: string;
|
|
10
|
-
class: string;
|
|
11
|
-
pvp: string;
|
|
12
|
-
}>;
|
|
13
|
-
export interface JError {
|
|
14
|
-
frames: JStackFrame[];
|
|
15
|
-
msg: string;
|
|
16
|
-
}
|
|
17
|
-
export interface JStackFrame {
|
|
18
|
-
column?: number;
|
|
19
|
-
line: string;
|
|
20
|
-
mname: string;
|
|
21
|
-
file: string;
|
|
22
|
-
}
|
package/dist/types/globals.d.ts
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
declare global {
|
|
2
|
-
const METROPLEX_BASE_SOCKET_URL: string;
|
|
3
|
-
const BETA_METROPLEX_BASE_SOCKET_URL: string;
|
|
4
|
-
const METROPLEX_BASE_HTTP_URL: string;
|
|
5
|
-
const BETA_METROPLEX_BASE_HTTP_URL: string;
|
|
6
|
-
const CURR_ENV: string;
|
|
7
|
-
const MAX_PAGE_VISIT_BUFFER_SIZE: string;
|
|
8
|
-
const DEBOUNCE_PV_POST_ON_CLICK_FREQ: string;
|
|
9
|
-
const VID_POST_FREQUENCY: string;
|
|
10
|
-
const PAGEVISIT_POST_FREQUENCY: string;
|
|
11
|
-
const WRITE_TO_METROPLEX_FREQUENCY: number;
|
|
12
|
-
const CLIENT_SCRIPT_ID: string;
|
|
13
|
-
const MAX_METROPLEX_RECONNECTION_NUMBER: number;
|
|
14
|
-
const METROPLEX_CONSECUTIVE_CONNECTION_DELAY: number;
|
|
15
|
-
const SCRIPT_ID: string;
|
|
16
|
-
const ENABLE_LOGGING: string;
|
|
17
|
-
const ENV: string;
|
|
18
|
-
const DEVICE_ENV: string | undefined;
|
|
19
|
-
type Window = {
|
|
20
|
-
noibuJSLoaded?: boolean;
|
|
21
|
-
};
|
|
22
|
-
type PromiseRejectionTrackerOptions = Partial<{
|
|
23
|
-
allRejections: boolean;
|
|
24
|
-
whitelist: (typeof Error)[];
|
|
25
|
-
onUnhandled: (id: number, reason: any) => void;
|
|
26
|
-
onHandled: (id: number, reason: any) => void;
|
|
27
|
-
}>;
|
|
28
|
-
type global = {
|
|
29
|
-
window: Window;
|
|
30
|
-
console: Console;
|
|
31
|
-
noibuJSLoaded?: boolean;
|
|
32
|
-
ErrorUtils: any;
|
|
33
|
-
HermesInternal: null | {
|
|
34
|
-
enablePromiseRejectionTracker?: (options: PromiseRejectionTrackerOptions) => void;
|
|
35
|
-
setPromiseRejectionTrackingHook?: (enable: (options: PromiseRejectionTrackerOptions) => void) => void;
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
interface PromiseConstructor {
|
|
39
|
-
_m: <T>(promise: Promise<T>, error: any) => void;
|
|
40
|
-
}
|
|
41
|
-
const global: global;
|
|
42
|
-
const globalThis: global;
|
|
43
|
-
const window: Window & global;
|
|
44
|
-
}
|
|
45
|
-
export {};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{monitors → src/monitors}/integrations/react-native-navigation-integration.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{sessionRecorder → src/sessionRecorder}/nativeSessionRecorderSubscription.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|