Skip to content

Commit

Permalink
build(deps): bump project dependencies
Browse files Browse the repository at this point in the history
- [x] update project dependencies to the latest versions;
  • Loading branch information
rfprod committed Sep 19, 2023
1 parent fe4b1e0 commit 70e01ab
Show file tree
Hide file tree
Showing 9 changed files with 2,240 additions and 2,167 deletions.
17 changes: 8 additions & 9 deletions apps/api/src/app/api.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { HttpModule } from '@nestjs/axios';
import { CacheModule } from '@nestjs/cache-manager';
import { Module } from '@nestjs/common';
import { ConfigModule, ConfigService } from '@nestjs/config';
import { ThrottlerModule } from '@nestjs/throttler';
import { ThrottlerModule, ThrottlerModuleOptions } from '@nestjs/throttler';

import { environment } from '../environments/environment';

Expand Down Expand Up @@ -37,17 +37,16 @@ const caching = () => {
* @returns throttling module configuration
*/
const throttling = () => {
const defaultConfig = {
limit: 60,
ttl: 60,
};
return ThrottlerModule.forRootAsync({
imports: [ConfigModule],
inject: [ConfigService],
useFactory: (config: ConfigService) => ({
limit: config.get('THROTTLE_LIMIT') ?? defaultConfig.limit,
ttl: config.get('THROTTLE_TTL') ?? defaultConfig.ttl,
}),
useFactory: (config: ConfigService) => {
const defaults = { limit: 60, ttl: 60 };
const options: ThrottlerModuleOptions = [
{ limit: config.get('THROTTLE_LIMIT') ?? defaults.limit, ttl: config.get('THROTTLE_TTL') ?? defaults.ttl },
];
return options;
},
});
};

Expand Down
34 changes: 17 additions & 17 deletions functions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,31 +14,31 @@
"start:emulators": "firebase emulators:start --only functions"
},
"dependencies": {
"@grpc/grpc-js": "1.9.1",
"@grpc/grpc-js": "1.9.3",
"@grpc/proto-loader": "0.7.9",
"@nestjs/apollo": "12.0.7",
"@nestjs/throttler": "4.2.1",
"@nestjs/apollo": "12.0.9",
"@nestjs/throttler": "5.0.0",
"@nestjs/axios": "3.0.0",
"@nestjs/common": "10.2.1",
"@nestjs/config": "3.0.0",
"@nestjs/core": "10.2.1",
"@nestjs/graphql": "12.0.8",
"@nestjs/jwt": "10.1.0",
"@nestjs/microservices": "10.2.1",
"@nestjs/passport": "10.0.1",
"@nestjs/platform-express": "10.2.1",
"@nestjs/platform-ws": "10.2.1",
"@nestjs/swagger": "7.1.8",
"@nestjs/websockets": "10.2.1",
"@nestjs/common": "10.2.5",
"@nestjs/config": "3.1.1",
"@nestjs/core": "10.2.5",
"@nestjs/graphql": "12.0.9",
"@nestjs/jwt": "10.1.1",
"@nestjs/microservices": "10.2.5",
"@nestjs/passport": "10.0.2",
"@nestjs/platform-express": "10.2.5",
"@nestjs/platform-ws": "10.2.5",
"@nestjs/swagger": "7.1.11",
"@nestjs/websockets": "10.2.5",
"@nestjs/cache-manager": "2.1.0",
"cache-manager": "5.2.3",
"@types/compression": "1.7.2",
"@types/compression": "1.7.3",
"@types/express": "4.17.17",
"@types/graphql-upload": "16.0.1",
"@types/node": "20.5.6",
"@types/node": "20.6.0",
"@types/websocket": "1.0.6",
"@types/ws": "8.5.5",
"@apollo/server": "4.9.2",
"@apollo/server": "4.9.3",
"class-transformer": "0.5.1",
"class-validator": "0.14.0",
"compression": "1.7.4",
Expand Down
8 changes: 4 additions & 4 deletions libs/backend-diagnostics/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rfprodz/backend-diagnostics",
"version": "1.0.22",
"version": "1.0.23",
"description": "NestJS API diagnostics module.",
"keywords": [
"nestjs-controller",
Expand All @@ -22,9 +22,9 @@
"tslib": "2.6.2"
},
"peerDependencies": {
"@nestjs/common": "10.1.3",
"@nestjs/platform-ws": "10.1.3",
"@nestjs/websockets": "10.1.3",
"@nestjs/common": "10.2.5",
"@nestjs/platform-ws": "10.2.5",
"@nestjs/websockets": "10.2.5",
"dotenv": "16.3.1",
"rxjs": "7.8.1"
}
Expand Down
6 changes: 3 additions & 3 deletions libs/client-d3-charts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rfprodz/client-d3-charts",
"version": "1.3.17",
"version": "1.3.18",
"description": "Angular chart components based on D3JS (https://d3js.org).",
"keywords": [
"angular-charts",
Expand All @@ -24,8 +24,8 @@
"tslib": "2.6.2"
},
"peerDependencies": {
"@angular/common": "16.2.1",
"@angular/core": "16.2.1",
"@angular/common": "16.2.5",
"@angular/core": "16.2.5",
"@types/d3": "7.4.0",
"d3": "7.8.5"
}
Expand Down
38 changes: 13 additions & 25 deletions libs/client-gql/src/lib/services/gql/gql.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { getTestBedConfig } from '@app/client-testing-unit';
import { Apollo, ApolloBase, ApolloModule } from 'apollo-angular';
import { DocumentNode } from 'graphql';
import { cold, getTestScheduler } from 'jasmine-marbles';
import { Observable, of, tap } from 'rxjs';
import { lastValueFrom, Observable, of, tap } from 'rxjs';

import { matcompMutations } from '../../graphql/matcomp/matcomp.mutations';
import { matcompQueries } from '../../graphql/matcomp/matcomp.queries';
Expand Down Expand Up @@ -156,31 +156,19 @@ describe('AppClientGqlService', () => {
);
});

