express-tsx
Advanced tools
Comparing version 4.2.8 to 4.2.9
@@ -71,2 +71,7 @@ "use strict"; | ||
this.watch = (file) => { | ||
let lastScriptVersion = this.getScriptVersion(file); | ||
let nowScriptVersion = this.updateScriptVersion(file); | ||
if (nowScriptVersion === lastScriptVersion) { | ||
return; | ||
} | ||
this.watcher.emit('update', file); | ||
@@ -73,0 +78,0 @@ }; |
{ | ||
"name": "express-tsx", | ||
"version": "4.2.8", | ||
"version": "4.2.9", | ||
"description": "express view engine to render tsx file", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -81,2 +81,7 @@ import ts = require('typescript') | ||
watch = (file)=>{ | ||
let lastScriptVersion = this.getScriptVersion(file) | ||
let nowScriptVersion = this.updateScriptVersion(file) | ||
if( nowScriptVersion === lastScriptVersion ){ | ||
return | ||
} | ||
this.watcher.emit('update',file) | ||
@@ -83,0 +88,0 @@ } |
Sorry, the diff of this file is not supported yet
53834
792