@gravity-ui/expresskit
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -7,2 +7,3 @@ "use strict"; | ||
exports.ExpressKit = void 0; | ||
const cluster_1 = __importDefault(require("cluster")); | ||
const fs_1 = __importDefault(require("fs")); | ||
@@ -34,3 +35,6 @@ const express_1 = __importDefault(require("express")); | ||
this.nodekit.ctx.log(`Listening on ${listenTargetType} ${listenTarget}`); | ||
if (appSocket && listenTargetType === 'socket' && fs_1.default.existsSync(appSocket)) { | ||
if (appSocket && | ||
listenTargetType === 'socket' && | ||
cluster_1.default.isPrimary && | ||
fs_1.default.existsSync(appSocket)) { | ||
fs_1.default.unlinkSync(appSocket); | ||
@@ -37,0 +41,0 @@ } |
{ | ||
"name": "@gravity-ui/expresskit", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Express.js wrapper for NodeKit-based apps", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
24016
473
1