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

express-tsx-compiler

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-tsx-compiler - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

10

dist/Compile.js

@@ -17,3 +17,4 @@ "use strict";

constructor(compilerOptions = {}, development = !(/production/i.test(process.env.NODE_ENV))) {
this.compilerOptions = {};
this.__compilerOptions = {};
this.compilerOptionsHash = '';
this.project = typescript_1.sys.getCurrentDirectory();

@@ -34,3 +35,2 @@ this.hash = {};

};
this.compilerOptionsHash = '';
this.updateScriptVersion = (file) => {

@@ -68,3 +68,2 @@ let code = typescript_1.sys.readFile(file);

this.compilerOptions = Object.assign({}, this.compilerOptions, Compile.defaultCompilerOptions, compilerOptions);
this.compilerOptionsHash = typescript_1.sys.createHash(JSON.stringify(this.compilerOptions));
};

@@ -177,2 +176,7 @@ this.development = false;

}
get compilerOptions() { return this.__compilerOptions; }
set compilerOptions(val) {
Object.assign(this.__compilerOptions, val);
this.compilerOptionsHash = typescript_1.sys.createHash(JSON.stringify(this.compilerOptions));
}
}

@@ -179,0 +183,0 @@ Compile.defaultCompilerOptions = {

{
"name": "express-tsx-compiler",
"version": "1.0.0",
"version": "1.0.1",
"main": "dist/index.js",

@@ -5,0 +5,0 @@ "typings": "src/index.ts",

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

server:ts.LanguageService
compilerOptions:ts.CompilerOptions = {}
private __compilerOptions:ts.CompilerOptions = {}
get compilerOptions(){ return this.__compilerOptions }
set compilerOptions(val){
Object.assign(this.__compilerOptions,val)
this.compilerOptionsHash = sys.createHash(JSON.stringify(this.compilerOptions))
}
compilerOptionsHash:string = ''
static defaultCompilerOptions:ts.CompilerOptions = {

@@ -36,3 +42,2 @@ target: ts.ScriptTarget.ES5,

}
compilerOptionsHash:string = ''
updateScriptVersion = (file)=>{

@@ -65,3 +70,2 @@ let code = sys.readFile(file)

this.compilerOptions = { ...this.compilerOptions, ...Compile.defaultCompilerOptions, ...compilerOptions, }
this.compilerOptionsHash = sys.createHash(JSON.stringify(this.compilerOptions))
}

@@ -68,0 +72,0 @@ constructor(compilerOptions:ts.CompilerOptions={},development=!(/production/i.test(process.env.NODE_ENV))){

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