craft-native 0.0.375 → 0.0.377
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.
|
@@ -208,8 +208,8 @@ internal class CraftHeartRateRecording(
|
|
|
208
208
|
private val archiveWriter: (ByteArray, File) -> Unit = ::craftHeartRateWriteAtomically,
|
|
209
209
|
) {
|
|
210
210
|
companion object {
|
|
211
|
-
/**
|
|
212
|
-
const val MAX_SAMPLES =
|
|
211
|
+
/** Seven days at one reading a second, including multi-day ultra events. */
|
|
212
|
+
const val MAX_SAMPLES = 604_800
|
|
213
213
|
val METHODS = setOf("startRecording", "pauseRecording", "resumeRecording", "stopRecording", "getRecordingState", "readRecording", "acknowledgeRecording")
|
|
214
214
|
private const val KIND = "heart-rate"
|
|
215
215
|
}
|
package/dist/cli.js
CHANGED
|
@@ -3047,7 +3047,7 @@ function pinCraftNativeDependency(packagePath, craftVersion) {
|
|
|
3047
3047
|
`);
|
|
3048
3048
|
}
|
|
3049
3049
|
// package.json
|
|
3050
|
-
var version = "0.0.
|
|
3050
|
+
var version = "0.0.377";
|
|
3051
3051
|
|
|
3052
3052
|
// bin/cli.ts
|
|
3053
3053
|
var spawnedFrom = process6.env[CRAFT_CLI_SPAWN_MARKER];
|
package/dist/index.cjs
CHANGED
package/dist/index.js
CHANGED
|
@@ -135,8 +135,8 @@ final class CraftHeartRate: NSObject, CBCentralManagerDelegate, CBPeripheralDele
|
|
|
135
135
|
static let connectTimeout: TimeInterval = 15
|
|
136
136
|
/// A reading older than this is no longer "now".
|
|
137
137
|
static let staleAfter: TimeInterval = 10
|
|
138
|
-
///
|
|
139
|
-
static let maxRecordedSamples =
|
|
138
|
+
/// Seven days at one reading a second, including multi-day ultra events.
|
|
139
|
+
static let maxRecordedSamples = 604_800
|
|
140
140
|
|
|
141
141
|
private let clock: () -> Date
|
|
142
142
|
private let recordingDirectory: URL?
|