staklink 0.4.11 → 0.4.12

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.
@@ -60910,7 +60910,7 @@ var SSEManager = class {
60910
60910
  var sseManager = new SSEManager();
60911
60911
 
60912
60912
  // src/proxy/version.ts
60913
- var VERSION = "0.4.11";
60913
+ var VERSION = "0.4.12";
60914
60914
 
60915
60915
  // node_modules/uuid/dist/esm/stringify.js
60916
60916
  var byteToHex = [];
@@ -141132,16 +141132,23 @@ async function handleBranchDiff(req, res) {
141132
141132
  action = "modify";
141133
141133
  }
141134
141134
  let content = "";
141135
- const binaryContent = await binaryDiffContent(repo, filePath, action);
141136
- if (binaryContent !== null) {
141137
- content = binaryContent;
141135
+ if (action === "delete") {
141138
141136
  } else {
141139
- try {
141140
- content = await repo.execCommand(
141141
- `git diff ${diffBase} -- "${filePath}"`
141142
- );
141143
- } catch (error88) {
141144
- warn(`Error getting branch diff for ${filePath}:`, error88);
141137
+ const binaryContent = await binaryDiffContent(
141138
+ repo,
141139
+ filePath,
141140
+ action
141141
+ );
141142
+ if (binaryContent !== null) {
141143
+ content = binaryContent;
141144
+ } else {
141145
+ try {
141146
+ content = await repo.execCommand(
141147
+ `git diff ${diffBase} -- "${filePath}"`
141148
+ );
141149
+ } catch (error88) {
141150
+ warn(`Error getting branch diff for ${filePath}:`, error88);
141151
+ }
141145
141152
  }
141146
141153
  }
141147
141154
  results.push({
@@ -10987,7 +10987,7 @@ var glob = Object.assign(glob_, {
10987
10987
  glob.glob = glob;
10988
10988
 
10989
10989
  // src/proxy/version.ts
10990
- var VERSION = "0.4.11";
10990
+ var VERSION = "0.4.12";
10991
10991
 
10992
10992
  // src/deps.ts
10993
10993
  var import_child_process = require("child_process");
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "staklink",
3
3
  "displayName": "staklink",
4
4
  "description": "staklink process manager",
5
- "version": "0.4.11",
5
+ "version": "0.4.12",
6
6
  "type": "module",
7
7
  "publisher": "stakwork",
8
8
  "engines": {