script-loader
Advanced tools
Comparing version 0.7.1 to 0.7.2
@@ -6,13 +6,23 @@ /* | ||
module.exports = function(src) { | ||
function log(error) { | ||
(typeof console !== "undefined") | ||
&& (console.error || console.log)("[Script Loader]", error); | ||
} | ||
// Check for IE =< 8 | ||
function isIE() { | ||
return typeof attachEvent !== "undefined" && typeof addEventListener === "undefined"; | ||
} | ||
try { | ||
if (typeof eval !== "undefined") { | ||
if (typeof execScript !== "undefined" && isIE()) { | ||
execScript(src); | ||
} else if (typeof eval !== "undefined") { | ||
eval.call(null, src); | ||
} else if (typeof execScript !== "undefined") { | ||
execScript(src); | ||
} else { | ||
console.error("[Script Loader] EvalError: No eval function available"); | ||
log("EvalError: No eval function available"); | ||
} | ||
} catch (error) { | ||
console.error("[Script Loader] ", error.message); | ||
log(error); | ||
} | ||
} |
@@ -5,2 +5,12 @@ # Change Log | ||
<a name="0.7.2"></a> | ||
## [0.7.2](https://github.com/webpack-contrib/script-loader/compare/v0.7.1...v0.7.2) (2017-09-29) | ||
### Bug Fixes | ||
* IE =< 8 incompatibility regression ([#43](https://github.com/webpack-contrib/script-loader/issues/43)) ([dbb6d54](https://github.com/webpack-contrib/script-loader/commit/dbb6d54)) | ||
<a name="0.7.1"></a> | ||
@@ -7,0 +17,0 @@ ## 0.7.1 (2017-09-12) |
{ | ||
"name": "script-loader", | ||
"version": "0.7.1", | ||
"version": "0.7.2", | ||
"author": "Tobias Koppers @sokra", | ||
@@ -5,0 +5,0 @@ "description": "script loader module for webpack", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
6245
45
0