postcss-normalize-string 8.0.4 → 9.0.0
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 +4 -7
- package/src/index.js +5 -6
- package/types/index.d.ts +11 -2
- package/types/index.d.ts.map +1 -1
package/package.json
CHANGED
|
@@ -1,16 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "postcss-normalize-string",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "9.0.0",
|
|
4
4
|
"description": "Normalize wrapping quotes for CSS string literals.",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
7
7
|
"types": "./types/index.d.ts",
|
|
8
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"
|
|
9
|
+
}
|
|
14
10
|
},
|
|
15
11
|
"files": [
|
|
16
12
|
"src",
|
|
@@ -40,7 +36,7 @@
|
|
|
40
36
|
"url": "https://github.com/cssnano/cssnano/issues"
|
|
41
37
|
},
|
|
42
38
|
"engines": {
|
|
43
|
-
"node": "^22.
|
|
39
|
+
"node": "^22.22.3 || ^24.15.0 || >=26.0"
|
|
44
40
|
},
|
|
45
41
|
"devDependencies": {
|
|
46
42
|
"postcss": "^8.5.26"
|
|
@@ -48,6 +44,7 @@
|
|
|
48
44
|
"peerDependencies": {
|
|
49
45
|
"postcss": "^8.5.26"
|
|
50
46
|
},
|
|
47
|
+
"type": "module",
|
|
51
48
|
"scripts": {
|
|
52
49
|
"test": "node --test"
|
|
53
50
|
}
|
package/src/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
const valueParser = require('postcss-value-parser');
|
|
1
|
+
import valueParser from 'postcss-value-parser';
|
|
3
2
|
|
|
4
3
|
/*
|
|
5
4
|
* Constants (parser usage)
|
|
@@ -317,8 +316,8 @@ function pluginCreator(opts) {
|
|
|
317
316
|
},
|
|
318
317
|
};
|
|
319
318
|
}
|
|
320
|
-
|
|
319
|
+
/** @type {true} */
|
|
321
320
|
pluginCreator.postcss = true;
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
321
|
+
const moduleExports = pluginCreator;
|
|
322
|
+
|
|
323
|
+
export { moduleExports as default, moduleExports as 'module.exports' };
|
package/types/index.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
declare const _exports: import("postcss").PluginCreator<Options>;
|
|
2
|
-
export = _exports;
|
|
3
1
|
declare const T_ESCAPED_SINGLE_QUOTE: {
|
|
4
2
|
type: string;
|
|
5
3
|
value: string;
|
|
@@ -30,4 +28,15 @@ export type StringAst = {
|
|
|
30
28
|
export type Options = {
|
|
31
29
|
preferredQuote?: 'double' | 'single';
|
|
32
30
|
};
|
|
31
|
+
/** @typedef {{preferredQuote?: 'double' | 'single'}} Options */
|
|
32
|
+
/**
|
|
33
|
+
* @param {Options} opts
|
|
34
|
+
* @return {import('postcss').Plugin}
|
|
35
|
+
*/
|
|
36
|
+
declare function pluginCreator(opts: Options): import('postcss').Plugin;
|
|
37
|
+
declare namespace pluginCreator {
|
|
38
|
+
var postcss: true;
|
|
39
|
+
}
|
|
40
|
+
declare const moduleExports: typeof pluginCreator;
|
|
41
|
+
export { moduleExports as default, moduleExports as 'module.exports' };
|
|
33
42
|
//# 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":"AAyCA,QAAA,MAAM,sBAAsB;;;CAAiD,CAAC;AAC9E,QAAA,MAAM,sBAAsB;;;CAAiD,CAAC;AAC9E,QAAA,MAAM,cAAc;;;CAAkD,CAAC;AAEvE,QAAA,MAAM,SAAS;;;CAAwC,CAAC;AAEpD,YAAoH,aAAa,GAAvH,OAAO,sBAAsB,GAAG,OAAO,sBAAsB,GAAG,OAAO,cAAc,GAAG,OAAO,SAAS,CAAe;AAElI,YAE6B,SAAS,GAF5B;IAAC,KAAK,EAAE,aAAa,EAAE,CAAC;IACvB,KAAK,EAAE;QAAC,kBAAkB,EAAE,MAAM,CAAC;QAAC,kBAAkB,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAC,CAAC;IAC1G,MAAM,EAAE,OAAO,CAAA;CAAC,CAAW;AAoOrC,YAAkD,OAAO,GAA/C;IAAC,cAAc,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAA;CAAC,CAAS;AAA7D,gEAAgE;AAChE;;;GAGG;AACH,iBAAS,aAAa,CAAC,IAAI,EAHhB,OAGgB,GAFf,OAAO,SAAS,EAAE,MAAM,CAmCnC;kBAjCQ,aAAa;iBAkCX,IAAI;;AAEf,QAAA,MAAM,aAAa,sBAAgB,CAAC;AAEpC,OAAO,EAAE,aAAa,IAAI,OAAO,EAAE,aAAa,IAAI,gBAAgB,EAAE,CAAC"}
|