scip-query 0.3.2 → 0.3.3

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/cli.js CHANGED
@@ -965,7 +965,7 @@ var Watcher = class {
965
965
  return new Promise((resolve4, reject) => {
966
966
  const start = Date.now();
967
967
  const tmpDb = this.indexPaths.dbPath + ".tmp";
968
- const tmpScip = this.indexPaths.indexPath + ".tmp";
968
+ const tmpScip = tempScipPath(this.indexPaths.indexPath);
969
969
  const child = fork(
970
970
  new URL("./reindex-worker.js", import.meta.url).pathname,
971
971
  [],
@@ -1006,6 +1006,9 @@ var Watcher = class {
1006
1006
  this.onStatus(status);
1007
1007
  }
1008
1008
  };
1009
+ function tempScipPath(indexPath) {
1010
+ return indexPath.endsWith(".scip") ? indexPath.slice(0, -".scip".length) + ".tmp.scip" : indexPath + ".tmp.scip";
1011
+ }
1009
1012
 
1010
1013
  // src/queries/stats.ts
1011
1014
  function stats(db) {
package/dist/index.js CHANGED
@@ -1115,7 +1115,7 @@ var Watcher = class {
1115
1115
  return new Promise((resolve3, reject) => {
1116
1116
  const start = Date.now();
1117
1117
  const tmpDb = this.indexPaths.dbPath + ".tmp";
1118
- const tmpScip = this.indexPaths.indexPath + ".tmp";
1118
+ const tmpScip = tempScipPath(this.indexPaths.indexPath);
1119
1119
  const child = fork(
1120
1120
  new URL("./reindex-worker.js", import.meta.url).pathname,
1121
1121
  [],
@@ -1156,6 +1156,9 @@ var Watcher = class {
1156
1156
  this.onStatus(status);
1157
1157
  }
1158
1158
  };
1159
+ function tempScipPath(indexPath) {
1160
+ return indexPath.endsWith(".scip") ? indexPath.slice(0, -".scip".length) + ".tmp.scip" : indexPath + ".tmp.scip";
1161
+ }
1159
1162
 
1160
1163
  // src/setup.ts
1161
1164
  import {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "scip-query",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "description": "Language-agnostic code intelligence CLI powered by SCIP indexes",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",