tailwindcss 3.0.0 → 3.0.4

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/peers/index.js CHANGED
@@ -928,7 +928,7 @@ var require_node = __commonJS({
928
928
  toJSON(_, inputs) {
929
929
  let fixed = {};
930
930
  let emitInputs = inputs == null;
931
- inputs = inputs || new Map();
931
+ inputs = inputs || /* @__PURE__ */ new Map();
932
932
  let inputsNextIndex = 0;
933
933
  for (let name in this) {
934
934
  if (!Object.prototype.hasOwnProperty.call(this, name)) {
@@ -1595,7 +1595,7 @@ var require_array_set = __commonJS({
1595
1595
  var hasNativeMap = typeof Map !== "undefined";
1596
1596
  function ArraySet() {
1597
1597
  this._array = [];
1598
- this._set = hasNativeMap ? new Map() : Object.create(null);
1598
+ this._set = hasNativeMap ? /* @__PURE__ */ new Map() : Object.create(null);
1599
1599
  }
1600
1600
  ArraySet.fromArray = function ArraySet_fromArray(aArray, aAllowDuplicates) {
1601
1601
  var set = new ArraySet();
@@ -14354,7 +14354,7 @@ var require_selector = __commonJS({
14354
14354
  var Selector = class extends Prefixer {
14355
14355
  constructor(name, prefixes, all) {
14356
14356
  super(name, prefixes, all);
14357
- this.regexpCache = new Map();
14357
+ this.regexpCache = /* @__PURE__ */ new Map();
14358
14358
  }
14359
14359
  check(rule) {
14360
14360
  if (rule.selector.includes(this.name)) {
@@ -16821,7 +16821,7 @@ var require_prefixes = __commonJS({
16821
16821
  Value.hack(hackDisplayFlex);
16822
16822
  Value.hack(hackDisplayGrid);
16823
16823
  Value.hack(hackFilterValue);
16824
- var declsCache = new Map();
16824
+ var declsCache = /* @__PURE__ */ new Map();
16825
16825
  var Prefixes = class {
16826
16826
  constructor(data, browsers, options = {}) {
16827
16827
  this.data = data;
@@ -17913,7 +17913,7 @@ var require_autoprefixer = __commonJS({
17913
17913
  function isPlainObject(obj) {
17914
17914
  return Object.prototype.toString.apply(obj) === "[object Object]";
17915
17915
  }
17916
- var cache = new Map();
17916
+ var cache = /* @__PURE__ */ new Map();
17917
17917
  function timeCapsule(result, prefixes) {
17918
17918
  if (prefixes.browsers.selected.length === 0) {
17919
17919
  return;
@@ -20454,7 +20454,7 @@ ${indent}${s}` : "\n";
20454
20454
  return map;
20455
20455
  }
20456
20456
  toJSON(_, ctx) {
20457
- const pair = ctx && ctx.mapAsMap ? new Map() : {};
20457
+ const pair = ctx && ctx.mapAsMap ? /* @__PURE__ */ new Map() : {};
20458
20458
  return this.addToJSMap(ctx, pair);
20459
20459
  }
20460
20460
  toString(ctx, onComment, onChompKeep) {
@@ -20689,7 +20689,7 @@ ${ctx.indent}`;
20689
20689
  this.add(new Pair(key, value), true);
20690
20690
  }
20691
20691
  toJSON(_, ctx, Type) {
20692
- const map = Type ? new Type() : ctx && ctx.mapAsMap ? new Map() : {};
20692
+ const map = Type ? new Type() : ctx && ctx.mapAsMap ? /* @__PURE__ */ new Map() : {};
20693
20693
  if (ctx && ctx.onCreate)
20694
20694
  ctx.onCreate(map);
20695
20695
  for (const item of this.items)
@@ -22192,7 +22192,7 @@ ${pair.comment}` : item.comment;
22192
22192
  this.tag = YAMLOMap.tag;
22193
22193
  }
22194
22194
  toJSON(_, ctx) {
22195
- const map = new Map();
22195
+ const map = /* @__PURE__ */ new Map();
22196
22196
  if (ctx && ctx.onCreate)
22197
22197
  ctx.onCreate(map);
22198
22198
  for (const pair of this.items) {
@@ -23043,7 +23043,7 @@ var require_Document_9b4560a1 = __commonJS({
23043
23043
  const createCtx = {
23044
23044
  aliasNodes: [],
23045
23045
  onTagObj: (o) => tagObj = o,
23046
- prevObjects: new Map()
23046
+ prevObjects: /* @__PURE__ */ new Map()
23047
23047
  };
23048
23048
  item = schema.createNode(item, true, null, createCtx);
23049
23049
  for (const alias of createCtx.aliasNodes) {
@@ -26870,7 +26870,7 @@ var require_node3 = __commonJS({
26870
26870
  Object.defineProperty(exports2, "__esModule", { value: true });
26871
26871
  exports2.cloneNode = exports2.hasChildren = exports2.isDocument = exports2.isDirective = exports2.isComment = exports2.isText = exports2.isCDATA = exports2.isTag = exports2.Element = exports2.Document = exports2.NodeWithChildren = exports2.ProcessingInstruction = exports2.Comment = exports2.Text = exports2.DataNode = exports2.Node = void 0;
26872
26872
  var domelementtype_1 = require_lib2();
26873
- var nodeTypes = new Map([
26873
+ var nodeTypes = /* @__PURE__ */ new Map([
26874
26874
  [domelementtype_1.ElementType.Tag, 1],
26875
26875
  [domelementtype_1.ElementType.Script, 1],
26876
26876
  [domelementtype_1.ElementType.Style, 1],
@@ -27618,7 +27618,7 @@ var require_foreignNames = __commonJS({
27618
27618
  "use strict";
27619
27619
  Object.defineProperty(exports2, "__esModule", { value: true });
27620
27620
  exports2.attributeNames = exports2.elementNames = void 0;
27621
- exports2.elementNames = new Map([
27621
+ exports2.elementNames = /* @__PURE__ */ new Map([
27622
27622
  ["altglyph", "altGlyph"],
27623
27623
  ["altglyphdef", "altGlyphDef"],
27624
27624
  ["altglyphitem", "altGlyphItem"],
@@ -27657,7 +27657,7 @@ var require_foreignNames = __commonJS({
27657
27657
  ["radialgradient", "radialGradient"],
27658
27658
  ["textpath", "textPath"]
27659
27659
  ]);
27660
- exports2.attributeNames = new Map([
27660
+ exports2.attributeNames = /* @__PURE__ */ new Map([
27661
27661
  ["definitionurl", "definitionURL"],
27662
27662
  ["attributename", "attributeName"],
27663
27663
  ["attributetype", "attributeType"],
@@ -27769,7 +27769,7 @@ var require_lib5 = __commonJS({
27769
27769
  var ElementType = __importStar(require_lib2());
27770
27770
  var entities_1 = require_lib4();
27771
27771
  var foreignNames_1 = require_foreignNames();
27772
- var unencodedElements = new Set([
27772
+ var unencodedElements = /* @__PURE__ */ new Set([
27773
27773
  "style",
27774
27774
  "script",
27775
27775
  "xmp",
@@ -27794,7 +27794,7 @@ var require_lib5 = __commonJS({
27794
27794
  return key + '="' + (opts.decodeEntities !== false ? entities_1.encodeXML(value) : value.replace(/"/g, """)) + '"';
27795
27795
  }).join(" ");
27796
27796
  }
27797
- var singleTag = new Set([
27797
+ var singleTag = /* @__PURE__ */ new Set([
27798
27798
  "area",
27799
27799
  "base",
27800
27800
  "basefont",
@@ -27846,7 +27846,7 @@ var require_lib5 = __commonJS({
27846
27846
  return renderText(node, options);
27847
27847
  }
27848
27848
  }
27849
- var foreignModeIntegrationPoints = new Set([
27849
+ var foreignModeIntegrationPoints = /* @__PURE__ */ new Set([
27850
27850
  "mi",
27851
27851
  "mo",
27852
27852
  "mn",
@@ -27857,7 +27857,7 @@ var require_lib5 = __commonJS({
27857
27857
  "desc",
27858
27858
  "title"
27859
27859
  ]);
27860
- var foreignElements = new Set(["svg", "math"]);
27860
+ var foreignElements = /* @__PURE__ */ new Set(["svg", "math"]);
27861
27861
  function renderTag(elem, opts) {
27862
27862
  var _a;
27863
27863
  if (opts.xmlMode === "foreign") {
@@ -28635,7 +28635,7 @@ var require_parse3 = __commonJS({
28635
28635
  exports2.isTraversal = void 0;
28636
28636
  var reName = /^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/;
28637
28637
  var reEscape = /\\([\da-f]{1,6}\s?|(\s)|.)/gi;
28638
- var actionTypes = new Map([
28638
+ var actionTypes = /* @__PURE__ */ new Map([
28639
28639
  ["~", "element"],
28640
28640
  ["^", "start"],
28641
28641
  ["$", "end"],
@@ -28653,7 +28653,7 @@ var require_parse3 = __commonJS({
28653
28653
  "#": ["id", "equals"],
28654
28654
  ".": ["class", "element"]
28655
28655
  };
28656
- var unpackPseudos = new Set([
28656
+ var unpackPseudos = /* @__PURE__ */ new Set([
28657
28657
  "has",
28658
28658
  "not",
28659
28659
  "matches",
@@ -28667,7 +28667,7 @@ var require_parse3 = __commonJS({
28667
28667
  ], Object.keys(Traversals).map(function(k) {
28668
28668
  return Traversals[k];
28669
28669
  }), true));
28670
- var caseInsensitiveAttributes = new Set([
28670
+ var caseInsensitiveAttributes = /* @__PURE__ */ new Set([
28671
28671
  "accept",
28672
28672
  "accept-charset",
28673
28673
  "align",
@@ -28719,8 +28719,8 @@ var require_parse3 = __commonJS({
28719
28719
  return traversalNames.has(selector.type);
28720
28720
  }
28721
28721
  exports2.isTraversal = isTraversal;
28722
- var stripQuotesFromPseudos = new Set(["contains", "icontains"]);
28723
- var quotes = new Set(['"', "'"]);
28722
+ var stripQuotesFromPseudos = /* @__PURE__ */ new Set(["contains", "icontains"]);
28723
+ var quotes = /* @__PURE__ */ new Set(['"', "'"]);
28724
28724
  function funescape(_, escaped, escapedWhitespace) {
28725
28725
  var high = parseInt(escaped, 16) - 65536;
28726
28726
  return high !== high || escapedWhitespace ? escaped : high < 0 ? String.fromCharCode(high + 65536) : String.fromCharCode(high >> 10 | 55296, high & 1023 | 56320);
@@ -29371,7 +29371,7 @@ var require_parse4 = __commonJS({
29371
29371
  "use strict";
29372
29372
  Object.defineProperty(exports2, "__esModule", { value: true });
29373
29373
  exports2.parse = void 0;
29374
- var whitespace = new Set([9, 10, 12, 13, 32]);
29374
+ var whitespace = /* @__PURE__ */ new Set([9, 10, 12, 13, 32]);
29375
29375
  var ZERO = "0".charCodeAt(0);
29376
29376
  var NINE = "9".charCodeAt(0);
29377
29377
  function parse(formula) {
@@ -32775,7 +32775,7 @@ var require_css_class_list = __commonJS({
32775
32775
  "use strict";
32776
32776
  var CSSClassList = function(node) {
32777
32777
  this.parentNode = node;
32778
- this.classNames = new Set();
32778
+ this.classNames = /* @__PURE__ */ new Set();
32779
32779
  const value = node.attributes.class;
32780
32780
  if (value != null) {
32781
32781
  this.addClassValueHandler();
@@ -37784,7 +37784,7 @@ var require_array_set2 = __commonJS({
37784
37784
  var hasNativeMap = typeof Map !== "undefined";
37785
37785
  function ArraySet() {
37786
37786
  this._array = [];
37787
- this._set = hasNativeMap ? new Map() : Object.create(null);
37787
+ this._set = hasNativeMap ? /* @__PURE__ */ new Map() : Object.create(null);
37788
37788
  }
37789
37789
  ArraySet.fromArray = function ArraySet_fromArray(aArray, aAllowDuplicates) {
37790
37790
  var set = new ArraySet();
@@ -52842,44 +52842,48 @@ var require_walker = __commonJS({
52842
52842
  var require_package = __commonJS({
52843
52843
  "node_modules/css-tree/package.json"(exports2, module2) {
52844
52844
  module2.exports = {
52845
- name: "css-tree",
52846
- version: "1.1.3",
52847
- description: "A tool set for CSS: fast detailed parser (CSS \u2192 AST), walker (AST traversal), generator (AST \u2192 CSS) and lexer (validation and matching) based on specs and browser implementations",
52848
- author: "Roman Dvornov <rdvornov@gmail.com> (https://github.com/lahmatiy)",
52849
- license: "MIT",
52850
- repository: "csstree/csstree",
52851
- keywords: [
52852
- "css",
52853
- "ast",
52854
- "tokenizer",
52855
- "parser",
52856
- "walker",
52857
- "lexer",
52858
- "generator",
52859
- "utils",
52860
- "syntax",
52861
- "validation"
52845
+ _args: [
52846
+ [
52847
+ "css-tree@1.1.3",
52848
+ "/home/runner/work/tailwindcss/tailwindcss"
52849
+ ]
52862
52850
  ],
52863
- main: "lib/index.js",
52864
- unpkg: "dist/csstree.min.js",
52865
- jsdelivr: "dist/csstree.min.js",
52866
- scripts: {
52867
- build: "rollup --config",
52868
- lint: "eslint data lib scripts test && node scripts/review-syntax-patch --lint && node scripts/update-docs --lint",
52869
- "lint-and-test": "npm run lint && npm test",
52870
- "update:docs": "node scripts/update-docs",
52871
- "review:syntax-patch": "node scripts/review-syntax-patch",
52872
- test: "mocha --reporter progress",
52873
- coverage: "nyc npm test",
52874
- travis: "nyc npm run lint-and-test && npm run coveralls",
52875
- coveralls: "nyc report --reporter=text-lcov | coveralls",
52876
- prepublishOnly: "npm run build",
52877
- hydrogen: "node --trace-hydrogen --trace-phase=Z --trace-deopt --code-comments --hydrogen-track-positions --redirect-code-traces --redirect-code-traces-to=code.asm --trace_hydrogen_file=code.cfg --print-opt-code bin/parse --stat -o /dev/null"
52851
+ _from: "css-tree@1.1.3",
52852
+ _id: "css-tree@1.1.3",
52853
+ _inBundle: false,
52854
+ _integrity: "sha512-tRpdppF7TRazZrjJ6v3stzv93qxRcSsFmW6cX0Zm2NVKpxE1WV1HblnghVv9TreireHkqI/VDEsfolRF1p6y7Q==",
52855
+ _location: "/css-tree",
52856
+ _phantomChildren: {},
52857
+ _requested: {
52858
+ type: "version",
52859
+ registry: true,
52860
+ raw: "css-tree@1.1.3",
52861
+ name: "css-tree",
52862
+ escapedName: "css-tree",
52863
+ rawSpec: "1.1.3",
52864
+ saveSpec: null,
52865
+ fetchSpec: "1.1.3"
52866
+ },
52867
+ _requiredBy: [
52868
+ "/csso",
52869
+ "/svgo"
52870
+ ],
52871
+ _resolved: "https://registry.npmjs.org/css-tree/-/css-tree-1.1.3.tgz",
52872
+ _spec: "1.1.3",
52873
+ _where: "/home/runner/work/tailwindcss/tailwindcss",
52874
+ author: {
52875
+ name: "Roman Dvornov",
52876
+ email: "rdvornov@gmail.com",
52877
+ url: "https://github.com/lahmatiy"
52878
+ },
52879
+ bugs: {
52880
+ url: "https://github.com/csstree/csstree/issues"
52878
52881
  },
52879
52882
  dependencies: {
52880
52883
  "mdn-data": "2.0.14",
52881
52884
  "source-map": "^0.6.1"
52882
52885
  },
52886
+ description: "A tool set for CSS: fast detailed parser (CSS \u2192 AST), walker (AST traversal), generator (AST \u2192 CSS) and lexer (validation and matching) based on specs and browser implementations",
52883
52887
  devDependencies: {
52884
52888
  "@rollup/plugin-commonjs": "^11.0.2",
52885
52889
  "@rollup/plugin-json": "^4.0.2",
@@ -52899,7 +52903,43 @@ var require_package = __commonJS({
52899
52903
  "data",
52900
52904
  "dist",
52901
52905
  "lib"
52902
- ]
52906
+ ],
52907
+ homepage: "https://github.com/csstree/csstree#readme",
52908
+ jsdelivr: "dist/csstree.min.js",
52909
+ keywords: [
52910
+ "css",
52911
+ "ast",
52912
+ "tokenizer",
52913
+ "parser",
52914
+ "walker",
52915
+ "lexer",
52916
+ "generator",
52917
+ "utils",
52918
+ "syntax",
52919
+ "validation"
52920
+ ],
52921
+ license: "MIT",
52922
+ main: "lib/index.js",
52923
+ name: "css-tree",
52924
+ repository: {
52925
+ type: "git",
52926
+ url: "git+https://github.com/csstree/csstree.git"
52927
+ },
52928
+ scripts: {
52929
+ build: "rollup --config",
52930
+ coverage: "nyc npm test",
52931
+ coveralls: "nyc report --reporter=text-lcov | coveralls",
52932
+ hydrogen: "node --trace-hydrogen --trace-phase=Z --trace-deopt --code-comments --hydrogen-track-positions --redirect-code-traces --redirect-code-traces-to=code.asm --trace_hydrogen_file=code.cfg --print-opt-code bin/parse --stat -o /dev/null",
52933
+ lint: "eslint data lib scripts test && node scripts/review-syntax-patch --lint && node scripts/update-docs --lint",
52934
+ "lint-and-test": "npm run lint && npm test",
52935
+ prepublishOnly: "npm run build",
52936
+ "review:syntax-patch": "node scripts/review-syntax-patch",
52937
+ test: "mocha --reporter progress",
52938
+ travis: "nyc npm run lint-and-test && npm run coveralls",
52939
+ "update:docs": "node scripts/update-docs"
52940
+ },
52941
+ unpkg: "dist/csstree.min.js",
52942
+ version: "1.1.3"
52903
52943
  };
52904
52944
  }
52905
52945
  });
@@ -53191,7 +53231,7 @@ var require_css_style_declaration = __commonJS({
53191
53231
  var csstools = require_css_tools();
53192
53232
  var CSSStyleDeclaration = function(node) {
53193
53233
  this.parentNode = node;
53194
- this.properties = new Map();
53234
+ this.properties = /* @__PURE__ */ new Map();
53195
53235
  this.hasSynced = false;
53196
53236
  this.styleValue = null;
53197
53237
  this.parseError = false;
@@ -53810,7 +53850,7 @@ var require_inlineStyles = __commonJS({
53810
53850
  if (styleDeclarationList.type !== "DeclarationList") {
53811
53851
  continue;
53812
53852
  }
53813
- const styleDeclarationItems = new Map();
53853
+ const styleDeclarationItems = /* @__PURE__ */ new Map();
53814
53854
  csstree.walk(styleDeclarationList, {
53815
53855
  visit: "Declaration",
53816
53856
  enter(node, item) {
@@ -54536,7 +54576,7 @@ var require_Percentage2 = __commonJS({
54536
54576
  "node_modules/csso/lib/replace/Percentage.js"(exports2, module2) {
54537
54577
  var lexer = require_lib10().lexer;
54538
54578
  var packNumber = require_Number2().pack;
54539
- var blacklist = new Set([
54579
+ var blacklist = /* @__PURE__ */ new Set([
54540
54580
  "width",
54541
54581
  "min-width",
54542
54582
  "max-width",
@@ -56477,50 +56517,49 @@ var require_compress = __commonJS({
56477
56517
  var require_package2 = __commonJS({
56478
56518
  "node_modules/csso/package.json"(exports2, module2) {
56479
56519
  module2.exports = {
56480
- name: "csso",
56481
- version: "4.2.0",
56482
- description: "CSS minifier with structural optimisations",
56483
- homepage: "https://github.com/css/csso",
56484
- author: "Sergey Kryzhanovsky <skryzhanovsky@ya.ru> (https://github.com/afelix)",
56485
- maintainers: [
56486
- {
56487
- name: "Roman Dvornov",
56488
- email: "rdvornov@gmail.com",
56489
- "github-username": "lahmatiy"
56490
- }
56520
+ _args: [
56521
+ [
56522
+ "csso@4.2.0",
56523
+ "/home/runner/work/tailwindcss/tailwindcss"
56524
+ ]
56491
56525
  ],
56492
- license: "MIT",
56493
- repository: "css/csso",
56526
+ _from: "csso@4.2.0",
56527
+ _id: "csso@4.2.0",
56528
+ _inBundle: false,
56529
+ _integrity: "sha512-wvlcdIbf6pwKEk7vHj8/Bkc0B4ylXZruLvOgs9doS5eOsOpuodOV2zJChSpkp+pRpYQLQMeF04nr3Z68Sta9jA==",
56530
+ _location: "/csso",
56531
+ _phantomChildren: {},
56532
+ _requested: {
56533
+ type: "version",
56534
+ registry: true,
56535
+ raw: "csso@4.2.0",
56536
+ name: "csso",
56537
+ escapedName: "csso",
56538
+ rawSpec: "4.2.0",
56539
+ saveSpec: null,
56540
+ fetchSpec: "4.2.0"
56541
+ },
56542
+ _requiredBy: [
56543
+ "/svgo"
56544
+ ],
56545
+ _resolved: "https://registry.npmjs.org/csso/-/csso-4.2.0.tgz",
56546
+ _spec: "4.2.0",
56547
+ _where: "/home/runner/work/tailwindcss/tailwindcss",
56548
+ author: {
56549
+ name: "Sergey Kryzhanovsky",
56550
+ email: "skryzhanovsky@ya.ru",
56551
+ url: "https://github.com/afelix"
56552
+ },
56553
+ browser: {
56554
+ "css-tree": "css-tree/dist/csstree.min.js"
56555
+ },
56494
56556
  bugs: {
56495
56557
  url: "https://github.com/css/csso/issues"
56496
56558
  },
56497
- keywords: [
56498
- "css",
56499
- "compress",
56500
- "minifier",
56501
- "minify",
56502
- "optimise",
56503
- "optimisation",
56504
- "csstree"
56505
- ],
56506
- main: "./lib/index",
56507
- scripts: {
56508
- test: "mocha --reporter dot",
56509
- lint: "eslint lib test",
56510
- "lint-and-test": "npm run lint && npm test",
56511
- build: "rollup --config && terser dist/csso.js --compress --mangle -o dist/csso.min.js",
56512
- coverage: "nyc npm test",
56513
- coveralls: "nyc report --reporter=text-lcov | coveralls",
56514
- travis: "nyc npm run lint-and-test && npm run coveralls",
56515
- hydrogen: "node --trace-hydrogen --trace-phase=Z --trace-deopt --code-comments --hydrogen-track-positions --redirect-code-traces --redirect-code-traces-to=code.asm --trace_hydrogen_file=code.cfg --print-opt-code bin/csso --stat -o /dev/null",
56516
- prepublishOnly: "npm run build"
56517
- },
56518
56559
  dependencies: {
56519
56560
  "css-tree": "^1.1.2"
56520
56561
  },
56521
- browser: {
56522
- "css-tree": "css-tree/dist/csstree.min.js"
56523
- },
56562
+ description: "CSS minifier with structural optimisations",
56524
56563
  devDependencies: {
56525
56564
  "@rollup/plugin-commonjs": "^11.0.1",
56526
56565
  "@rollup/plugin-json": "^4.0.1",
@@ -56539,7 +56578,42 @@ var require_package2 = __commonJS({
56539
56578
  files: [
56540
56579
  "dist",
56541
56580
  "lib"
56542
- ]
56581
+ ],
56582
+ homepage: "https://github.com/css/csso",
56583
+ keywords: [
56584
+ "css",
56585
+ "compress",
56586
+ "minifier",
56587
+ "minify",
56588
+ "optimise",
56589
+ "optimisation",
56590
+ "csstree"
56591
+ ],
56592
+ license: "MIT",
56593
+ main: "./lib/index",
56594
+ maintainers: [
56595
+ {
56596
+ name: "Roman Dvornov",
56597
+ email: "rdvornov@gmail.com"
56598
+ }
56599
+ ],
56600
+ name: "csso",
56601
+ repository: {
56602
+ type: "git",
56603
+ url: "git+https://github.com/css/csso.git"
56604
+ },
56605
+ scripts: {
56606
+ build: "rollup --config && terser dist/csso.js --compress --mangle -o dist/csso.min.js",
56607
+ coverage: "nyc npm test",
56608
+ coveralls: "nyc report --reporter=text-lcov | coveralls",
56609
+ hydrogen: "node --trace-hydrogen --trace-phase=Z --trace-deopt --code-comments --hydrogen-track-positions --redirect-code-traces --redirect-code-traces-to=code.asm --trace_hydrogen_file=code.cfg --print-opt-code bin/csso --stat -o /dev/null",
56610
+ lint: "eslint lib test",
56611
+ "lint-and-test": "npm run lint && npm test",
56612
+ prepublishOnly: "npm run build",
56613
+ test: "mocha --reporter dot",
56614
+ travis: "nyc npm run lint-and-test && npm run coveralls"
56615
+ },
56616
+ version: "4.2.0"
56543
56617
  };
56544
56618
  }
56545
56619
  });
@@ -56672,9 +56746,9 @@ var require_minifyStyles = __commonJS({
56672
56746
  const styleElements = [];
56673
56747
  const elementsWithStyleAttributes = [];
56674
56748
  let deoptimized = false;
56675
- const tagsUsage = new Set();
56676
- const idsUsage = new Set();
56677
- const classesUsage = new Set();
56749
+ const tagsUsage = /* @__PURE__ */ new Set();
56750
+ const idsUsage = /* @__PURE__ */ new Set();
56751
+ const classesUsage = /* @__PURE__ */ new Set();
56678
56752
  return {
56679
56753
  element: {
56680
56754
  enter: (node) => {
@@ -56854,8 +56928,8 @@ var require_cleanupIDs = __commonJS({
56854
56928
  } = params;
56855
56929
  const preserveIDs = new Set(Array.isArray(preserve) ? preserve : preserve ? [preserve] : []);
56856
56930
  const preserveIDPrefixes = Array.isArray(preservePrefixes) ? preservePrefixes : preservePrefixes ? [preservePrefixes] : [];
56857
- const nodeById = new Map();
56858
- const referencesById = new Map();
56931
+ const nodeById = /* @__PURE__ */ new Map();
56932
+ const referencesById = /* @__PURE__ */ new Map();
56859
56933
  let deoptimized = false;
56860
56934
  return {
56861
56935
  element: {
@@ -57323,7 +57397,7 @@ var require_style = __commonJS({
57323
57397
  };
57324
57398
  var computeOwnStyle = (stylesheet, node) => {
57325
57399
  const computedStyle = {};
57326
- const importantStyles = new Map();
57400
+ const importantStyles = /* @__PURE__ */ new Map();
57327
57401
  for (const [name, value] of Object.entries(node.attributes)) {
57328
57402
  if (attrsGroups.presentation.includes(name)) {
57329
57403
  computedStyle[name] = { type: "static", inherited: false, value };
@@ -57373,7 +57447,7 @@ var require_style = __commonJS({
57373
57447
  };
57374
57448
  var collectStylesheet = (root) => {
57375
57449
  const rules = [];
57376
- const parents = new Map();
57450
+ const parents = /* @__PURE__ */ new Map();
57377
57451
  visit(root, {
57378
57452
  element: {
57379
57453
  enter: (node, parentNode) => {
@@ -57432,11 +57506,11 @@ var require_removeUnknownsAndDefaults = __commonJS({
57432
57506
  exports2.name = "removeUnknownsAndDefaults";
57433
57507
  exports2.active = true;
57434
57508
  exports2.description = "removes unknown elements content and attributes, removes attrs with default values";
57435
- var allowedChildrenPerElement = new Map();
57436
- var allowedAttributesPerElement = new Map();
57437
- var attributesDefaultsPerElement = new Map();
57509
+ var allowedChildrenPerElement = /* @__PURE__ */ new Map();
57510
+ var allowedAttributesPerElement = /* @__PURE__ */ new Map();
57511
+ var attributesDefaultsPerElement = /* @__PURE__ */ new Map();
57438
57512
  for (const [name, config] of Object.entries(elems)) {
57439
- const allowedChildren = new Set();
57513
+ const allowedChildren = /* @__PURE__ */ new Set();
57440
57514
  if (config.content) {
57441
57515
  for (const elementName of config.content) {
57442
57516
  allowedChildren.add(elementName);
@@ -57452,13 +57526,13 @@ var require_removeUnknownsAndDefaults = __commonJS({
57452
57526
  }
57453
57527
  }
57454
57528
  }
57455
- const allowedAttributes = new Set();
57529
+ const allowedAttributes = /* @__PURE__ */ new Set();
57456
57530
  if (config.attrs) {
57457
57531
  for (const attrName of config.attrs) {
57458
57532
  allowedAttributes.add(attrName);
57459
57533
  }
57460
57534
  }
57461
- const attributesDefaults = new Map();
57535
+ const attributesDefaults = /* @__PURE__ */ new Map();
57462
57536
  if (config.defaults) {
57463
57537
  for (const [attrName, defaultValue] of Object.entries(config.defaults)) {
57464
57538
  attributesDefaults.set(attrName, defaultValue);
@@ -58323,7 +58397,7 @@ var require_moveElemsAttrsToGroup = __commonJS({
58323
58397
  if (deoptimizedWithStyles) {
58324
58398
  return;
58325
58399
  }
58326
- const commonAttributes = new Map();
58400
+ const commonAttributes = /* @__PURE__ */ new Map();
58327
58401
  let initial = true;
58328
58402
  let everyChildIsPath = true;
58329
58403
  for (const child of node.children) {
@@ -60343,7 +60417,7 @@ var require_removeUnusedNS = __commonJS({
60343
60417
  exports2.active = true;
60344
60418
  exports2.description = "removes unused namespaces declaration";
60345
60419
  exports2.fn = () => {
60346
- const unusedNamespaces = new Set();
60420
+ const unusedNamespaces = /* @__PURE__ */ new Set();
60347
60421
  return {
60348
60422
  element: {
60349
60423
  enter: (node, parentNode) => {
@@ -60396,7 +60470,7 @@ var require_sortDefsChildren = __commonJS({
60396
60470
  element: {
60397
60471
  enter: (node) => {
60398
60472
  if (node.name === "defs") {
60399
- const frequencies = new Map();
60473
+ const frequencies = /* @__PURE__ */ new Map();
60400
60474
  for (const child of node.children) {
60401
60475
  if (child.type === "element") {
60402
60476
  const frequency = frequencies.get(child.name);
@@ -61320,7 +61394,7 @@ var require_reusePaths = __commonJS({
61320
61394
  exports2.active = false;
61321
61395
  exports2.description = "Finds <path> elements with the same d, fill, and stroke, and converts them to <use> elements referencing a single <path> def.";
61322
61396
  exports2.fn = () => {
61323
- const paths = new Map();
61397
+ const paths = /* @__PURE__ */ new Map();
61324
61398
  return {
61325
61399
  element: {
61326
61400
  enter: (node) => {
@@ -63955,8 +64029,8 @@ var require_dist10 = __commonJS({
63955
64029
  return newObj;
63956
64030
  }
63957
64031
  var LENGTH_UNITS = ["em", "ex", "ch", "rem", "vw", "vh", "vmin", "vmax", "cm", "mm", "q", "in", "pt", "pc", "px"];
63958
- var notALength = new Set(["descent-override", "ascent-override", "font-stretch", "size-adjust", "line-gap-override"]);
63959
- var keepWhenZero = new Set(["stroke-dashoffset", "stroke-width", "line-height"]);
64032
+ var notALength = /* @__PURE__ */ new Set(["descent-override", "ascent-override", "font-stretch", "size-adjust", "line-gap-override"]);
64033
+ var keepWhenZero = /* @__PURE__ */ new Set(["stroke-dashoffset", "stroke-width", "line-height"]);
63960
64034
  function stripLeadingDot(item) {
63961
64035
  if (item.charCodeAt(0) === ".".charCodeAt(0)) {
63962
64036
  return item.slice(1);
package/plugin.js CHANGED
@@ -1 +1,2 @@
1
- module.exports = require('./lib/public/create-plugin').default
1
+ let createPlugin = require('./lib/public/create-plugin')
2
+ module.exports = (createPlugin.__esModule ? createPlugin : { default: createPlugin }).default
package/resolveConfig.js CHANGED
@@ -1 +1,2 @@
1
- module.exports = require('./lib/public/resolve-config').default
1
+ let resolveConfig = require('./lib/public/resolve-config')
2
+ module.exports = (resolveConfig.__esModule ? resolveConfig : { default: resolveConfig }).default