stylehacks 8.0.1 → 8.0.2
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-MIT +1 -1
- package/README.md +1 -1
- package/package.json +26 -9
- package/src/index.js +11 -10
- package/src/lib/computeBrowsersToSupport.js +27 -0
- package/src/lib/getBrowsersForWebBuild.js +35 -0
- package/src/plugin.js +4 -4
- package/src/plugins/leadingStar.js +7 -5
- package/src/plugins/leadingUnderscore.js +2 -1
- package/src/plugins/slash9.js +1 -1
- package/types/dictionary/browsers.d.ts +9 -6
- package/types/dictionary/browsers.d.ts.map +1 -1
- package/types/dictionary/identifiers.d.ts +7 -4
- package/types/dictionary/identifiers.d.ts.map +1 -1
- package/types/dictionary/postcss.d.ts +6 -3
- package/types/dictionary/postcss.d.ts.map +1 -1
- package/types/dictionary/tags.d.ts +5 -2
- package/types/dictionary/tags.d.ts.map +1 -1
- package/types/exists.d.ts +8 -2
- package/types/exists.d.ts.map +1 -1
- package/types/index.d.ts +8 -21
- package/types/index.d.ts.map +1 -1
- package/types/isMixin.d.ts +6 -2
- package/types/isMixin.d.ts.map +1 -1
- package/types/lib/computeBrowsersToSupport.d.ts +18 -0
- package/types/lib/computeBrowsersToSupport.d.ts.map +1 -0
- package/types/lib/getBrowsersForWebBuild.d.ts +3 -0
- package/types/lib/getBrowsersForWebBuild.d.ts.map +1 -0
- package/types/plugin.d.ts +29 -18
- package/types/plugin.d.ts.map +1 -1
- package/types/plugins/bodyEmpty.d.ts +5 -5
- package/types/plugins/bodyEmpty.d.ts.map +1 -1
- package/types/plugins/htmlCombinatorCommentBody.d.ts +5 -5
- package/types/plugins/htmlCombinatorCommentBody.d.ts.map +1 -1
- package/types/plugins/htmlFirstChild.d.ts +5 -5
- package/types/plugins/htmlFirstChild.d.ts.map +1 -1
- package/types/plugins/important.d.ts +3 -3
- package/types/plugins/important.d.ts.map +1 -1
- package/types/plugins/index.d.ts +4 -4
- package/types/plugins/index.d.ts.map +1 -1
- package/types/plugins/leadingStar.d.ts +5 -4
- package/types/plugins/leadingStar.d.ts.map +1 -1
- package/types/plugins/leadingUnderscore.d.ts +3 -3
- package/types/plugins/leadingUnderscore.d.ts.map +1 -1
- package/types/plugins/mediaSlash0.d.ts +3 -3
- package/types/plugins/mediaSlash0.d.ts.map +1 -1
- package/types/plugins/mediaSlash0Slash9.d.ts +3 -3
- package/types/plugins/mediaSlash0Slash9.d.ts.map +1 -1
- package/types/plugins/mediaSlash9.d.ts +3 -3
- package/types/plugins/mediaSlash9.d.ts.map +1 -1
- package/types/plugins/slash9.d.ts +3 -3
- package/types/plugins/slash9.d.ts.map +1 -1
- package/types/plugins/starHtml.d.ts +5 -5
- package/types/plugins/starHtml.d.ts.map +1 -1
- package/types/plugins/trailingSlashComma.d.ts +3 -3
- package/types/plugins/trailingSlashComma.d.ts.map +1 -1
package/LICENSE-MIT
CHANGED
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -1,9 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stylehacks",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.2",
|
|
4
4
|
"description": "Detect/remove browser hacks from CSS files.",
|
|
5
|
-
"
|
|
6
|
-
|
|
5
|
+
"exports": {
|
|
6
|
+
".": {
|
|
7
|
+
"types": "./types/index.d.ts",
|
|
8
|
+
"default": "./src/index.js"
|
|
9
|
+
},
|
|
10
|
+
"./src": "./src/index.js",
|
|
11
|
+
"./src/*": "./src/*.js",
|
|
12
|
+
"./src/*.js": "./src/*.js",
|
|
13
|
+
"./package.json": "./package.json"
|
|
14
|
+
},
|
|
15
|
+
"imports": {
|
|
16
|
+
"#getBrowsersList": {
|
|
17
|
+
"node": "./src/lib/computeBrowsersToSupport.js",
|
|
18
|
+
"default": "./src/lib/getBrowsersForWebBuild.js"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
7
21
|
"files": [
|
|
8
22
|
"LICENSE-MIT",
|
|
9
23
|
"src",
|
|
@@ -24,12 +38,15 @@
|
|
|
24
38
|
"author": {
|
|
25
39
|
"name": "Ben Briggs",
|
|
26
40
|
"email": "beneb.info@gmail.com",
|
|
27
|
-
"url": "
|
|
41
|
+
"url": "https://beneb.info"
|
|
42
|
+
},
|
|
43
|
+
"repository": {
|
|
44
|
+
"type": "git",
|
|
45
|
+
"url": "cssnano/cssnano"
|
|
28
46
|
},
|
|
29
|
-
"repository": "cssnano/cssnano",
|
|
30
47
|
"dependencies": {
|
|
31
|
-
"browserslist": "^4.28.
|
|
32
|
-
"postcss-selector-parser": "^7.1.
|
|
48
|
+
"browserslist": "^4.28.7",
|
|
49
|
+
"postcss-selector-parser": "^7.1.4"
|
|
33
50
|
},
|
|
34
51
|
"bugs": {
|
|
35
52
|
"url": "https://github.com/cssnano/cssnano/issues"
|
|
@@ -38,9 +55,9 @@
|
|
|
38
55
|
"node": "^22.11.0 || ^24.11.0 || >=26.0"
|
|
39
56
|
},
|
|
40
57
|
"devDependencies": {
|
|
41
|
-
"postcss": "^8.5.
|
|
58
|
+
"postcss": "^8.5.25"
|
|
42
59
|
},
|
|
43
60
|
"peerDependencies": {
|
|
44
|
-
"postcss": "^8.5.
|
|
61
|
+
"postcss": "^8.5.25"
|
|
45
62
|
}
|
|
46
63
|
}
|
package/src/index.js
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
-
const
|
|
3
|
-
const browserslist = require('browserslist');
|
|
2
|
+
const getBrowsersList = require('#getBrowsersList');
|
|
4
3
|
const plugins = require('./plugins');
|
|
5
4
|
|
|
6
5
|
/**
|
|
6
|
+
* @import browserslist from 'browserslist'
|
|
7
7
|
* @typedef {{ overrideBrowserslist?: string | string[] }} AutoprefixerOptions
|
|
8
8
|
* @typedef {Pick<browserslist.Options, 'stats' | 'path' | 'env'>} BrowserslistOptions
|
|
9
9
|
* @typedef {{lint?: boolean} & AutoprefixerOptions & BrowserslistOptions} Options
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
* @type {import('postcss').PluginCreator<Options>}
|
|
14
13
|
* @param {Options} opts
|
|
15
14
|
* @return {import('postcss').Plugin}
|
|
16
15
|
*/
|
|
@@ -23,13 +22,12 @@ function pluginCreator(opts = {}) {
|
|
|
23
22
|
*/
|
|
24
23
|
prepare(result) {
|
|
25
24
|
const { stats, env, from, file } = result.opts || {};
|
|
26
|
-
const browsers =
|
|
27
|
-
stats: opts.stats || stats,
|
|
28
|
-
path: opts.path || dirname(from || file || __filename),
|
|
29
|
-
env: opts.env || env,
|
|
30
|
-
});
|
|
25
|
+
const browsers = getBrowsersList(opts, stats, from, file, env);
|
|
31
26
|
|
|
32
|
-
return {
|
|
27
|
+
return /** import('postcss').Plugin */ {
|
|
28
|
+
/**
|
|
29
|
+
* @param {import('postcss').Root} css
|
|
30
|
+
*/
|
|
33
31
|
OnceExit(css) {
|
|
34
32
|
/** @type {import('./plugin').Plugin[]} */
|
|
35
33
|
const processors = [];
|
|
@@ -68,4 +66,7 @@ pluginCreator.detect = (node) => {
|
|
|
68
66
|
};
|
|
69
67
|
|
|
70
68
|
pluginCreator.postcss = true;
|
|
71
|
-
module.exports =
|
|
69
|
+
module.exports =
|
|
70
|
+
/** @type {import('postcss').PluginCreator<Options> & {detect: (node: import('postcss').Node) => boolean}} */ (
|
|
71
|
+
pluginCreator
|
|
72
|
+
);
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const browserslist = require('browserslist');
|
|
4
|
+
const { dirname } = require('node:path');
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
*
|
|
8
|
+
* @param {{overrideBrowserslist?: string | string[] | undefined, stats?: browserslist.Options["stats"], path?: browserslist.Options["path"], env?: browserslist.Options["env"]}} options
|
|
9
|
+
* @param {browserslist.Options["stats"]} stats
|
|
10
|
+
* @param {string|undefined} from
|
|
11
|
+
* @param {string} [file]
|
|
12
|
+
* @param {browserslist.Options["env"]} [env]
|
|
13
|
+
* @returns {string[]}
|
|
14
|
+
*/
|
|
15
|
+
module.exports = function computeBrowsersToSupport(
|
|
16
|
+
options,
|
|
17
|
+
stats,
|
|
18
|
+
from,
|
|
19
|
+
file,
|
|
20
|
+
env
|
|
21
|
+
) {
|
|
22
|
+
return browserslist(options.overrideBrowserslist, {
|
|
23
|
+
stats: options.stats || stats,
|
|
24
|
+
path: options.path || dirname(from || file || __filename),
|
|
25
|
+
env: options.env || env,
|
|
26
|
+
});
|
|
27
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
module.exports = function () {
|
|
4
|
+
return [
|
|
5
|
+
'and_chr 150',
|
|
6
|
+
'and_ff 152',
|
|
7
|
+
'and_qq 14.9',
|
|
8
|
+
'and_uc 15.5',
|
|
9
|
+
'android 150',
|
|
10
|
+
'chrome 150',
|
|
11
|
+
'chrome 149',
|
|
12
|
+
'chrome 148',
|
|
13
|
+
'chrome 118',
|
|
14
|
+
'chrome 109',
|
|
15
|
+
'edge 150',
|
|
16
|
+
'edge 149',
|
|
17
|
+
'edge 148',
|
|
18
|
+
'firefox 152',
|
|
19
|
+
'firefox 151',
|
|
20
|
+
'firefox 140',
|
|
21
|
+
'ios_saf 26.5',
|
|
22
|
+
'ios_saf 26.4',
|
|
23
|
+
'ios_saf 26.3',
|
|
24
|
+
'ios_saf 18.5-18.7',
|
|
25
|
+
'kaios 3.0-3.1',
|
|
26
|
+
'op_mob 80',
|
|
27
|
+
'opera 131',
|
|
28
|
+
'opera 127',
|
|
29
|
+
'safari 26.5',
|
|
30
|
+
'safari 26.4',
|
|
31
|
+
'safari 26.3',
|
|
32
|
+
'samsung 30',
|
|
33
|
+
'samsung 29',
|
|
34
|
+
];
|
|
35
|
+
};
|
package/src/plugin.js
CHANGED
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
* @prop {(node: import('postcss').Node) => void} detectAndWarn
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
/**
|
|
10
|
+
/**
|
|
11
11
|
* @typedef {import('postcss').Node & {_stylehacks: {
|
|
12
|
-
message: string,
|
|
13
|
-
browsers: Set<string>,
|
|
14
|
-
identifier: string,
|
|
12
|
+
message: string,
|
|
13
|
+
browsers: Set<string>,
|
|
14
|
+
identifier: string,
|
|
15
15
|
hack: string }}} NodeWithInfo
|
|
16
16
|
*/
|
|
17
17
|
|
|
@@ -4,6 +4,8 @@ const { IE_5_5, IE_6, IE_7 } = require('../dictionary/browsers');
|
|
|
4
4
|
const { PROPERTY } = require('../dictionary/identifiers');
|
|
5
5
|
const { ATRULE, DECL } = require('../dictionary/postcss');
|
|
6
6
|
|
|
7
|
+
/** @import {Declaration, AtRule} from 'postcss'; */
|
|
8
|
+
|
|
7
9
|
const hacks = '!_$_&_*_)_=_%_+_,_._/_`_]_#_~_?_:_|'.split('_');
|
|
8
10
|
|
|
9
11
|
module.exports = class LeadingStar extends BasePlugin {
|
|
@@ -13,7 +15,7 @@ module.exports = class LeadingStar extends BasePlugin {
|
|
|
13
15
|
}
|
|
14
16
|
|
|
15
17
|
/**
|
|
16
|
-
* @param {
|
|
18
|
+
* @param {Declaration | AtRule} node
|
|
17
19
|
* @return {void}
|
|
18
20
|
*/
|
|
19
21
|
detect(node) {
|
|
@@ -21,10 +23,10 @@ module.exports = class LeadingStar extends BasePlugin {
|
|
|
21
23
|
// some values are not picked up by before, so ensure they are
|
|
22
24
|
// at the beginning of the value
|
|
23
25
|
hacks.forEach((hack) => {
|
|
24
|
-
if (!node.prop.indexOf(hack)) {
|
|
26
|
+
if (!(/** @type Declaration */ (node).prop.indexOf(hack))) {
|
|
25
27
|
this.push(node, {
|
|
26
28
|
identifier: PROPERTY,
|
|
27
|
-
hack: node.prop,
|
|
29
|
+
hack: /** @type Declaration */ (node).prop,
|
|
28
30
|
});
|
|
29
31
|
}
|
|
30
32
|
});
|
|
@@ -36,13 +38,13 @@ module.exports = class LeadingStar extends BasePlugin {
|
|
|
36
38
|
if (before.includes(hack)) {
|
|
37
39
|
this.push(node, {
|
|
38
40
|
identifier: PROPERTY,
|
|
39
|
-
hack: `${before.trim()}${node.prop}`,
|
|
41
|
+
hack: `${before.trim()}${/** @type Declaration */ (node).prop}`,
|
|
40
42
|
});
|
|
41
43
|
}
|
|
42
44
|
});
|
|
43
45
|
} else {
|
|
44
46
|
// test for the @property: value; hack
|
|
45
|
-
const { name } = node;
|
|
47
|
+
const { name } = /** @type AtRule */ (node);
|
|
46
48
|
const len = name.length - 1;
|
|
47
49
|
if (name.lastIndexOf(':') === len) {
|
|
48
50
|
this.push(node, {
|
|
@@ -4,12 +4,13 @@ const { IE_6 } = require('../dictionary/browsers');
|
|
|
4
4
|
const { PROPERTY } = require('../dictionary/identifiers');
|
|
5
5
|
const { DECL } = require('../dictionary/postcss');
|
|
6
6
|
|
|
7
|
+
const vendorPrefixRegex = /^(-\w+-)/;
|
|
7
8
|
/**
|
|
8
9
|
* @param {string} prop
|
|
9
10
|
* @return {string}
|
|
10
11
|
*/
|
|
11
12
|
function vendorPrefix(prop) {
|
|
12
|
-
|
|
13
|
+
const match = prop.match(vendorPrefixRegex);
|
|
13
14
|
if (match) {
|
|
14
15
|
return match[0];
|
|
15
16
|
}
|
package/src/plugins/slash9.js
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
declare const _exports: {
|
|
2
|
+
FF_2: string;
|
|
3
|
+
IE_5_5: string;
|
|
4
|
+
IE_6: string;
|
|
5
|
+
IE_7: string;
|
|
6
|
+
IE_8: string;
|
|
7
|
+
OP_9: string;
|
|
8
|
+
};
|
|
9
|
+
export = _exports;
|
|
7
10
|
//# sourceMappingURL=browsers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browsers.d.ts","sourceRoot":"","sources":["../../src/dictionary/browsers.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"browsers.d.ts","sourceRoot":"","sources":["../../src/dictionary/browsers.js"],"names":[],"mappings":""}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
declare const _exports: {
|
|
2
|
+
MEDIA_QUERY: string;
|
|
3
|
+
PROPERTY: string;
|
|
4
|
+
SELECTOR: string;
|
|
5
|
+
VALUE: string;
|
|
6
|
+
};
|
|
7
|
+
export = _exports;
|
|
5
8
|
//# sourceMappingURL=identifiers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identifiers.d.ts","sourceRoot":"","sources":["../../src/dictionary/identifiers.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"identifiers.d.ts","sourceRoot":"","sources":["../../src/dictionary/identifiers.js"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postcss.d.ts","sourceRoot":"","sources":["../../src/dictionary/postcss.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"postcss.d.ts","sourceRoot":"","sources":["../../src/dictionary/postcss.js"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tags.d.ts","sourceRoot":"","sources":["../../src/dictionary/tags.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tags.d.ts","sourceRoot":"","sources":["../../src/dictionary/tags.js"],"names":[],"mappings":""}
|
package/types/exists.d.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export = exists;
|
|
2
|
+
/**
|
|
3
|
+
* @param {import('postcss-selector-parser').Selector} selector
|
|
4
|
+
* @param {number} index
|
|
5
|
+
* @param {string} value
|
|
6
|
+
* @return {boolean | undefined | ''}
|
|
7
|
+
*/
|
|
8
|
+
declare function exists(selector: import('postcss-selector-parser').Selector, index: number, value: string): boolean | undefined | '';
|
|
3
9
|
//# sourceMappingURL=exists.d.ts.map
|
package/types/exists.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exists.d.ts","sourceRoot":"","sources":["../src/exists.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"exists.d.ts","sourceRoot":"","sources":["../src/exists.js"],"names":[],"mappings":";AAEA;;;;;GAKG;wBAC8B,QAAQ,EAL9B,OAAO,yBAAyB,EAAE,QAKJ,EAAE,KAAK,EAJrC,MAIqC,EAAE,KAAK,EAH5C,MAG4C,GAF3C,OAAO,GAAG,SAAS,GAAG,EAAE"}
|
package/types/index.d.ts
CHANGED
|
@@ -1,26 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* @type {import('postcss').PluginCreator<Options>}
|
|
9
|
-
* @param {Options} opts
|
|
10
|
-
* @return {import('postcss').Plugin}
|
|
11
|
-
*/
|
|
12
|
-
declare function pluginCreator(opts?: Options): import("postcss").Plugin;
|
|
13
|
-
declare namespace pluginCreator {
|
|
14
|
-
export { detect, postcss, AutoprefixerOptions, BrowserslistOptions, Options };
|
|
15
|
-
}
|
|
16
|
-
declare function detect(node: import("postcss").Node): boolean;
|
|
17
|
-
declare var postcss: true;
|
|
18
|
-
type AutoprefixerOptions = {
|
|
1
|
+
declare const _exports: import("postcss").PluginCreator<Options> & {
|
|
2
|
+
detect: (node: import('postcss').Node) => boolean;
|
|
3
|
+
};
|
|
4
|
+
export = _exports;
|
|
5
|
+
import type browserslist from 'browserslist';
|
|
6
|
+
export type AutoprefixerOptions = {
|
|
19
7
|
overrideBrowserslist?: string | string[];
|
|
20
8
|
};
|
|
21
|
-
type BrowserslistOptions = Pick<browserslist.Options,
|
|
22
|
-
type Options = {
|
|
9
|
+
export type BrowserslistOptions = Pick<browserslist.Options, 'stats' | 'path' | 'env'>;
|
|
10
|
+
export type Options = {
|
|
23
11
|
lint?: boolean;
|
|
24
12
|
} & AutoprefixerOptions & BrowserslistOptions;
|
|
25
|
-
import browserslist = require("browserslist");
|
|
26
13
|
//# sourceMappingURL=index.d.ts.map
|
package/types/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.js"],"names":[],"mappings":";YAqEiE,CAAC,IAAI,EAAE,OAAO,SAAS,EAAE,IAAI,KAAK,OAAO;;;AAhEvG,OAAQ,KAAA,YAAY,MAAM,cAAc,CACxC;AAAA,YAAwD,mBAAmB,GAAjE;IAAE,oBAAoB,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;CAAE,CAAqB;AAC3E,YAAgE,mBAAmB,GAAzE,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,GAAG,KAAK,CAAC,CAAqB;AACnF,YAAwE,OAAO,GAArE;IAAC,IAAI,CAAC,EAAE,OAAO,CAAA;CAAC,GAAG,mBAAmB,GAAG,mBAAmB,CAAS"}
|
package/types/isMixin.d.ts
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export = isMixin;
|
|
2
|
+
/**
|
|
3
|
+
* @param {import('postcss').Rule} node
|
|
4
|
+
* @return {boolean}
|
|
5
|
+
*/
|
|
6
|
+
declare function isMixin(node: import('postcss').Rule): boolean;
|
|
3
7
|
//# sourceMappingURL=isMixin.d.ts.map
|
package/types/isMixin.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isMixin.d.ts","sourceRoot":"","sources":["../src/isMixin.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"isMixin.d.ts","sourceRoot":"","sources":["../src/isMixin.js"],"names":[],"mappings":";AACA;;;GAGG;yBAC+B,IAAI,EAH3B,OAAO,SAAS,EAAE,IAGS,GAF1B,OAAO"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export = computeBrowsersToSupport;
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* @param {{overrideBrowserslist?: string | string[] | undefined, stats?: browserslist.Options["stats"], path?: browserslist.Options["path"], env?: browserslist.Options["env"]}} options
|
|
5
|
+
* @param {browserslist.Options["stats"]} stats
|
|
6
|
+
* @param {string|undefined} from
|
|
7
|
+
* @param {string} [file]
|
|
8
|
+
* @param {browserslist.Options["env"]} [env]
|
|
9
|
+
* @returns {string[]}
|
|
10
|
+
*/
|
|
11
|
+
declare function computeBrowsersToSupport(options: {
|
|
12
|
+
overrideBrowserslist?: string | string[] | undefined;
|
|
13
|
+
stats?: browserslist.Options["stats"];
|
|
14
|
+
path?: browserslist.Options["path"];
|
|
15
|
+
env?: browserslist.Options["env"];
|
|
16
|
+
}, stats: browserslist.Options["stats"], from: string | undefined, file?: string, env?: browserslist.Options["env"]): string[];
|
|
17
|
+
import browserslist = require('browserslist');
|
|
18
|
+
//# sourceMappingURL=computeBrowsersToSupport.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"computeBrowsersToSupport.d.ts","sourceRoot":"","sources":["../../src/lib/computeBrowsersToSupport.js"],"names":[],"mappings":";AAKA;;;;;;;;GAQG;0CAED,OAAO,EARE;IAAC,oBAAoB,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,CAAC;IAAC,KAAK,CAAC,EAAE,YAAY,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAAC,IAAI,CAAC,EAAE,YAAY,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IAAC,GAAG,CAAC,EAAE,YAAY,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;CAQtK,EACP,KAAK,EARI,YAAY,CAAC,OAAO,CAAC,OAAO,CAQhC,EACL,IAAI,EARK,MAAM,GAAC,SAQZ,EACJ,IAAI,AARH,CACA,EADQ,MAQL,EACJ,GAAG,AARF,CACA,EADQ,YAAY,CAAC,OAAO,CAAC,KAAK,CAQhC,GAPQ,MAAM,EAAE;OAVf,YAAY,WAAW,cAAc"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getBrowsersForWebBuild.d.ts","sourceRoot":"","sources":["../../src/lib/getBrowsersForWebBuild.js"],"names":[],"mappings":""}
|
package/types/plugin.d.ts
CHANGED
|
@@ -1,22 +1,36 @@
|
|
|
1
1
|
export = BasePlugin;
|
|
2
|
+
/**
|
|
3
|
+
* @typedef {object} Plugin
|
|
4
|
+
* @prop {Set<string>} targets
|
|
5
|
+
* @prop {Set<string>} nodeTypes
|
|
6
|
+
* @prop {(node: import('postcss').Node) => void} detectAndResolve
|
|
7
|
+
* @prop {(node: import('postcss').Node) => void} detectAndWarn
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* @typedef {import('postcss').Node & {_stylehacks: {
|
|
11
|
+
message: string,
|
|
12
|
+
browsers: Set<string>,
|
|
13
|
+
identifier: string,
|
|
14
|
+
hack: string }}} NodeWithInfo
|
|
15
|
+
*/
|
|
2
16
|
declare class BasePlugin {
|
|
3
|
-
/**
|
|
4
|
-
* @param {string[]} targets
|
|
5
|
-
* @param {string[]} nodeTypes
|
|
6
|
-
* @param {import('postcss').Result=} result
|
|
7
|
-
*/
|
|
8
|
-
constructor(targets: string[], nodeTypes: string[], result?: import("postcss").Result | undefined);
|
|
9
17
|
/** @type {NodeWithInfo[]} */
|
|
10
18
|
nodes: NodeWithInfo[];
|
|
11
19
|
targets: Set<string>;
|
|
12
20
|
nodeTypes: Set<string>;
|
|
13
21
|
result: import("postcss").Result<import("postcss").Document | import("postcss").Root> | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* @param {string[]} targets
|
|
24
|
+
* @param {string[]} nodeTypes
|
|
25
|
+
* @param {import('postcss').Result=} result
|
|
26
|
+
*/
|
|
27
|
+
constructor(targets: string[], nodeTypes: string[], result?: import('postcss').Result | undefined);
|
|
14
28
|
/**
|
|
15
29
|
* @param {import('postcss').Node} node
|
|
16
30
|
* @param {{identifier: string, hack: string}} metadata
|
|
17
31
|
* @return {void}
|
|
18
32
|
*/
|
|
19
|
-
push(node: import(
|
|
33
|
+
push(node: import('postcss').Node, metadata: {
|
|
20
34
|
identifier: string;
|
|
21
35
|
hack: string;
|
|
22
36
|
}): void;
|
|
@@ -24,33 +38,30 @@ declare class BasePlugin {
|
|
|
24
38
|
* @param {import('postcss').Node} node
|
|
25
39
|
* @return {boolean}
|
|
26
40
|
*/
|
|
27
|
-
any(node: import(
|
|
41
|
+
any(node: import('postcss').Node): boolean;
|
|
28
42
|
/**
|
|
29
43
|
* @param {import('postcss').Node} node
|
|
30
44
|
* @return {void}
|
|
31
45
|
*/
|
|
32
|
-
detectAndResolve(node: import(
|
|
46
|
+
detectAndResolve(node: import('postcss').Node): void;
|
|
33
47
|
/**
|
|
34
48
|
* @param {import('postcss').Node} node
|
|
35
49
|
* @return {void}
|
|
36
50
|
*/
|
|
37
|
-
detectAndWarn(node: import(
|
|
51
|
+
detectAndWarn(node: import('postcss').Node): void;
|
|
38
52
|
/** @param {import('postcss').Node} node */
|
|
39
|
-
detect(node: import(
|
|
53
|
+
detect(node: import('postcss').Node): void;
|
|
40
54
|
/** @return {void} */
|
|
41
55
|
resolve(): void;
|
|
42
56
|
warn(): void;
|
|
43
57
|
}
|
|
44
|
-
|
|
45
|
-
export { Plugin, NodeWithInfo };
|
|
46
|
-
}
|
|
47
|
-
type Plugin = {
|
|
58
|
+
export type Plugin = {
|
|
48
59
|
targets: Set<string>;
|
|
49
60
|
nodeTypes: Set<string>;
|
|
50
|
-
detectAndResolve: (node: import(
|
|
51
|
-
detectAndWarn: (node: import(
|
|
61
|
+
detectAndResolve: (node: import('postcss').Node) => void;
|
|
62
|
+
detectAndWarn: (node: import('postcss').Node) => void;
|
|
52
63
|
};
|
|
53
|
-
type NodeWithInfo = import(
|
|
64
|
+
export type NodeWithInfo = import('postcss').Node & {
|
|
54
65
|
_stylehacks: {
|
|
55
66
|
message: string;
|
|
56
67
|
browsers: Set<string>;
|
package/types/plugin.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.js"],"names":[],"mappings":";AACA;;;;;;GAMG;AAEH;;;;;;GAMG;;IASC,6BAA6B;IACxB,KAAK,EADC,YAAY,EAAE;IAEpB,OAAO;IACP,SAAS;IACT,MAAM;IAVb;;;;OAIG;IACH,YAAY,OAAO,EAJR,MAAM,EAIE,EAAE,SAAS,EAHnB,MAAM,EAGa,EAAE,MAAM,AAFnC,CACF,EADU,OAAO,SAAS,EAAE,MAAM,YAEG,EAMrC;IAED;;;;OAIG;IACH,IAAI,CAAC,IAAI,EAJE,OAAO,SAAS,EAAE,IAIpB,EAAE,QAAQ,EAHR;QAAC,UAAU,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAGzB,GAFP,IAAI,CAaf;IAED;;;OAGG;IACH,GAAG,CAAC,IAAI,EAHG,OAAO,SAAS,EAAE,IAGrB,GAFI,OAAO,CAUlB;IAED;;;OAGG;IACH,gBAAgB,CAAC,IAAI,EAHV,OAAO,SAAS,EAAE,IAGR,GAFT,IAAI,CAQf;IAED;;;OAGG;IACH,aAAa,CAAC,IAAI,EAHP,OAAO,SAAS,EAAE,IAGX,GAFN,IAAI,CAQf;IACD,2CAA2C;IAE3C,MAAM,CAAC,IAAI,EAFC,OAAO,SAAS,EAAE,IAEnB,QAEV;IAED,qBAAqB;IACrB,OAAO,IADM,IAAI,CAGhB;IAED,IAAI,SASH;;AAxGA,YAAkB,MAAM,GACxB;IAAoB,OAAO,EAApB,GAAG,CAAC,MAAM,CAAC,CAClB;IAAoB,SAAS,EAAtB,GAAG,CAAC,MAAM,CAAC,CAClB;IAA+C,gBAAgB,EAAxD,CAAC,IAAI,EAAE,OAAO,SAAS,EAAE,IAAI,KAAK,IAAI,CAC7C;IAA+C,aAAa,EAArD,CAAC,IAAI,EAAE,OAAO,SAAS,EAAE,IAAI,KAAK,IAAI,CAC/C;CAAA,CAAA;AAGE,YAIwD,YAAY,GAJ1D,OAAO,SAAS,EAAE,IAAI,GAAG;IAAC,WAAW,EAAE;QACV,OAAO,EAAE,MAAM,CAAC;QAChB,QAAQ,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;QACtB,UAAU,EAAE,MAAM,CAAC;QACnB,IAAI,EAAE,MAAM,CAAA;KAAE,CAAA;CAAC,CAAc"}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
export = BodyEmpty;
|
|
2
2
|
declare class BodyEmpty extends BasePlugin {
|
|
3
3
|
/** @param {import('postcss').Result} result */
|
|
4
|
-
constructor(result: import(
|
|
4
|
+
constructor(result: import('postcss').Result);
|
|
5
5
|
/**
|
|
6
6
|
* @param {import('postcss').Rule} rule
|
|
7
7
|
* @return {void}
|
|
8
8
|
*/
|
|
9
|
-
detect(rule: import(
|
|
9
|
+
detect(rule: import('postcss').Rule): void;
|
|
10
10
|
/**
|
|
11
11
|
* @param {import('postcss').Rule} rule
|
|
12
12
|
* @return {parser.SyncProcessor<void>}
|
|
13
13
|
*/
|
|
14
|
-
analyse(rule: import(
|
|
14
|
+
analyse(rule: import('postcss').Rule): parser.SyncProcessor<void>;
|
|
15
15
|
}
|
|
16
|
-
import
|
|
17
|
-
import
|
|
16
|
+
import parser = require('postcss-selector-parser');
|
|
17
|
+
import BasePlugin = require('../plugin');
|
|
18
18
|
//# sourceMappingURL=bodyEmpty.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bodyEmpty.d.ts","sourceRoot":"","sources":["../../src/plugins/bodyEmpty.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"bodyEmpty.d.ts","sourceRoot":"","sources":["../../src/plugins/bodyEmpty.js"],"names":[],"mappings":";uBAUiC,SAAQ,UAAU;IACjD,+CAA+C;IAC/C,YAAY,MAAM,EADN,OAAO,SAAS,EAAE,MACZ,EAEjB;IAED;;;OAGG;IACH,MAAM,CAAC,IAAI,EAHA,OAAO,SAAS,EAAE,IAGlB,GAFC,IAAI,CAOf;IAED;;;OAGG;IACH,OAAO,CAAC,IAAI,EAHD,OAAO,SAAS,EAAE,IAGjB,GAFA,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,CAkBrC;;OA9CG,MAAM,WAAW,yBAAyB;OAG1C,UAAU,WAAW,WAAW"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
export = HtmlCombinatorCommentBody;
|
|
2
2
|
declare class HtmlCombinatorCommentBody extends BasePlugin {
|
|
3
3
|
/** @param {import('postcss').Result} result */
|
|
4
|
-
constructor(result: import(
|
|
4
|
+
constructor(result: import('postcss').Result);
|
|
5
5
|
/**
|
|
6
6
|
* @param {import('postcss').Rule} rule
|
|
7
7
|
* @return {void}
|
|
8
8
|
*/
|
|
9
|
-
detect(rule: import(
|
|
9
|
+
detect(rule: import('postcss').Rule): void;
|
|
10
10
|
/** @param {import('postcss').Rule} rule
|
|
11
11
|
* @return {parser.SyncProcessor<void>}
|
|
12
12
|
*/
|
|
13
|
-
analyse(rule: import(
|
|
13
|
+
analyse(rule: import('postcss').Rule): parser.SyncProcessor<void>;
|
|
14
14
|
}
|
|
15
|
-
import
|
|
16
|
-
import
|
|
15
|
+
import parser = require('postcss-selector-parser');
|
|
16
|
+
import BasePlugin = require('../plugin');
|
|
17
17
|
//# sourceMappingURL=htmlCombinatorCommentBody.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"htmlCombinatorCommentBody.d.ts","sourceRoot":"","sources":["../../src/plugins/htmlCombinatorCommentBody.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"htmlCombinatorCommentBody.d.ts","sourceRoot":"","sources":["../../src/plugins/htmlCombinatorCommentBody.js"],"names":[],"mappings":";uCAUiD,SAAQ,UAAU;IACjE,+CAA+C;IAC/C,YAAY,MAAM,EADN,OAAO,SAAS,EAAE,MACZ,EAEjB;IAED;;;OAGG;IACH,MAAM,CAAC,IAAI,EAHA,OAAO,SAAS,EAAE,IAGlB,GAFC,IAAI,CASf;IAED;;OAEG;IACH,OAAO,CAAC,IAAI,EAHA,OAAO,SAAS,EAAE,IAGlB,GAFC,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,CAsBtC;;OAnDG,MAAM,WAAW,yBAAyB;OAG1C,UAAU,WAAW,WAAW"}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
export = HtmlFirstChild;
|
|
2
2
|
declare class HtmlFirstChild extends BasePlugin {
|
|
3
3
|
/** @param {import('postcss').Result} result */
|
|
4
|
-
constructor(result: import(
|
|
4
|
+
constructor(result: import('postcss').Result);
|
|
5
5
|
/**
|
|
6
6
|
* @param {import('postcss').Rule} rule
|
|
7
7
|
* @return {void}
|
|
8
8
|
*/
|
|
9
|
-
detect(rule: import(
|
|
9
|
+
detect(rule: import('postcss').Rule): void;
|
|
10
10
|
/**
|
|
11
11
|
* @param {import('postcss').Rule} rule
|
|
12
12
|
* @return {parser.SyncProcessor<void>}
|
|
13
13
|
*/
|
|
14
|
-
analyse(rule: import(
|
|
14
|
+
analyse(rule: import('postcss').Rule): parser.SyncProcessor<void>;
|
|
15
15
|
}
|
|
16
|
-
import
|
|
17
|
-
import
|
|
16
|
+
import parser = require('postcss-selector-parser');
|
|
17
|
+
import BasePlugin = require('../plugin');
|
|
18
18
|
//# sourceMappingURL=htmlFirstChild.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"htmlFirstChild.d.ts","sourceRoot":"","sources":["../../src/plugins/htmlFirstChild.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"htmlFirstChild.d.ts","sourceRoot":"","sources":["../../src/plugins/htmlFirstChild.js"],"names":[],"mappings":";4BAUsC,SAAQ,UAAU;IACtD,+CAA+C;IAC/C,YAAY,MAAM,EADN,OAAO,SAAS,EAAE,MACZ,EAEjB;IAED;;;OAGG;IACH,MAAM,CAAC,IAAI,EAHA,OAAO,SAAS,EAAE,IAGlB,GAFC,IAAI,CAQf;IAED;;;OAGG;IACH,OAAO,CAAC,IAAI,EAHD,OAAO,SAAS,EAAE,IAGjB,GAFA,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,CAkBrC;;OA/CG,MAAM,WAAW,yBAAyB;OAG1C,UAAU,WAAW,WAAW"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export = Important;
|
|
2
2
|
declare class Important extends BasePlugin {
|
|
3
3
|
/** @param {import('postcss').Result=} result */
|
|
4
|
-
constructor(result?: import(
|
|
4
|
+
constructor(result?: import('postcss').Result | undefined);
|
|
5
5
|
/**
|
|
6
6
|
* @param {import('postcss').Declaration} decl
|
|
7
7
|
* @return {void}
|
|
8
8
|
*/
|
|
9
|
-
detect(decl: import(
|
|
9
|
+
detect(decl: import('postcss').Declaration): void;
|
|
10
10
|
}
|
|
11
|
-
import BasePlugin = require(
|
|
11
|
+
import BasePlugin = require('../plugin');
|
|
12
12
|
//# sourceMappingURL=important.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"important.d.ts","sourceRoot":"","sources":["../../src/plugins/important.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"important.d.ts","sourceRoot":"","sources":["../../src/plugins/important.js"],"names":[],"mappings":";uBAKiC,SAAQ,UAAU;IACjD,gDAAgD;IAChD,YAAY,MAAM,AADd,CAA0C,EAAlC,OAAO,SAAS,EAAE,MAAM,YAClB,EAEjB;IACD;;;OAGG;IACH,MAAM,CAAC,IAAI,EAHA,OAAO,SAAS,EAAE,WAGlB,GAFC,IAAI,CAWf;;OAtBG,UAAU,WAAW,WAAW"}
|
package/types/plugins/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
declare const _exports: ({
|
|
2
|
-
new (result?: import(
|
|
2
|
+
new (result?: import('postcss').Result | undefined): important;
|
|
3
3
|
} | {
|
|
4
|
-
new (result?: import(
|
|
4
|
+
new (result?: import('postcss').Result | undefined): trailingSlashComma;
|
|
5
5
|
})[];
|
|
6
6
|
export = _exports;
|
|
7
|
-
import important = require(
|
|
8
|
-
import trailingSlashComma = require(
|
|
7
|
+
import important = require('./important');
|
|
8
|
+
import trailingSlashComma = require('./trailingSlashComma');
|
|
9
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/plugins/index.js"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/plugins/index.js"],"names":[],"mappings":";;;;;;OAIM,SAAS,WAAW,aAAa;OAQjC,kBAAkB,WAAW,sBAAsB"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
export = LeadingStar;
|
|
2
2
|
declare class LeadingStar extends BasePlugin {
|
|
3
3
|
/** @param {import('postcss').Result=} result */
|
|
4
|
-
constructor(result?: import(
|
|
4
|
+
constructor(result?: import('postcss').Result | undefined);
|
|
5
5
|
/**
|
|
6
|
-
* @param {
|
|
6
|
+
* @param {Declaration | AtRule} node
|
|
7
7
|
* @return {void}
|
|
8
8
|
*/
|
|
9
|
-
detect(node:
|
|
9
|
+
detect(node: Declaration | AtRule): void;
|
|
10
10
|
}
|
|
11
|
-
import BasePlugin = require(
|
|
11
|
+
import BasePlugin = require('../plugin');
|
|
12
|
+
import type { Declaration, AtRule } from 'postcss';
|
|
12
13
|
//# sourceMappingURL=leadingStar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"leadingStar.d.ts","sourceRoot":"","sources":["../../src/plugins/leadingStar.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"leadingStar.d.ts","sourceRoot":"","sources":["../../src/plugins/leadingStar.js"],"names":[],"mappings":";yBAUmC,SAAQ,UAAU;IACnD,gDAAgD;IAChD,YAAY,MAAM,AADd,CAA0C,EAAlC,OAAO,SAAS,EAAE,MAAM,YAClB,EAEjB;IAED;;;OAGG;IACH,MAAM,CAAC,IAAI,EAHA,WAAW,GAAG,MAGd,GAFC,IAAI,CAqCf;;OAtDG,UAAU,WAAW,WAAW;AAKlC,OAAQ,KAAA,EAAC,WAAW,EAAE,MAAM,EAAC,MAAM,SAAS,CAAE"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export = LeadingUnderscore;
|
|
2
2
|
declare class LeadingUnderscore extends BasePlugin {
|
|
3
3
|
/** @param {import('postcss').Result=} result */
|
|
4
|
-
constructor(result?: import(
|
|
4
|
+
constructor(result?: import('postcss').Result | undefined);
|
|
5
5
|
/**
|
|
6
6
|
* @param {import('postcss').Declaration} decl
|
|
7
7
|
* @return {void}
|
|
8
8
|
*/
|
|
9
|
-
detect(decl: import(
|
|
9
|
+
detect(decl: import('postcss').Declaration): void;
|
|
10
10
|
}
|
|
11
|
-
import BasePlugin = require(
|
|
11
|
+
import BasePlugin = require('../plugin');
|
|
12
12
|
//# sourceMappingURL=leadingUnderscore.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"leadingUnderscore.d.ts","sourceRoot":"","sources":["../../src/plugins/leadingUnderscore.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"leadingUnderscore.d.ts","sourceRoot":"","sources":["../../src/plugins/leadingUnderscore.js"],"names":[],"mappings":";+BAoByC,SAAQ,UAAU;IACzD,gDAAgD;IAChD,YAAY,MAAM,AADd,CAA0C,EAAlC,OAAO,SAAS,EAAE,MAAM,YAClB,EAEjB;IAED;;;OAGG;IACH,MAAM,CAAC,IAAI,EAHA,OAAO,SAAS,EAAE,WAGlB,GAFC,IAAI,CAsBf;;OAjDG,UAAU,WAAW,WAAW"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export = MediaSlash0;
|
|
2
2
|
declare class MediaSlash0 extends BasePlugin {
|
|
3
3
|
/** @param {import('postcss').Result} result */
|
|
4
|
-
constructor(result: import(
|
|
4
|
+
constructor(result: import('postcss').Result);
|
|
5
5
|
/**
|
|
6
6
|
* @param {import('postcss').AtRule} rule
|
|
7
7
|
* @return {void}
|
|
8
8
|
*/
|
|
9
|
-
detect(rule: import(
|
|
9
|
+
detect(rule: import('postcss').AtRule): void;
|
|
10
10
|
}
|
|
11
|
-
import BasePlugin = require(
|
|
11
|
+
import BasePlugin = require('../plugin');
|
|
12
12
|
//# sourceMappingURL=mediaSlash0.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mediaSlash0.d.ts","sourceRoot":"","sources":["../../src/plugins/mediaSlash0.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"mediaSlash0.d.ts","sourceRoot":"","sources":["../../src/plugins/mediaSlash0.js"],"names":[],"mappings":";yBAMmC,SAAQ,UAAU;IACnD,+CAA+C;IAC/C,YAAY,MAAM,EADN,OAAO,SAAS,EAAE,MACZ,EAEjB;IACD;;;OAGG;IACH,MAAM,CAAC,IAAI,EAHA,OAAO,SAAS,EAAE,MAGlB,GAFC,IAAI,CAWf;;OAvBG,UAAU,WAAW,WAAW"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export = MediaSlash0Slash9;
|
|
2
2
|
declare class MediaSlash0Slash9 extends BasePlugin {
|
|
3
3
|
/** @param {import('postcss').Result} result */
|
|
4
|
-
constructor(result: import(
|
|
4
|
+
constructor(result: import('postcss').Result);
|
|
5
5
|
/**
|
|
6
6
|
* @param {import('postcss').AtRule} rule
|
|
7
7
|
* @return {void}
|
|
8
8
|
*/
|
|
9
|
-
detect(rule: import(
|
|
9
|
+
detect(rule: import('postcss').AtRule): void;
|
|
10
10
|
}
|
|
11
|
-
import BasePlugin = require(
|
|
11
|
+
import BasePlugin = require('../plugin');
|
|
12
12
|
//# sourceMappingURL=mediaSlash0Slash9.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mediaSlash0Slash9.d.ts","sourceRoot":"","sources":["../../src/plugins/mediaSlash0Slash9.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"mediaSlash0Slash9.d.ts","sourceRoot":"","sources":["../../src/plugins/mediaSlash0Slash9.js"],"names":[],"mappings":";+BAMyC,SAAQ,UAAU;IACzD,+CAA+C;IAC/C,YAAY,MAAM,EADN,OAAO,SAAS,EAAE,MACZ,EAEjB;IAED;;;OAGG;IACH,MAAM,CAAC,IAAI,EAHA,OAAO,SAAS,EAAE,MAGlB,GAFC,IAAI,CAWf;;OAxBG,UAAU,WAAW,WAAW"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export = MediaSlash9;
|
|
2
2
|
declare class MediaSlash9 extends BasePlugin {
|
|
3
3
|
/** @param {import('postcss').Result=} result */
|
|
4
|
-
constructor(result?: import(
|
|
4
|
+
constructor(result?: import('postcss').Result | undefined);
|
|
5
5
|
/**
|
|
6
6
|
* @param {import('postcss').AtRule} rule
|
|
7
7
|
* @return {void}
|
|
8
8
|
*/
|
|
9
|
-
detect(rule: import(
|
|
9
|
+
detect(rule: import('postcss').AtRule): void;
|
|
10
10
|
}
|
|
11
|
-
import BasePlugin = require(
|
|
11
|
+
import BasePlugin = require('../plugin');
|
|
12
12
|
//# sourceMappingURL=mediaSlash9.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mediaSlash9.d.ts","sourceRoot":"","sources":["../../src/plugins/mediaSlash9.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"mediaSlash9.d.ts","sourceRoot":"","sources":["../../src/plugins/mediaSlash9.js"],"names":[],"mappings":";yBAMmC,SAAQ,UAAU;IACnD,gDAAgD;IAChD,YAAY,MAAM,AADd,CAA0C,EAAlC,OAAO,SAAS,EAAE,MAAM,YAClB,EAEjB;IAED;;;OAGG;IACH,MAAM,CAAC,IAAI,EAHA,OAAO,SAAS,EAAE,MAGlB,GAFC,IAAI,CAWf;;OAxBG,UAAU,WAAW,WAAW"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export = Slash9;
|
|
2
2
|
declare class Slash9 extends BasePlugin {
|
|
3
3
|
/** @param {import('postcss').Result=} result */
|
|
4
|
-
constructor(result?: import(
|
|
4
|
+
constructor(result?: import('postcss').Result | undefined);
|
|
5
5
|
/**
|
|
6
6
|
* @param {import('postcss').Declaration} decl
|
|
7
7
|
* @return {void}
|
|
8
8
|
*/
|
|
9
|
-
detect(decl: import(
|
|
9
|
+
detect(decl: import('postcss').Declaration): void;
|
|
10
10
|
}
|
|
11
|
-
import BasePlugin = require(
|
|
11
|
+
import BasePlugin = require('../plugin.js');
|
|
12
12
|
//# sourceMappingURL=slash9.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slash9.d.ts","sourceRoot":"","sources":["../../src/plugins/slash9.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"slash9.d.ts","sourceRoot":"","sources":["../../src/plugins/slash9.js"],"names":[],"mappings":";oBAM8B,SAAQ,UAAU;IAC9C,gDAAgD;IAChD,YAAY,MAAM,AADd,CAA0C,EAAlC,OAAO,SAAS,EAAE,MAAM,YAClB,EAEjB;IAED;;;OAGG;IACH,MAAM,CAAC,IAAI,EAHA,OAAO,SAAS,EAAE,WAGlB,GAFC,IAAI,CAUf;;OAvBG,UAAU,WAAW,cAAc"}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
export = StarHtml;
|
|
2
2
|
declare class StarHtml extends BasePlugin {
|
|
3
3
|
/** @param {import('postcss').Result=} result */
|
|
4
|
-
constructor(result?: import(
|
|
4
|
+
constructor(result?: import('postcss').Result | undefined);
|
|
5
5
|
/**
|
|
6
6
|
* @param {import('postcss').Rule} rule
|
|
7
7
|
* @return {void}
|
|
8
8
|
*/
|
|
9
|
-
detect(rule: import(
|
|
9
|
+
detect(rule: import('postcss').Rule): void;
|
|
10
10
|
/**
|
|
11
11
|
* @param {import('postcss').Rule} rule
|
|
12
12
|
* @return {parser.SyncProcessor<void>}
|
|
13
13
|
*/
|
|
14
|
-
analyse(rule: import(
|
|
14
|
+
analyse(rule: import('postcss').Rule): parser.SyncProcessor<void>;
|
|
15
15
|
}
|
|
16
|
-
import
|
|
17
|
-
import
|
|
16
|
+
import parser = require('postcss-selector-parser');
|
|
17
|
+
import BasePlugin = require('../plugin');
|
|
18
18
|
//# sourceMappingURL=starHtml.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"starHtml.d.ts","sourceRoot":"","sources":["../../src/plugins/starHtml.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"starHtml.d.ts","sourceRoot":"","sources":["../../src/plugins/starHtml.js"],"names":[],"mappings":";sBAUgC,SAAQ,UAAU;IAChD,gDAAgD;IAChD,YAAY,MAAM,AADd,CAA0C,EAAlC,OAAO,SAAS,EAAE,MAAM,YAClB,EAEjB;IAED;;;OAGG;IACH,MAAM,CAAC,IAAI,EAHA,OAAO,SAAS,EAAE,IAGlB,GAFC,IAAI,CAOf;IAED;;;OAGG;IACH,OAAO,CAAC,IAAI,EAHD,OAAO,SAAS,EAAE,IAGjB,GAFA,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,CAmBrC;;OA/CG,MAAM,WAAW,yBAAyB;OAG1C,UAAU,WAAW,WAAW"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export = TrailingSlashComma;
|
|
2
2
|
declare class TrailingSlashComma extends BasePlugin {
|
|
3
3
|
/** @param {import('postcss').Result=} result */
|
|
4
|
-
constructor(result?: import(
|
|
4
|
+
constructor(result?: import('postcss').Result | undefined);
|
|
5
5
|
/**
|
|
6
6
|
* @param {import('postcss').Rule} rule
|
|
7
7
|
* @return {void}
|
|
8
8
|
*/
|
|
9
|
-
detect(rule: import(
|
|
9
|
+
detect(rule: import('postcss').Rule): void;
|
|
10
10
|
}
|
|
11
|
-
import BasePlugin = require(
|
|
11
|
+
import BasePlugin = require('../plugin');
|
|
12
12
|
//# sourceMappingURL=trailingSlashComma.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trailingSlashComma.d.ts","sourceRoot":"","sources":["../../src/plugins/trailingSlashComma.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"trailingSlashComma.d.ts","sourceRoot":"","sources":["../../src/plugins/trailingSlashComma.js"],"names":[],"mappings":";gCAO0C,SAAQ,UAAU;IAC1D,gDAAgD;IAChD,YAAY,MAAM,AADd,CAA0C,EAAlC,OAAO,SAAS,EAAE,MAAM,YAClB,EAEjB;IAED;;;OAGG;IACH,MAAM,CAAC,IAAI,EAHA,OAAO,SAAS,EAAE,IAGlB,GAFC,IAAI,CAmBf;;OAjCG,UAAU,WAAW,WAAW"}
|