pinokiod 5.0.10 → 5.0.11

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/server/index.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "5.0.10",
3
+ "version": "5.0.11",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
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(oldContent, newContent);
7257
+ const diffs = diff.diffLines(normalize(oldContent), normalize(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(oldContent, newContent);
7279
+ const diffs = diff.diffLines(normalize(oldContent), normalize(newContent));
7280
7280
  change = Util.diffLinesWithContext(diffs, 5);
7281
7281
  }
7282
7282
  }