@logbrew/react-native 0.1.32 → 0.1.34
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/index.cjs
CHANGED
|
@@ -16,7 +16,7 @@ const {
|
|
|
16
16
|
} = require("./metadata.cjs");
|
|
17
17
|
|
|
18
18
|
const DEFAULT_SDK_NAME = "logbrew-react-native";
|
|
19
|
-
const DEFAULT_SDK_VERSION = "0.1.
|
|
19
|
+
const DEFAULT_SDK_VERSION = "0.1.34";
|
|
20
20
|
const DEFAULT_ENDPOINT = "https://api.logbrew.co/v1/events";
|
|
21
21
|
const NATIVE_RANDOM_HEX = Symbol.for("co.logbrew.react-native.secure-random-hex");
|
|
22
22
|
const MAX_ACTION_NAME_LENGTH = 64;
|
|
@@ -3,7 +3,7 @@ import Foundation
|
|
|
3
3
|
@objc(LBRNAppleNativeDiagnostics)
|
|
4
4
|
public final class LBRNAppleNativeDiagnostics: NSObject, @unchecked Sendable {
|
|
5
5
|
private static let shared = LBRNAppleNativeDiagnostics()
|
|
6
|
-
private static let sdkVersion = "0.1.
|
|
6
|
+
private static let sdkVersion = "0.1.34"
|
|
7
7
|
|
|
8
8
|
private let lock = NSLock()
|
|
9
9
|
private let replayQueue = DispatchQueue(label: "co.logbrew.react-native.apple-diagnostics-replay")
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@logbrew/react-native",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.34",
|
|
4
4
|
"description": "React Native offline delivery, native diagnostics, screen, error, trace, action, and network timeline helpers for LogBrew.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.cjs",
|
|
@@ -252,7 +252,7 @@
|
|
|
252
252
|
"url": "git+https://github.com/LogBrewCo/sdk.git"
|
|
253
253
|
},
|
|
254
254
|
"peerDependencies": {
|
|
255
|
-
"@logbrew/sdk": "^0.1.
|
|
255
|
+
"@logbrew/sdk": "^0.1.26",
|
|
256
256
|
"expo": ">=49",
|
|
257
257
|
"react": ">=18",
|
|
258
258
|
"react-native": ">=0.72"
|
package/release-artifacts.cjs
CHANGED
|
@@ -9,7 +9,7 @@ const PACKAGE_DIR = path.dirname(require.resolve("./package.json"));
|
|
|
9
9
|
const DEFAULT_MANIFEST_NAME = "logbrew-release-artifacts.json";
|
|
10
10
|
const HERMES_MAGIC = Buffer.from("c61fbc03c103191f", "hex");
|
|
11
11
|
const HERMES_RUNTIME_DEBUG_ID_RE =
|
|
12
|
-
/\/\*logbrew-runtime-debug-id\*\/\/\/# debugId=[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[89ab][0-9a-f]{3}-[0-9a-f]{12}
|
|
12
|
+
/\/\*logbrew-runtime-debug-id\*\/\/\/# debugId=[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[89ab][0-9a-f]{3}-[0-9a-f]{12}/iu;
|
|
13
13
|
const HOSTED_UPLOAD_ENDPOINT = "https://api.logbrew.co/api/release-artifacts";
|
|
14
14
|
const SUPPORTED_PLATFORMS = new Set(["android", "ios"]);
|
|
15
15
|
const SOURCE_MAPPING_COMMENT_RE = /(?:\/\/#|\/\*#)\s*sourceMappingURL=[^\r\n]*/giu;
|
|
@@ -168,14 +168,9 @@ function artifactForBundle(report, relativeBundlePath) {
|
|
|
168
168
|
return report?.artifacts?.find((artifact) => artifact?.path === relativeBundlePath) || null;
|
|
169
169
|
}
|
|
170
170
|
|
|
171
|
-
function sourceMapReferenceForBundle(bundlePath, sourcemapPath) {
|
|
172
|
-
return path.relative(path.dirname(bundlePath), sourcemapPath).split(path.sep).join("/");
|
|
173
|
-
}
|
|
174
|
-
|
|
175
171
|
function sourceWithSourceMappingUrl(source, reference) {
|
|
176
|
-
const comment = `//# sourceMappingURL=${reference}`;
|
|
177
172
|
const sourceWithoutMapComments = source.replace(SOURCE_MAPPING_COMMENT_RE, "").replace(/[ \t\r\n]*$/u, "");
|
|
178
|
-
return `${sourceWithoutMapComments}${sourceWithoutMapComments === "" ? "" : "\n"}
|
|
173
|
+
return `${sourceWithoutMapComments}${sourceWithoutMapComments === "" ? "" : "\n"}//# sourceMappingURL=${reference}\n`;
|
|
179
174
|
}
|
|
180
175
|
|
|
181
176
|
function applyExplicitSourceMapReference(bundlePath, sourcemapPath) {
|
|
@@ -189,7 +184,7 @@ function applyExplicitSourceMapReference(bundlePath, sourcemapPath) {
|
|
|
189
184
|
}
|
|
190
185
|
return;
|
|
191
186
|
}
|
|
192
|
-
const reference =
|
|
187
|
+
const reference = path.relative(path.dirname(bundlePath), sourcemapPath).split(path.sep).join("/");
|
|
193
188
|
const source = bundle.toString("utf8");
|
|
194
189
|
const updated = sourceWithSourceMappingUrl(source, reference);
|
|
195
190
|
if (updated !== source) {
|