nestjs-cryptography 3.1.1 → 3.2.1
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/dist/constants.d.ts +1 -0
- package/dist/constants.js +3 -1
- package/dist/cryptography.module-definition.d.ts +1 -1
- package/dist/cryptography.module-definition.js +1 -0
- package/dist/cryptography.service.js +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/interfaces/cryptography-options.interface.d.ts +1 -0
- package/eslint.config.mjs +35 -0
- package/package.json +21 -20
package/dist/constants.d.ts
CHANGED
package/dist/constants.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DEFAULT_HASHING_CRYPTOGRAPHY_OPTIONS = exports.DEFAULT_KDF_CRYPTOGRAPHY_OPTIONS = exports.CRYPTOGRAPHY_OPTIONS = void 0;
|
|
3
|
+
exports.NEST_CRYPTOGRAPHY_MODULE_OPTIONS = exports.DEFAULT_HASHING_CRYPTOGRAPHY_OPTIONS = exports.DEFAULT_KDF_CRYPTOGRAPHY_OPTIONS = exports.CRYPTOGRAPHY_OPTIONS = void 0;
|
|
4
4
|
const interfaces_1 = require("./interfaces");
|
|
5
|
+
const cryptography_module_definition_1 = require("./cryptography.module-definition");
|
|
5
6
|
exports.CRYPTOGRAPHY_OPTIONS = 'CRYPTOGRAPHY_OPTIONS';
|
|
6
7
|
exports.DEFAULT_KDF_CRYPTOGRAPHY_OPTIONS = {
|
|
7
8
|
outputKeyLength: 32,
|
|
@@ -17,3 +18,4 @@ exports.DEFAULT_HASHING_CRYPTOGRAPHY_OPTIONS = {
|
|
|
17
18
|
timeCost: 4,
|
|
18
19
|
},
|
|
19
20
|
};
|
|
21
|
+
exports.NEST_CRYPTOGRAPHY_MODULE_OPTIONS = cryptography_module_definition_1.MODULE_OPTIONS_TOKEN;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { CryptographyOptionsInterface } from './interfaces';
|
|
2
|
-
export declare const ConfigurableModuleClass: import("@nestjs/common").ConfigurableModuleCls<CryptographyOptionsInterface, "
|
|
2
|
+
export declare const ConfigurableModuleClass: import("@nestjs/common").ConfigurableModuleCls<CryptographyOptionsInterface, "forRoot", "create", {
|
|
3
3
|
isGlobal: boolean;
|
|
4
4
|
}>, MODULE_OPTIONS_TOKEN: string | symbol;
|
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.MODULE_OPTIONS_TOKEN = exports.ConfigurableModuleClass = void 0;
|
|
5
5
|
const common_1 = require("@nestjs/common");
|
|
6
6
|
_a = new common_1.ConfigurableModuleBuilder()
|
|
7
|
+
.setClassMethodName('forRoot')
|
|
7
8
|
.setExtras({
|
|
8
9
|
isGlobal: true,
|
|
9
10
|
}, (definition, extras) => ({
|
|
@@ -52,6 +52,7 @@ const common_1 = require("@nestjs/common");
|
|
|
52
52
|
const cryptography_module_definition_1 = require("./cryptography.module-definition");
|
|
53
53
|
const constants_1 = require("./constants");
|
|
54
54
|
let CryptographyService = class CryptographyService {
|
|
55
|
+
moduleOptions;
|
|
55
56
|
constructor(moduleOptions) {
|
|
56
57
|
this.moduleOptions = moduleOptions;
|
|
57
58
|
}
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -17,3 +17,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./cryptography.module"), exports);
|
|
18
18
|
__exportStar(require("./interfaces"), exports);
|
|
19
19
|
__exportStar(require("./cryptography.service"), exports);
|
|
20
|
+
__exportStar(require("./constants"), exports);
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// @ts-check
|
|
2
|
+
import eslint from '@eslint/js';
|
|
3
|
+
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
|
|
4
|
+
import globals from 'globals';
|
|
5
|
+
import tseslint from 'typescript-eslint';
|
|
6
|
+
|
|
7
|
+
export default tseslint.config(
|
|
8
|
+
{
|
|
9
|
+
ignores: ['eslint.config.mjs', 'wiki/', 'dist/' , 'test/', 'index.js', '.eslintrc.js', 'index.d.ts', 'index.ts'],
|
|
10
|
+
},
|
|
11
|
+
eslint.configs.recommended,
|
|
12
|
+
...tseslint.configs.recommendedTypeChecked,
|
|
13
|
+
eslintPluginPrettierRecommended,
|
|
14
|
+
{
|
|
15
|
+
languageOptions: {
|
|
16
|
+
globals: {
|
|
17
|
+
...globals.node,
|
|
18
|
+
...globals.jest,
|
|
19
|
+
},
|
|
20
|
+
ecmaVersion: 5,
|
|
21
|
+
sourceType: 'module',
|
|
22
|
+
parserOptions: {
|
|
23
|
+
projectService: true,
|
|
24
|
+
tsconfigRootDir: import.meta.dirname,
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
rules: {
|
|
30
|
+
'@typescript-eslint/no-explicit-any': 'off',
|
|
31
|
+
'@typescript-eslint/no-floating-promises': 'warn',
|
|
32
|
+
'@typescript-eslint/no-unsafe-argument': 'warn'
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nestjs-cryptography",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.1",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "Marc Jorge Gonzalez",
|
|
6
6
|
"url": "https://github.com/mjorgegulab"
|
|
@@ -30,33 +30,34 @@
|
|
|
30
30
|
"argon2": "^0.41.1"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@
|
|
34
|
-
"@
|
|
35
|
-
"@nestjs/
|
|
36
|
-
"@nestjs/
|
|
37
|
-
"@nestjs/
|
|
38
|
-
"@nestjs/
|
|
39
|
-
"@
|
|
33
|
+
"@eslint/eslintrc": "^3.3.1",
|
|
34
|
+
"@eslint/js": "^9.24.0",
|
|
35
|
+
"@nestjs/cli": "^11.0.6",
|
|
36
|
+
"@nestjs/common": "^11.0.20",
|
|
37
|
+
"@nestjs/core": "^11.0.20",
|
|
38
|
+
"@nestjs/platform-express": "^11.0.20",
|
|
39
|
+
"@nestjs/schematics": "^11.0.5",
|
|
40
|
+
"@nestjs/testing": "^11.0.20",
|
|
41
|
+
"@types/express": "^5.0.1",
|
|
40
42
|
"@types/jest": "29.5.14",
|
|
41
|
-
"@types/node": "22.
|
|
42
|
-
"@types/supertest": "^6.0.
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"eslint": "^
|
|
46
|
-
"eslint-config-prettier": "^9.1.0",
|
|
47
|
-
"eslint-plugin-prettier": "^5.2.3",
|
|
43
|
+
"@types/node": "22.14.1",
|
|
44
|
+
"@types/supertest": "^6.0.3",
|
|
45
|
+
"eslint": "^9.24.0",
|
|
46
|
+
"eslint-config-prettier": "^10.1.2",
|
|
47
|
+
"eslint-plugin-prettier": "^5.2.6",
|
|
48
48
|
"jest": "29.7.0",
|
|
49
|
-
"prettier": "^3.5.
|
|
49
|
+
"prettier": "^3.5.3",
|
|
50
50
|
"reflect-metadata": "^0.2.2",
|
|
51
51
|
"rimraf": "^6.0.1",
|
|
52
|
-
"rxjs": "^7.8.
|
|
52
|
+
"rxjs": "^7.8.2",
|
|
53
53
|
"source-map-support": "^0.5.21",
|
|
54
|
-
"supertest": "^7.
|
|
55
|
-
"ts-jest": "29.2
|
|
54
|
+
"supertest": "^7.1.0",
|
|
55
|
+
"ts-jest": "^29.3.2",
|
|
56
56
|
"ts-loader": "^9.5.2",
|
|
57
57
|
"ts-node": "^10.9.2",
|
|
58
58
|
"tsconfig-paths": "4.2.0",
|
|
59
|
-
"typescript": "^5.
|
|
59
|
+
"typescript": "^5.8.3",
|
|
60
|
+
"typescript-eslint": "^8.30.1"
|
|
60
61
|
},
|
|
61
62
|
"peerDependencies": {
|
|
62
63
|
"@nestjs/common": "^9.0.0 || ^10.0.0 || ^11.0.0",
|