it('should call apollo use twise and call client.resetStore if client exists with the default client name', waitForAsync(() => {
void service
.resetApolloClient()
.pipe(
tap(() => {
const expectation = 2;
expect(useApolloSpy).toHaveBeenCalledTimes(expectation);
expect(useApolloSpy).toHaveBeenCalledWith(clientName);
}),
)
.subscribe();
}));
it('should call apollo use twise and call client.resetStore if client exists with the default client name', async () => {
await lastValueFrom(service.resetApolloClient());
const expectation = 2;
expect(useApolloSpy).toHaveBeenCalledTimes(expectation);
expect(useApolloSpy).toHaveBeenCalledWith(clientName);
});

it('should call apollo use twise and call client.resetStore if client exists when the client name is specified', waitForAsync(() => {
void service
.resetApolloClient(clientName)
.pipe(
tap(() => {
const expectation = 2;
expect(useApolloSpy).toHaveBeenCalledTimes(expectation);
expect(useApolloSpy).toHaveBeenCalledWith(clientName);
}),
)
.subscribe();
}));
it('should call apollo use twise and call client.resetStore if client exists when the client name is specified', async () => {
await lastValueFrom(service.resetApolloClient(clientName));
const expectation = 2;
expect(useApolloSpy).toHaveBeenCalledTimes(expectation);
expect(useApolloSpy).toHaveBeenCalledWith(clientName);
});

it('should reset apollo client if it was previously created', () => {
const apolloBase = new Object({
Expand Down
10 changes: 5 additions & 5 deletions libs/client-pwa-offline/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rfprodz/client-pwa-offline",
"version": "1.0.11",
"version": "1.0.12",
"description": "PWA offline feature for Angular clients.",
"keywords": [
"angular-module",
Expand All @@ -21,9 +21,9 @@
"tslib": "2.6.2"
},
"peerDependencies": {
"@angular/common": "16.2.1",
"@angular/core": "16.2.1",
"@angular/material": "16.2.1",
"@angular/router": "16.2.1"
"@angular/common": "16.2.5",
"@angular/core": "16.2.5",
"@angular/material": "16.2.4",
"@angular/router": "16.2.5"
}
}
4 changes: 2 additions & 2 deletions libs/client-util-eliza/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rfprodz/client-util-eliza",
"version": "1.3.12",
"version": "1.3.13",
"description": "Angular chatbot logic based on Eliza (https://en.wikipedia.org/wiki/ELIZA).",
"keywords": [
"angular-chatbot",
Expand All @@ -23,6 +23,6 @@
"tslib": "2.6.2"
},
"peerDependencies": {
"@angular/core": "16.2.1"
"@angular/core": "16.2.5"
}
}
Loading

0 comments on commit 70e01ab

Please sign in to comment.