@yhong91/vibetime 0.1.23 → 0.1.24
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/bin/vibetime.mjs +3 -6
- package/package.json +1 -1
package/bin/vibetime.mjs
CHANGED
|
@@ -159,8 +159,7 @@ var init_fs = __esm({
|
|
|
159
159
|
|
|
160
160
|
// src/cli.ts
|
|
161
161
|
import { spawn as spawn2, spawnSync } from "node:child_process";
|
|
162
|
-
import {
|
|
163
|
-
import { mkdir as mkdir5, open, rename as rename2, rm, stat as stat12, writeFile as writeFile4 } from "node:fs/promises";
|
|
162
|
+
import { mkdir as mkdir5, open, rm, stat as stat12, writeFile as writeFile4 } from "node:fs/promises";
|
|
164
163
|
import os9 from "node:os";
|
|
165
164
|
import path21 from "node:path";
|
|
166
165
|
import { fileURLToPath } from "node:url";
|
|
@@ -1202,7 +1201,7 @@ function countTextLines(text) {
|
|
|
1202
1201
|
}
|
|
1203
1202
|
|
|
1204
1203
|
// src/lib/constants.ts
|
|
1205
|
-
var PACKAGE_VERSION = true ? "0.1.
|
|
1204
|
+
var PACKAGE_VERSION = true ? "0.1.24" : "0.1.1";
|
|
1206
1205
|
var DEFAULT_API_URL = "http://121.196.224.82:3001";
|
|
1207
1206
|
var DEFAULT_BACKFILL_BATCH_SIZE = 50;
|
|
1208
1207
|
var DEFAULT_BACKFILL_BATCH_BYTES = 800 * 1024;
|
|
@@ -10065,10 +10064,8 @@ async function readSyncLocalTriggerState(statePath) {
|
|
|
10065
10064
|
}
|
|
10066
10065
|
async function writeSyncLocalTriggerState(statePath, state) {
|
|
10067
10066
|
await mkdir5(path21.dirname(statePath), { recursive: true });
|
|
10068
|
-
|
|
10069
|
-
await writeFile4(tmpPath, `${JSON.stringify(state, null, 2)}
|
|
10067
|
+
await writeFile4(statePath, `${JSON.stringify(state, null, 2)}
|
|
10070
10068
|
`, "utf8");
|
|
10071
|
-
await rename2(tmpPath, statePath);
|
|
10072
10069
|
}
|
|
10073
10070
|
async function readSyncLocalLock(lockPath) {
|
|
10074
10071
|
const lock = await readJsonIfExists(lockPath);
|
package/package.json
CHANGED