@logbrew/react-native 0.1.46 → 0.1.47
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 +1 -1
- package/ios/AppleDiagnostics/LBRNAppleNativeDiagnostics.swift +1 -1
- package/ios/GeneratedAppleDiagnostics/LogBrew/DeliveryEngineAutomatic.swift +1 -5
- package/ios/GeneratedAppleDiagnostics/LogBrew/LogBrewTrace.swift +3 -5
- package/ios/GeneratedAppleDiagnostics/SOURCE-MANIFEST.json +2 -2
- package/package.json +1 -1
package/index.cjs
CHANGED
|
@@ -36,7 +36,7 @@ const { getReactNativeContext } = require("./index-values.cjs");
|
|
|
36
36
|
*/
|
|
37
37
|
|
|
38
38
|
const DEFAULT_SDK_NAME = "logbrew-react-native";
|
|
39
|
-
const DEFAULT_SDK_VERSION = "0.1.
|
|
39
|
+
const DEFAULT_SDK_VERSION = "0.1.47";
|
|
40
40
|
const DEFAULT_REACT_NATIVE_DELIVERY_INTERVAL_MS = 1000;
|
|
41
41
|
const DEFAULT_MAX_RETRIES = 2;
|
|
42
42
|
|
|
@@ -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.47"
|
|
7
7
|
|
|
8
8
|
private let lock = NSLock()
|
|
9
9
|
private let replayQueue = DispatchQueue(label: "co.logbrew.react-native.apple-diagnostics-replay")
|
|
@@ -6,11 +6,7 @@ extension DeliveryEngine {
|
|
|
6
6
|
func timerFired(generation ownerGeneration: UInt64) {
|
|
7
7
|
let now = DispatchTime.now().uptimeNanoseconds
|
|
8
8
|
stateLock.lock()
|
|
9
|
-
guard generation == ownerGeneration else {
|
|
10
|
-
stateLock.unlock()
|
|
11
|
-
return
|
|
12
|
-
}
|
|
13
|
-
guard let deadline = nextWakeNanoseconds, now >= deadline else {
|
|
9
|
+
guard generation == ownerGeneration, let deadline = nextWakeNanoseconds, now >= deadline else {
|
|
14
10
|
stateLock.unlock()
|
|
15
11
|
return
|
|
16
12
|
}
|
|
@@ -223,11 +223,9 @@ public enum LogBrewTrace {
|
|
|
223
223
|
}
|
|
224
224
|
|
|
225
225
|
public static func continueOrCreateContext(fromTraceparent traceparent: String?) -> LogBrewTraceContext {
|
|
226
|
-
guard let traceparent, !traceparent.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
guard let remoteParent = try? parseTraceparent(traceparent) else {
|
|
226
|
+
guard let traceparent, !traceparent.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty,
|
|
227
|
+
let remoteParent = try? parseTraceparent(traceparent)
|
|
228
|
+
else {
|
|
231
229
|
return LogBrewTraceContext.fallbackRoot()
|
|
232
230
|
}
|
|
233
231
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"swift/logbrew-swift/Sources/LogBrew/AppStartMetric.swift": "00ad61c062366b68674a5cccc9940dfbe83827e80b00b74648c215c082987d9f",
|
|
5
5
|
"swift/logbrew-swift/Sources/LogBrew/AutomaticTelemetryContext.swift": "76ab7f8a7c79db1d54ba13da8d61d96af62c509116b7df0f9d220d5c88364c00",
|
|
6
6
|
"swift/logbrew-swift/Sources/LogBrew/DeliveryEngine.swift": "274ca2ed671add1f7c51494e2a4e254b0fecd6fd7d80321ee0836e3521c2b02b",
|
|
7
|
-
"swift/logbrew-swift/Sources/LogBrew/DeliveryEngineAutomatic.swift": "
|
|
7
|
+
"swift/logbrew-swift/Sources/LogBrew/DeliveryEngineAutomatic.swift": "46dd2912dd88b387391017b0b256edf02e4b90c2974216322c757beb75283d20",
|
|
8
8
|
"swift/logbrew-swift/Sources/LogBrew/DeliveryEngineDurable.swift": "b0d2ca07cce7fe01fc110238c7d10aa9c8ada0d28509e4c022e7fa950a4c79b9",
|
|
9
9
|
"swift/logbrew-swift/Sources/LogBrew/DeliveryEngineQueue.swift": "e187a737e18dd88a4be8719f1a3a07776c6d6eb0edb5b1904a82c5059a0aef57",
|
|
10
10
|
"swift/logbrew-swift/Sources/LogBrew/DeliveryLifecycle.swift": "48cc8d89bbdcdff2f73a188d4824b03c3614cade8e3e3a85a710eaf827f6c413",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"swift/logbrew-swift/Sources/LogBrew/LifecycleTrace.swift": "738cd3f129fac821a892404d1d42ee92bd806b6583d3dbb5379e88b14ab23c16",
|
|
18
18
|
"swift/logbrew-swift/Sources/LogBrew/LogBrewClient.swift": "1dd933fcb4e889694ef29a120edbc942b27dfb72adc37fa35473c110c473180b",
|
|
19
19
|
"swift/logbrew-swift/Sources/LogBrew/LogBrewLogger.swift": "96e440f411c6276056e10c5feca82eb24fce9824632c7dbcedfd99b49d8332fc",
|
|
20
|
-
"swift/logbrew-swift/Sources/LogBrew/LogBrewTrace.swift": "
|
|
20
|
+
"swift/logbrew-swift/Sources/LogBrew/LogBrewTrace.swift": "aa7618a525159d06229c2943365602081aca5452d5b4bbb51537b0eed3baec01",
|
|
21
21
|
"swift/logbrew-swift/Sources/LogBrew/Metadata.swift": "65840ebb3f3b79fbfc1f5faa3026c2583319e89ff26061676dc552c03ee15dbe",
|
|
22
22
|
"swift/logbrew-swift/Sources/LogBrew/NativeStackFrame.swift": "ecbd418969ec4a31503d9916a8bf27f22e6863356c6fabe457c1e61027a8d805",
|
|
23
23
|
"swift/logbrew-swift/Sources/LogBrew/OperationTrace.swift": "d7383d1926c7276cc97f03537e4587e20e4495f80226b5113e8ef10397f9c702",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@logbrew/react-native",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.47",
|
|
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",
|