Comparing version 4.0.5 to 4.0.6
@@ -362,3 +362,7 @@ 'use strict'; | ||
filename = normalize(filename); | ||
return this._snapshots[filename].getVersion(); | ||
const result = this._snapshots[filename]; | ||
if (result) { | ||
return result.getVersion(); | ||
} | ||
return 'UNKNWON_FILE_' + Math.random().toString(16).slice(2); | ||
} | ||
@@ -365,0 +369,0 @@ getScriptSnapshot(filename, resolve = true) { |
@@ -362,3 +362,7 @@ 'use strict'; | ||
filename = normalize(filename); | ||
return this._snapshots[filename].getVersion(); | ||
const result = this._snapshots[filename]; | ||
if (result) { | ||
return result.getVersion(); | ||
} | ||
return 'UNKNWON_FILE_' + Math.random().toString(16).slice(2); | ||
} | ||
@@ -365,0 +369,0 @@ getScriptSnapshot(filename, resolve = true) { |
@@ -362,3 +362,7 @@ 'use strict'; | ||
filename = normalize(filename); | ||
return this._snapshots[filename].getVersion(); | ||
const result = this._snapshots[filename]; | ||
if (result) { | ||
return result.getVersion(); | ||
} | ||
return 'UNKNWON_FILE_' + Math.random().toString(16).slice(2); | ||
} | ||
@@ -365,0 +369,0 @@ getScriptSnapshot(filename, resolve = true) { |
{ | ||
"name": "gulp-tsb", | ||
"version": "4.0.5", | ||
"version": "4.0.6", | ||
"author": "Johannes Rieken <johannes.rieken@gmail.com>", | ||
@@ -5,0 +5,0 @@ "description": "A gulp plugin for very fast TypeScript compilation.", |
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
103856
2478