@certd/basic 1.33.2 → 1.33.3

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
@@ -3,6 +3,10 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.33.3](https://github.com/certd/certd/compare/v1.33.2...v1.33.3) (2025-04-14)
7
+
8
+ **Note:** Version bump only for package @certd/basic
9
+
6
10
  ## [1.33.2](https://github.com/certd/certd/compare/v1.33.1...v1.33.2) (2025-04-12)
7
11
 
8
12
  ### Bug Fixes
package/build.md CHANGED
@@ -1 +1 @@
1
- 01:29
1
+ 22:22
@@ -1,4 +1,4 @@
1
- import { BinaryToTextEncoding } from 'crypto';
1
+ import { BinaryToTextEncoding } from "crypto";
2
2
  declare function md5(data: string, digest?: BinaryToTextEncoding): string;
3
3
  declare function sha256(data: string, digest?: BinaryToTextEncoding): string;
4
4
  declare function hmacSha256(data: string, digest?: BinaryToTextEncoding): string;
@@ -1,15 +1,15 @@
1
- import crypto from 'crypto';
2
- function md5(data, digest = 'hex') {
3
- return crypto.createHash('md5').update(data).digest(digest);
1
+ import crypto from "crypto";
2
+ function md5(data, digest = "hex") {
3
+ return crypto.createHash("md5").update(data).digest(digest);
4
4
  }
5
- function sha256(data, digest = 'hex') {
6
- return crypto.createHash('sha256').update(data).digest(digest);
5
+ function sha256(data, digest = "hex") {
6
+ return crypto.createHash("sha256").update(data).digest(digest);
7
7
  }
8
- function hmacSha256(data, digest = 'base64') {
9
- return crypto.createHmac('sha256', data).update(Buffer.alloc(0)).digest(digest);
8
+ function hmacSha256(data, digest = "base64") {
9
+ return crypto.createHmac("sha256", data).update(Buffer.alloc(0)).digest(digest);
10
10
  }
11
11
  function base64(data) {
12
- return Buffer.from(data).toString('base64');
12
+ return Buffer.from(data).toString("base64");
13
13
  }
14
14
  export const hashUtils = {
15
15
  md5,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@certd/basic",
3
3
  "private": false,
4
- "version": "1.33.2",
4
+ "version": "1.33.3",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.js",
@@ -44,5 +44,5 @@
44
44
  "tslib": "^2.8.1",
45
45
  "typescript": "^5.4.2"
46
46
  },
47
- "gitHead": "be69244e8ddb757de45c7e2b6033195c1f5a6910"
47
+ "gitHead": "0730f5ff4f176452f82489caa837b717e176fdca"
48
48
  }