@cap-js-community/common 0.2.4 → 0.2.5

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/CHANGELOG.md CHANGED
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
6
6
  and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## Version 0.2.5 - 2025-07-07
9
+
10
+ ### Fixed
11
+
12
+ - Normalize newline character in hash calculation
13
+
8
14
  ## Version 0.2.4 - 2025-07-03
9
15
 
10
16
  ### Fixed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cap-js-community/common",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
4
4
  "description": "CAP Node.js Community Common",
5
5
  "homepage": "https://cap.cloud.sap/",
6
6
  "engines": {
@@ -59,7 +59,7 @@
59
59
  "eslint": "9.30.1",
60
60
  "eslint-config-prettier": "10.1.5",
61
61
  "eslint-plugin-jest": "29.0.1",
62
- "eslint-plugin-n": "^17.20.0",
62
+ "eslint-plugin-n": "^17.21.0",
63
63
  "jest": "30.0.4",
64
64
  "jest-html-reporters": "3.1.7",
65
65
  "jest-junit": "16.0.0",
@@ -652,6 +652,7 @@ function normalizeType(csn, type) {
652
652
  return typeof type === "object" ? JSON.stringify(type) : type;
653
653
  }
654
654
 
655
- const hash = (buffer, algorithm = "sha256") => crypto.createHash(algorithm).update(buffer).digest("hex");
655
+ const hash = (buffer, algorithm = "sha256") =>
656
+ crypto.createHash(algorithm).update(buffer.toString().replace(/\r\n/g, "\n")).digest("hex");
656
657
 
657
658
  module.exports = MigrationCheck;