postcss 8.5.8 → 8.5.9
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/LICENSE +1 -1
- package/README.md +6 -7
- package/lib/at-rule.d.ts +0 -1
- package/lib/comment.d.ts +0 -1
- package/lib/container.d.ts +1 -6
- package/lib/css-syntax-error.d.ts +0 -1
- package/lib/declaration.d.ts +0 -1
- package/lib/document.d.ts +0 -1
- package/lib/fromJSON.d.ts +1 -1
- package/lib/input.d.ts +0 -1
- package/lib/input.js +9 -1
- package/lib/lazy-result.d.ts +3 -4
- package/lib/list.d.ts +1 -1
- package/lib/no-work-result.d.ts +0 -1
- package/lib/no-work-result.js +1 -1
- package/lib/node.d.ts +0 -1
- package/lib/parse.d.ts +1 -1
- package/lib/postcss.d.mts +0 -3
- package/lib/postcss.d.ts +1 -3
- package/lib/previous-map.d.ts +0 -1
- package/lib/previous-map.js +2 -1
- package/lib/processor.d.ts +0 -1
- package/lib/processor.js +1 -1
- package/lib/result.d.ts +0 -1
- package/lib/root.d.ts +0 -1
- package/lib/rule.d.ts +12 -12
- package/lib/stringifier.d.ts +0 -1
- package/lib/stringify.d.ts +1 -1
- package/lib/warning.d.ts +0 -1
- package/package.json +43 -43
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
The MIT License (MIT)
|
|
2
2
|
|
|
3
|
-
Copyright 2013 Andrey Sitnik <andrey@sitnik.
|
|
3
|
+
Copyright 2013 Andrey Sitnik <andrey@sitnik.es>
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
6
6
|
this software and associated documentation files (the "Software"), to deal in
|
package/README.md
CHANGED
|
@@ -14,16 +14,15 @@ and JetBrains. The [Autoprefixer] and [Stylelint] PostCSS plugins are some o
|
|
|
14
14
|
---
|
|
15
15
|
|
|
16
16
|
<img src="https://cdn.evilmartians.com/badges/logo-no-label.svg" alt="" width="22" height="16" /> Built by
|
|
17
|
-
|
|
17
|
+
<b><a href="https://evilmartians.com/devtools?utm_source=postcss&utm_campaign=devtools-button&utm_medium=github">Evil Martians</a></b>, go-to agency for <b>developer tools</b>.
|
|
18
18
|
|
|
19
19
|
---
|
|
20
20
|
|
|
21
|
-
[Abstract
|
|
22
|
-
[Evil
|
|
23
|
-
[Autoprefixer]:
|
|
24
|
-
[Stylelint]:
|
|
25
|
-
[plugins]:
|
|
26
|
-
|
|
21
|
+
[Abstract Syntax Tree]: https://en.wikipedia.org/wiki/Abstract_syntax_tree
|
|
22
|
+
[Evil Martians]: https://evilmartians.com/?utm_source=postcss
|
|
23
|
+
[Autoprefixer]: https://github.com/postcss/autoprefixer
|
|
24
|
+
[Stylelint]: https://stylelint.io/
|
|
25
|
+
[plugins]: https://github.com/postcss/postcss#plugins
|
|
27
26
|
|
|
28
27
|
## Docs
|
|
29
28
|
Read full docs **[here](https://postcss.org/)**.
|
package/lib/at-rule.d.ts
CHANGED
package/lib/comment.d.ts
CHANGED
package/lib/container.d.ts
CHANGED
|
@@ -8,11 +8,7 @@ import Rule from './rule.js'
|
|
|
8
8
|
declare namespace Container {
|
|
9
9
|
export type ContainerWithChildren<Child extends Node = ChildNode> = {
|
|
10
10
|
nodes: Child[]
|
|
11
|
-
} & (
|
|
12
|
-
| AtRule
|
|
13
|
-
| Root
|
|
14
|
-
| Rule
|
|
15
|
-
)
|
|
11
|
+
} & (AtRule | Root | Rule)
|
|
16
12
|
|
|
17
13
|
export interface ValueOptions {
|
|
18
14
|
/**
|
|
@@ -43,7 +39,6 @@ declare namespace Container {
|
|
|
43
39
|
| string
|
|
44
40
|
| undefined
|
|
45
41
|
|
|
46
|
-
|
|
47
42
|
export { Container_ as default }
|
|
48
43
|
}
|
|
49
44
|
|
package/lib/declaration.d.ts
CHANGED
package/lib/document.d.ts
CHANGED
package/lib/fromJSON.d.ts
CHANGED
package/lib/input.d.ts
CHANGED
package/lib/input.js
CHANGED
|
@@ -142,7 +142,15 @@ class Input {
|
|
|
142
142
|
)
|
|
143
143
|
}
|
|
144
144
|
|
|
145
|
-
result.input = {
|
|
145
|
+
result.input = {
|
|
146
|
+
column,
|
|
147
|
+
endColumn,
|
|
148
|
+
endLine,
|
|
149
|
+
endOffset,
|
|
150
|
+
line,
|
|
151
|
+
offset,
|
|
152
|
+
source: this.css
|
|
153
|
+
}
|
|
146
154
|
if (this.file) {
|
|
147
155
|
if (pathToFileURL) {
|
|
148
156
|
result.input.url = pathToFileURL(this.file).toString()
|
package/lib/lazy-result.d.ts
CHANGED
|
@@ -6,7 +6,6 @@ import Root from './root.js'
|
|
|
6
6
|
import Warning from './warning.js'
|
|
7
7
|
|
|
8
8
|
declare namespace LazyResult {
|
|
9
|
-
|
|
10
9
|
export { LazyResult_ as default }
|
|
11
10
|
}
|
|
12
11
|
|
|
@@ -19,9 +18,9 @@ declare namespace LazyResult {
|
|
|
19
18
|
* const lazy = postcss([autoprefixer]).process(css)
|
|
20
19
|
* ```
|
|
21
20
|
*/
|
|
22
|
-
declare class LazyResult_<RootNode = Document | Root>
|
|
23
|
-
|
|
24
|
-
{
|
|
21
|
+
declare class LazyResult_<RootNode = Document | Root> implements PromiseLike<
|
|
22
|
+
Result<RootNode>
|
|
23
|
+
> {
|
|
25
24
|
/**
|
|
26
25
|
* Processes input CSS through synchronous and asynchronous plugins
|
|
27
26
|
* and calls onRejected for each error thrown in any plugin.
|
package/lib/list.d.ts
CHANGED
package/lib/no-work-result.d.ts
CHANGED
package/lib/no-work-result.js
CHANGED
package/lib/node.d.ts
CHANGED
package/lib/parse.d.ts
CHANGED
package/lib/postcss.d.mts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export {
|
|
2
2
|
// Type-only exports
|
|
3
3
|
AcceptedPlugin,
|
|
4
|
-
|
|
5
4
|
AnyNode,
|
|
6
5
|
atRule,
|
|
7
6
|
AtRule,
|
|
@@ -27,7 +26,6 @@ export {
|
|
|
27
26
|
fromJSON,
|
|
28
27
|
Helpers,
|
|
29
28
|
Input,
|
|
30
|
-
|
|
31
29
|
JSONHydrator,
|
|
32
30
|
// This is a class, but it’s not re-exported. That’s why it’s exported as type-only here.
|
|
33
31
|
type LazyResult,
|
|
@@ -64,6 +62,5 @@ export {
|
|
|
64
62
|
TransformCallback,
|
|
65
63
|
Transformer,
|
|
66
64
|
Warning,
|
|
67
|
-
|
|
68
65
|
WarningOptions
|
|
69
66
|
} from './postcss.js'
|
package/lib/postcss.d.ts
CHANGED
|
@@ -450,9 +450,7 @@ declare namespace postcss {
|
|
|
450
450
|
* @param plugins PostCSS plugins.
|
|
451
451
|
* @return Processor to process multiple CSS.
|
|
452
452
|
*/
|
|
453
|
-
declare function postcss(
|
|
454
|
-
plugins?: readonly postcss.AcceptedPlugin[]
|
|
455
|
-
): Processor
|
|
453
|
+
declare function postcss(plugins?: readonly postcss.AcceptedPlugin[]): Processor
|
|
456
454
|
declare function postcss(...plugins: postcss.AcceptedPlugin[]): Processor
|
|
457
455
|
|
|
458
456
|
export = postcss
|
package/lib/previous-map.d.ts
CHANGED
package/lib/previous-map.js
CHANGED
|
@@ -51,7 +51,8 @@ class PreviousMap {
|
|
|
51
51
|
return fromBase64(text.substr(baseUriMatch[0].length))
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
let encoding = text.
|
|
54
|
+
let encoding = text.slice('data:application/json;'.length)
|
|
55
|
+
encoding = encoding.slice(0, encoding.indexOf(','))
|
|
55
56
|
throw new Error('Unsupported source map encoding ' + encoding)
|
|
56
57
|
}
|
|
57
58
|
|
package/lib/processor.d.ts
CHANGED
package/lib/processor.js
CHANGED
package/lib/result.d.ts
CHANGED
package/lib/root.d.ts
CHANGED
package/lib/rule.d.ts
CHANGED
|
@@ -44,19 +44,19 @@ declare namespace Rule {
|
|
|
44
44
|
/** Information used to generate byte-to-byte equal node string as it was in the origin input. */
|
|
45
45
|
raws?: RuleRaws
|
|
46
46
|
} & (
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
47
|
+
| {
|
|
48
|
+
/** Selector or selectors of the rule. */
|
|
49
|
+
selector: string
|
|
50
|
+
selectors?: never
|
|
51
|
+
}
|
|
52
|
+
| {
|
|
53
|
+
selector?: never
|
|
54
|
+
/** Selectors of the rule represented as an array of strings. */
|
|
55
|
+
selectors: readonly string[]
|
|
56
|
+
}
|
|
57
|
+
) &
|
|
58
|
+
ContainerProps
|
|
58
59
|
|
|
59
|
-
|
|
60
60
|
export { Rule_ as default }
|
|
61
61
|
}
|
|
62
62
|
|
package/lib/stringifier.d.ts
CHANGED
package/lib/stringify.d.ts
CHANGED
package/lib/warning.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,10 +1,48 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "postcss",
|
|
3
|
-
"version": "8.5.
|
|
3
|
+
"version": "8.5.9",
|
|
4
4
|
"description": "Tool for transforming styles with JS plugins",
|
|
5
|
-
"
|
|
6
|
-
"
|
|
5
|
+
"keywords": [
|
|
6
|
+
"css",
|
|
7
|
+
"manipulation",
|
|
8
|
+
"parser",
|
|
9
|
+
"postcss",
|
|
10
|
+
"preprocessor",
|
|
11
|
+
"rework",
|
|
12
|
+
"source map",
|
|
13
|
+
"transform",
|
|
14
|
+
"transpiler"
|
|
15
|
+
],
|
|
16
|
+
"homepage": "https://postcss.org/",
|
|
17
|
+
"bugs": {
|
|
18
|
+
"url": "https://github.com/postcss/postcss/issues"
|
|
7
19
|
},
|
|
20
|
+
"license": "MIT",
|
|
21
|
+
"author": "Andrey Sitnik <andrey@sitnik.es>",
|
|
22
|
+
"repository": "postcss/postcss",
|
|
23
|
+
"funding": [
|
|
24
|
+
{
|
|
25
|
+
"type": "opencollective",
|
|
26
|
+
"url": "https://opencollective.com/postcss/"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"type": "tidelift",
|
|
30
|
+
"url": "https://tidelift.com/funding/github/npm/postcss"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"type": "github",
|
|
34
|
+
"url": "https://github.com/sponsors/ai"
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
"main": "./lib/postcss.js",
|
|
38
|
+
"browser": {
|
|
39
|
+
"./lib/terminal-highlight": false,
|
|
40
|
+
"source-map-js": false,
|
|
41
|
+
"path": false,
|
|
42
|
+
"url": false,
|
|
43
|
+
"fs": false
|
|
44
|
+
},
|
|
45
|
+
"types": "./lib/postcss.d.ts",
|
|
8
46
|
"exports": {
|
|
9
47
|
".": {
|
|
10
48
|
"import": "./lib/postcss.mjs",
|
|
@@ -39,50 +77,12 @@
|
|
|
39
77
|
"./lib/warning": "./lib/warning.js",
|
|
40
78
|
"./package.json": "./package.json"
|
|
41
79
|
},
|
|
42
|
-
"main": "./lib/postcss.js",
|
|
43
|
-
"types": "./lib/postcss.d.ts",
|
|
44
|
-
"keywords": [
|
|
45
|
-
"css",
|
|
46
|
-
"postcss",
|
|
47
|
-
"rework",
|
|
48
|
-
"preprocessor",
|
|
49
|
-
"parser",
|
|
50
|
-
"source map",
|
|
51
|
-
"transform",
|
|
52
|
-
"manipulation",
|
|
53
|
-
"transpiler"
|
|
54
|
-
],
|
|
55
|
-
"funding": [
|
|
56
|
-
{
|
|
57
|
-
"type": "opencollective",
|
|
58
|
-
"url": "https://opencollective.com/postcss/"
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
"type": "tidelift",
|
|
62
|
-
"url": "https://tidelift.com/funding/github/npm/postcss"
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
"type": "github",
|
|
66
|
-
"url": "https://github.com/sponsors/ai"
|
|
67
|
-
}
|
|
68
|
-
],
|
|
69
|
-
"author": "Andrey Sitnik <andrey@sitnik.ru>",
|
|
70
|
-
"license": "MIT",
|
|
71
|
-
"homepage": "https://postcss.org/",
|
|
72
|
-
"repository": "postcss/postcss",
|
|
73
|
-
"bugs": {
|
|
74
|
-
"url": "https://github.com/postcss/postcss/issues"
|
|
75
|
-
},
|
|
76
80
|
"dependencies": {
|
|
77
81
|
"nanoid": "^3.3.11",
|
|
78
82
|
"picocolors": "^1.1.1",
|
|
79
83
|
"source-map-js": "^1.2.1"
|
|
80
84
|
},
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"source-map-js": false,
|
|
84
|
-
"path": false,
|
|
85
|
-
"url": false,
|
|
86
|
-
"fs": false
|
|
85
|
+
"engines": {
|
|
86
|
+
"node": "^10 || ^12 || >=14"
|
|
87
87
|
}
|
|
88
88
|
}
|