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

express-tsx

Package Overview
Dependencies
Maintainers
1
Versions
103
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-tsx - npm Package Compare versions

Comparing version 3.0.30 to 3.0.31

2

lib/ssrWrap/middleware.js

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

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