inline-style-parser 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +34 -0
- package/package.json +5 -4
package/index.d.ts
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
interface Position {
|
|
2
|
+
start: {
|
|
3
|
+
line: number;
|
|
4
|
+
column: number;
|
|
5
|
+
};
|
|
6
|
+
end: {
|
|
7
|
+
line: number;
|
|
8
|
+
column: number;
|
|
9
|
+
};
|
|
10
|
+
source?: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
interface Declaration {
|
|
14
|
+
type: 'declaration';
|
|
15
|
+
property: string;
|
|
16
|
+
value: string;
|
|
17
|
+
position: Position;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
interface Comment {
|
|
21
|
+
type: 'comment';
|
|
22
|
+
comment: string;
|
|
23
|
+
position: Position;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
interface Options {
|
|
27
|
+
source?: string;
|
|
28
|
+
silent?: boolean;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export default function InlineStyleParser(
|
|
32
|
+
style: string,
|
|
33
|
+
options?: Options
|
|
34
|
+
): (Declaration | Comment)[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "inline-style-parser",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "An inline style parser.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
"lint:fix": "npm run lint -- --fix",
|
|
11
11
|
"prepublishOnly": "pinst --disable && npm run lint && npm test && npm run build",
|
|
12
12
|
"test": "jest",
|
|
13
|
-
"test:ci": "
|
|
14
|
-
"test:
|
|
13
|
+
"test:ci": "CI=true jest --ci --colors --coverage --collectCoverageFrom=index.js",
|
|
14
|
+
"test:esm": "node --test test/index.test.mjs",
|
|
15
15
|
"test:watch": "jest --watch",
|
|
16
16
|
"_postinstall": "husky install",
|
|
17
17
|
"postpublish": "pinst --enable"
|
|
@@ -46,7 +46,8 @@
|
|
|
46
46
|
"rollup": "4.1.0"
|
|
47
47
|
},
|
|
48
48
|
"files": [
|
|
49
|
-
"/dist"
|
|
49
|
+
"/dist",
|
|
50
|
+
"/index.d.ts"
|
|
50
51
|
],
|
|
51
52
|
"license": "MIT"
|
|
52
53
|
}
|