postcss-normalize-charset 8.0.1 → 8.0.3
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/package.json +20 -6
- package/src/index.js +7 -2
- package/types/index.d.ts +3 -15
- package/types/index.d.ts.map +1 -1
package/package.json
CHANGED
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "postcss-normalize-charset",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.3",
|
|
4
4
|
"description": "Add necessary or remove extra charset with PostCSS",
|
|
5
|
+
"exports": {
|
|
6
|
+
".": {
|
|
7
|
+
"types": "./types/index.d.ts",
|
|
8
|
+
"default": "./src/index.js"
|
|
9
|
+
},
|
|
10
|
+
"./src": "./src/index.js",
|
|
11
|
+
"./src/index": "./src/index.js",
|
|
12
|
+
"./src/index.js": "./src/index.js",
|
|
13
|
+
"./package.json": "./package.json"
|
|
14
|
+
},
|
|
5
15
|
"keywords": [
|
|
6
16
|
"postcss",
|
|
7
17
|
"css",
|
|
@@ -15,20 +25,24 @@
|
|
|
15
25
|
"types"
|
|
16
26
|
],
|
|
17
27
|
"license": "MIT",
|
|
18
|
-
"repository":
|
|
28
|
+
"repository": {
|
|
29
|
+
"type": "git",
|
|
30
|
+
"url": "cssnano/cssnano"
|
|
31
|
+
},
|
|
19
32
|
"bugs": {
|
|
20
33
|
"url": "https://github.com/cssnano/cssnano/issues"
|
|
21
34
|
},
|
|
22
35
|
"homepage": "https://github.com/cssnano/cssnano",
|
|
23
|
-
"main": "src/index.js",
|
|
24
|
-
"types": "types/index.d.ts",
|
|
25
36
|
"engines": {
|
|
26
37
|
"node": "^22.11.0 || ^24.11.0 || >=26.0"
|
|
27
38
|
},
|
|
28
39
|
"devDependencies": {
|
|
29
|
-
"postcss": "^8.5.
|
|
40
|
+
"postcss": "^8.5.26"
|
|
30
41
|
},
|
|
31
42
|
"peerDependencies": {
|
|
32
|
-
"postcss": "^8.5.
|
|
43
|
+
"postcss": "^8.5.26"
|
|
44
|
+
},
|
|
45
|
+
"scripts": {
|
|
46
|
+
"test": "node --test"
|
|
33
47
|
}
|
|
34
48
|
}
|
package/src/index.js
CHANGED
|
@@ -7,7 +7,6 @@ const nonAscii = /[^\x00-\x7F]/;
|
|
|
7
7
|
* @typedef {{add?: boolean}} Options
|
|
8
8
|
*/
|
|
9
9
|
/**
|
|
10
|
-
* @type {import('postcss').PluginCreator<Options>}
|
|
11
10
|
* @param {Options} opts
|
|
12
11
|
* @return {import('postcss').Plugin}
|
|
13
12
|
*/
|
|
@@ -15,6 +14,10 @@ function pluginCreator(opts = {}) {
|
|
|
15
14
|
return {
|
|
16
15
|
postcssPlugin: 'postcss-normalize-' + charset,
|
|
17
16
|
|
|
17
|
+
/**
|
|
18
|
+
* @param {import('postcss').Root} css
|
|
19
|
+
* @param {import('postcss').Helpers} helpers
|
|
20
|
+
*/
|
|
18
21
|
OnceExit(css, { AtRule }) {
|
|
19
22
|
/** @type {import('postcss').AtRule | undefined} */
|
|
20
23
|
let charsetRule;
|
|
@@ -53,4 +56,6 @@ function pluginCreator(opts = {}) {
|
|
|
53
56
|
}
|
|
54
57
|
|
|
55
58
|
pluginCreator.postcss = true;
|
|
56
|
-
module.exports =
|
|
59
|
+
module.exports = /** @type {import('postcss').PluginCreator<Options>}*/ (
|
|
60
|
+
pluginCreator
|
|
61
|
+
);
|
package/types/index.d.ts
CHANGED
|
@@ -1,18 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @type {import('postcss').PluginCreator<Options>}
|
|
7
|
-
* @param {Options} opts
|
|
8
|
-
* @return {import('postcss').Plugin}
|
|
9
|
-
*/
|
|
10
|
-
declare function pluginCreator(opts?: Options): import("postcss").Plugin;
|
|
11
|
-
declare namespace pluginCreator {
|
|
12
|
-
export { postcss, Options };
|
|
13
|
-
}
|
|
14
|
-
declare var postcss: true;
|
|
15
|
-
type Options = {
|
|
1
|
+
declare const _exports: import("postcss").PluginCreator<Options>;
|
|
2
|
+
export = _exports;
|
|
3
|
+
export type Options = {
|
|
16
4
|
add?: boolean;
|
|
17
5
|
};
|
|
18
6
|
//# 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":";;AAMG,YAA2B,OAAO,GAAxB;IAAC,GAAG,CAAC,EAAE,OAAO,CAAA;CAAC,CAAS"}
|