ui5-tooling-transpile
Advanced tools
Comparing version 3.2.1 to 3.2.2
@@ -6,2 +6,13 @@ # Change Log | ||
## [3.2.2](https://github.com/ui5-community/ui5-ecosystem-showcase/compare/ui5-tooling-transpile@3.2.1...ui5-tooling-transpile@3.2.2) (2023-09-07) | ||
### Bug Fixes | ||
* consistent request path handling of all middlewares ([#833](https://github.com/ui5-community/ui5-ecosystem-showcase/issues/833)) ([11ad435](https://github.com/ui5-community/ui5-ecosystem-showcase/commit/11ad4356ddb6f8503ebf46039ad898b1c4aec7c9)), closes [#817](https://github.com/ui5-community/ui5-ecosystem-showcase/issues/817) | ||
## [3.2.1](https://github.com/ui5-community/ui5-ecosystem-showcase/compare/ui5-tooling-transpile@3.2.0...ui5-tooling-transpile@3.2.1) (2023-09-06) | ||
@@ -8,0 +19,0 @@ |
/* eslint-disable jsdoc/check-param-names */ | ||
const path = require("path"); | ||
const parseurl = require("parseurl"); | ||
@@ -8,2 +7,4 @@ /** | ||
* | ||
* Hint: mime type for TypeScript is "application/x-typescript" | ||
* | ||
* @param {object} parameters Parameters | ||
@@ -119,3 +120,3 @@ * @param {module:@ui5/logger/Logger} parameters.log Logger instance | ||
return async (req, res, next) => { | ||
const pathname = parseurl(req)?.pathname; | ||
const pathname = req.url?.match("^[^?]*")[0]; | ||
if (pathname.endsWith(".js") && shouldHandlePath(pathname, config.excludes, config.includes)) { | ||
@@ -122,0 +123,0 @@ const pathWithFilePattern = pathname.replace(".js", config.filePattern); |
{ | ||
"name": "ui5-tooling-transpile", | ||
"version": "3.2.1", | ||
"version": "3.2.2", | ||
"description": "UI5 tooling extensions to transpile code", | ||
@@ -20,4 +20,3 @@ "author": "Jorge Martins, Peter Muessig", | ||
"browserslist": "^4.21.10", | ||
"comment-json": "^4.2.3", | ||
"parseurl": "^1.3.3" | ||
"comment-json": "^4.2.3" | ||
}, | ||
@@ -47,3 +46,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "71fa6b602a0b18969d2ebe8b90d3f47f448ad9d4" | ||
"gitHead": "db7ffd1683d4393d93d07296e246a00b5102aef0" | ||
} |
93223
9
1002
- Removedparseurl@^1.3.3
- Removedparseurl@1.3.3(transitive)