@stylable/core
Advanced tools
Comparing version 4.2.0 to 4.2.1
import type * as postcss from 'postcss'; | ||
import { UrlNode } from 'css-selector-tokenizer'; | ||
export interface UrlNode { | ||
type: 'url'; | ||
url: string; | ||
stringType?: string; | ||
name?: string; | ||
before?: string; | ||
after?: string; | ||
innerSpacingBefore?: string; | ||
innerSpacingAfter?: string; | ||
} | ||
export declare type OnUrlCallback = (node: UrlNode) => void; | ||
@@ -4,0 +13,0 @@ export declare function collectAssets(ast: postcss.Root): string[]; |
{ | ||
"name": "@stylable/core", | ||
"version": "4.2.0", | ||
"version": "4.2.1", | ||
"description": "CSS for Components", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
import path from 'path'; | ||
import type * as postcss from 'postcss'; | ||
import cssSelectorTokenizer, { AnyValueNode, UrlNode } from 'css-selector-tokenizer'; | ||
import cssSelectorTokenizer from 'css-selector-tokenizer'; | ||
const { parseValues, stringifyValues } = cssSelectorTokenizer; | ||
export interface UrlNode { | ||
type: 'url'; | ||
url: string; | ||
stringType?: string; | ||
name?: string; | ||
before?: string; | ||
after?: string; | ||
innerSpacingBefore?: string; | ||
innerSpacingAfter?: string; | ||
} | ||
export type OnUrlCallback = (node: UrlNode) => void; | ||
@@ -66,3 +77,3 @@ | ||
function findUrls(node: AnyValueNode, onUrl: OnUrlCallback) { | ||
function findUrls(node: cssSelectorTokenizer.AnyValueNode, onUrl: OnUrlCallback) { | ||
switch (node.type) { | ||
@@ -69,0 +80,0 @@ case 'value': |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
692000
11920