Skip to content

Commit

Permalink
upgrade dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
ender-null committed Apr 13, 2024
1 parent 4fc8305 commit 6d152dc
Show file tree
Hide file tree
Showing 6 changed files with 2,274 additions and 2,271 deletions.
6 changes: 6 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,11 @@ module.exports = {
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
"prettier/prettier": [
"error",
{
"endOfLine": "auto"
}
]
},
};
70 changes: 36 additions & 34 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "canopus-zine",
"version": "0.4.4",
"version": "0.4.5",
"description": "Cinema microservice no one asked for",
"author": {
"name": "ender-null",
Expand Down Expand Up @@ -32,41 +32,43 @@
"test:e2e": "jest --config ./test/jest-e2e.json"
},
"dependencies": {
"@nestjs/axios": "^0.0.3",
"@nestjs/common": "^8.0.0",
"@nestjs/core": "^8.0.0",
"@nestjs/microservices": "^8.2.0",
"@nestjs/platform-express": "^8.0.0",
"cache-manager": "^3.6.0",
"cheerio": "^1.0.0-rc.10",
"reflect-metadata": "^0.1.13",
"rimraf": "^3.0.2",
"rxjs": "^7.2.0"
"@nestjs/axios": "^3.0.2",
"@nestjs/cache-manager": "^2.2.2",
"@nestjs/common": "^10.3.7",
"@nestjs/core": "^10.3.7",
"@nestjs/microservices": "^10.3.7",
"@nestjs/platform-express": "^10.3.7",
"axios": "^1.6.8",
"cache-manager": "^5.5.1",
"cheerio": "^1.0.0-rc.12",
"reflect-metadata": "^0.2.2",
"rimraf": "^5.0.5",
"rxjs": "^7.8.1"
},
"devDependencies": {
"@nestjs/cli": "^8.0.0",
"@nestjs/schematics": "^8.0.0",
"@nestjs/testing": "^8.0.0",
"@types/cache-manager": "^3.4.2",
"@types/cheerio": "^0.22.30",
"@types/express": "^4.17.13",
"@types/jest": "^27.0.1",
"@types/node": "^16.0.0",
"@types/supertest": "^2.0.11",
"@typescript-eslint/eslint-plugin": "^5.0.0",
"@typescript-eslint/parser": "^5.0.0",
"eslint": "^8.0.1",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^4.0.0",
"jest": "^27.2.5",
"prettier": "^2.3.2",
"source-map-support": "^0.5.20",
"supertest": "^6.1.3",
"ts-jest": "^27.0.3",
"ts-loader": "^9.2.3",
"ts-node": "^10.0.0",
"tsconfig-paths": "^3.10.1",
"typescript": "^4.3.5"
"@nestjs/cli": "^10.3.2",
"@nestjs/schematics": "^10.1.1",
"@nestjs/testing": "^10.3.7",
"@types/cache-manager": "^4.0.6",
"@types/cheerio": "^0.22.35",
"@types/express": "^4.17.21",
"@types/jest": "^29.5.12",
"@types/node": "^20.12.7",
"@types/supertest": "^6.0.2",
"@typescript-eslint/eslint-plugin": "^7.6.0",
"@typescript-eslint/parser": "^7.6.0",
"eslint": "^9.0.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"jest": "^29.7.0",
"prettier": "^3.2.5",
"source-map-support": "^0.5.21",
"supertest": "^6.3.4",
"ts-jest": "^29.1.2",
"ts-loader": "^9.5.1",
"ts-node": "^10.9.2",
"tsconfig-paths": "^4.2.0",
"typescript": "^5.4.5"
},
"jest": {
"moduleFileExtensions": [
Expand Down
3 changes: 2 additions & 1 deletion src/app.module.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { HttpModule } from '@nestjs/axios';
import { CacheModule, Module } from '@nestjs/common';
import { Module } from '@nestjs/common';
import { CinemaController } from './controllers/cinema.controller';
import { CinemaService } from './services/cinema.service';
import { TheMovieDBService } from './services/themoviedb.service';
import { cacheMaxSize, cacheTTL } from './utils';
import { CacheModule } from '@nestjs/cache-manager';

@Module({
imports: [
Expand Down
2 changes: 1 addition & 1 deletion src/services/cinema.service.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { HttpService } from '@nestjs/axios';
import {
CACHE_MANAGER,
HttpStatus,
Inject,
Injectable,
Expand Down Expand Up @@ -33,6 +32,7 @@ import {
TheMovieDBMovie,
TheMovieDBSearchResult,
} from 'src/models/themoviedb.interface';
import { CACHE_MANAGER } from '@nestjs/cache-manager';

@Injectable()
export class CinemaService {
Expand Down
3 changes: 2 additions & 1 deletion src/services/themoviedb.service.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CACHE_MANAGER, Inject, Injectable } from '@nestjs/common';
import { Inject, Injectable } from '@nestjs/common';
import { HttpService } from '@nestjs/axios';
import { lastValueFrom } from 'rxjs';
import { Cache } from 'cache-manager';
Expand All @@ -9,6 +9,7 @@ import {
TheMovieDBSearch,
TheMovieDBVideos,
} from 'src/models/themoviedb.interface';
import { CACHE_MANAGER } from '@nestjs/cache-manager';

const API_URL = 'https://api.themoviedb.org/3';

Expand Down
Loading

0 comments on commit 6d152dc

Please sign in to comment.