Skip to content

Commit ab2037c

Browse files
committedFeb 20, 2022
issue #22: adding algo to the SRI values in sri.json
1 parent 177c005 commit ab2037c

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed
 

‎ci/tools/build-utils.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ for (const f of ['./dist/cdn/data-tier-list.min.js', './dist/cdn/data-tier-list.
3333
const text = fs.readFileSync(f, { encoding: 'utf-8' });
3434
const algo = crypto.createHash(hashingAlgoritm);
3535
const hash = algo.update(text, 'utf-8').digest().toString('base64');
36-
sriMap[f] = hash;
36+
sriMap[f] = `${hashingAlgoritm}-${hash}`;
3737
}
3838
fs.writeFileSync('sri.json', JSON.stringify(sriMap, null, '\t'), { encoding: 'utf-8' });
3939

‎docs/changelog.md

+6
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]()
99

10+
## [2.2.1 - 2022-02-20]()
11+
### Fixed
12+
- [Issue no. 12](https://github.com/gullerya/data-tier-list/issues/12) - manual CI trigger for release
13+
- [Issue no. 12](https://github.com/gullerya/data-tier-list/issues/12) - manual CI trigger for release
14+
- [Issue no. 22](https://github.com/gullerya/data-tier-list/issues/22) - add 'sha512' to the SRI value
15+
1016
## [2.2.0 - 2022-02-20]()
1117
### Changed
1218
- CI/CD flows

‎sri.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"version": "2.2.0",
3-
"./dist/cdn/data-tier-list.min.js": "fZW6vu8q9hj7raV2F1okJq95PjTOzMpuzC9eSsdLAcZgZaqU78TyHTpNqiu4UH2Ka5EH/fIALdfq9O3mPy7BWg==",
4-
"./dist/cdn/data-tier-list.js": "YAb1vi9YdOps+QCRcuTk2vcmylD2WX6MSYuDcgxXi9yts8lEq6w0ITdeNFu07U8DcjX7+inR4UXcjrQ9c7S6MA=="
3+
"./dist/cdn/data-tier-list.min.js": "sha512-fZW6vu8q9hj7raV2F1okJq95PjTOzMpuzC9eSsdLAcZgZaqU78TyHTpNqiu4UH2Ka5EH/fIALdfq9O3mPy7BWg==",
4+
"./dist/cdn/data-tier-list.js": "sha512-D9NWVMnfe4lD5+Lf8fqOJ/djqVzLpm/d1XZpEv1y+IMM776qESH74pLppz7DHkMx/06GzP1PLHADwmHWnY2LcA=="
55
}

0 commit comments

Comments
 (0)
Please sign in to comment.