Skip to content

Commit

Permalink
Merge pull request #174 from ryani33/fix-deprecated-warning
Browse files Browse the repository at this point in the history
fix deprecated warning
  • Loading branch information
bebraw committed Feb 24, 2017
2 parents 8ab1c5f + da2bc5a commit 13aa381
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ var loaderUtils = require("loader-utils"),
module.exports = function() {};
module.exports.pitch = function(remainingRequest) {
if(this.cacheable) this.cacheable();
var query = loaderUtils.parseQuery(this.query);
var query = loaderUtils.getOptions(this) || {};
return [
"// style-loader: Adds some css to the DOM by adding a <style> tag",
"",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
},
"license": "MIT",
"dependencies": {
"loader-utils": "^0.2.7"
"loader-utils": "^1.0.2"
}
}
2 changes: 1 addition & 1 deletion useable.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ var loaderUtils = require("loader-utils"),
module.exports = function() {};
module.exports.pitch = function(remainingRequest) {
if(this.cacheable) this.cacheable();
var query = loaderUtils.parseQuery(this.query);
var query = loaderUtils.getOptions(this) || {};
return [
"var refs = 0;",
"var dispose;",
Expand Down

0 comments on commit 13aa381

Please sign in to comment.