summaryrefslogtreecommitdiff
path: root/node_modules/@csstools/postcss-exponential-functions
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2023-12-21 22:46:53 +0800
committerlittleblack111 <littleblack11111@gmail.com>2023-12-21 22:46:53 +0800
commitf06956efd2dc4bf77244a9fcce2b883a00b925af (patch)
tree0123cb73ce67f1f4b17e1d6cbabff076ee44e31b /node_modules/@csstools/postcss-exponential-functions
parent8d980c13970c15b6d2312b6fc4ac51698dd0d220 (diff)
updated node modules
Diffstat (limited to 'node_modules/@csstools/postcss-exponential-functions')
-rw-r--r--node_modules/@csstools/postcss-exponential-functions/CHANGELOG.md9
-rw-r--r--node_modules/@csstools/postcss-exponential-functions/dist/calc.d.ts1
-rw-r--r--node_modules/@csstools/postcss-exponential-functions/dist/checks.d.ts2
-rw-r--r--node_modules/@csstools/postcss-exponential-functions/dist/index.cjs2
-rw-r--r--node_modules/@csstools/postcss-exponential-functions/dist/index.d.ts10
-rw-r--r--node_modules/@csstools/postcss-exponential-functions/dist/index.mjs2
-rw-r--r--node_modules/@csstools/postcss-exponential-functions/package.json43
7 files changed, 31 insertions, 38 deletions
diff --git a/node_modules/@csstools/postcss-exponential-functions/CHANGELOG.md b/node_modules/@csstools/postcss-exponential-functions/CHANGELOG.md
index cd08f07e..d937ae32 100644
--- a/node_modules/@csstools/postcss-exponential-functions/CHANGELOG.md
+++ b/node_modules/@csstools/postcss-exponential-functions/CHANGELOG.md
@@ -1,5 +1,14 @@
# Changes to PostCSS Exponential Functions
+### 1.0.2
+
+_December 15, 2023_
+
+- Fix type definitions
+- Updated [`@csstools/css-tokenizer`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-tokenizer) to [`2.2.2`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-tokenizer/CHANGELOG.md#222) (patch)
+- Updated [`@csstools/css-parser-algorithms`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-parser-algorithms) to [`2.4.0`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-parser-algorithms/CHANGELOG.md#240) (minor)
+- Updated [`@csstools/css-calc`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-calc) to [`1.1.5`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-calc/CHANGELOG.md#115) (patch)
+
### 1.0.1
_September 24, 2023_
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};
diff --git a/node_modules/@csstools/postcss-exponential-functions/package.json b/node_modules/@csstools/postcss-exponential-functions/package.json
index 5b6fd683..77d3bd3f 100644
--- a/node_modules/@csstools/postcss-exponential-functions/package.json
+++ b/node_modules/@csstools/postcss-exponential-functions/package.json
@@ -1,7 +1,7 @@
{
"name": "@csstools/postcss-exponential-functions",
"description": "Use pow(), sqrt(), hypot(), log(), exp() exponential functions in CSS",
- "version": "1.0.1",
+ "version": "1.0.2",
"contributors": [
{
"name": "Antonio Laguna",
@@ -27,15 +27,18 @@
"engines": {
"node": "^14 || ^16 || >=18"
},
+ "type": "module",
"main": "dist/index.cjs",
"module": "dist/index.mjs",
- "types": "dist/index.d.ts",
"exports": {
".": {
- "types": "./dist/index.d.ts",
- "import": "./dist/index.mjs",
- "require": "./dist/index.cjs",
- "default": "./dist/index.mjs"
+ "import": {
+ "types": "./dist/index.d.ts",
+ "default": "./dist/index.mjs"
+ },
+ "require": {
+ "default": "./dist/index.cjs"
+ }
}
},
"files": [
@@ -45,24 +48,13 @@
"dist"
],
"dependencies": {
- "@csstools/css-calc": "^1.1.4",
- "@csstools/css-parser-algorithms": "^2.3.2",
- "@csstools/css-tokenizer": "^2.2.1"
+ "@csstools/css-calc": "^1.1.5",
+ "@csstools/css-parser-algorithms": "^2.4.0",
+ "@csstools/css-tokenizer": "^2.2.2"
},
"peerDependencies": {
"postcss": "^8.4"
},
- "devDependencies": {
- "@csstools/postcss-tape": "*"
- },
- "scripts": {
- "build": "rollup -c ../../rollup/default.mjs",
- "docs": "node ../../.github/bin/generate-docs/install.mjs && node ../../.github/bin/generate-docs/readme.mjs",
- "lint": "node ../../.github/bin/format-package-json.mjs",
- "prepublishOnly": "npm run build && npm run test",
- "test": "node .tape.mjs && node ./test/_import.mjs && node ./test/_require.cjs",
- "test:rewrite-expects": "REWRITE_EXPECTS=true node .tape.mjs"
- },
"homepage": "https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-exponential-functions#readme",
"repository": {
"type": "git",
@@ -78,14 +70,5 @@
"postcss-plugin",
"pow",
"sqrt"
- ],
- "csstools": {
- "cssdbId": "exponential-functions",
- "exportName": "postcssExponentialFunctions",
- "humanReadableName": "PostCSS Exponential Functions",
- "specUrl": "https://www.w3.org/TR/css-values-4/#exponent-funcs"
- },
- "volta": {
- "extends": "../../package.json"
- }
+ ]
}