express-tsx
Advanced tools
Comparing version 3.0.30 to 3.0.31
@@ -39,3 +39,3 @@ "use strict"; | ||
res.setHeader('cache-control', 'max-age=' + exports.MaxAge); | ||
let module = url_1.parse(req.url).pathname.slice(1); | ||
let module = decodeURI(url_1.parse(req.url).pathname).slice(1); | ||
module = module.replace(/\.(js|tsx|ts|jsx)$/, ''); | ||
@@ -42,0 +42,0 @@ let moduleTry; |
{ | ||
"name": "express-tsx", | ||
"version": "3.0.30", | ||
"version": "3.0.31", | ||
"description": "express view tsx render", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -48,3 +48,3 @@ import { Router,Response,Request } from "express"; | ||
res.setHeader('cache-control','max-age='+MaxAge) | ||
let module = parse(req.url).pathname.slice(1) | ||
let module = decodeURI(parse(req.url).pathname).slice(1) | ||
module = module.replace(/\.(js|tsx|ts|jsx)$/,'') | ||
@@ -51,0 +51,0 @@ let moduleTry:string |
Sorry, the diff of this file is not supported yet
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
39132