Skip to content

Commit b6d9f05

Browse files
committed
Fix deprecation warnings.
1 parent 41d226c commit b6d9f05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ module.exports = postcss.plugin('postcss-modules-local-by-default', function (op
200200
var pureMode = options && options.mode === "pure";
201201
var globalMode = options && options.mode === "global";
202202
return function(css) {
203-
css.eachAtRule(function(atrule) {
203+
css.walkAtRules(function(atrule) {
204204
if(/keyframes$/.test(atrule.name)) {
205205
var globalMatch = /^\s*:global\s*\((.+)\)\s*$/.exec(atrule.params);
206206
var localMatch = /^\s*:local\s*\((.+)\)\s*$/.exec(atrule.params);
@@ -225,7 +225,7 @@ module.exports = postcss.plugin('postcss-modules-local-by-default', function (op
225225
});
226226
}
227227
});
228-
css.eachRule(function(rule) {
228+
css.walkRules(function(rule) {
229229
if(rule.parent.type === "atrule" && /keyframes$/.test(rule.parent.name)) {
230230
// ignore keyframe rules
231231
return;

0 commit comments

Comments
 (0)