Skip to content

Commit

Permalink
deps: use @royli/serve-static
Browse files Browse the repository at this point in the history
  • Loading branch information
geekdada committed Apr 28, 2020
1 parent 1174410 commit f825d35
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 14 deletions.
2 changes: 1 addition & 1 deletion packages/gateway/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"@nestjs/core": "^7.0.8",
"@nestjs/passport": "^7.0.0",
"@nestjs/platform-fastify": "^7.0.8",
"@nestjs/serve-static": "^2.0.0",
"@royli/serve-static": "^2.1.1",
"@surgio/gateway-frontend": "file:../gateway-frontend",
"cookie-signature": "^1.1.0",
"fastify": "^2.13.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/gateway/src/app.module.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { MiddlewareConsumer, Module, RequestMethod } from '@nestjs/common';
import { ConfigModule } from '@nestjs/config';
import { join } from 'path';
import { ServeStaticModule } from '@nestjs/serve-static';
import { ServeStaticModule } from '@royli/serve-static';

import { AppController } from './app.controller';
import { ApiModule } from './api/api.module';
Expand Down
5 changes: 0 additions & 5 deletions packages/gateway/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,6 @@
path-to-regexp "3.2.0"
tslib "1.10.0"

"@nestjs/serve-static@^1.0.2":
version "1.0.2"
resolved "https://registry.yarnpkg.com/@nestjs/serve-static/-/serve-static-1.0.2.tgz#8baa1a20fa39457186be4ec3e29b446d83d3fcb0"
integrity sha512-PRTrmytKXGSDYJn8i0I/XiSV01tygh4L0SR5bq1/zxIT5HHK/edmlULKfHeeA2pHQV7YLxMH33al/TPlcn4tXQ==

"@nuxtjs/[email protected]":
version "0.2.2"
resolved "https://registry.yarnpkg.com/@nuxtjs/opencollective/-/opencollective-0.2.2.tgz#26a761ebf588cc92a422d7cee996a66bd6e2761e"
Expand Down
14 changes: 7 additions & 7 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2512,13 +2512,6 @@
"@angular-devkit/schematics" "9.0.6"
fs-extra "8.1.0"

"@nestjs/serve-static@^2.0.0":
version "2.1.0"
resolved "https://registry.yarnpkg.com/@nestjs/serve-static/-/serve-static-2.1.0.tgz#fe2955d8d176674046d2eb16724803ca409384d3"
integrity sha512-syC7x3vacNYOAqpITqiPd7NS0gAc3IbzexyMOpUu00mVt/8NZc3zXNEV5r4DeatRKUwc11tt1TRlMEsmTLTQIA==
dependencies:
path-to-regexp "0.1.7"

"@nestjs/testing@^7.0.8":
version "7.0.8"
resolved "https://registry.yarnpkg.com/@nestjs/testing/-/testing-7.0.8.tgz#058cef6364be64d3d04fbe688b350ff24eedb6c8"
Expand Down Expand Up @@ -2641,6 +2634,13 @@
dependencies:
"@types/node" ">= 8"

"@royli/serve-static@^2.1.1":
version "2.1.1"
resolved "https://registry.yarnpkg.com/@royli/serve-static/-/serve-static-2.1.1.tgz#7bed4b71b4325246f7713e310ea861122bbd1564"
integrity sha512-sGc6QdHD+icE6SURcLL1brnrBihntYLPWovN8HpyNO2b5rsGTnXX1+EZROavgczuU+hEi5PAHhNfvyFC9J79pQ==
dependencies:
path-to-regexp "0.1.7"

"@samverschueren/stream-to-observable@^0.3.0":
version "0.3.0"
resolved "https://registry.yarnpkg.com/@samverschueren/stream-to-observable/-/stream-to-observable-0.3.0.tgz#ecdf48d532c58ea477acfcab80348424f8d0662f"
Expand Down

0 comments on commit f825d35

Please sign in to comment.