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 4.1.5 to 4.1.7

package-lock.json

2

package.json
{
"name": "express-tsx",
"version": "4.1.5",
"version": "4.1.7",
"description": "express view engine",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -9,3 +9,2 @@ import ts = require('typescript')

}
import glob = require('glob')
export class Compile {

@@ -149,2 +148,3 @@ server:ts.LanguageService

let path:string = pathname.slice(regx.isLinux.test(pathname)?0:1)
path = sys.resolvePath(path)
let isRequestSourceMap = regx.sourceMap.test(path)

@@ -151,0 +151,0 @@ if( isRequestSourceMap ){ path = path.replace(regx.sourceMap,'') }

@@ -13,3 +13,3 @@ import requirejs = require('requirejs')

let preload_imports:string[] = [ browserInitPath, requirejsConfigPath, ...imports ]
preload_imports = preload_imports.map(m=>data.express_tsx_basePath+m+`?v=${compiler.getScriptVersion(m)}`)
preload_imports = preload_imports.map(m=>data.express_tsx_basePath+m+`?v=${compiler.getScriptVersion(m)}`).map((m)=>m.replace(/\\/g,'/'))
let [ _browserInitPath, _requirejsConfigPath, ...imports_arr ] = preload_imports

@@ -16,0 +16,0 @@ preload(data,preload_imports)

@@ -36,6 +36,6 @@ import { Router,Response } from "express";

}
import { sys } from "typescript";
import { join } from "path";
middleware.use((req,res,next)=>{
if(res.locals.express_tsx_basePath){ return next() }
res.locals.express_tsx_basePath = sys.resolvePath(req.baseUrl+express_tsx_middleware_path)
res.locals.express_tsx_basePath = join(req.baseUrl,express_tsx_middleware_path)
res.locals.express_tsx_compiler = compiler

@@ -42,0 +42,0 @@ res.locals.express_tsx_html = html

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