@alwatr/crypto 4.9.1 → 4.9.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 +24 -0
- package/dist/main.cjs +2 -2
- package/dist/main.mjs +2 -2
- package/package.json +46 -48
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,32 @@
|
|
|
1
1
|
# Change Log
|
|
2
|
+
# Changelog
|
|
3
|
+
|
|
4
|
+
All notable changes to this project will be documented in this file.
|
|
2
5
|
|
|
3
6
|
All notable changes to this project will be documented in this file.
|
|
4
7
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
8
|
|
|
9
|
+
## [4.9.4](https://github.com/Alwatr/nanotron/compare/v4.9.3...v4.9.4) (2025-08-23)
|
|
10
|
+
|
|
11
|
+
### 🔨 Code Refactoring
|
|
12
|
+
|
|
13
|
+
* reorganize package.json files for consistency and clarity ([bde116e](https://github.com/Alwatr/nanotron/commit/bde116e21f9d9bd6084940e257438916d2c3d312)) by @alimd
|
|
14
|
+
|
|
15
|
+
### 🔗 Dependencies update
|
|
16
|
+
|
|
17
|
+
* downgrade @types/node version to 22.17.2 in all package.json files ([4f01e14](https://github.com/Alwatr/nanotron/commit/4f01e1408d8d0954865eb9d20f90178f13e98719)) by @alimd
|
|
18
|
+
* update dependencies for eslint-config, lerna-lite, typescript, and nanolib ([de16a71](https://github.com/Alwatr/nanotron/commit/de16a718bb1c0fa569d39c824ec39a1e67ef8dfe)) by @alimd
|
|
19
|
+
|
|
20
|
+
## [4.9.3](https://github.com/Alwatr/nanotron/compare/v4.9.2...v4.9.3) (2025-07-23)
|
|
21
|
+
|
|
22
|
+
**Note:** Version bump only for package @alwatr/crypto
|
|
23
|
+
|
|
24
|
+
## [4.9.2](https://github.com/Alwatr/nanotron/compare/v4.9.1...v4.9.2) (2025-07-23)
|
|
25
|
+
|
|
26
|
+
### Dependencies update
|
|
27
|
+
|
|
28
|
+
* update dependencies to latest versions ([353d048](https://github.com/Alwatr/nanotron/commit/353d0485a5c21ab219d84cd0a6c35f62b46c2da9)) by @alimd
|
|
29
|
+
|
|
6
30
|
## [4.9.1](https://github.com/Alwatr/nanotron/compare/v4.9.0...v4.9.1) (2025-03-06)
|
|
7
31
|
|
|
8
32
|
### Dependencies update
|
package/dist/main.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @alwatr/crypto v4.9.
|
|
1
|
+
/* @alwatr/crypto v4.9.4 */
|
|
2
2
|
"use strict";
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -217,7 +217,7 @@ var userTokenGeneratorRecommendedConfig = {
|
|
|
217
217
|
};
|
|
218
218
|
|
|
219
219
|
// src/api.ts
|
|
220
|
-
__dev_mode__: import_nanolib2.packageTracer.add("@alwatr/crypto", "4.9.
|
|
220
|
+
__dev_mode__: import_nanolib2.packageTracer.add("@alwatr/crypto", "4.9.4");
|
|
221
221
|
var AlwatrCryptoFactory = class {
|
|
222
222
|
/**
|
|
223
223
|
* Creates a new instance of crypto factory.
|
package/dist/main.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @alwatr/crypto v4.9.
|
|
1
|
+
/* @alwatr/crypto v4.9.4 */
|
|
2
2
|
|
|
3
3
|
// src/hash.ts
|
|
4
4
|
import { createHash, randomBytes } from "node:crypto";
|
|
@@ -186,7 +186,7 @@ var userTokenGeneratorRecommendedConfig = {
|
|
|
186
186
|
};
|
|
187
187
|
|
|
188
188
|
// src/api.ts
|
|
189
|
-
__dev_mode__: packageTracer.add("@alwatr/crypto", "4.9.
|
|
189
|
+
__dev_mode__: packageTracer.add("@alwatr/crypto", "4.9.4");
|
|
190
190
|
var AlwatrCryptoFactory = class {
|
|
191
191
|
/**
|
|
192
192
|
* Creates a new instance of crypto factory.
|
package/package.json
CHANGED
|
@@ -1,29 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alwatr/crypto",
|
|
3
|
-
"version": "4.9.1",
|
|
4
3
|
"description": "A robust generator of secure authentication HOTP tokens, employing the HMAC-based One-Time Password algorithm, accompanied by a suite of cryptographic utilities, all encapsulated within a compact TypeScript module.",
|
|
4
|
+
"version": "4.9.4",
|
|
5
5
|
"author": "S. Ali Mihandoost <ali.mihandoost@gmail.com>",
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
|
|
19
|
-
"typescript",
|
|
20
|
-
"esm",
|
|
21
|
-
"alwatr"
|
|
22
|
-
],
|
|
23
|
-
"type": "module",
|
|
24
|
-
"main": "./dist/main.cjs",
|
|
25
|
-
"module": "./dist/main.mjs",
|
|
26
|
-
"types": "./dist/main.d.ts",
|
|
6
|
+
"bugs": "https://github.com/Alwatr/nanotron/issues",
|
|
7
|
+
"dependencies": {
|
|
8
|
+
"@alwatr/nanolib": "^5.6.6"
|
|
9
|
+
},
|
|
10
|
+
"devDependencies": {
|
|
11
|
+
"@alwatr/nano-build": "^5.5.4",
|
|
12
|
+
"@alwatr/prettier-config": "^5.0.0",
|
|
13
|
+
"@alwatr/tsconfig-base": "^5.0.0",
|
|
14
|
+
"@alwatr/type-helper": "^5.4.2",
|
|
15
|
+
"@types/node": "^22.17.2",
|
|
16
|
+
"jest": "^30.0.5",
|
|
17
|
+
"typescript": "^5.9.2"
|
|
18
|
+
},
|
|
27
19
|
"exports": {
|
|
28
20
|
".": {
|
|
29
21
|
"types": "./dist/main.d.ts",
|
|
@@ -31,11 +23,32 @@
|
|
|
31
23
|
"require": "./dist/main.cjs"
|
|
32
24
|
}
|
|
33
25
|
},
|
|
34
|
-
"license": "AGPL-3.0-only",
|
|
35
26
|
"files": [
|
|
36
27
|
"**/*.{js,mjs,cjs,map,d.ts,html,md}",
|
|
37
28
|
"!demo/**/*"
|
|
38
29
|
],
|
|
30
|
+
"homepage": "https://github.com/Alwatr/nanotron/tree/next/packages/crypto#readme",
|
|
31
|
+
"keywords": [
|
|
32
|
+
"access",
|
|
33
|
+
"alwatr",
|
|
34
|
+
"auth",
|
|
35
|
+
"authentication",
|
|
36
|
+
"crypto",
|
|
37
|
+
"esm",
|
|
38
|
+
"hash",
|
|
39
|
+
"hmac",
|
|
40
|
+
"hotp",
|
|
41
|
+
"otp",
|
|
42
|
+
"otp-token",
|
|
43
|
+
"time",
|
|
44
|
+
"token",
|
|
45
|
+
"token",
|
|
46
|
+
"typescript"
|
|
47
|
+
],
|
|
48
|
+
"license": "AGPL-3.0-only",
|
|
49
|
+
"main": "./dist/main.cjs",
|
|
50
|
+
"module": "./dist/main.mjs",
|
|
51
|
+
"prettier": "@alwatr/prettier-config",
|
|
39
52
|
"publishConfig": {
|
|
40
53
|
"access": "public"
|
|
41
54
|
},
|
|
@@ -44,38 +57,23 @@
|
|
|
44
57
|
"url": "https://github.com/Alwatr/nanotron",
|
|
45
58
|
"directory": "packages/crypto"
|
|
46
59
|
},
|
|
47
|
-
"homepage": "https://github.com/Alwatr/nanotron/tree/next/packages/crypto#readme",
|
|
48
|
-
"bugs": {
|
|
49
|
-
"url": "https://github.com/Alwatr/nanotron/issues"
|
|
50
|
-
},
|
|
51
|
-
"prettier": "@alwatr/prettier-config",
|
|
52
60
|
"scripts": {
|
|
53
61
|
"b": "yarn run build",
|
|
54
|
-
"t": "yarn run test",
|
|
55
|
-
"w": "yarn run watch",
|
|
56
|
-
"c": "yarn run clean",
|
|
57
|
-
"cb": "yarn run clean && yarn run build",
|
|
58
|
-
"d": "yarn run build:es && yarn node --enable-source-maps --trace-warnings",
|
|
59
62
|
"build": "yarn run build:ts & yarn run build:es",
|
|
60
63
|
"build:es": "nano-build --preset=module",
|
|
61
64
|
"build:ts": "tsc --build",
|
|
65
|
+
"c": "yarn run clean",
|
|
66
|
+
"cb": "yarn run clean && yarn run build",
|
|
67
|
+
"clean": "rm -rfv dist *.tsbuildinfo",
|
|
68
|
+
"d": "yarn run build:es && yarn node --enable-source-maps --trace-warnings",
|
|
69
|
+
"t": "yarn run test",
|
|
62
70
|
"test": "NODE_OPTIONS=\"$NODE_OPTIONS --enable-source-maps --experimental-vm-modules\" jest",
|
|
71
|
+
"w": "yarn run watch",
|
|
63
72
|
"watch": "yarn run watch:ts & yarn run watch:es",
|
|
64
73
|
"watch:es": "yarn run build:es --watch",
|
|
65
|
-
"watch:ts": "yarn run build:ts --watch --preserveWatchOutput"
|
|
66
|
-
"clean": "rm -rfv dist *.tsbuildinfo"
|
|
74
|
+
"watch:ts": "yarn run build:ts --watch --preserveWatchOutput"
|
|
67
75
|
},
|
|
68
|
-
"
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
"devDependencies": {
|
|
72
|
-
"@alwatr/nano-build": "^5.5.0",
|
|
73
|
-
"@alwatr/prettier-config": "^5.0.0",
|
|
74
|
-
"@alwatr/tsconfig-base": "^5.0.0",
|
|
75
|
-
"@alwatr/type-helper": "^5.4.0",
|
|
76
|
-
"@types/node": "^22.13.9",
|
|
77
|
-
"jest": "^29.7.0",
|
|
78
|
-
"typescript": "^5.8.2"
|
|
79
|
-
},
|
|
80
|
-
"gitHead": "837fa8308cc3ba69a73c5cbe4ea03563adf0d56d"
|
|
76
|
+
"type": "module",
|
|
77
|
+
"types": "./dist/main.d.ts",
|
|
78
|
+
"gitHead": "d225632fac937bbf0faeb6db7eb9796e6ff0f00a"
|
|
81
79
|
}
|