Skip to content

Commit ab4068d

Browse files
committed
working, but still getting some deprecations
1 parent 2dae82f commit ab4068d

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

lib/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ var createImportedName = options && options.createImportedName || function (impo
2828
exports['default'] = function (css) {
2929
/* Find any local let rules and store them*/
3030
var translations = {};
31-
css.eachAtRule(/^define$/, function (atRule) {
31+
css.walkAtRules(/^define$/, function (atRule) {
3232
var matches = undefined;
3333
while (matches = matchLet.exec(atRule.params)) {
3434
var _matches = matches;
@@ -39,7 +39,7 @@ exports['default'] = function (css) {
3939
var value = _matches2[2];
4040

4141
translations[key] = value;
42-
atRule.removeSelf();
42+
atRule.remove();
4343
}
4444
});
4545

@@ -56,7 +56,7 @@ exports['default'] = function (css) {
5656

5757
/* Find imports and insert ICSS tmp vars */
5858
var importAliases = [];
59-
css.eachAtRule(/^import(-define)?$/, function (atRule) {
59+
css.walkAtRules(/^import(-define)?$/, function (atRule) {
6060
var matches = matchImports.exec(atRule.params);
6161
if (matches) {
6262
var _matches3 = _slicedToArray(matches, 3);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"standard": "^5.3.1"
3434
},
3535
"dependencies": {
36-
"icss-replace-symbols": "^1.0.0",
36+
"icss-replace-symbols": "^1.0.1",
3737
"postcss": "^5.0.5"
3838
}
3939
}

src/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ let createImportedName = options && options.createImportedName || ((importName/*
1111
export default css => {
1212
/* Find any local let rules and store them*/
1313
let translations = {}
14-
css.eachAtRule(/^define$/, atRule => {
14+
css.walkAtRules(/^define$/, atRule => {
1515
let matches
1616
while (matches = matchLet.exec(atRule.params)) {
1717
let [/*match*/, key, value] = matches
1818
translations[key] = value
19-
atRule.removeSelf()
19+
atRule.remove()
2020
}
2121
})
2222

@@ -31,7 +31,7 @@ export default css => {
3131

3232
/* Find imports and insert ICSS tmp vars */
3333
let importAliases = []
34-
css.eachAtRule(/^import(-define)?$/, atRule => {
34+
css.walkAtRules(/^import(-define)?$/, atRule => {
3535
let matches = matchImports.exec(atRule.params)
3636
if (matches) {
3737
let [/*match*/, aliases, path] = matches

0 commit comments

Comments
 (0)