{"action":"created","issue":{"url":"https://api.github.com/repos/anandthakker/doiuse/issues/22","labels_url":"https://api.github.com/repos/anandthakker/doiuse/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/anandthakker/doiuse/issues/22/comments","events_url":"https://api.github.com/repos/anandthakker/doiuse/issues/22/events","html_url":"https://github.com/anandthakker/doiuse/issues/22","id":110203828,"number":22,"title":"Make doiuse to work with gulp","user":{"login":"kl3ryk","id":335431,"avatar_url":"https://avatars.githubusercontent.com/u/335431?v=3","gravatar_id":"","url":"https://api.github.com/users/kl3ryk","html_url":"https://github.com/kl3ryk","followers_url":"https://api.github.com/users/kl3ryk/followers","following_url":"https://api.github.com/users/kl3ryk/following{/other_user}","gists_url":"https://api.github.com/users/kl3ryk/gists{/gist_id}","starred_url":"https://api.github.com/users/kl3ryk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kl3ryk/subscriptions","organizations_url":"https://api.github.com/users/kl3ryk/orgs","repos_url":"https://api.github.com/users/kl3ryk/repos","events_url":"https://api.github.com/users/kl3ryk/events{/privacy}","received_events_url":"https://api.github.com/users/kl3ryk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-07T11:24:29Z","updated_at":"2015-10-07T12:02:35Z","closed_at":null,"body":"I have defined the following task:\r\n```js\r\nvar gulp = require(\"gulp\");\r\nvar gulpPostCss = require('gulp-postcss');\r\nvar doiuse = require('doiuse');\r\n\r\ngulp.task(\"doiuse\", function () {\r\n    gulp.src(\"./css/**/*.css\")\r\n        .pipe(gulpPostCss([\r\n            doiuse({\r\n                browsers: [\r\n                    'ie >= 8',\r\n                    '> 1%'\r\n                ],\r\n                onFeatureUsage: function (usageInfo) {\r\n                    console.log(usageInfo.message);\r\n                }\r\n            })\r\n        ]));\r\n});\r\n```\r\nAnd when i run it i have the following result:\r\n```\r\nevents.js:141\r\nthrow er; // Unhandled 'error' event\r\n^\r\nTypeError: css.prevMap.consumer is not a function\r\nat __MY_DIR__\\node_modules\\doiuse\\lib\\doiuse.js:38:30\r\nat Detector.decl (__MY_DIR__\\node_modules\\doiuse\\lib\\detect-feature-use.js:61:13)\r\nat __MY_DIR__\\node_modules\\doiuse\\lib\\detect-feature-use.js:103:18\r\nat Rule.each (__MY_DIR__\\node_modules\\gulp-postcss\\node_modules\\postcss\\lib\\container.js:59:22)\r\nat Detector.process (__MY_DIR__\\node_modules\\doiuse\\lib\\detect-feature-use.js:97:12)\r\nat Detector.rule (__MY_DIR__\\node_modules\\doiuse\\lib\\detect-feature-use.js:76:12)\r\nat __MY_DIR__\\node_modules\\doiuse\\lib\\detect-feature-use.js:100:18\r\nat Root.each (__MY_DIR__\\node_modules\\gulp-postcss\\node_modules\\postcss\\lib\\container.js:59:22)\r\nat Detector.process (__MY_DIR__\\node_modules\\doiuse\\lib\\detect-feature-use.js:97:12)\r\nat postcss (__MY_DIR__\\node_modules\\doiuse\\lib\\doiuse.js:32:23)\r\n\r\nProcess finished with exit code 1\r\n```\r\n\r\nSoftware versions:\r\n```\r\nnode -v\r\nv4.1.2\r\n\r\nnpm -v\r\n3.3.5\r\n```"},"comment":{"url":"https://api.github.com/repos/anandthakker/doiuse/issues/comments/146175678","html_url":"https://github.com/anandthakker/doiuse/issues/22#issuecomment-146175678","issue_url":"https://api.github.com/repos/anandthakker/doiuse/issues/22","id":146175678,"user":{"login":"anandthakker","id":4974151,"avatar_url":"https://avatars.githubusercontent.com/u/4974151?v=3","gravatar_id":"","url":"https://api.github.com/users/anandthakker","html_url":"https://github.com/anandthakker","followers_url":"https://api.github.com/users/anandthakker/followers","following_url":"https://api.github.com/users/anandthakker/following{/other_user}","gists_url":"https://api.github.com/users/anandthakker/gists{/gist_id}","starred_url":"https://api.github.com/users/anandthakker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anandthakker/subscriptions","organizations_url":"https://api.github.com/users/anandthakker/orgs","repos_url":"https://api.github.com/users/anandthakker/repos","events_url":"https://api.github.com/users/anandthakker/events{/privacy}","received_events_url":"https://api.github.com/users/anandthakker/received_events","type":"User","site_admin":false},"created_at":"2015-10-07T12:02:35Z","updated_at":"2015-10-07T12:02:35Z","body":"Thanks for the report @kl3ryk - Just updated the postcss api - can you check if [1.0.4](https://github.com/anandthakker/doiuse/commit/75c2d5f8e663ba68f2c1ceffdadc67a493c7050b) fixes this for you?"}}