@mondart/nestjs-common-module 2.7.8 → 2.8.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/lib/caching/caching.interface.d.ts +1 -1
- package/dist/lib/health-check/health-check.controller.d.ts +5 -5
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/validators/is-date-range.validator.js +0 -2
- package/package.json +5 -5
- package/.github/workflows/npm-publish.yml +0 -34
- package/.github/workflows/npm-unpublish.yml +0 -35
|
@@ -18,7 +18,6 @@ let IsDateRangeValidConstraint = class IsDateRangeValidConstraint {
|
|
|
18
18
|
.tz(timezone || moment.tz.guess())
|
|
19
19
|
.startOf('day')
|
|
20
20
|
.toDate();
|
|
21
|
-
console.log('Compare To Date:', compareTo);
|
|
22
21
|
}
|
|
23
22
|
else {
|
|
24
23
|
compareTo = args.object[relatedPropertyNameOrCurrent];
|
|
@@ -31,7 +30,6 @@ let IsDateRangeValidConstraint = class IsDateRangeValidConstraint {
|
|
|
31
30
|
return true;
|
|
32
31
|
}
|
|
33
32
|
const convertedFrom = moment(from).endOf('day').toDate();
|
|
34
|
-
console.log('From Date:', from);
|
|
35
33
|
switch (operator) {
|
|
36
34
|
case '<':
|
|
37
35
|
return convertedFrom.getTime() < compareTo.getTime();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mondart/nestjs-common-module",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.8.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Mondart"
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"build:docs": "npx compodoc -p tsconfig.build.json -d docs -o -s --theme material"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@keycloak/keycloak-admin-client": "
|
|
25
|
-
"@keyv/redis": "
|
|
24
|
+
"@keycloak/keycloak-admin-client": "~26.5.0",
|
|
25
|
+
"@keyv/redis": "4.2.0",
|
|
26
26
|
"@nestjs/axios": "^4.0.0",
|
|
27
27
|
"@nestjs/cache-manager": "^3.0.0",
|
|
28
28
|
"@nestjs/common": "^11.1.10",
|
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
"@sentry/nestjs": "^10.32.1",
|
|
38
38
|
"@sentry/profiling-node": "^10.32.1",
|
|
39
39
|
"@types/redis": "^4.0.11",
|
|
40
|
-
"axios": "1.
|
|
40
|
+
"axios": "~1.15.0",
|
|
41
41
|
"bottleneck": "^2.19.5",
|
|
42
|
-
"cache-manager": "
|
|
42
|
+
"cache-manager": "6.4.0",
|
|
43
43
|
"cache-manager-ioredis-yet": "^2.1.1",
|
|
44
44
|
"class-transformer": "^0.5.1",
|
|
45
45
|
"class-validator": "^0.14.3",
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
name: Build and Publish
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
release:
|
|
5
|
-
types: [created]
|
|
6
|
-
|
|
7
|
-
jobs:
|
|
8
|
-
build-and-publish:
|
|
9
|
-
runs-on: ubuntu-latest
|
|
10
|
-
|
|
11
|
-
steps:
|
|
12
|
-
- name: Checkout repository
|
|
13
|
-
uses: actions/checkout@v3
|
|
14
|
-
|
|
15
|
-
- name: Set up Node.js
|
|
16
|
-
uses: actions/setup-node@v3
|
|
17
|
-
with:
|
|
18
|
-
node-version: '16' # Use the Node.js version your project requires
|
|
19
|
-
|
|
20
|
-
- name: Install dependencies
|
|
21
|
-
run: npm install --force
|
|
22
|
-
|
|
23
|
-
- name: Build project
|
|
24
|
-
run: npm run build # Adjust this if your build command is different
|
|
25
|
-
|
|
26
|
-
- name: Set NPM Token
|
|
27
|
-
run: npm config set _authToken=${{ secrets.NPM_TOKEN }}
|
|
28
|
-
env:
|
|
29
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
30
|
-
|
|
31
|
-
- name: Publish to npm
|
|
32
|
-
env:
|
|
33
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
34
|
-
run: npm publish --access public
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
name: Unpublish
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
release:
|
|
5
|
-
types: [deleted]
|
|
6
|
-
|
|
7
|
-
jobs:
|
|
8
|
-
unpublish-package:
|
|
9
|
-
runs-on: ubuntu-latest
|
|
10
|
-
|
|
11
|
-
steps:
|
|
12
|
-
- name: Check out the repository
|
|
13
|
-
uses: actions/checkout@v3
|
|
14
|
-
|
|
15
|
-
- name: Set up Node.js
|
|
16
|
-
uses: actions/setup-node@v3
|
|
17
|
-
with:
|
|
18
|
-
node-version: '16'
|
|
19
|
-
|
|
20
|
-
- name: Set NPM Token
|
|
21
|
-
run: npm config set _authToken=${{ secrets.NPM_TOKEN }}
|
|
22
|
-
env:
|
|
23
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
24
|
-
|
|
25
|
-
- name: Extract package name and version
|
|
26
|
-
id: extract-package-info
|
|
27
|
-
run: |
|
|
28
|
-
# Replace this logic with your specific way of determining the package name and version
|
|
29
|
-
echo "PACKAGE_NAME=@mondart/nestjs-common-module" >> $GITHUB_ENV
|
|
30
|
-
echo "PACKAGE_VERSION=${{ github.event.release.tag_name }}" >> $GITHUB_ENV
|
|
31
|
-
|
|
32
|
-
- name: Unpublish the package
|
|
33
|
-
env:
|
|
34
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
35
|
-
run: npm unpublish $PACKAGE_NAME@$PACKAGE_VERSION --force
|