postcss-normalize-charset 8.0.5 → 9.0.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/README.md +1 -1
- package/package.json +5 -5
- package/src/index.js +4 -5
- package/types/index.d.ts +13 -2
- package/types/index.d.ts.map +1 -1
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "postcss-normalize-charset",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "9.0.1",
|
|
4
4
|
"description": "Add necessary or remove extra charset with PostCSS",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
7
7
|
"types": "./types/index.d.ts",
|
|
8
8
|
"default": "./src/index.js"
|
|
9
9
|
},
|
|
10
|
-
"./src": "./src/index.js",
|
|
11
|
-
"./src/index": "./src/index.js",
|
|
12
|
-
"./src/index.js": "./src/index.js",
|
|
13
10
|
"./package.json": "./package.json"
|
|
14
11
|
},
|
|
12
|
+
"main": "./src/index.js",
|
|
13
|
+
"types": "./types/index.d.ts",
|
|
15
14
|
"keywords": [
|
|
16
15
|
"postcss",
|
|
17
16
|
"css",
|
|
@@ -34,7 +33,7 @@
|
|
|
34
33
|
},
|
|
35
34
|
"homepage": "https://github.com/cssnano/cssnano",
|
|
36
35
|
"engines": {
|
|
37
|
-
"node": "^22.
|
|
36
|
+
"node": "^22.22.3 || ^24.15.0 || >=26.0"
|
|
38
37
|
},
|
|
39
38
|
"devDependencies": {
|
|
40
39
|
"postcss": "^8.5.26"
|
|
@@ -42,6 +41,7 @@
|
|
|
42
41
|
"peerDependencies": {
|
|
43
42
|
"postcss": "^8.5.26"
|
|
44
43
|
},
|
|
44
|
+
"type": "module",
|
|
45
45
|
"scripts": {
|
|
46
46
|
"test": "node --test"
|
|
47
47
|
}
|
package/src/index.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
'use strict';
|
|
2
1
|
const charset = 'charset';
|
|
3
2
|
// eslint-disable-next-line no-control-regex
|
|
4
3
|
const nonAscii = /[^\x00-\x7F]/;
|
|
@@ -63,8 +62,8 @@ function pluginCreator(opts = {}) {
|
|
|
63
62
|
},
|
|
64
63
|
};
|
|
65
64
|
}
|
|
66
|
-
|
|
65
|
+
/** @type {true} */
|
|
67
66
|
pluginCreator.postcss = true;
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
67
|
+
const moduleExports = pluginCreator;
|
|
68
|
+
|
|
69
|
+
export { moduleExports as default, moduleExports as 'module.exports' };
|
package/types/index.d.ts
CHANGED
|
@@ -1,6 +1,17 @@
|
|
|
1
|
-
declare const _exports: import("postcss").PluginCreator<Options>;
|
|
2
|
-
export = _exports;
|
|
3
1
|
export type Options = {
|
|
4
2
|
add?: boolean;
|
|
5
3
|
};
|
|
4
|
+
/**
|
|
5
|
+
* @typedef {{add?: boolean}} Options
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* @param {Options} opts
|
|
9
|
+
* @return {import('postcss').Plugin}
|
|
10
|
+
*/
|
|
11
|
+
declare function pluginCreator(opts?: Options): import('postcss').Plugin;
|
|
12
|
+
declare namespace pluginCreator {
|
|
13
|
+
var postcss: true;
|
|
14
|
+
}
|
|
15
|
+
declare const moduleExports: typeof pluginCreator;
|
|
16
|
+
export { moduleExports as default, moduleExports as 'module.exports' };
|
|
6
17
|
//# 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":"AAKG,YAA2B,OAAO,GAAxB;IAAC,GAAG,CAAC,EAAE,OAAO,CAAA;CAAC,CAAS;AADrC;;GAEG;AACH;;;GAGG;AACH,iBAAS,aAAa,CAAC,IAAI,GAHhB,OAGqB,GAFpB,OAAO,SAAS,EAAE,MAAM,CAsDnC;kBApDQ,aAAa;iBAqDX,IAAI;;AAEf,QAAA,MAAM,aAAa,sBAAgB,CAAC;AAEpC,OAAO,EAAE,aAAa,IAAI,OAAO,EAAE,aAAa,IAAI,gBAAgB,EAAE,CAAC"}
|