nestjs-base 1.0.28 → 1.0.29

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.
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.BcryptUtil = void 0;
4
- const bcrypt = require("bcrypt");
4
+ const bcrypt = require("bcryptjs");
5
5
  class BcryptUtil {
6
6
  static hash(password) {
7
7
  const SALT_ROUNDS = 10;
@@ -1 +1 @@
1
- {"version":3,"file":"bcrypt.util.js","sourceRoot":"","sources":["../../src/utils/bcrypt.util.ts"],"names":[],"mappings":";;;AAAA,iCAAiC;AAKjC,MAAa,UAAU;IAOrB,MAAM,CAAC,IAAI,CAAC,QAAgB;QAE1B,MAAM,WAAW,GAAG,EAAE,CAAC;QAGvB,MAAM,IAAI,GAAG,MAAM,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;QAG7C,OAAO,MAAM,CAAC,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;IACzC,CAAC;IASD,MAAM,CAAC,OAAO,CAAC,QAAgB,EAAE,cAAsB;QACrD,OAAO,MAAM,CAAC,WAAW,CAAC,QAAQ,EAAE,cAAc,IAAI,EAAE,CAAC,CAAC;IAC5D,CAAC;CACF;AA5BD,gCA4BC"}
1
+ {"version":3,"file":"bcrypt.util.js","sourceRoot":"","sources":["../../src/utils/bcrypt.util.ts"],"names":[],"mappings":";;;AAAA,mCAAmC;AAKnC,MAAa,UAAU;IAOrB,MAAM,CAAC,IAAI,CAAC,QAAgB;QAE1B,MAAM,WAAW,GAAG,EAAE,CAAC;QAGvB,MAAM,IAAI,GAAG,MAAM,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;QAG7C,OAAO,MAAM,CAAC,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;IACzC,CAAC;IASD,MAAM,CAAC,OAAO,CAAC,QAAgB,EAAE,cAAsB;QACrD,OAAO,MAAM,CAAC,WAAW,CAAC,QAAQ,EAAE,cAAc,IAAI,EAAE,CAAC,CAAC;IAC5D,CAAC;CACF;AA5BD,gCA4BC"}
package/package.json CHANGED
@@ -1,89 +1,89 @@
1
- {
2
- "name": "nestjs-base",
3
- "version": "1.0.28",
4
- "description": "nestjs base toolkit",
5
- "author": "zhaojintian",
6
- "license": "UNLICENSED",
7
- "main": "dist/index.js",
8
- "typings": "dist/index.d.ts",
9
- "files": [
10
- "dist"
11
- ],
12
- "scripts": {
13
- "build": "nest build",
14
- "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
15
- "start": "nest start",
16
- "start:dev": "nest start --watch",
17
- "start:debug": "nest start --debug --watch",
18
- "start:prod": "node dist/main",
19
- "lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
20
- "test": "jest",
21
- "test:watch": "jest --watch",
22
- "test:cov": "jest --coverage",
23
- "test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
24
- "test:e2e": "jest --config ./test/jest-e2e.json"
25
- },
26
- "dependencies": {
27
- "@nestjs/common": "^10.0.0",
28
- "@nestjs/core": "^10.0.0",
29
- "@nestjs/platform-express": "^10.0.0",
30
- "@nestjs/swagger": "^7.1.17",
31
- "@songkeys/nestjs-redis": "^10.0.0",
32
- "bcrypt": "^5.1.1",
33
- "class-transformer": "^0.5.1",
34
- "class-validator": "^0.14.0",
35
- "dayjs": "^1.11.10",
36
- "express": "^4.18.2",
37
- "ioredis": "^5.3.2",
38
- "jsonwebtoken": "^9.0.2",
39
- "lodash": "^4.17.21",
40
- "qcloudsms_js": "^0.1.1",
41
- "reflect-metadata": "^0.1.13",
42
- "rxjs": "^7.8.1",
43
- "sequelize": "^6.35.2",
44
- "sequelize-typescript": "^2.1.6",
45
- "snowflake-id": "^1.1.0",
46
- "svg-captcha": "^1.4.0"
47
- },
48
- "devDependencies": {
49
- "@nestjs/cli": "^10.0.0",
50
- "@nestjs/schematics": "^10.0.0",
51
- "@nestjs/testing": "^10.0.0",
52
- "@types/express": "^4.17.17",
53
- "@types/jest": "^29.5.2",
54
- "@types/lodash": "^4.14.202",
55
- "@types/node": "^20.3.1",
56
- "@types/supertest": "^2.0.12",
57
- "@typescript-eslint/eslint-plugin": "^6.0.0",
58
- "@typescript-eslint/parser": "^6.0.0",
59
- "eslint": "^8.42.0",
60
- "eslint-config-prettier": "^9.0.0",
61
- "eslint-plugin-prettier": "^5.0.0",
62
- "jest": "^29.5.0",
63
- "prettier": "^3.0.0",
64
- "source-map-support": "^0.5.21",
65
- "supertest": "^6.3.3",
66
- "ts-jest": "^29.1.0",
67
- "ts-loader": "^9.4.3",
68
- "ts-node": "^10.9.1",
69
- "tsconfig-paths": "^4.2.0",
70
- "typescript": "^5.1.3"
71
- },
72
- "jest": {
73
- "moduleFileExtensions": [
74
- "js",
75
- "json",
76
- "ts"
77
- ],
78
- "rootDir": "src",
79
- "testRegex": ".*\\.spec\\.ts$",
80
- "transform": {
81
- "^.+\\.(t|j)s$": "ts-jest"
82
- },
83
- "collectCoverageFrom": [
84
- "**/*.(t|j)s"
85
- ],
86
- "coverageDirectory": "../coverage",
87
- "testEnvironment": "node"
88
- }
89
- }
1
+ {
2
+ "name": "nestjs-base",
3
+ "version": "1.0.29",
4
+ "description": "nestjs base toolkit",
5
+ "author": "zhaojintian",
6
+ "license": "UNLICENSED",
7
+ "main": "dist/index.js",
8
+ "typings": "dist/index.d.ts",
9
+ "files": [
10
+ "dist"
11
+ ],
12
+ "scripts": {
13
+ "build": "nest build",
14
+ "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
15
+ "start": "nest start",
16
+ "start:dev": "nest start --watch",
17
+ "start:debug": "nest start --debug --watch",
18
+ "start:prod": "node dist/main",
19
+ "lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
20
+ "test": "jest",
21
+ "test:watch": "jest --watch",
22
+ "test:cov": "jest --coverage",
23
+ "test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
24
+ "test:e2e": "jest --config ./test/jest-e2e.json"
25
+ },
26
+ "dependencies": {
27
+ "@nestjs/common": "^10.0.0",
28
+ "@nestjs/core": "^10.0.0",
29
+ "@nestjs/platform-express": "^10.0.0",
30
+ "@nestjs/swagger": "^7.1.17",
31
+ "@songkeys/nestjs-redis": "^10.0.0",
32
+ "bcryptjs": "^3.0.2",
33
+ "class-transformer": "^0.5.1",
34
+ "class-validator": "^0.14.0",
35
+ "dayjs": "^1.11.10",
36
+ "express": "^4.18.2",
37
+ "ioredis": "^5.3.2",
38
+ "jsonwebtoken": "^9.0.2",
39
+ "lodash": "^4.17.21",
40
+ "qcloudsms_js": "^0.1.1",
41
+ "reflect-metadata": "^0.1.13",
42
+ "rxjs": "^7.8.1",
43
+ "sequelize": "^6.35.2",
44
+ "sequelize-typescript": "^2.1.6",
45
+ "snowflake-id": "^1.1.0",
46
+ "svg-captcha": "^1.4.0"
47
+ },
48
+ "devDependencies": {
49
+ "@nestjs/cli": "^10.0.0",
50
+ "@nestjs/schematics": "^10.0.0",
51
+ "@nestjs/testing": "^10.0.0",
52
+ "@types/express": "^4.17.17",
53
+ "@types/jest": "^29.5.2",
54
+ "@types/lodash": "^4.14.202",
55
+ "@types/node": "^20.3.1",
56
+ "@types/supertest": "^2.0.12",
57
+ "@typescript-eslint/eslint-plugin": "^6.0.0",
58
+ "@typescript-eslint/parser": "^6.0.0",
59
+ "eslint": "^8.42.0",
60
+ "eslint-config-prettier": "^9.0.0",
61
+ "eslint-plugin-prettier": "^5.0.0",
62
+ "jest": "^29.5.0",
63
+ "prettier": "^3.0.0",
64
+ "source-map-support": "^0.5.21",
65
+ "supertest": "^6.3.3",
66
+ "ts-jest": "^29.1.0",
67
+ "ts-loader": "^9.4.3",
68
+ "ts-node": "^10.9.1",
69
+ "tsconfig-paths": "^4.2.0",
70
+ "typescript": "^5.1.3"
71
+ },
72
+ "jest": {
73
+ "moduleFileExtensions": [
74
+ "js",
75
+ "json",
76
+ "ts"
77
+ ],
78
+ "rootDir": "src",
79
+ "testRegex": ".*\\.spec\\.ts$",
80
+ "transform": {
81
+ "^.+\\.(t|j)s$": "ts-jest"
82
+ },
83
+ "collectCoverageFrom": [
84
+ "**/*.(t|j)s"
85
+ ],
86
+ "coverageDirectory": "../coverage",
87
+ "testEnvironment": "node"
88
+ }
89
+ }