diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2023-12-21 22:46:53 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2023-12-21 22:46:53 +0800 |
| commit | f06956efd2dc4bf77244a9fcce2b883a00b925af (patch) | |
| tree | 0123cb73ce67f1f4b17e1d6cbabff076ee44e31b /node_modules/@csstools/postcss-exponential-functions/dist | |
| parent | 8d980c13970c15b6d2312b6fc4ac51698dd0d220 (diff) | |
updated node modules
Diffstat (limited to 'node_modules/@csstools/postcss-exponential-functions/dist')
5 files changed, 9 insertions, 8 deletions
diff --git a/node_modules/@csstools/postcss-exponential-functions/dist/calc.d.ts b/node_modules/@csstools/postcss-exponential-functions/dist/calc.d.ts deleted file mode 100644 index 5a1ee11e..00000000 --- a/node_modules/@csstools/postcss-exponential-functions/dist/calc.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare function calc(css: string): string; diff --git a/node_modules/@csstools/postcss-exponential-functions/dist/checks.d.ts b/node_modules/@csstools/postcss-exponential-functions/dist/checks.d.ts deleted file mode 100644 index 6623beb7..00000000 --- a/node_modules/@csstools/postcss-exponential-functions/dist/checks.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare const FUNCTION_NAME_REGEXP: RegExp; -export declare const FUNCTION_CALL_REGEXP: RegExp; diff --git a/node_modules/@csstools/postcss-exponential-functions/dist/index.cjs b/node_modules/@csstools/postcss-exponential-functions/dist/index.cjs index defdaba9..111e7899 100644 --- a/node_modules/@csstools/postcss-exponential-functions/dist/index.cjs +++ b/node_modules/@csstools/postcss-exponential-functions/dist/index.cjs @@ -1 +1 @@ -"use strict";var e=require("@csstools/css-calc");const s=new RegExp(`(${["exp","hypot","log","pow","sqrt"].join("|")})\\(`,"i"),creator=o=>{const t=Object.assign({preserve:!1},o);return{postcssPlugin:"postcss-exponential-functions",Declaration(o){if(!s.test(o.value))return;const c=e.calc(o.value);c!==o.value&&(o.cloneBefore({value:c}),t.preserve||o.remove())}}};creator.postcss=!0,module.exports=creator; +"use strict";var e=require("@csstools/css-calc");const s=/(?<![-\w])(?:exp|hypot|log|pow|sqrt)\(/i,creator=t=>{const o=Object.assign({preserve:!1},t);return{postcssPlugin:"postcss-exponential-functions",Declaration(t){if(!s.test(t.value))return;const c=e.calc(t.value);c!==t.value&&(t.cloneBefore({value:c}),o.preserve||t.remove())}}};creator.postcss=!0,module.exports=creator; diff --git a/node_modules/@csstools/postcss-exponential-functions/dist/index.d.ts b/node_modules/@csstools/postcss-exponential-functions/dist/index.d.ts index d216e578..44407b78 100644 --- a/node_modules/@csstools/postcss-exponential-functions/dist/index.d.ts +++ b/node_modules/@csstools/postcss-exponential-functions/dist/index.d.ts @@ -1,8 +1,12 @@ import type { PluginCreator } from 'postcss'; + +declare const creator: PluginCreator<pluginOptions>; +export default creator; + /** postcss-exponential-functions plugin options */ -export type pluginOptions = { +export declare type pluginOptions = { /** Preserve the original notation. default: false */ preserve?: boolean; }; -declare const creator: PluginCreator<pluginOptions>; -export default creator; + +export { } diff --git a/node_modules/@csstools/postcss-exponential-functions/dist/index.mjs b/node_modules/@csstools/postcss-exponential-functions/dist/index.mjs index 748e9dbb..e27788f6 100644 --- a/node_modules/@csstools/postcss-exponential-functions/dist/index.mjs +++ b/node_modules/@csstools/postcss-exponential-functions/dist/index.mjs @@ -1 +1 @@ -import{calc as e}from"@csstools/css-calc";const s=new RegExp(`(${["exp","hypot","log","pow","sqrt"].join("|")})\\(`,"i"),creator=o=>{const t=Object.assign({preserve:!1},o);return{postcssPlugin:"postcss-exponential-functions",Declaration(o){if(!s.test(o.value))return;const n=e(o.value);n!==o.value&&(o.cloneBefore({value:n}),t.preserve||o.remove())}}};creator.postcss=!0;export{creator as default}; +import{calc as e}from"@csstools/css-calc";const s=/(?<![-\w])(?:exp|hypot|log|pow|sqrt)\(/i,creator=o=>{const t=Object.assign({preserve:!1},o);return{postcssPlugin:"postcss-exponential-functions",Declaration(o){if(!s.test(o.value))return;const r=e(o.value);r!==o.value&&(o.cloneBefore({value:r}),t.preserve||o.remove())}}};creator.postcss=!0;export{creator as default}; |
