postcss-normalize-timing-functions 8.0.3 → 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 CHANGED
@@ -1,16 +1,12 @@
1
1
  {
2
2
  "name": "postcss-normalize-timing-functions",
3
- "version": "8.0.3",
3
+ "version": "9.0.0",
4
4
  "description": "Normalize CSS animation/transition timing functions.",
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
  "LICENSE-MIT",
@@ -28,14 +24,14 @@
28
24
  },
29
25
  "repository": {
30
26
  "type": "git",
31
- "url": "cssnano/cssnano"
27
+ "url": "git+https://github.com/cssnano/cssnano.git"
32
28
  },
33
29
  "bugs": {
34
30
  "url": "https://github.com/cssnano/cssnano/issues"
35
31
  },
36
32
  "homepage": "https://github.com/cssnano/cssnano",
37
33
  "engines": {
38
- "node": "^22.11.0 || ^24.11.0 || >=26.0"
34
+ "node": "^22.22.3 || ^24.15.0 || >=26.0"
39
35
  },
40
36
  "devDependencies": {
41
37
  "postcss": "^8.5.26"
@@ -43,6 +39,7 @@
43
39
  "peerDependencies": {
44
40
  "postcss": "^8.5.26"
45
41
  },
42
+ "type": "module",
46
43
  "scripts": {
47
44
  "test": "node --test"
48
45
  }
package/src/index.js CHANGED
@@ -1,8 +1,7 @@
1
- 'use strict';
2
- const valueParser = require('postcss-value-parser');
1
+ import valueParser from 'postcss-value-parser';
3
2
 
4
3
  /** @type {(node: valueParser.Node) => number} */
5
- const getValue = (node) => parseFloat(node.value);
4
+ const getValue = (node) => Number.parseFloat(node.value);
6
5
  const animationTransitionRegex =
7
6
  /^(-\w+-)?(animation|transition)(-timing-function)?$/i;
8
7
 
@@ -151,8 +150,8 @@ function pluginCreator() {
151
150
  },
152
151
  };
153
152
  }
154
-
153
+ /** @type {true} */
155
154
  pluginCreator.postcss = true;
156
- module.exports = /** @type {import('postcss').PluginCreator<void>}*/ (
157
- pluginCreator
158
- );
155
+ const moduleExports = pluginCreator;
156
+
157
+ export { moduleExports as default, moduleExports as 'module.exports' };
package/types/index.d.ts CHANGED
@@ -1,3 +1,10 @@
1
- declare const _exports: import("postcss").PluginCreator<void>;
2
- export = _exports;
1
+ /**
2
+ * @return {import('postcss').Plugin}
3
+ */
4
+ declare function pluginCreator(): import('postcss').Plugin;
5
+ declare namespace pluginCreator {
6
+ var postcss: true;
7
+ }
8
+ declare const moduleExports: typeof pluginCreator;
9
+ export { moduleExports as default, moduleExports as 'module.exports' };
3
10
  //# sourceMappingURL=index.d.ts.map
@@ -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":"AA2HA;;GAEG;AACH,iBAAS,aAAa,IAFV,OAAO,SAAS,EAAE,MAAM,CA2BnC;kBAzBQ,aAAa;iBA0BX,IAAI;;AAEf,QAAA,MAAM,aAAa,sBAAgB,CAAC;AAEpC,OAAO,EAAE,aAAa,IAAI,OAAO,EAAE,aAAa,IAAI,gBAAgB,EAAE,CAAC"}