react-native-qalink 0.3.0 → 0.3.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 +10 -1
- package/dist/core/device.d.ts +14 -0
- package/dist/core/device.d.ts.map +1 -0
- package/dist/core/device.js +46 -27
- package/dist/core/device.js.map +1 -0
- package/dist/core/sanitize.d.ts +16 -0
- package/dist/core/sanitize.d.ts.map +1 -0
- package/dist/core/sanitize.js +96 -49
- package/dist/core/sanitize.js.map +1 -0
- package/dist/core/session.d.ts +0 -1
- package/dist/core/session.d.ts.map +1 -1
- package/dist/core/session.js +12 -27
- package/dist/core/session.js.map +1 -1
- package/dist/index.d.ts +6 -40
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +196 -164
- package/dist/index.js.map +1 -1
- package/dist/interceptors/axios.d.ts.map +1 -1
- package/dist/interceptors/axios.js +5 -4
- package/dist/interceptors/axios.js.map +1 -1
- package/dist/interceptors/console.d.ts.map +1 -1
- package/dist/interceptors/console.js +112 -67
- package/dist/interceptors/console.js.map +1 -1
- package/dist/interceptors/errors.d.ts.map +1 -1
- package/dist/interceptors/errors.js +4 -3
- package/dist/interceptors/errors.js.map +1 -1
- package/dist/interceptors/fetch.d.ts +1 -1
- package/dist/interceptors/fetch.d.ts.map +1 -1
- package/dist/interceptors/fetch.js +99 -96
- package/dist/interceptors/fetch.js.map +1 -1
- package/dist/interceptors/metro.d.ts +4 -0
- package/dist/interceptors/metro.d.ts.map +1 -0
- package/dist/interceptors/metro.js +174 -94
- package/dist/interceptors/metro.js.map +1 -0
- package/dist/interceptors/runtime.d.ts.map +1 -1
- package/dist/interceptors/runtime.js +55 -31
- package/dist/interceptors/runtime.js.map +1 -1
- package/dist/transport/websocket.d.ts +3 -2
- package/dist/transport/websocket.d.ts.map +1 -1
- package/dist/transport/websocket.js +16 -4
- package/dist/transport/websocket.js.map +1 -1
- package/dist/types/index.d.ts +66 -31
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +30 -7
package/dist/index.js
CHANGED
|
@@ -1,177 +1,209 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
2
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.QALink = void 0;
|
|
17
|
+
exports.getSourceLabel = exports.QALink = void 0;
|
|
4
18
|
const websocket_1 = require("./transport/websocket");
|
|
5
|
-
const axios_1
|
|
6
|
-
const fetch_1
|
|
7
|
-
const errors_1
|
|
8
|
-
const console_1
|
|
9
|
-
const runtime_1
|
|
10
|
-
const metro_1
|
|
11
|
-
const session_1
|
|
12
|
-
const device_1
|
|
13
|
-
const sanitize_1
|
|
14
|
-
|
|
19
|
+
const axios_1 = require("./interceptors/axios");
|
|
20
|
+
const fetch_1 = require("./interceptors/fetch");
|
|
21
|
+
const errors_1 = require("./interceptors/errors");
|
|
22
|
+
const console_1 = require("./interceptors/console");
|
|
23
|
+
const runtime_1 = require("./interceptors/runtime");
|
|
24
|
+
const metro_1 = require("./interceptors/metro");
|
|
25
|
+
const session_1 = require("./core/session");
|
|
26
|
+
const device_1 = require("./core/device");
|
|
27
|
+
const sanitize_1 = require("./core/sanitize");
|
|
15
28
|
class QALinkSDK {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
+
constructor() {
|
|
30
|
+
this.transport = null;
|
|
31
|
+
this.config = null;
|
|
32
|
+
this.cleanups = [];
|
|
33
|
+
this.initialized = false;
|
|
34
|
+
this.currentScreen = 'unknown';
|
|
35
|
+
this._deviceId = 'unknown';
|
|
36
|
+
}
|
|
37
|
+
async init(config) {
|
|
38
|
+
var _a, _b;
|
|
39
|
+
if (this.initialized) {
|
|
40
|
+
console.warn('[QALink] Already initialized. Call destroy() first.');
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
if (config.enabled === false) {
|
|
44
|
+
this.log('SDK disabled. No data will be sent.');
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
this.config = Object.assign(Object.assign({ enabled: true, environment: 'dev', logNetworkBodies: false, sensitiveHeaders: [], sensitiveUrlPatterns: [], sensitiveBodyFields: [], captureRuntimeErrors: true, captureMetroErrors: true, debug: false }, config), { console: Object.assign({ captureLogs: true, captureWarnings: true, captureErrors: true, ignorePatterns: [], includePatterns: [] }, ((_a = config.console) !== null && _a !== void 0 ? _a : {})) });
|
|
48
|
+
this.validateRequiredConfig(this.config);
|
|
49
|
+
this._deviceId = await (0, device_1.getDeviceId)();
|
|
50
|
+
const connectionUrl = this.buildConnectionUrl(this.config);
|
|
51
|
+
this.transport = new websocket_1.WebSocketTransport(connectionUrl, this.config.debug);
|
|
52
|
+
this.transport.connect();
|
|
53
|
+
const deviceInfo = await (0, session_1.getDeviceInfo)(config.appVersion);
|
|
54
|
+
const sessionEvent = {
|
|
55
|
+
id: (0, session_1.generateId)(),
|
|
56
|
+
type: 'session_start',
|
|
57
|
+
sessionId: (0, session_1.getSessionId)(),
|
|
58
|
+
deviceId: this._deviceId,
|
|
59
|
+
timestamp: Date.now(),
|
|
60
|
+
deviceInfo,
|
|
61
|
+
appVersion: config.appVersion,
|
|
62
|
+
environment: (_b = this.config.environment) !== null && _b !== void 0 ? _b : 'dev',
|
|
63
|
+
};
|
|
64
|
+
this.transport.send(sessionEvent);
|
|
65
|
+
const getScreen = () => this.currentScreen;
|
|
66
|
+
const getDevId = () => this._deviceId;
|
|
67
|
+
// ── Interceptors ──────────────────────────────────────────────────────────
|
|
68
|
+
this.cleanups.push((0, fetch_1.setupFetchInterceptor)(this.transport, this.config, getDevId));
|
|
69
|
+
this.cleanups.push((0, console_1.setupConsoleInterceptor)(this.transport, this.config, getScreen));
|
|
70
|
+
if (this.config.captureRuntimeErrors) {
|
|
71
|
+
this.cleanups.push((0, runtime_1.setupRuntimeErrorHandler)(this.transport, this.config, getScreen));
|
|
72
|
+
}
|
|
73
|
+
// Metro interceptor — activado por defecto, desactivable con captureMetroErrors: false
|
|
74
|
+
if (this.config.captureMetroErrors !== false) {
|
|
75
|
+
this.cleanups.push((0, metro_1.setupMetroInterceptor)(this.transport, this.config, getDevId));
|
|
76
|
+
}
|
|
77
|
+
this.cleanups.push((0, errors_1.setupErrorHandlers)(this.transport, this.config));
|
|
78
|
+
this.initialized = true;
|
|
79
|
+
this.log('SDK initialized ✅', {
|
|
80
|
+
sessionId: (0, session_1.getSessionId)(),
|
|
81
|
+
deviceId: this._deviceId,
|
|
82
|
+
environment: this.config.environment,
|
|
83
|
+
captureMetroErrors: this.config.captureMetroErrors,
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
interceptAxios(axiosInstance) {
|
|
87
|
+
if (!this.transport || !this.config) {
|
|
88
|
+
console.warn('[QALink] Call init() before interceptAxios()');
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
this.cleanups.push((0, axios_1.setupAxiosInterceptor)(axiosInstance, this.transport, this.config));
|
|
92
|
+
this.log('Axios interceptor installed ✅');
|
|
93
|
+
}
|
|
94
|
+
addBreadcrumb(action, data) {
|
|
95
|
+
var _a, _b;
|
|
96
|
+
if (!this.transport || !this.initialized)
|
|
97
|
+
return;
|
|
98
|
+
const event = {
|
|
99
|
+
id: (0, session_1.generateId)(),
|
|
100
|
+
type: 'breadcrumb',
|
|
101
|
+
action,
|
|
102
|
+
screen: this.currentScreen,
|
|
103
|
+
data,
|
|
104
|
+
timestamp: Date.now(),
|
|
105
|
+
sessionId: (0, session_1.getSessionId)(),
|
|
106
|
+
deviceId: this._deviceId,
|
|
107
|
+
};
|
|
108
|
+
this.transport.send(event);
|
|
109
|
+
(_b = (_a = this.config) === null || _a === void 0 ? void 0 : _a.onEvent) === null || _b === void 0 ? void 0 : _b.call(_a, event);
|
|
110
|
+
}
|
|
111
|
+
logRequest(options) {
|
|
112
|
+
var _a, _b, _c, _d;
|
|
113
|
+
if (!this.transport || !this.initialized)
|
|
114
|
+
return;
|
|
115
|
+
const { method, url, statusCode, requestPayload, responsePayload, durationMs } = options;
|
|
116
|
+
const isAuth = (0, sanitize_1.isAuthUrl)(url);
|
|
117
|
+
const extraFields = (_b = (_a = this.config) === null || _a === void 0 ? void 0 : _a.sensitiveBodyFields) !== null && _b !== void 0 ? _b : [];
|
|
118
|
+
let sanitizedReq = requestPayload;
|
|
119
|
+
let sanitizedRes = responsePayload;
|
|
120
|
+
let hadSensitiveData = false;
|
|
121
|
+
if (requestPayload) {
|
|
122
|
+
if (isAuth) {
|
|
123
|
+
sanitizedReq = '[REDACTED - auth endpoint]';
|
|
124
|
+
hadSensitiveData = true;
|
|
125
|
+
}
|
|
126
|
+
else {
|
|
127
|
+
const r = (0, sanitize_1.sanitizePayload)(requestPayload, extraFields);
|
|
128
|
+
sanitizedReq = r.sanitized;
|
|
129
|
+
hadSensitiveData = r.hadSensitiveData;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
if (responsePayload) {
|
|
133
|
+
const r = (0, sanitize_1.sanitizePayload)(responsePayload, extraFields);
|
|
134
|
+
sanitizedRes = r.sanitized;
|
|
135
|
+
if (r.hadSensitiveData)
|
|
136
|
+
hadSensitiveData = true;
|
|
137
|
+
}
|
|
138
|
+
const event = {
|
|
139
|
+
id: (0, session_1.generateId)(),
|
|
140
|
+
type: 'network_log',
|
|
141
|
+
method: method.toUpperCase(),
|
|
142
|
+
url,
|
|
143
|
+
statusCode,
|
|
144
|
+
requestPayload: sanitizedReq,
|
|
145
|
+
responsePayload: sanitizedRes,
|
|
146
|
+
durationMs,
|
|
147
|
+
timestamp: Date.now(),
|
|
148
|
+
sessionId: (0, session_1.getSessionId)(),
|
|
149
|
+
deviceId: this._deviceId,
|
|
150
|
+
screen: this.currentScreen,
|
|
151
|
+
sanitized: hadSensitiveData,
|
|
152
|
+
};
|
|
153
|
+
this.transport.send(event);
|
|
154
|
+
(_d = (_c = this.config) === null || _c === void 0 ? void 0 : _c.onEvent) === null || _d === void 0 ? void 0 : _d.call(_c, event);
|
|
155
|
+
this.log(`logRequest: ${method.toUpperCase()} ${url} ${statusCode !== null && statusCode !== void 0 ? statusCode : '?'}${hadSensitiveData ? ' [sanitized]' : ''}`);
|
|
29
156
|
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
157
|
+
setScreen(screenName) {
|
|
158
|
+
if (!this.initialized)
|
|
159
|
+
return;
|
|
160
|
+
this.currentScreen = screenName;
|
|
161
|
+
this.addBreadcrumb(`NAVIGATE → ${screenName}`);
|
|
34
162
|
}
|
|
35
|
-
|
|
36
|
-
this.
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
console: { captureLogs: true, captureWarnings: true, captureErrors: true, ignorePatterns: [], includePatterns: [] },
|
|
46
|
-
debug: false,
|
|
47
|
-
...config,
|
|
48
|
-
console: {
|
|
49
|
-
captureLogs: true, captureWarnings: true, captureErrors: true,
|
|
50
|
-
ignorePatterns: [], includePatterns: [],
|
|
51
|
-
...(config.console ?? {}),
|
|
52
|
-
},
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
this._deviceId = await (0, device_1.getDeviceId)();
|
|
56
|
-
|
|
57
|
-
this.transport = new websocket_1.WebSocketTransport(this.config.serverUrl, this.config.debug);
|
|
58
|
-
this.transport.connect();
|
|
59
|
-
|
|
60
|
-
const deviceInfo = await (0, session_1.getDeviceInfo)(config.appVersion);
|
|
61
|
-
const sessionEvent = {
|
|
62
|
-
id: (0, session_1.generateId)(),
|
|
63
|
-
type: 'session_start',
|
|
64
|
-
sessionId: (0, session_1.getSessionId)(),
|
|
65
|
-
deviceId: this._deviceId,
|
|
66
|
-
timestamp: Date.now(),
|
|
67
|
-
deviceInfo,
|
|
68
|
-
appVersion: config.appVersion,
|
|
69
|
-
environment: this.config.environment ?? 'dev',
|
|
70
|
-
};
|
|
71
|
-
this.transport.send(sessionEvent);
|
|
72
|
-
|
|
73
|
-
const getScreen = () => this.currentScreen;
|
|
74
|
-
const getDevId = () => this._deviceId;
|
|
75
|
-
|
|
76
|
-
this.cleanups.push((0, fetch_1.setupFetchInterceptor)(this.transport, this.config, getDevId));
|
|
77
|
-
this.cleanups.push((0, console_1.setupConsoleInterceptor)(this.transport, this.config, getScreen));
|
|
78
|
-
|
|
79
|
-
if (this.config.captureRuntimeErrors) {
|
|
80
|
-
this.cleanups.push((0, runtime_1.setupRuntimeErrorHandler)(this.transport, this.config, getScreen));
|
|
163
|
+
getDeviceId() { return this._deviceId; }
|
|
164
|
+
getStatus() { var _a, _b; return (_b = (_a = this.transport) === null || _a === void 0 ? void 0 : _a.getStatus()) !== null && _b !== void 0 ? _b : 'not initialized'; }
|
|
165
|
+
destroy() {
|
|
166
|
+
var _a;
|
|
167
|
+
this.cleanups.forEach(fn => fn());
|
|
168
|
+
this.cleanups = [];
|
|
169
|
+
(_a = this.transport) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
170
|
+
this.transport = null;
|
|
171
|
+
this.config = null;
|
|
172
|
+
this.initialized = false;
|
|
81
173
|
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
174
|
+
log(...args) {
|
|
175
|
+
var _a;
|
|
176
|
+
if ((_a = this.config) === null || _a === void 0 ? void 0 : _a.debug)
|
|
177
|
+
console.log('[QALink]', ...args);
|
|
86
178
|
}
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
this.cleanups.push((0, axios_1.setupAxiosInterceptor)(axiosInstance, this.transport, this.config));
|
|
102
|
-
this._log('Axios interceptor installed ✅');
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
addBreadcrumb(action, data) {
|
|
106
|
-
if (!this.transport || !this.initialized) return;
|
|
107
|
-
const event = {
|
|
108
|
-
id: (0, session_1.generateId)(),
|
|
109
|
-
type: 'breadcrumb',
|
|
110
|
-
action, screen: this.currentScreen, data,
|
|
111
|
-
timestamp: Date.now(),
|
|
112
|
-
sessionId: (0, session_1.getSessionId)(),
|
|
113
|
-
deviceId: this._deviceId,
|
|
114
|
-
};
|
|
115
|
-
this.transport.send(event);
|
|
116
|
-
this.config?.onEvent?.(event);
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
logRequest(options) {
|
|
120
|
-
if (!this.transport || !this.initialized) return;
|
|
121
|
-
const { method, url, statusCode, requestPayload, responsePayload, durationMs } = options;
|
|
122
|
-
const isAuth = (0, sanitize_1.isAuthUrl)(url);
|
|
123
|
-
const extraFields = this.config?.sensitiveBodyFields ?? [];
|
|
124
|
-
let sanitizedReq = requestPayload, sanitizedRes = responsePayload, hadSensitiveData = false;
|
|
125
|
-
|
|
126
|
-
if (requestPayload) {
|
|
127
|
-
if (isAuth) { sanitizedReq = '[REDACTED - auth endpoint]'; hadSensitiveData = true; }
|
|
128
|
-
else { const r = (0, sanitize_1.sanitizePayload)(requestPayload, extraFields); sanitizedReq = r.sanitized; hadSensitiveData = r.hadSensitiveData; }
|
|
179
|
+
validateRequiredConfig(config) {
|
|
180
|
+
var _a, _b, _c;
|
|
181
|
+
if (!((_a = config.serverUrl) === null || _a === void 0 ? void 0 : _a.trim())) {
|
|
182
|
+
throw new Error('[QALink] Missing required config.serverUrl');
|
|
183
|
+
}
|
|
184
|
+
if (!((_b = config.appVersion) === null || _b === void 0 ? void 0 : _b.trim())) {
|
|
185
|
+
throw new Error('[QALink] Missing required config.appVersion');
|
|
186
|
+
}
|
|
187
|
+
if (!((_c = config.apiKey) === null || _c === void 0 ? void 0 : _c.trim())) {
|
|
188
|
+
throw new Error('[QALink] Missing required config.apiKey');
|
|
189
|
+
}
|
|
190
|
+
if (!/^qlk_[a-f0-9]{64}$/i.test(config.apiKey.trim())) {
|
|
191
|
+
throw new Error('[QALink] Invalid apiKey format. Expected: qlk_<64 hex chars>');
|
|
192
|
+
}
|
|
129
193
|
}
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
194
|
+
buildConnectionUrl(config) {
|
|
195
|
+
var _a;
|
|
196
|
+
const url = new URL(config.serverUrl);
|
|
197
|
+
url.searchParams.set('apiKey', config.apiKey.trim());
|
|
198
|
+
url.searchParams.set('appVersion', config.appVersion);
|
|
199
|
+
url.searchParams.set('environment', (_a = config.environment) !== null && _a !== void 0 ? _a : 'dev');
|
|
200
|
+
url.searchParams.set('sessionId', (0, session_1.getSessionId)());
|
|
201
|
+
url.searchParams.set('deviceId', this._deviceId);
|
|
202
|
+
return url.toString();
|
|
134
203
|
}
|
|
135
|
-
|
|
136
|
-
const event = {
|
|
137
|
-
id: (0, session_1.generateId)(),
|
|
138
|
-
type: 'network_log',
|
|
139
|
-
method: method.toUpperCase(), url, statusCode,
|
|
140
|
-
requestPayload: sanitizedReq, responsePayload: sanitizedRes, durationMs,
|
|
141
|
-
timestamp: Date.now(),
|
|
142
|
-
sessionId: (0, session_1.getSessionId)(),
|
|
143
|
-
deviceId: this._deviceId,
|
|
144
|
-
screen: this.currentScreen,
|
|
145
|
-
sanitized: hadSensitiveData,
|
|
146
|
-
};
|
|
147
|
-
this.transport.send(event);
|
|
148
|
-
this.config?.onEvent?.(event);
|
|
149
|
-
this._log(`logRequest: ${method.toUpperCase()} ${url} ${statusCode ?? '?'}${hadSensitiveData ? ' [sanitized]' : ''}`);
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
setScreen(screenName) {
|
|
153
|
-
if (!this.initialized) return;
|
|
154
|
-
this.currentScreen = screenName;
|
|
155
|
-
this.addBreadcrumb(`NAVIGATE → ${screenName}`);
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
getDeviceId() { return this._deviceId; }
|
|
159
|
-
getStatus() { return this.transport?.getStatus() ?? 'not initialized'; }
|
|
160
|
-
|
|
161
|
-
destroy() {
|
|
162
|
-
this.cleanups.forEach(fn => fn());
|
|
163
|
-
this.cleanups = [];
|
|
164
|
-
this.transport?.disconnect();
|
|
165
|
-
this.transport = null; this.config = null; this.initialized = false;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
_log(...args) {
|
|
169
|
-
if (this.config?.debug) console.log('[QALink]', ...args);
|
|
170
|
-
}
|
|
171
204
|
}
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
exports.QALink = QALink;
|
|
175
|
-
|
|
205
|
+
exports.QALink = new QALinkSDK();
|
|
206
|
+
__exportStar(require("./types"), exports);
|
|
176
207
|
var classifier_1 = require("./core/classifier");
|
|
177
208
|
Object.defineProperty(exports, "getSourceLabel", { enumerable: true, get: function () { return classifier_1.getSourceLabel; } });
|
|
209
|
+
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":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CAAC,qBAAqB,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC;YACtD,MAAM,IAAI,KAAK,CAAC,8DAA8D,CAAC,CAAC;QAClF,CAAC;IACH,CAAC;IAEO,kBAAkB,CAAC,MAAoB;;QAC7C,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;QACtC,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC;QACrD,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,YAAY,EAAE,MAAM,CAAC,UAAU,CAAC,CAAC;QACtD,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,aAAa,EAAE,MAAA,MAAM,CAAC,WAAW,mCAAI,KAAK,CAAC,CAAC;QACjE,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,WAAW,EAAE,IAAA,sBAAY,GAAE,CAAC,CAAC;QAClD,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,UAAU,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;QACjD,OAAO,GAAG,CAAC,QAAQ,EAAE,CAAC;IACxB,CAAC;CACF;AAEY,QAAA,MAAM,GAAG,IAAI,SAAS,EAAE,CAAC;AAEtC,0CAAwB;AACxB,gDAAmD;AAA1C,4GAAA,cAAc,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"axios.d.ts","sourceRoot":"","sources":["../../src/interceptors/axios.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAgB,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"axios.d.ts","sourceRoot":"","sources":["../../src/interceptors/axios.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAgB,MAAM,UAAU,CAAC;AAItD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE5D,wBAAgB,qBAAqB,CACnC,aAAa,EAAE,GAAG,EAClB,SAAS,EAAE,kBAAkB,EAC7B,MAAM,EAAE,YAAY,GACnB,MAAM,IAAI,CAuEZ"}
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.setupAxiosInterceptor = setupAxiosInterceptor;
|
|
4
4
|
const classifier_1 = require("../core/classifier");
|
|
5
5
|
const session_1 = require("../core/session");
|
|
6
|
+
const sanitize_1 = require("../core/sanitize");
|
|
6
7
|
function setupAxiosInterceptor(axiosInstance, transport, config) {
|
|
7
8
|
const startTimes = new Map();
|
|
8
9
|
const requestInterceptorId = axiosInstance.interceptors.request.use((axiosConfig) => {
|
|
@@ -22,9 +23,9 @@ function setupAxiosInterceptor(axiosInstance, transport, config) {
|
|
|
22
23
|
method: (_d = (_c = response.config.method) === null || _c === void 0 ? void 0 : _c.toUpperCase()) !== null && _d !== void 0 ? _d : 'UNKNOWN',
|
|
23
24
|
url: buildFullUrl(response.config),
|
|
24
25
|
statusCode,
|
|
25
|
-
requestHeaders: (0,
|
|
26
|
+
requestHeaders: (0, sanitize_1.sanitizeHeaders)((_e = response.config.headers) !== null && _e !== void 0 ? _e : {}, config.sensitiveHeaders),
|
|
26
27
|
requestBody: (0, session_1.sanitizeBody)(response.config.data, (_f = config.logNetworkBodies) !== null && _f !== void 0 ? _f : false),
|
|
27
|
-
responseHeaders: (0,
|
|
28
|
+
responseHeaders: (0, sanitize_1.sanitizeHeaders)((_g = response.headers) !== null && _g !== void 0 ? _g : {}, config.sensitiveHeaders),
|
|
28
29
|
responseBody: (0, session_1.sanitizeBody)(response.data, (_h = config.logNetworkBodies) !== null && _h !== void 0 ? _h : false),
|
|
29
30
|
durationMs,
|
|
30
31
|
timestamp: Date.now(),
|
|
@@ -46,9 +47,9 @@ function setupAxiosInterceptor(axiosInstance, transport, config) {
|
|
|
46
47
|
method: (_f = (_e = axiosConfig.method) === null || _e === void 0 ? void 0 : _e.toUpperCase()) !== null && _f !== void 0 ? _f : 'UNKNOWN',
|
|
47
48
|
url: buildFullUrl(axiosConfig),
|
|
48
49
|
statusCode,
|
|
49
|
-
requestHeaders: (0,
|
|
50
|
+
requestHeaders: (0, sanitize_1.sanitizeHeaders)((_g = axiosConfig.headers) !== null && _g !== void 0 ? _g : {}, config.sensitiveHeaders),
|
|
50
51
|
requestBody: (0, session_1.sanitizeBody)(axiosConfig.data, (_h = config.logNetworkBodies) !== null && _h !== void 0 ? _h : false),
|
|
51
|
-
responseHeaders: (0,
|
|
52
|
+
responseHeaders: (0, sanitize_1.sanitizeHeaders)((_k = (_j = error.response) === null || _j === void 0 ? void 0 : _j.headers) !== null && _k !== void 0 ? _k : {}, config.sensitiveHeaders),
|
|
52
53
|
responseBody: (0, session_1.sanitizeBody)((_l = error.response) === null || _l === void 0 ? void 0 : _l.data, (_m = config.logNetworkBodies) !== null && _m !== void 0 ? _m : false),
|
|
53
54
|
durationMs,
|
|
54
55
|
timestamp: Date.now(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"axios.js","sourceRoot":"","sources":["../../src/interceptors/axios.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"axios.js","sourceRoot":"","sources":["../../src/interceptors/axios.ts"],"names":[],"mappings":";;AAMA,sDA2EC;AAhFD,mDAAkE;AAClE,6CAAyE;AACzE,+CAAmD;AAGnD,SAAgB,qBAAqB,CACnC,aAAkB,EAClB,SAA6B,EAC7B,MAAoB;IAEpB,MAAM,UAAU,GAAG,IAAI,GAAG,EAAkB,CAAC;IAE7C,MAAM,oBAAoB,GAAG,aAAa,CAAC,YAAY,CAAC,OAAO,CAAC,GAAG,CACjE,CAAC,WAAgB,EAAE,EAAE;QACnB,MAAM,SAAS,GAAG,IAAA,oBAAU,GAAE,CAAC;QAC/B,WAAW,CAAC,SAAS,GAAG,SAAS,CAAC;QAClC,WAAW,CAAC,YAAY,GAAG,IAAI,CAAC,GAAG,EAAE,CA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ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAA8B,MAAM,UAAU,CAAC;AAEpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAuG5D,wBAAgB,uBAAuB,CACrC,SAAS,EAAE,kBAAkB,EAC7B,MAAM,EAAE,YAAY,EACpB,gBAAgB,EAAE,MAAM,MAAM,GAC7B,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"console.d.ts","sourceRoot":"","sources":["../../src/interceptors/console.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAA8B,MAAM,UAAU,CAAC;AAEpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAuG5D,wBAAgB,uBAAuB,CACrC,SAAS,EAAE,kBAAkB,EAC7B,MAAM,EAAE,YAAY,EACpB,gBAAgB,EAAE,MAAM,MAAM,GAC7B,MAAM,IAAI,CAoEZ"}
|