@nowarajs/totp 1.1.3 โ 1.1.4
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 +4 -88
- package/package.json +5 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,96 +1,12 @@
|
|
|
1
1
|
|
|
2
|
-
## v1.1.
|
|
2
|
+
## v1.1.4
|
|
3
3
|
|
|
4
|
-
[compare changes](https://github.com/NowaraJS/totp/compare/v1.1.
|
|
5
|
-
|
|
6
|
-
### ๐ Documentation
|
|
7
|
-
|
|
8
|
-
- **๐:** [Add Contributor Covenant Code of Conduct] ([ef8a067](https://github.com/NowaraJS/totp/commit/ef8a067))
|
|
9
|
-
- **๐:** [Add contributing guidelines to the project] ([933b053](https://github.com/NowaraJS/totp/commit/933b053))
|
|
10
|
-
- **๐:** [Add SECURITY.md for vulnerability reporting and supported versions] ([6d888c1](https://github.com/NowaraJS/totp/commit/6d888c1))
|
|
11
|
-
|
|
12
|
-
### ๐ฆ Build
|
|
13
|
-
|
|
14
|
-
- **๐ฆ:** [Update dependencies and author information in package.json] ([c3eb931](https://github.com/NowaraJS/totp/commit/c3eb931))
|
|
15
|
-
|
|
16
|
-
### ๐ฆ Chore
|
|
17
|
-
|
|
18
|
-
- **๐ฆ:** [Update contact email in issue template] Updated the contact email in the issue template from komiriko@pm.me to nowarajs@pm.me to reflect the correct address for project inquiries. ([b8cc348](https://github.com/NowaraJS/totp/commit/b8cc348))
|
|
19
|
-
- **๐ฆ:** [rename MIT License file with explicit .md] ([cc0cdc8](https://github.com/NowaraJS/totp/commit/cc0cdc8))
|
|
20
|
-
|
|
21
|
-
### โค๏ธ Contributors
|
|
22
|
-
|
|
23
|
-
- Komiroko <komiriko@pm.me>
|
|
24
|
-
|
|
25
|
-
## v1.1.2
|
|
26
|
-
|
|
27
|
-
[compare changes](https://github.com/NowaraJS/totp/compare/v1.1.1...v1.1.2)
|
|
28
|
-
|
|
29
|
-
### ๐ฆ Chore
|
|
30
|
-
|
|
31
|
-
- **๐ฆ:** [Update package.json with correct name and description] ([e007586](https://github.com/NowaraJS/totp/commit/e007586))
|
|
32
|
-
|
|
33
|
-
### โค๏ธ Contributors
|
|
34
|
-
|
|
35
|
-
- Komiroko <komiriko@pm.me>
|
|
36
|
-
|
|
37
|
-
## v1.1.1
|
|
38
|
-
|
|
39
|
-
[compare changes](https://github.com/NowaraJS/totp/compare/v1.1.0...v1.1.1)
|
|
40
|
-
|
|
41
|
-
### ๐ Documentation
|
|
42
|
-
|
|
43
|
-
- **๐:** [Update README with comprehensive TOTP features and usage] ([e8f8369](https://github.com/NowaraJS/totp/commit/e8f8369))
|
|
44
|
-
|
|
45
|
-
### โค๏ธ Contributors
|
|
46
|
-
|
|
47
|
-
- Komiroko <komiriko@pm.me>
|
|
48
|
-
|
|
49
|
-
## v1.1.0
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
### ๐ Enhancements
|
|
53
|
-
|
|
54
|
-
- **๐:** [Add Base32 encoding and decoding utilities] ([580be95](https://github.com/NowaraJS/totp/commit/580be95))
|
|
55
|
-
- **๐:** [Add TOTP error keys enumeration] ([cd31d9d](https://github.com/NowaraJS/totp/commit/cd31d9d))
|
|
56
|
-
- **๐:** [Add createCounterBuffer utility for big-endian conversion] ([6effcbf](https://github.com/NowaraJS/totp/commit/6effcbf))
|
|
57
|
-
- **๐:** [Add dynamic truncation utility for HMAC results] ([8b9d226](https://github.com/NowaraJS/totp/commit/8b9d226))
|
|
58
|
-
- **๐:** [Add generateHmac utility for HMAC generation] ## Features - Introduced a new utility function `generateHmac` for generating HMACs. ([86a62ee](https://github.com/NowaraJS/totp/commit/86a62ee))
|
|
59
|
-
- **๐:** [Add generateSecretBytes utility for TOTP secret generation] ([f0fa3b4](https://github.com/NowaraJS/totp/commit/f0fa3b4))
|
|
60
|
-
- **๐:** [Add timeRemaining utility for TOTP code calculation] ([38c2591](https://github.com/NowaraJS/totp/commit/38c2591))
|
|
61
|
-
- **๐:** [Implement HMAC-based One-Time Password (HOTP) functionality] ([57cc8db](https://github.com/NowaraJS/totp/commit/57cc8db))
|
|
62
|
-
- **๐:** [Add OTPAuth URI building and parsing functionality] ([3c3108c](https://github.com/NowaraJS/totp/commit/3c3108c))
|
|
63
|
-
- **๐:** [Add TOTP implementation and verification functionality] ([e9ca7da](https://github.com/NowaraJS/totp/commit/e9ca7da))
|
|
64
|
-
|
|
65
|
-
### ๐ Documentation
|
|
66
|
-
|
|
67
|
-
- **๐:** [Update copilot instructions for clarity and structure] ([57ca1ea](https://github.com/NowaraJS/totp/commit/57ca1ea))
|
|
68
|
-
|
|
69
|
-
### ๐ฆ Build
|
|
70
|
-
|
|
71
|
-
- **๐ฆ:** [Update devDependencies and exports in package.json] ([2e32770](https://github.com/NowaraJS/totp/commit/2e32770))
|
|
72
|
-
- **๐ฆ:** [Refactor entrypoints in builder.ts for clarity] ([7e241b4](https://github.com/NowaraJS/totp/commit/7e241b4))
|
|
73
|
-
- **๐ฆ:** [Clean and add entrypoints] ([6a82236](https://github.com/NowaraJS/totp/commit/6a82236))
|
|
4
|
+
[compare changes](https://github.com/NowaraJS/totp/compare/v1.1.3...v1.1.4)
|
|
74
5
|
|
|
75
6
|
### ๐ฆ Chore
|
|
76
7
|
|
|
77
|
-
- **๐ฆ:** [Remove
|
|
78
|
-
|
|
79
|
-
### ๐งช Tests
|
|
80
|
-
|
|
81
|
-
- **๐งช:** [Add unit tests for Base32 encoding and decoding] ([7292a8d](https://github.com/NowaraJS/totp/commit/7292a8d))
|
|
82
|
-
- **๐งช:** [Add unit tests for createCounterBuffer utility] ([b13eea0](https://github.com/NowaraJS/totp/commit/b13eea0))
|
|
83
|
-
- **๐งช:** [Add unit tests for dynamic truncation utility] ([9dfb41c](https://github.com/NowaraJS/totp/commit/9dfb41c))
|
|
84
|
-
- **๐งช:** [Add unit tests for generateHmac utility] ([67aa60b](https://github.com/NowaraJS/totp/commit/67aa60b))
|
|
85
|
-
- **๐งช:** [Add unit tests for generateSecretBytes utility] ([52f2ec6](https://github.com/NowaraJS/totp/commit/52f2ec6))
|
|
86
|
-
- **๐งช:** [Add unit tests for timeRemaining utility] ## Tests - Introduced unit tests for the timeRemaining utility function. ## Description This commit adds a test suite for the timeRemaining function, ensuring that it correctly calculates the remaining time until the next TOTP code based on a specified period. The test checks that the remaining time is less than the period, validating the function's expected behavior. ([ae820e8](https://github.com/NowaraJS/totp/commit/ae820e8))
|
|
87
|
-
- **๐งช:** [Add unit tests for HOTP code generation] ([932fb33](https://github.com/NowaraJS/totp/commit/932fb33))
|
|
88
|
-
- **๐งช:** [Add unit tests for OTP Auth URI building and parsing] ## Tests - Implemented unit tests for `buildOtpAuthUri` to ensure it constructs a valid OTP Auth URI. - Added tests for `parseOtpAuthUri` to validate parsing of a valid OTP Auth URI and error handling for invalid cases. ([6160cbd](https://github.com/NowaraJS/totp/commit/6160cbd))
|
|
89
|
-
- **๐งช:** [Add unit tests for TOTP generation and verification] ## Tests - Added tests for TOTP code generation to ensure it produces a valid 6-digit code. - Implemented tests for TOTP code verification, including both valid and invalid scenarios. ## Description This commit introduces unit tests for the TOTP functionality, validating both the generation of TOTP codes and their verification. The tests check that generated codes are of the correct length and format, and that the verification function correctly identifies valid and invalid codes. ([445a954](https://github.com/NowaraJS/totp/commit/445a954))
|
|
90
|
-
|
|
91
|
-
### ๐ค CI
|
|
92
|
-
|
|
93
|
-
- **๐ค:** [Enhance CI workflows with additional MSSQL secrets] ([b96813c](https://github.com/NowaraJS/totp/commit/b96813c))
|
|
8
|
+
- **๐ฆ:** [Remove outdated CHANGELOG entries for v1.1.3] ([46431cb](https://github.com/NowaraJS/totp/commit/46431cb))
|
|
9
|
+
- **๐ฆ:** [Update peerDependencies for @nowarajs/error] ([d0a5a32](https://github.com/NowaraJS/totp/commit/d0a5a32))
|
|
94
10
|
|
|
95
11
|
### โค๏ธ Contributors
|
|
96
12
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nowarajs/totp",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.4",
|
|
4
4
|
"author": "NowaraJS",
|
|
5
5
|
"description": "A comprehensive Time-based One-Time Password (TOTP) and HMAC-based One-Time Password (HOTP)",
|
|
6
6
|
"type": "module",
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@eslint/js": "^9.34.0",
|
|
26
|
+
"@nowarajs/error": "^1.1.8",
|
|
26
27
|
"@stylistic/eslint-plugin": "^5.2.3",
|
|
27
28
|
"@types/bun": "^1.2.20",
|
|
28
29
|
"eslint": "^9.34.0",
|
|
@@ -30,6 +31,9 @@
|
|
|
30
31
|
"typescript-eslint": "^8.40.0",
|
|
31
32
|
"typescript": "^5.9.2"
|
|
32
33
|
},
|
|
34
|
+
"peerDependencies": {
|
|
35
|
+
"@nowarajs/error": "^1.1.8"
|
|
36
|
+
},
|
|
33
37
|
"exports": {
|
|
34
38
|
"./enums": "./dist/enums/index.js",
|
|
35
39
|
"./types": "./dist/types/index.js",
|
|
@@ -88,9 +92,6 @@
|
|
|
88
92
|
"tagBody": "v{{newVersion}}"
|
|
89
93
|
}
|
|
90
94
|
},
|
|
91
|
-
"peerDependencies": {
|
|
92
|
-
"@nowarajs/error": "^1.1.7"
|
|
93
|
-
},
|
|
94
95
|
"repository": {
|
|
95
96
|
"type": "git",
|
|
96
97
|
"url": "https://github.com/NowaraJS/totp.git"
|