murlock 4.1.0 → 4.2.0-beta.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "murlock",
3
- "version": "4.1.0",
3
+ "version": "4.2.0-beta.2",
4
4
  "description": "A distributed locking solution for NestJS, providing a decorator for critical sections with Redis-based synchronization.",
5
5
  "author": "https://github.com/felanios",
6
6
  "homepage": "https://github.com/felanios/murlock#readme",
@@ -8,11 +8,16 @@
8
8
  "private": false,
9
9
  "main": "dist/index.js",
10
10
  "scripts": {
11
- "copy-lua": "ncp lib/lua dist/lua/",
11
+ "copy-lua": "ncp lib/lua dist/lua",
12
+ "build": "tsc && npm run copy-lua",
12
13
  "prepare": "husky install",
13
14
  "prebuild": "del-cli ./dist/*",
14
- "build": "tsc && npm run copy-lua",
15
- "release": "semantic-release"
15
+ "release": "semantic-release",
16
+ "test": "jest",
17
+ "test:watch": "jest --watch",
18
+ "test:cov": "jest --coverage",
19
+ "test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
20
+ "test:e2e": "jest --config ./test/jest-e2e.config.js --runInBand"
16
21
  },
17
22
  "dependencies": {
18
23
  "@nestjs/common": ">=10.0.5",
@@ -26,55 +31,59 @@
26
31
  "@commitlint/cli": "^18.2.0",
27
32
  "@commitlint/config-conventional": "^18.1.0",
28
33
  "@commitlint/core": "^18.2.0",
34
+ "@nestjs/testing": "^10.0.0",
29
35
  "@semantic-release/git": "^10.0.1",
30
36
  "@semantic-release/github": "^9.2.1",
31
37
  "@semantic-release/npm": "^11.0.1",
38
+ "@types/jest": "^29.5.0",
32
39
  "@types/node": "^20.8.10",
40
+ "@types/supertest": "^2.0.12",
33
41
  "husky": "^8.0.3",
42
+ "jest": "^29.5.0",
34
43
  "ncp": "^2.0.0",
35
44
  "semantic-release": "^22.0.6",
45
+ "supertest": "^6.3.3",
46
+ "ts-jest": "^29.1.0",
47
+ "ts-node": "^10.9.1",
48
+ "tsconfig-paths": "^4.2.0",
36
49
  "typescript": "^5.2.2"
37
50
  },
38
51
  "peerDependencies": {
39
52
  "@nestjs/common": ">=10.0.5",
40
53
  "@nestjs/core": ">=10.0.5"
41
54
  },
42
- "release": {
43
- "branches": [
44
- {
45
- "name": "master",
46
- "channel": "latest",
47
- "release": true
48
- },
49
- {
50
- "name": "beta",
51
- "channel": "beta",
52
- "prerelease": true
53
- }
54
- ],
55
- "plugins": [
56
- "@semantic-release/commit-analyzer",
57
- "@semantic-release/release-notes-generator",
58
- "@semantic-release/npm",
59
- "@semantic-release/git"
60
- ]
55
+ "peerDependenciesMeta": {
56
+ "@nestjs/common": {
57
+ "optional": false
58
+ },
59
+ "@nestjs/core": {
60
+ "optional": false
61
+ }
61
62
  },
63
+ "keywords": [
64
+ "nestjs",
65
+ "distributed-lock",
66
+ "redis",
67
+ "lock",
68
+ "mutex",
69
+ "synchronization"
70
+ ],
71
+ "plugins": [
72
+ "@semantic-release/commit-analyzer",
73
+ "@semantic-release/release-notes-generator",
74
+ "@semantic-release/npm",
75
+ "@semantic-release/git"
76
+ ],
62
77
  "repository": {
63
78
  "type": "git",
64
- "url": "https://github.com/felanios/murlock.git"
79
+ "url": "https://github.com/felanios/murlock"
65
80
  },
66
81
  "bugs": {
67
82
  "url": "https://github.com/felanios/murlock/issues"
68
83
  },
69
- "keywords": [
70
- "nestjs",
71
- "lock",
72
- "murlock",
73
- "distributed lock",
74
- "redis",
75
- "decorator",
76
- "microservices"
77
- ],
84
+ "publishConfig": {
85
+ "access": "public"
86
+ },
78
87
  "files": [
79
88
  "dist/**/*",
80
89
  "README.md"