Comparing version 3.0.2 to 3.0.3
@@ -27,3 +27,3 @@ 'use strict'; | ||
function Host(currentDirectory, opts) { | ||
this.isCaseSensitive = !!opts.forceConsistentCasingInFileNames || isCaseSensitiveFileSystem; | ||
this.currentDirectory = this.getCanonicalFileName(path.resolve(currentDirectory)); | ||
@@ -141,2 +141,3 @@ this.outputDirectory = this.getCanonicalFileName(path.resolve(opts.outDir)); | ||
// Note that this is a static method; it's called from the tests: | ||
Host._getCanonicalFileName = function (filename) { | ||
@@ -146,8 +147,6 @@ return ts.normalizeSlashes(isCaseSensitiveFileSystem ? filename : filename.toLowerCase()); | ||
Host.prototype.getCanonicalFileName = function (filename) { | ||
return ts.normalizeSlashes(this.isCaseSensitive ? filename : filename.toLowerCase()); | ||
}; | ||
Host.prototype.getCanonicalFileName = Host._getCanonicalFileName; | ||
Host.prototype.useCaseSensitiveFileNames = function () { | ||
return this.isCaseSensitive; | ||
return isCaseSensitiveFileSystem; | ||
}; | ||
@@ -154,0 +153,0 @@ |
{ | ||
"name": "tsify", | ||
"version": "3.0.2", | ||
"version": "3.0.3", | ||
"description": "Browserify plugin for compiling Typescript", | ||
@@ -43,3 +43,3 @@ "main": "index.js", | ||
"event-stream": "^3.3.1", | ||
"fs-extra": "^4.0.1", | ||
"fs-extra": "^0.30.0", | ||
"node-foo": "^0.2.3", | ||
@@ -46,0 +46,0 @@ "source-map": "^0.5.3", |
@@ -131,2 +131,3 @@ # tsify | ||
* 3.0.3 - Reverted 3.0.2. | ||
* 3.0.2 - Added support for the `forceConsistentCasingInFilenames` compiler option. | ||
@@ -133,0 +134,0 @@ * 3.0.1 - Fixed an error with file system case sensitivity detection. |
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
227
41415
615