@scalebun/react-native 1.3.0 → 1.3.1-beta.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/dist/scalebun.full.js +7 -2
- package/dist/scalebun.full.js.map +1 -1
- package/dist/scalebun.slim.js +7 -2
- package/dist/scalebun.slim.js.map +1 -1
- package/lib/commonjs/features/replay/integrations/logs/consoleIntegration.js +19 -0
- package/lib/commonjs/features/replay/integrations/logs/consoleIntegration.js.map +1 -1
- package/lib/commonjs/features/session/SessionManager.js +7 -1
- package/lib/commonjs/features/session/SessionManager.js.map +1 -1
- package/lib/module/features/replay/integrations/logs/consoleIntegration.js +19 -0
- package/lib/module/features/replay/integrations/logs/consoleIntegration.js.map +1 -1
- package/lib/module/features/session/SessionManager.js +7 -1
- package/lib/module/features/session/SessionManager.js.map +1 -1
- package/lib/typescript/features/replay/integrations/logs/consoleIntegration.d.ts.map +1 -1
- package/lib/typescript/features/session/SessionManager.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/features/replay/integrations/logs/consoleIntegration.ts +20 -0
- package/src/features/session/SessionManager.ts +7 -1
package/dist/scalebun.slim.js
CHANGED
|
@@ -4006,7 +4006,7 @@ var init_SessionManager = __esm({
|
|
|
4006
4006
|
confidence: p.confidence ?? null,
|
|
4007
4007
|
source: p.source ?? null
|
|
4008
4008
|
};
|
|
4009
|
-
console.log("[TapDiag]", JSON.stringify(diag));
|
|
4009
|
+
if (__DEV__) console.log("[TapDiag]", JSON.stringify(diag));
|
|
4010
4010
|
} catch {
|
|
4011
4011
|
}
|
|
4012
4012
|
}
|
|
@@ -4263,6 +4263,9 @@ var init_SessionManager = __esm({
|
|
|
4263
4263
|
});
|
|
4264
4264
|
|
|
4265
4265
|
// lib/module/features/replay/integrations/logs/consoleIntegration.js
|
|
4266
|
+
function isSdkInternalLog(firstArg) {
|
|
4267
|
+
return typeof firstArg === "string" && SDK_INTERNAL_LOG_PREFIXES.some((prefix) => firstArg.startsWith(prefix));
|
|
4268
|
+
}
|
|
4266
4269
|
function forwardToLogsLane(method, message) {
|
|
4267
4270
|
try {
|
|
4268
4271
|
const transport = SessionManager.getExistingInstance()?.getBackendTransport();
|
|
@@ -4287,6 +4290,7 @@ function installConsoleIntegration() {
|
|
|
4287
4290
|
const firstArg = args[0];
|
|
4288
4291
|
if (typeof firstArg === "string" && firstArg.startsWith("[ReplaySdk]")) return;
|
|
4289
4292
|
original.apply(console, args);
|
|
4293
|
+
if (isSdkInternalLog(firstArg)) return;
|
|
4290
4294
|
if (_enabled) {
|
|
4291
4295
|
try {
|
|
4292
4296
|
const message = args.map((a) => {
|
|
@@ -4319,7 +4323,7 @@ function uninstallConsoleIntegration() {
|
|
|
4319
4323
|
function setConsoleEnabled(enabled) {
|
|
4320
4324
|
_enabled = enabled;
|
|
4321
4325
|
}
|
|
4322
|
-
var _installed, _enabled, CONSOLE_LEVEL, _originals;
|
|
4326
|
+
var _installed, _enabled, CONSOLE_LEVEL, SDK_INTERNAL_LOG_PREFIXES, _originals;
|
|
4323
4327
|
var init_consoleIntegration = __esm({
|
|
4324
4328
|
"lib/module/features/replay/integrations/logs/consoleIntegration.js"() {
|
|
4325
4329
|
"use strict";
|
|
@@ -4334,6 +4338,7 @@ var init_consoleIntegration = __esm({
|
|
|
4334
4338
|
error: "error",
|
|
4335
4339
|
debug: "debug"
|
|
4336
4340
|
};
|
|
4341
|
+
SDK_INTERNAL_LOG_PREFIXES = ["[TapDiag]", "[TapAccuracy]", "[ScaleBun", "[perf."];
|
|
4337
4342
|
_originals = {
|
|
4338
4343
|
log: console.log,
|
|
4339
4344
|
info: console.info,
|