tailwindcss 0.0.0-insiders.d563d23 → 0.0.0-insiders.d6301bd

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +15 -1
  2. package/package.json +2 -2
  3. package/peers/index.js +120 -188
package/CHANGELOG.md CHANGED
@@ -73,6 +73,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
73
73
  - Fix using negated `content` globs ([#5625](https://github.com/tailwindlabs/tailwindcss/pull/5625))
74
74
  - Fix using backslashes in `content` globs ([#5628](https://github.com/tailwindlabs/tailwindcss/pull/5628))
75
75
 
76
+ ## [2.2.18] - 2021-10-29
77
+
78
+ ### Fixed
79
+
80
+ - Bump versions for security vulnerabilities ([#5924](https://github.com/tailwindlabs/tailwindcss/pull/5924))
81
+
82
+ ## [2.2.17] - 2021-10-13
83
+
84
+ ### Fixed
85
+
86
+ - Configure chokidar's `awaitWriteFinish` setting to avoid occasional stale builds on Windows ([#5758](https://github.com/tailwindlabs/tailwindcss/pull/5758))
87
+
76
88
  ## [2.2.16] - 2021-09-26
77
89
 
78
90
  ### Fixed
@@ -1632,7 +1644,9 @@ No release notes
1632
1644
  - Everything!
1633
1645
 
1634
1646
  [unreleased]: https://github.com/tailwindlabs/tailwindcss/compare/v3.0.0-alpha.1...HEAD
1635
- [3.0.0-alpha.1]: https://github.com/tailwindlabs/tailwindcss/compare/v2.2.16...v3.0.0-alpha.1
1647
+ [3.0.0-alpha.1]: https://github.com/tailwindlabs/tailwindcss/compare/v2.2.18...v3.0.0-alpha.1
1648
+ [2.2.18]: https://github.com/tailwindlabs/tailwindcss/compare/v2.2.17...v2.2.18
1649
+ [2.2.17]: https://github.com/tailwindlabs/tailwindcss/compare/v2.2.16...v2.2.17
1636
1650
  [2.2.16]: https://github.com/tailwindlabs/tailwindcss/compare/v2.2.15...v2.2.16
1637
1651
  [2.2.15]: https://github.com/tailwindlabs/tailwindcss/compare/v2.2.14...v2.2.15
1638
1652
  [2.2.14]: https://github.com/tailwindlabs/tailwindcss/compare/v2.2.13...v2.2.14
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tailwindcss",
3
- "version": "0.0.0-insiders.d563d23",
3
+ "version": "0.0.0-insiders.d6301bd",
4
4
  "description": "A utility-first CSS framework for rapidly building custom user interfaces.",
5
5
  "license": "MIT",
6
6
  "main": "lib/index.js",
@@ -56,7 +56,7 @@
56
56
  "eslint-plugin-prettier": "^4.0.0",
57
57
  "jest": "^27.3.1",
58
58
  "jest-diff": "^27.2.5",
59
- "postcss": "^8.3.8",
59
+ "postcss": "^8.3.11",
60
60
  "postcss-cli": "^8.3.1",
61
61
  "prettier": "^2.4.1",
62
62
  "rimraf": "^3.0.0"
package/peers/index.js CHANGED
@@ -2,154 +2,52 @@ var __commonJS = (cb, mod) => function __require() {
2
2
  return mod || (0, cb[Object.keys(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
3
3
  };
4
4
 
5
- // node_modules/nanocolors/index.cjs
6
- var require_nanocolors = __commonJS({
7
- "node_modules/nanocolors/index.cjs"(exports2, module2) {
5
+ // node_modules/postcss/node_modules/picocolors/picocolors.js
6
+ var require_picocolors = __commonJS({
7
+ "node_modules/postcss/node_modules/picocolors/picocolors.js"(exports2, module2) {
8
8
  var tty = require("tty");
9
- var isDisabled = "NO_COLOR" in process.env || process.argv.includes("--no-color");
10
- var isForced = "FORCE_COLOR" in process.env || process.argv.includes("--color");
11
- var isWindows = process.platform === "win32";
12
- var isCompatibleTerminal = tty && tty.isatty(1) && process.env.TERM && process.env.TERM !== "dumb";
13
- var isCI = "CI" in process.env && ("GITHUB_ACTIONS" in process.env || "GITLAB_CI" in process.env || "CIRCLECI" in process.env);
14
- var isColorSupported = !isDisabled && (isForced || isWindows || isCompatibleTerminal || isCI);
15
- var nope = (s) => String(s);
16
- function color(open, close, closeRegexp, restore = open) {
17
- function func(s) {
18
- if (!s || !s.length) {
19
- if (s === "") {
20
- return "";
21
- } else {
22
- return open + s + close;
23
- }
24
- } else {
25
- return open + (!!~s.indexOf(close, 4) ? s.replace(closeRegexp, restore) : s) + close;
26
- }
27
- }
28
- return func;
29
- }
30
- var close22 = "";
31
- var close39 = "";
32
- var close49 = "";
33
- var regexp22 = /\x1b\[22m/g;
34
- var regexp39 = /\x1b\[39m/g;
35
- var regexp49 = /\x1b\[49m/g;
36
- function createColors(enabled = isColorSupported) {
37
- if (enabled) {
38
- return {
39
- isColorSupported: true,
40
- reset: (s) => `${s}`,
41
- bold: color("", close22, regexp22, ""),
42
- dim: color("", close22, regexp22, ""),
43
- italic: color("", "", /\x1b\[23m/g),
44
- underline: color("", "", /\x1b\[24m/g),
45
- inverse: color("", "", /\x1b\[27m/g),
46
- hidden: color("", "", /\x1b\[28m/g),
47
- strikethrough: color("", "", /\x1b\[29m/g),
48
- black: color("", close39, regexp39),
49
- red: color("", close39, regexp39),
50
- green: color("", close39, regexp39),
51
- yellow: color("", close39, regexp39),
52
- blue: color("", close39, regexp39),
53
- magenta: color("", close39, regexp39),
54
- cyan: color("", close39, regexp39),
55
- white: color("", close39, regexp39),
56
- gray: color("", close39, regexp39),
57
- bgBlack: color("", close49, regexp49),
58
- bgRed: color("", close49, regexp49),
59
- bgGreen: color("", close49, regexp49),
60
- bgYellow: color("", close49, regexp49),
61
- bgBlue: color("", close49, regexp49),
62
- bgMagenta: color("", close49, regexp49),
63
- bgCyan: color("", close49, regexp49),
64
- bgWhite: color("", close49, regexp49)
65
- };
66
- } else {
67
- return {
68
- isColorSupported: false,
69
- reset: nope,
70
- bold: nope,
71
- dim: nope,
72
- italic: nope,
73
- underline: nope,
74
- inverse: nope,
75
- hidden: nope,
76
- strikethrough: nope,
77
- black: nope,
78
- red: nope,
79
- green: nope,
80
- yellow: nope,
81
- blue: nope,
82
- magenta: nope,
83
- cyan: nope,
84
- white: nope,
85
- gray: nope,
86
- bgBlack: nope,
87
- bgRed: nope,
88
- bgGreen: nope,
89
- bgYellow: nope,
90
- bgBlue: nope,
91
- bgMagenta: nope,
92
- bgCyan: nope,
93
- bgWhite: nope
94
- };
95
- }
96
- }
97
- var {
98
- reset,
99
- bold,
100
- dim,
101
- italic,
102
- underline,
103
- inverse,
104
- hidden,
105
- strikethrough,
106
- black,
107
- red,
108
- green,
109
- yellow,
110
- blue,
111
- magenta,
112
- cyan,
113
- white,
114
- gray,
115
- bgBlack,
116
- bgRed,
117
- bgGreen,
118
- bgYellow,
119
- bgBlue,
120
- bgMagenta,
121
- bgCyan,
122
- bgWhite
123
- } = createColors(isColorSupported);
124
- module2.exports = {
125
- isColorSupported,
126
- createColors,
127
- reset,
128
- bold,
129
- dim,
130
- italic,
131
- underline,
132
- inverse,
133
- hidden,
134
- strikethrough,
135
- black,
136
- red,
137
- green,
138
- yellow,
139
- blue,
140
- magenta,
141
- cyan,
142
- white,
143
- gray,
144
- bgBlack,
145
- bgRed,
146
- bgGreen,
147
- bgYellow,
148
- bgBlue,
149
- bgMagenta,
150
- bgCyan,
151
- bgWhite
9
+ var isColorSupported = !("NO_COLOR" in process.env || process.argv.includes("--no-color")) && ("FORCE_COLOR" in process.env || process.argv.includes("--color") || process.platform === "win32" || tty.isatty(1) && process.env.TERM !== "dumb" || "CI" in process.env);
10
+ var formatter = (open, close, replace = open) => (input) => {
11
+ let string = "" + input;
12
+ let index = string.indexOf(close, open.length);
13
+ return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
152
14
  };
15
+ var replaceClose = (string, close, replace, index) => {
16
+ let start = string.substring(0, index) + replace;
17
+ let end = string.substring(index + close.length);
18
+ let nextIndex = end.indexOf(close);
19
+ return ~nextIndex ? start + replaceClose(end, close, replace, nextIndex) : start + end;
20
+ };
21
+ var createColors = (enabled = isColorSupported) => ({
22
+ isColorSupported: enabled,
23
+ reset: enabled ? (s) => `${s}` : String,
24
+ bold: enabled ? formatter("", "", "") : String,
25
+ dim: enabled ? formatter("", "", "") : String,
26
+ italic: enabled ? formatter("", "") : String,
27
+ underline: enabled ? formatter("", "") : String,
28
+ inverse: enabled ? formatter("", "") : String,
29
+ hidden: enabled ? formatter("", "") : String,
30
+ strikethrough: enabled ? formatter("", "") : String,
31
+ black: enabled ? formatter("", "") : String,
32
+ red: enabled ? formatter("", "") : String,
33
+ green: enabled ? formatter("", "") : String,
34
+ yellow: enabled ? formatter("", "") : String,
35
+ blue: enabled ? formatter("", "") : String,
36
+ magenta: enabled ? formatter("", "") : String,
37
+ cyan: enabled ? formatter("", "") : String,
38
+ white: enabled ? formatter("", "") : String,
39
+ gray: enabled ? formatter("", "") : String,
40
+ bgBlack: enabled ? formatter("", "") : String,
41
+ bgRed: enabled ? formatter("", "") : String,
42
+ bgGreen: enabled ? formatter("", "") : String,
43
+ bgYellow: enabled ? formatter("", "") : String,
44
+ bgBlue: enabled ? formatter("", "") : String,
45
+ bgMagenta: enabled ? formatter("", "") : String,
46
+ bgCyan: enabled ? formatter("", "") : String,
47
+ bgWhite: enabled ? formatter("", "") : String
48
+ });
49
+ module2.exports = createColors();
50
+ module2.exports.createColors = createColors;
153
51
  }
154
52
  });
155
53
 
@@ -374,28 +272,28 @@ var require_tokenize = __commonJS({
374
272
  var require_terminal_highlight = __commonJS({
375
273
  "node_modules/postcss/lib/terminal-highlight.js"(exports2, module2) {
376
274
  "use strict";
377
- var { cyan, gray, green, yellow, magenta } = require_nanocolors();
275
+ var pico = require_picocolors();
378
276
  var tokenizer = require_tokenize();
379
277
  var Input;
380
278
  function registerInput(dependant) {
381
279
  Input = dependant;
382
280
  }
383
281
  var HIGHLIGHT_THEME = {
384
- "brackets": cyan,
385
- "at-word": cyan,
386
- "comment": gray,
387
- "string": green,
388
- "class": yellow,
389
- "hash": magenta,
390
- "call": cyan,
391
- "(": cyan,
392
- ")": cyan,
393
- "{": yellow,
394
- "}": yellow,
395
- "[": yellow,
396
- "]": yellow,
397
- ":": yellow,
398
- ";": yellow
282
+ "brackets": pico.cyan,
283
+ "at-word": pico.cyan,
284
+ "comment": pico.gray,
285
+ "string": pico.green,
286
+ "class": pico.yellow,
287
+ "hash": pico.magenta,
288
+ "call": pico.cyan,
289
+ "(": pico.cyan,
290
+ ")": pico.cyan,
291
+ "{": pico.yellow,
292
+ "}": pico.yellow,
293
+ "[": pico.yellow,
294
+ "]": pico.yellow,
295
+ ":": pico.yellow,
296
+ ";": pico.yellow
399
297
  };
400
298
  function getTokenType([type, value], processor) {
401
299
  if (type === "word") {
@@ -437,7 +335,7 @@ var require_terminal_highlight = __commonJS({
437
335
  var require_css_syntax_error = __commonJS({
438
336
  "node_modules/postcss/lib/css-syntax-error.js"(exports2, module2) {
439
337
  "use strict";
440
- var { red, bold, gray, isColorSupported } = require_nanocolors();
338
+ var pico = require_picocolors();
441
339
  var terminalHighlight = require_terminal_highlight();
442
340
  var CssSyntaxError = class extends Error {
443
341
  constructor(message, line, column, source, file, plugin) {
@@ -475,7 +373,7 @@ var require_css_syntax_error = __commonJS({
475
373
  return "";
476
374
  let css = this.source;
477
375
  if (color == null)
478
- color = isColorSupported;
376
+ color = pico.isColorSupported;
479
377
  if (terminalHighlight) {
480
378
  if (color)
481
379
  css = terminalHighlight(css);
@@ -486,6 +384,7 @@ var require_css_syntax_error = __commonJS({
486
384
  let maxWidth = String(end).length;
487
385
  let mark, aside;
488
386
  if (color) {
387
+ let { bold, red, gray } = pico.createColors(true);
489
388
  mark = (text) => bold(red(text));
490
389
  aside = (text) => gray(text);
491
390
  } else {
@@ -4443,7 +4342,7 @@ var require_parser = __commonJS({
4443
4342
  // node_modules/nanoid/non-secure/index.cjs
4444
4343
  var require_non_secure = __commonJS({
4445
4344
  "node_modules/nanoid/non-secure/index.cjs"(exports2, module2) {
4446
- var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
4345
+ var urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
4447
4346
  var customAlphabet = (alphabet, size) => {
4448
4347
  return () => {
4449
4348
  let id = "";
@@ -4511,15 +4410,16 @@ var require_previous_map = __commonJS({
4511
4410
  return string.substr(0, start.length) === start;
4512
4411
  }
4513
4412
  getAnnotationURL(sourceMapString) {
4514
- return sourceMapString.match(/\/\*\s*# sourceMappingURL=((?:(?!sourceMappingURL=).)*)\*\//)[1].trim();
4413
+ return sourceMapString.replace(/^\/\*\s*# sourceMappingURL=/, "").trim();
4515
4414
  }
4516
4415
  loadAnnotation(css) {
4517
- let annotations = css.match(/\/\*\s*# sourceMappingURL=(?:(?!sourceMappingURL=).)*\*\//gm);
4518
- if (annotations && annotations.length > 0) {
4519
- let lastAnnotation = annotations[annotations.length - 1];
4520
- if (lastAnnotation) {
4521
- this.annotation = this.getAnnotationURL(lastAnnotation);
4522
- }
4416
+ let comments = css.match(/\/\*\s*# sourceMappingURL=/gm);
4417
+ if (!comments)
4418
+ return;
4419
+ let start = css.lastIndexOf(comments.pop());
4420
+ let end = css.indexOf("*/", start);
4421
+ if (start > -1 && end > -1) {
4422
+ this.annotation = this.getAnnotationURL(css.substring(start, end));
4523
4423
  }
4524
4424
  }
4525
4425
  decodeInline(text) {
@@ -5281,7 +5181,7 @@ var require_processor = __commonJS({
5281
5181
  var Root = require_root();
5282
5182
  var Processor = class {
5283
5183
  constructor(plugins = []) {
5284
- this.version = "8.3.8";
5184
+ this.version = "8.3.11";
5285
5185
  this.plugins = this.normalize(plugins);
5286
5186
  }
5287
5187
  use(plugin) {
@@ -11014,7 +10914,7 @@ var require_unpacker = __commonJS({
11014
10914
  });
11015
10915
 
11016
10916
  // node_modules/picocolors/picocolors.js
11017
- var require_picocolors = __commonJS({
10917
+ var require_picocolors2 = __commonJS({
11018
10918
  "node_modules/picocolors/picocolors.js"(exports2, module2) {
11019
10919
  var tty = require("tty");
11020
10920
  var isColorSupported = !("NO_COLOR" in process.env || process.argv.includes("--no-color")) && ("FORCE_COLOR" in process.env || process.argv.includes("--color") || process.platform === "win32" || tty.isatty(1) && process.env.TERM !== "dumb" || "CI" in process.env);
@@ -17775,7 +17675,7 @@ var require_autoprefixer = __commonJS({
17775
17675
  "node_modules/autoprefixer/lib/autoprefixer.js"(exports2, module2) {
17776
17676
  var browserslist = require_browserslist();
17777
17677
  var { agents } = require_unpacker();
17778
- var pico = require_picocolors();
17678
+ var pico = require_picocolors2();
17779
17679
  var Browsers = require_browsers3();
17780
17680
  var Prefixes = require_prefixes();
17781
17681
  var dataPrefixes = require_prefixes2();
@@ -29059,7 +28959,9 @@ var require_parse4 = __commonJS({
29059
28959
  "use strict";
29060
28960
  Object.defineProperty(exports2, "__esModule", { value: true });
29061
28961
  exports2.parse = void 0;
29062
- var RE_NTH_ELEMENT = /^([+-]?\d*n)?\s*(?:([+-]?)\s*(\d+))?$/;
28962
+ var whitespace = new Set([9, 10, 12, 13, 32]);
28963
+ var ZERO = "0".charCodeAt(0);
28964
+ var NINE = "9".charCodeAt(0);
29063
28965
  function parse(formula) {
29064
28966
  formula = formula.trim().toLowerCase();
29065
28967
  if (formula === "even") {
@@ -29067,20 +28969,50 @@ var require_parse4 = __commonJS({
29067
28969
  } else if (formula === "odd") {
29068
28970
  return [2, 1];
29069
28971
  }
29070
- var parsed = formula.match(RE_NTH_ELEMENT);
29071
- if (!parsed) {
28972
+ var idx = 0;
28973
+ var a = 0;
28974
+ var sign = readSign();
28975
+ var number = readNumber();
28976
+ if (idx < formula.length && formula.charAt(idx) === "n") {
28977
+ idx++;
28978
+ a = sign * (number !== null && number !== void 0 ? number : 1);
28979
+ skipWhitespace();
28980
+ if (idx < formula.length) {
28981
+ sign = readSign();
28982
+ skipWhitespace();
28983
+ number = readNumber();
28984
+ } else {
28985
+ sign = number = 0;
28986
+ }
28987
+ }
28988
+ if (number === null || idx < formula.length) {
29072
28989
  throw new Error("n-th rule couldn't be parsed ('" + formula + "')");
29073
28990
  }
29074
- var a;
29075
- if (parsed[1]) {
29076
- a = parseInt(parsed[1], 10);
29077
- if (isNaN(a)) {
29078
- a = parsed[1].startsWith("-") ? -1 : 1;
28991
+ return [a, sign * number];
28992
+ function readSign() {
28993
+ if (formula.charAt(idx) === "-") {
28994
+ idx++;
28995
+ return -1;
28996
+ }
28997
+ if (formula.charAt(idx) === "+") {
28998
+ idx++;
29079
28999
  }
29080
- } else
29081
- a = 0;
29082
- var b = (parsed[2] === "-" ? -1 : 1) * (parsed[3] ? parseInt(parsed[3], 10) : 0);
29083
- return [a, b];
29000
+ return 1;
29001
+ }
29002
+ function readNumber() {
29003
+ var start = idx;
29004
+ var value = 0;
29005
+ while (idx < formula.length && formula.charCodeAt(idx) >= ZERO && formula.charCodeAt(idx) <= NINE) {
29006
+ value = value * 10 + (formula.charCodeAt(idx) - ZERO);
29007
+ idx++;
29008
+ }
29009
+ return idx === start ? null : value;
29010
+ }
29011
+ function skipWhitespace() {
29012
+ while (idx < formula.length && whitespace.has(formula.charCodeAt(idx))) {
29013
+ idx++;
29014
+ }
29015
+ }
29084
29016
  }
29085
29017
  exports2.parse = parse;
29086
29018
  }
@@ -29137,7 +29069,7 @@ var require_lib8 = __commonJS({
29137
29069
  return compile_1.compile;
29138
29070
  } });
29139
29071
  function nthCheck(formula) {
29140
- return compile_1.compile(parse_1.parse(formula));
29072
+ return (0, compile_1.compile)((0, parse_1.parse)(formula));
29141
29073
  }
29142
29074
  exports2.default = nthCheck;
29143
29075
  }