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.
- package/dist/proxy-server.cjs +17 -10
- package/dist/staklink-cli.cjs +1 -1
- package/package.json +1 -1
package/dist/proxy-server.cjs
CHANGED
|
@@ -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.
|
|
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
|
-
|
|
141136
|
-
if (binaryContent !== null) {
|
|
141137
|
-
content = binaryContent;
|
|
141135
|
+
if (action === "delete") {
|
|
141138
141136
|
} else {
|
|
141139
|
-
|
|
141140
|
-
|
|
141141
|
-
|
|
141142
|
-
|
|
141143
|
-
|
|
141144
|
-
|
|
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({
|
package/dist/staklink-cli.cjs
CHANGED
|
@@ -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.
|
|
10990
|
+
var VERSION = "0.4.12";
|
|
10991
10991
|
|
|
10992
10992
|
// src/deps.ts
|
|
10993
10993
|
var import_child_process = require("child_process");
|