pinokiod 5.0.9 → 5.0.10
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/package.json
CHANGED
package/server/index.js
CHANGED
|
@@ -7254,7 +7254,7 @@ class Server {
|
|
|
7254
7254
|
} catch (e) {
|
|
7255
7255
|
newContent = "";
|
|
7256
7256
|
}
|
|
7257
|
-
const diffs = diff.diffLines(
|
|
7257
|
+
const diffs = diff.diffLines(oldContent, newContent);
|
|
7258
7258
|
change = Util.diffLinesWithContext(diffs, 5);
|
|
7259
7259
|
} else {
|
|
7260
7260
|
const commitOid = await this.kernel.git.resolveCommitOid(dir, req.params.ref);
|
|
@@ -7276,7 +7276,7 @@ class Server {
|
|
|
7276
7276
|
} catch (e) {
|
|
7277
7277
|
console.log("E1", e)
|
|
7278
7278
|
} // File might not exist
|
|
7279
|
-
const diffs = diff.diffLines(
|
|
7279
|
+
const diffs = diff.diffLines(oldContent, newContent);
|
|
7280
7280
|
change = Util.diffLinesWithContext(diffs, 5);
|
|
7281
7281
|
}
|
|
7282
7282
|
}
|