Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@gravity-ui/expresskit

Package Overview
Dependencies
Maintainers
3
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gravity-ui/expresskit - npm Package Compare versions

Comparing version 2.0.1 to 2.1.0

dist/lang/lang-middleware.d.ts

2

dist/expresskit.js

@@ -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 @@ }

6

package.json
{
"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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc