redis-smq-monitor-client
Advanced tools
Comparing version 7.3.0 to 7.3.1
# CHANGELOG | ||
## 7.3.1 (2023-05-04) | ||
* fix: make sure basePath does not end with a '/' character (a83f9e4) | ||
* fix: ignorePaths should not include basePath (f1d00bd) | ||
* refactor(QueueConsumers): clean up and improve handling logic (77c2f1c) | ||
## 7.3.0 (2023-03-26) | ||
@@ -4,0 +10,0 @@ |
@@ -40,9 +40,10 @@ "use strict"; | ||
const Middleware = (ignorePaths = [], basePath = '/') => (ctx, next) => __awaiter(void 0, void 0, void 0, function* () { | ||
const normalizedBasePath = basePath === '/' ? basePath : path_1.posix.resolve('/', basePath); | ||
if (!ignorePaths.length || | ||
ignorePaths.find((i) => { | ||
const match = path_1.posix.join('/', basePath, i).replace(/\/+$/, ''); | ||
return ctx.path.indexOf(match) === 0; | ||
const item = path_1.posix.resolve('/', i); | ||
return ctx.path.indexOf(item) === 0; | ||
}) === undefined) { | ||
yield ('/' === ctx.path || ctx.path.indexOf('/assets/') !== 0 | ||
? serveIndex(ctx, basePath) | ||
? serveIndex(ctx, normalizedBasePath) | ||
: (0, koa_send_1.default)(ctx, ctx.path, { root: assetsDir })); | ||
@@ -49,0 +50,0 @@ } |
{ | ||
"name": "redis-smq-monitor-client", | ||
"description": "A Web UI for the RedisSMQ Monitor application", | ||
"version": "7.3.0", | ||
"version": "7.3.1", | ||
"author": "Weyoss <weyoss@protonmail.com>", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
774758
773
0