Skip to content
This repository has been archived by the owner on Nov 6, 2024. It is now read-only.

Commit

Permalink
Merge pull request #3 from alampros/fix-loaderutils-deprecation-warning
Browse files Browse the repository at this point in the history
Use getOptions to parse options
  • Loading branch information
gisikw authored Mar 10, 2017
2 parents 1ca6846 + 8b3d708 commit db0c5fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ var processors = require('xml2js/lib/processors');

module.exports = function(text) {
this.cacheable && this.cacheable();
var options = loaderUtils.parseQuery(this.query);
var options = loaderUtils.getOptions(this);

Object.keys(options).forEach(function(key) {
if (key.indexOf('Processors') > -1) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "index.js",
"dependencies": {
"xml2js": "^0.4.16",
"loader-utils": "0.2.x"
"loader-utils": "^1.0.0"
},
"devDependencies": {},
"repository": {
Expand Down

0 comments on commit db0c5fc

Please sign in to comment.