@lucaapp/service-utils 5.5.2 → 5.5.3
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 +4 -4
- package/README.md +0 -66
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lucaapp/service-utils",
|
|
3
|
-
"version": "5.5.
|
|
3
|
+
"version": "5.5.3",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@apidevtools/swagger-parser": "10.0.3",
|
|
22
22
|
"@asteasolutions/zod-to-openapi": "6.1.0",
|
|
23
|
-
"@aws-sdk/client-s3": "^3.
|
|
24
|
-
"@aws-sdk/lib-storage": "^3.
|
|
23
|
+
"@aws-sdk/client-s3": "^3.993.0",
|
|
24
|
+
"@aws-sdk/lib-storage": "^3.993.0",
|
|
25
25
|
"@hapi/boom": "^10.0.1",
|
|
26
26
|
"@sentry/node": "^9.10.1",
|
|
27
27
|
"@tsconfig/node22": "22.0.0",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"vitest": "3.2.4"
|
|
83
83
|
},
|
|
84
84
|
"resolutions": {
|
|
85
|
-
"tar": "^7.5.
|
|
85
|
+
"tar": "^7.5.8",
|
|
86
86
|
"lodash": "^4.17.23",
|
|
87
87
|
"qs": "^6.14.2"
|
|
88
88
|
}
|
package/README.md
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
## service-utils
|
|
2
|
-
|
|
3
|
-
`service-utils` is a shared package that provides functionality for backend
|
|
4
|
-
services to reduce code duplication. It includes utilities for:
|
|
5
|
-
|
|
6
|
-
- Logging and monitoring
|
|
7
|
-
- API validation and OpenAPI documentation
|
|
8
|
-
- Error handling
|
|
9
|
-
- Database operations
|
|
10
|
-
- Authentication and authorization
|
|
11
|
-
- Kafka messaging
|
|
12
|
-
- HTTP client operations
|
|
13
|
-
- And more
|
|
14
|
-
|
|
15
|
-
### Development Setup
|
|
16
|
-
|
|
17
|
-
1. Navigate to `packages/service-utils`
|
|
18
|
-
2. Run `yarn link`
|
|
19
|
-
3. Navigate to `services/backend`
|
|
20
|
-
4. Run `yarn link @lucaapp/service-utils`
|
|
21
|
-
|
|
22
|
-
This will connect your local sources for `@lucaapp/service-utils`. When making
|
|
23
|
-
changes:
|
|
24
|
-
|
|
25
|
-
1. Run `yarn build` in `packages/service-utils` to compile changes
|
|
26
|
-
2. Run `yarn package-development` in `services/backend` to test changes
|
|
27
|
-
|
|
28
|
-
Required environment variables for local development:
|
|
29
|
-
|
|
30
|
-
```shell
|
|
31
|
-
export DB_HOSTNAME=localhost
|
|
32
|
-
export KAFKA_BROKER=localhost:9094
|
|
33
|
-
export REDIS_HOSTNAME=localhost
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
Ensure your docker stack has `database`, `kafka`, and `redis` running (but not
|
|
37
|
-
`backend`).
|
|
38
|
-
|
|
39
|
-
### Available Scripts
|
|
40
|
-
|
|
41
|
-
- `yarn build` - Compile TypeScript to JavaScript
|
|
42
|
-
- `yarn ts:check` - Type check without emitting files
|
|
43
|
-
- `yarn lint` - Run ESLint
|
|
44
|
-
- `yarn test` - Run tests with Vitest
|
|
45
|
-
- `yarn test:coverage` - Run tests with coverage report
|
|
46
|
-
- `yarn test:ci` - Run tests in CI environment
|
|
47
|
-
- `yarn audit` - Run security audit (ignoring dev dependencies)
|
|
48
|
-
|
|
49
|
-
### Publishing
|
|
50
|
-
|
|
51
|
-
The package is automatically published when changes are merged to `dev`. Follow
|
|
52
|
-
[semantic-release](https://www.npmjs.com/package/semantic-release) conventions
|
|
53
|
-
in commit messages to trigger appropriate versioning.
|
|
54
|
-
|
|
55
|
-
### Dependencies
|
|
56
|
-
|
|
57
|
-
The package uses modern versions of key dependencies:
|
|
58
|
-
|
|
59
|
-
- TypeScript 5.5.3
|
|
60
|
-
- Node.js 18
|
|
61
|
-
- Express 4.21.2
|
|
62
|
-
- Sequelize 6.32.0
|
|
63
|
-
- Zod 3.22.3
|
|
64
|
-
- Vitest 3.0.5 for testing
|
|
65
|
-
|
|
66
|
-
See `package.json` for a complete list of dependencies.
|