loader-runner
Advanced tools
Comparing version 4.0.0 to 4.1.0
@@ -18,3 +18,3 @@ /* | ||
var PATH_QUERY_FRAGMENT_REGEXP = /^([^?#]*)(\?[^#]*)?(#.*)?$/; | ||
const PATH_QUERY_FRAGMENT_REGEXP = /^((?:\0.|[^?#\0])*)(\?(?:\0.|[^#\0])*)?(#.*)?$/; | ||
@@ -28,4 +28,4 @@ /** | ||
return { | ||
path: match[1], | ||
query: match[2] || "", | ||
path: match[1].replace(/\0(.)/g, "$1"), | ||
query: match[2] ? match[2].replace(/\0(.)/g, "$1") : "", | ||
fragment: match[3] || "" | ||
@@ -65,3 +65,3 @@ }; | ||
get: function() { | ||
return obj.path + obj.query; | ||
return obj.path.replace(/#/g, "\0#") + obj.query.replace(/#/g, "\0#") + obj.fragment; | ||
}, | ||
@@ -332,3 +332,3 @@ set: function(value) { | ||
return undefined; | ||
return loaderContext.resourcePath + loaderContext.resourceQuery + loaderContext.resourceFragment; | ||
return loaderContext.resourcePath.replace(/#/g, "\0#") + loaderContext.resourceQuery.replace(/#/g, "\0#") + loaderContext.resourceFragment; | ||
}, | ||
@@ -335,0 +335,0 @@ set: function(value) { |
{ | ||
"name": "loader-runner", | ||
"version": "4.0.0", | ||
"version": "4.1.0", | ||
"description": "Runs (webpack) loaders", | ||
@@ -5,0 +5,0 @@ "main": "lib/LoaderRunner.js", |
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
17729