tailwindcss 2.2.15 → 2.2.19
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/base.css +1 -1
- package/dist/base.min.css +1 -1
- package/dist/tailwind-dark.css +1 -1
- package/dist/tailwind-dark.min.css +1 -1
- package/dist/tailwind-experimental.css +1 -1
- package/dist/tailwind-experimental.min.css +1 -1
- package/dist/tailwind.css +1 -1
- package/dist/tailwind.min.css +1 -1
- package/lib/cli.js +5 -1
- package/lib/jit/lib/setupWatchingContext.js +5 -1
- package/lib/util/parseAnimationValue.js +7 -1
- package/lib/util/resolveConfig.js +1 -1
- package/package.json +1 -1
- package/peers/index.js +52 -15
- package/CHANGELOG.md +0 -1706
package/lib/cli.js
CHANGED
|
@@ -740,7 +740,11 @@ async function build() {
|
|
|
740
740
|
}
|
|
741
741
|
|
|
742
742
|
watcher = _chokidar.default.watch([...contextDependencies, ...extractFileGlobs(config)], {
|
|
743
|
-
ignoreInitial: true
|
|
743
|
+
ignoreInitial: true,
|
|
744
|
+
awaitWriteFinish: process.platform === 'win32' ? {
|
|
745
|
+
stabilityThreshold: 50,
|
|
746
|
+
pollInterval: 10
|
|
747
|
+
} : false
|
|
744
748
|
});
|
|
745
749
|
let chain = Promise.resolve();
|
|
746
750
|
watcher.on('change', async file => {
|
|
@@ -97,7 +97,11 @@ function rebootWatcher(context, configPath, configDependencies, candidateFiles)
|
|
|
97
97
|
_log.default.info(['Tailwind CSS is watching for changes...', 'https://tailwindcss.com/docs/just-in-time-mode#watch-mode-and-one-off-builds']);
|
|
98
98
|
|
|
99
99
|
watcher = _chokidar.default.watch([...candidateFiles, ...configDependencies], {
|
|
100
|
-
ignoreInitial: true
|
|
100
|
+
ignoreInitial: true,
|
|
101
|
+
awaitWriteFinish: process.platform === 'win32' ? {
|
|
102
|
+
stabilityThreshold: 50,
|
|
103
|
+
pollInterval: 10
|
|
104
|
+
} : false
|
|
101
105
|
});
|
|
102
106
|
setWatcher(context, watcher);
|
|
103
107
|
watcher.on('add', file => {
|
|
@@ -52,7 +52,13 @@ function parseAnimationValue(input) {
|
|
|
52
52
|
} else if (!seen.has('DELAY') && TIME.test(part)) {
|
|
53
53
|
result.delay = part;
|
|
54
54
|
seen.add('DELAY');
|
|
55
|
-
} else
|
|
55
|
+
} else if (!seen.has('NAME')) {
|
|
56
|
+
result.name = part;
|
|
57
|
+
seen.add('NAME');
|
|
58
|
+
} else {
|
|
59
|
+
if (!result.unknown) result.unknown = [];
|
|
60
|
+
result.unknown.push(part);
|
|
61
|
+
}
|
|
56
62
|
}
|
|
57
63
|
|
|
58
64
|
return result;
|
|
@@ -248,7 +248,7 @@ function resolveCorePlugins(corePluginConfigs) {
|
|
|
248
248
|
}
|
|
249
249
|
|
|
250
250
|
return (0, _configurePlugins.default)(corePluginConfig, resolved);
|
|
251
|
-
}, _corePluginList.default);
|
|
251
|
+
}, _corePluginList.default).slice().sort((a, z) => Math.sign(_corePluginList.default.indexOf(a) - _corePluginList.default.indexOf(z)));
|
|
252
252
|
return result;
|
|
253
253
|
}
|
|
254
254
|
|
package/package.json
CHANGED
package/peers/index.js
CHANGED
|
@@ -40134,7 +40134,7 @@ Object.defineProperty(exports, "compile", ({ enumerable: true, get: function ()
|
|
|
40134
40134
|
* check(6); // `true`
|
|
40135
40135
|
*/
|
|
40136
40136
|
function nthCheck(formula) {
|
|
40137
|
-
return compile_1.compile(parse_1.parse(formula));
|
|
40137
|
+
return (0, compile_1.compile)((0, parse_1.parse)(formula));
|
|
40138
40138
|
}
|
|
40139
40139
|
exports.default = nthCheck;
|
|
40140
40140
|
|
|
@@ -40149,8 +40149,10 @@ exports.default = nthCheck;
|
|
|
40149
40149
|
// Following http://www.w3.org/TR/css3-selectors/#nth-child-pseudo
|
|
40150
40150
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
40151
40151
|
exports.parse = void 0;
|
|
40152
|
-
//
|
|
40153
|
-
var
|
|
40152
|
+
// Whitespace as per https://www.w3.org/TR/selectors-3/#lex is " \t\r\n\f"
|
|
40153
|
+
var whitespace = new Set([9, 10, 12, 13, 32]);
|
|
40154
|
+
var ZERO = "0".charCodeAt(0);
|
|
40155
|
+
var NINE = "9".charCodeAt(0);
|
|
40154
40156
|
/**
|
|
40155
40157
|
* Parses an expression.
|
|
40156
40158
|
*
|
|
@@ -40166,22 +40168,57 @@ function parse(formula) {
|
|
|
40166
40168
|
else if (formula === "odd") {
|
|
40167
40169
|
return [2, 1];
|
|
40168
40170
|
}
|
|
40169
|
-
|
|
40170
|
-
|
|
40171
|
+
// Parse [ ['-'|'+']? INTEGER? {N} [ S* ['-'|'+'] S* INTEGER ]?
|
|
40172
|
+
var idx = 0;
|
|
40173
|
+
var a = 0;
|
|
40174
|
+
var sign = readSign();
|
|
40175
|
+
var number = readNumber();
|
|
40176
|
+
if (idx < formula.length && formula.charAt(idx) === "n") {
|
|
40177
|
+
idx++;
|
|
40178
|
+
a = sign * (number !== null && number !== void 0 ? number : 1);
|
|
40179
|
+
skipWhitespace();
|
|
40180
|
+
if (idx < formula.length) {
|
|
40181
|
+
sign = readSign();
|
|
40182
|
+
skipWhitespace();
|
|
40183
|
+
number = readNumber();
|
|
40184
|
+
}
|
|
40185
|
+
else {
|
|
40186
|
+
sign = number = 0;
|
|
40187
|
+
}
|
|
40188
|
+
}
|
|
40189
|
+
// Throw if there is anything else
|
|
40190
|
+
if (number === null || idx < formula.length) {
|
|
40171
40191
|
throw new Error("n-th rule couldn't be parsed ('" + formula + "')");
|
|
40172
40192
|
}
|
|
40173
|
-
|
|
40174
|
-
|
|
40175
|
-
|
|
40176
|
-
|
|
40177
|
-
|
|
40193
|
+
return [a, sign * number];
|
|
40194
|
+
function readSign() {
|
|
40195
|
+
if (formula.charAt(idx) === "-") {
|
|
40196
|
+
idx++;
|
|
40197
|
+
return -1;
|
|
40198
|
+
}
|
|
40199
|
+
if (formula.charAt(idx) === "+") {
|
|
40200
|
+
idx++;
|
|
40201
|
+
}
|
|
40202
|
+
return 1;
|
|
40203
|
+
}
|
|
40204
|
+
function readNumber() {
|
|
40205
|
+
var start = idx;
|
|
40206
|
+
var value = 0;
|
|
40207
|
+
while (idx < formula.length &&
|
|
40208
|
+
formula.charCodeAt(idx) >= ZERO &&
|
|
40209
|
+
formula.charCodeAt(idx) <= NINE) {
|
|
40210
|
+
value = value * 10 + (formula.charCodeAt(idx) - ZERO);
|
|
40211
|
+
idx++;
|
|
40212
|
+
}
|
|
40213
|
+
// Return `null` if we didn't read anything.
|
|
40214
|
+
return idx === start ? null : value;
|
|
40215
|
+
}
|
|
40216
|
+
function skipWhitespace() {
|
|
40217
|
+
while (idx < formula.length &&
|
|
40218
|
+
whitespace.has(formula.charCodeAt(idx))) {
|
|
40219
|
+
idx++;
|
|
40178
40220
|
}
|
|
40179
40221
|
}
|
|
40180
|
-
else
|
|
40181
|
-
a = 0;
|
|
40182
|
-
var b = (parsed[2] === "-" ? -1 : 1) *
|
|
40183
|
-
(parsed[3] ? parseInt(parsed[3], 10) : 0);
|
|
40184
|
-
return [a, b];
|
|
40185
40222
|
}
|
|
40186
40223
|
exports.parse = parse;
|
|
40187
40224
|
|