@tbela99/css-parser 0.0.1-alpha5 → 0.0.1-rc2

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/web/index.js CHANGED
@@ -1,8 +1,12 @@
1
1
  import { parse as parse$1 } from '../lib/parser/parse.js';
2
- export { deduplicate, deduplicateRule, hasDeclaration, reduceSelector } from '../lib/parser/deduplicate.js';
2
+ export { parseString, urlTokenMatcher } from '../lib/parser/parse.js';
3
+ export { tokenize } from '../lib/parser/tokenize.js';
4
+ export { isAngle, isAtKeyword, isDigit, isDimension, isFrequency, isFunction, isHash, isHexColor, isHexDigit, isIdent, isIdentCodepoint, isIdentStart, isLength, isNewLine, isNumber, isPercentage, isPseudo, isResolution, isTime, isWhiteSpace, parseDimension } from '../lib/parser/utils/syntax.js';
5
+ export { getConfig } from '../lib/parser/utils/config.js';
3
6
  export { render, renderToken } from '../lib/renderer/render.js';
4
- export { walk } from '../lib/walker/walk.js';
5
7
  import { transform as transform$1 } from '../lib/transform.js';
8
+ export { combinators, hasDeclaration, minify, minifyRule, reduceSelector } from '../lib/ast/minify.js';
9
+ export { walk } from '../lib/ast/walk.js';
6
10
  import { load } from './load.js';
7
11
  import { resolve, dirname } from '../lib/fs/resolve.js';
8
12
  export { matchUrl } from '../lib/fs/resolve.js';
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "@tbela99/css-parser",
3
3
  "description": "CSS parser for node and the browser",
4
- "version": "0.0.1-alpha5",
4
+ "version": "0.0.1-rc2",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",
7
+ "./umd": "./dist/index-umd-web.js",
7
8
  "./web": "./dist/web/index.js",
8
9
  "./cjs": "./dist/index.cjs"
9
10
  },
@@ -11,9 +12,10 @@
11
12
  "typings": "dist/index.d.ts",
12
13
  "scripts": {
13
14
  "build": "rollup -c",
14
- "debug": "web-test-runner \"test/**/*.web.js\" --manual --open --node-resolve --root-dir=.",
15
- "test": "web-test-runner \"test/**/*.web-spec.js\" --node-resolve --root-dir=.; mocha --reporter-options='maxDiffSize=181920' \"test/**/*.spec.js\"",
16
- "test:cov": "web-test-runner \"test/**/*.web-spec.js\" --node-resolve --root-dir=. --coverage; c8 --reporter=html --reporter=text --reporter=json-summary mocha --reporter-options='maxDiffSize=181920' \"test/**/*.spec.js\""
15
+ "test": "web-test-runner \"test/**/*.web-spec.js\" --node-resolve --root-dir=.; mocha --reporter-options='maxDiffSize=1801920' \"test/**/*.spec.js\"",
16
+ "test:cov": "web-test-runner \"test/**/*.web-spec.js\" --node-resolve --root-dir=. --coverage; c8 --reporter=html --reporter=text --reporter=json-summary mocha --reporter-options='maxDiffSize=1801920' \"test/**/*.spec.js\"",
17
+ "profile": "node --inspect-brk test/inspect.mjs",
18
+ "debug": "web-test-runner \"test/**/*.web.js\" --manual --open --node-resolve --root-dir=."
17
19
  },
18
20
  "repository": {
19
21
  "type": "git",
@@ -22,9 +24,14 @@
22
24
  "keywords": [
23
25
  "parser",
24
26
  "css",
27
+ "css parser",
25
28
  "css-parser",
26
29
  "node",
27
- "browser"
30
+ "ast",
31
+ "browser",
32
+ "css nesting",
33
+ "css compiler",
34
+ "nested css"
28
35
  ],
29
36
  "author": "Thierry Bela",
30
37
  "license": "MIT OR LGPL-3.0",
File without changes