rollup 2.75.4 → 2.75.7

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/rollup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.75.4
4
- Tue, 31 May 2022 11:26:29 GMT - commit 0409bf0d8859a43f2d5d40dc23ebf74afadb83f7
3
+ Rollup.js v2.75.7
4
+ Mon, 20 Jun 2022 07:24:02 GMT - commit 057171c2d3bc2092b7f543fc05ead01f12595f12
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.75.4
4
- Tue, 31 May 2022 11:26:29 GMT - commit 0409bf0d8859a43f2d5d40dc23ebf74afadb83f7
3
+ Rollup.js v2.75.7
4
+ Mon, 20 Jun 2022 07:24:02 GMT - commit 057171c2d3bc2092b7f543fc05ead01f12595f12
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1236,7 +1236,7 @@ const invalidStep = (step, options) => {
1236
1236
  return [];
1237
1237
  };
1238
1238
 
1239
- const fillNumbers = (start, end, step = 1, options) => {
1239
+ const fillNumbers = (start, end, step = 1, options = {}) => {
1240
1240
  let a = Number(start);
1241
1241
  let b = Number(end);
1242
1242
 
@@ -1288,7 +1288,7 @@ const fillNumbers = (start, end, step = 1, options) => {
1288
1288
  return range;
1289
1289
  };
1290
1290
 
1291
- const fillLetters = (start, end, step = 1, options) => {
1291
+ const fillLetters = (start, end, step = 1, options = {}) => {
1292
1292
  if ((!isNumber(start) && start.length > 1) || (!isNumber(end) && end.length > 1)) {
1293
1293
  return invalidRange(start, end, options);
1294
1294
  }
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.75.4
4
- Tue, 31 May 2022 11:26:29 GMT - commit 0409bf0d8859a43f2d5d40dc23ebf74afadb83f7
3
+ Rollup.js v2.75.7
4
+ Mon, 20 Jun 2022 07:24:02 GMT - commit 057171c2d3bc2092b7f543fc05ead01f12595f12
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -35,16 +35,17 @@ const argv = process.argv || [];
35
35
  const isDisabled = "NO_COLOR" in env || argv.includes("--no-color");
36
36
  const isForced = "FORCE_COLOR" in env || argv.includes("--color");
37
37
  const isWindows = process.platform === "win32";
38
+ const isDumbTerminal = env.TERM === "dumb";
38
39
 
39
40
  const isCompatibleTerminal =
40
- tty__namespace && tty__namespace.isatty && tty__namespace.isatty(1) && env.TERM && env.TERM !== "dumb";
41
+ tty__namespace && tty__namespace.isatty && tty__namespace.isatty(1) && env.TERM && !isDumbTerminal;
41
42
 
42
43
  const isCI =
43
44
  "CI" in env &&
44
45
  ("GITHUB_ACTIONS" in env || "GITLAB_CI" in env || "CIRCLECI" in env);
45
46
 
46
47
  const isColorSupported =
47
- !isDisabled && (isForced || isWindows || isCompatibleTerminal || isCI);
48
+ !isDisabled && (isForced || (isWindows && !isDumbTerminal) || isCompatibleTerminal || isCI);
48
49
 
49
50
  const replaceClose = (
50
51
  index,
@@ -121,13 +122,11 @@ const colors = {
121
122
  bgWhiteBright: init(107, 49),
122
123
  };
123
124
 
124
- const none = (any) => any;
125
-
126
125
  const createColors = ({ useColor = isColorSupported } = {}) =>
127
126
  useColor
128
127
  ? colors
129
128
  : Object.keys(colors).reduce(
130
- (colors, key) => ({ ...colors, [key]: none }),
129
+ (colors, key) => ({ ...colors, [key]: String }),
131
130
  {}
132
131
  );
133
132
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.75.4
4
- Tue, 31 May 2022 11:26:29 GMT - commit 0409bf0d8859a43f2d5d40dc23ebf74afadb83f7
3
+ Rollup.js v2.75.7
4
+ Mon, 20 Jun 2022 07:24:02 GMT - commit 057171c2d3bc2092b7f543fc05ead01f12595f12
5
5
 
6
6
  https://github.com/rollup/rollup
7
7