Skip to content

Commit 550120f

Browse files
committed
upgrade css-parser to latest
1 parent 1cbaec4 commit 550120f

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,6 @@
5656
"singleQuote": true
5757
},
5858
"dependencies": {
59-
"@projectwallace/css-parser": "^0.3.0"
59+
"@projectwallace/css-parser": "^0.6.3"
6060
}
6161
}

src/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { TreeNode } from './TreeNode.js'
2-
import { NODE_AT_RULE, NODE_PRELUDE_IMPORT_LAYER, NODE_PRELUDE_LAYER_NAME, parse, walk_enter_leave } from '@projectwallace/css-parser'
2+
import { NODE_AT_RULE, NODE_PRELUDE_IMPORT_LAYER, NODE_PRELUDE_LAYER_NAME, parse, traverse } from '@projectwallace/css-parser'
33

44
/** @param {string} name */
55
function get_layer_names(name) {
66
return name.split('.').map((s) => s.trim())
77
}
88

9-
/** @param {import('../../css-parser').CSSNode} ast */
9+
/** @param {import('@projectwallace/css-parser').CSSNode} ast */
1010
export function layer_tree_from_ast(ast) {
1111
/** @type {string[]} */
1212
let current_stack = []
@@ -19,7 +19,7 @@ export function layer_tree_from_ast(ast) {
1919
return `__anonymous-${anonymous_counter}__`
2020
}
2121

22-
walk_enter_leave(ast, {
22+
traverse(ast, {
2323
enter(node) {
2424
if (node.type !== NODE_AT_RULE) return
2525

0 commit comments

Comments
 (0)