postcss-calc 8.2.2 → 8.2.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/dist/index.js +6 -6
- package/package.json +8 -8
- package/types/index.d.ts +7 -13
package/dist/index.js
CHANGED
|
@@ -15,9 +15,13 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
15
15
|
* warnWhenCannotResolve?: boolean,
|
|
16
16
|
* mediaQueries?: boolean,
|
|
17
17
|
* selectors?: boolean}} PostCssCalcOptions
|
|
18
|
-
*
|
|
19
|
-
* @param {PostCssCalcOptions} opts
|
|
20
18
|
*/
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* @type {import('postcss').PluginCreator<PostCssCalcOptions>}
|
|
22
|
+
* @param {PostCssCalcOptions} opts
|
|
23
|
+
* @return {import('postcss').Plugin}
|
|
24
|
+
*/
|
|
21
25
|
function pluginCreator(opts) {
|
|
22
26
|
const options = Object.assign({
|
|
23
27
|
precision: 5,
|
|
@@ -29,10 +33,6 @@ function pluginCreator(opts) {
|
|
|
29
33
|
return {
|
|
30
34
|
postcssPlugin: 'postcss-calc',
|
|
31
35
|
|
|
32
|
-
/**
|
|
33
|
-
* @param {import('postcss').Root} css
|
|
34
|
-
* @param {{result: import('postcss').Result}} helpers
|
|
35
|
-
*/
|
|
36
36
|
OnceExit(css, {
|
|
37
37
|
result
|
|
38
38
|
}) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "postcss-calc",
|
|
3
|
-
"version": "8.2.
|
|
3
|
+
"version": "8.2.3",
|
|
4
4
|
"description": "PostCSS plugin to reduce calc()",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"css",
|
|
@@ -29,17 +29,17 @@
|
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@babel/cli": "^7.16.
|
|
33
|
-
"@babel/core": "^7.16.
|
|
34
|
-
"@babel/plugin-transform-modules-commonjs": "^7.16.
|
|
35
|
-
"@babel/register": "^7.16.
|
|
32
|
+
"@babel/cli": "^7.16.8",
|
|
33
|
+
"@babel/core": "^7.16.12",
|
|
34
|
+
"@babel/plugin-transform-modules-commonjs": "^7.16.8",
|
|
35
|
+
"@babel/register": "^7.16.9",
|
|
36
36
|
"babel-plugin-add-module-exports": "^1.0.0",
|
|
37
|
-
"eslint": "^8.
|
|
38
|
-
"eslint-plugin-import": "^2.25.
|
|
37
|
+
"eslint": "^8.7.0",
|
|
38
|
+
"eslint-plugin-import": "^2.25.4",
|
|
39
39
|
"jison-gho": "^0.6.1-216",
|
|
40
40
|
"postcss": "^8.2.2",
|
|
41
41
|
"rimraf": "^3.0.2",
|
|
42
|
-
"typescript": "^4.5.
|
|
42
|
+
"typescript": "^4.5.5",
|
|
43
43
|
"uvu": "^0.5.3"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
package/types/index.d.ts
CHANGED
|
@@ -12,19 +12,13 @@ export type PostCssCalcOptions = {
|
|
|
12
12
|
* warnWhenCannotResolve?: boolean,
|
|
13
13
|
* mediaQueries?: boolean,
|
|
14
14
|
* selectors?: boolean}} PostCssCalcOptions
|
|
15
|
-
*
|
|
16
|
-
* @param {PostCssCalcOptions} opts
|
|
17
15
|
*/
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
OnceExit(css: import('postcss').Root, { result }: {
|
|
25
|
-
result: import('postcss').Result;
|
|
26
|
-
}): void;
|
|
27
|
-
};
|
|
16
|
+
/**
|
|
17
|
+
* @type {import('postcss').PluginCreator<PostCssCalcOptions>}
|
|
18
|
+
* @param {PostCssCalcOptions} opts
|
|
19
|
+
* @return {import('postcss').Plugin}
|
|
20
|
+
*/
|
|
21
|
+
declare function pluginCreator(opts: PostCssCalcOptions): import('postcss').Plugin;
|
|
28
22
|
declare namespace pluginCreator {
|
|
29
|
-
const postcss:
|
|
23
|
+
const postcss: true;
|
|
30
24
|
}
|