@gravity-ui/expresskit
Advanced tools
Comparing version 2.0.1 to 2.1.0
@@ -14,2 +14,3 @@ "use strict"; | ||
const router_1 = require("./router"); | ||
const lang_middleware_1 = require("./lang/lang-middleware"); | ||
const DEFAULT_PORT = 3030; | ||
@@ -30,2 +31,3 @@ class ExpressKit { | ||
(0, base_middleware_1.setupBaseMiddleware)(this.nodekit.ctx, this.express); | ||
(0, lang_middleware_1.setupLangMiddleware)(this.nodekit.ctx, this.express); | ||
(0, parsers_1.setupParsers)(this.nodekit.ctx, this.express); | ||
@@ -32,0 +34,0 @@ (0, router_1.setupRoutes)(this.nodekit.ctx, this.express, routes); |
@@ -51,2 +51,7 @@ import type { AppContext } from '@gravity-ui/nodekit'; | ||
expressCspReportUri?: CSPMiddlewareParams['reportUri']; | ||
appAllowedLangs?: string[]; | ||
appDefaultLang?: string; | ||
appLangQueryParamName?: string; | ||
appLangByTld?: Record<string, string | undefined>; | ||
appGetLangByHostname?: (hostname: string) => string | undefined; | ||
} | ||
@@ -53,0 +58,0 @@ } |
{ | ||
"name": "@gravity-ui/expresskit", | ||
"version": "2.0.1", | ||
"version": "2.1.0", | ||
"description": "Express.js wrapper for NodeKit-based apps", | ||
@@ -31,2 +31,3 @@ "main": "dist/index.js", | ||
"@gravity-ui/tsconfig": "^1.0.0", | ||
"@types/accept-language-parser": "^1.5.6", | ||
"@types/cookie-parser": "^1.4.3", | ||
@@ -49,2 +50,3 @@ "@types/express": "^4.17.21", | ||
"dependencies": { | ||
"accept-language-parser": "^1.5.0", | ||
"body-parser": "^1.20.1", | ||
@@ -58,3 +60,3 @@ "cookie-parser": "^1.4.7", | ||
"peerDependencies": { | ||
"@gravity-ui/nodekit": "^1.5.0" | ||
"@gravity-ui/nodekit": "^1.6.0" | ||
}, | ||
@@ -61,0 +63,0 @@ "nano-staged": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
45160
47
949
8
21
+ Addedaccept-language-parser@1.5.0(transitive)