rollup 2.70.2 → 2.72.0

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.
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.70.2
4
- Fri, 15 Apr 2022 05:14:21 GMT - commit 030c56fd6b186a0ddfd57d143ad703f34fd2c17a
3
+ Rollup.js v2.72.0
4
+ Thu, 05 May 2022 04:32:50 GMT - commit 19aef1315cf45b04c74c37a290cbef8072ddfa6b
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -11,10 +11,10 @@ import require$$0$2, { resolve } from 'path';
11
11
  import process$1 from 'process';
12
12
  import { defaultOnWarn, ensureArray, warnUnknownOptions, objectifyOptionWithPresets, treeshakePresets, objectifyOption, generatedCodePresets, picomatch as picomatch$2, getAugmentedNamespace, fseventsImporter, createFilter, rollupInternal } from './rollup.js';
13
13
  import require$$2$1, { platform } from 'os';
14
- import require$$0$3 from 'events';
15
14
  import require$$0$1 from 'fs';
16
15
  import require$$2 from 'util';
17
16
  import require$$1 from 'stream';
17
+ import require$$0$3 from 'events';
18
18
  import 'perf_hooks';
19
19
  import 'crypto';
20
20
 
@@ -173,13 +173,13 @@ function mergeOutputOptions(config, overrides, warn) {
173
173
  return outputOptions;
174
174
  }
175
175
 
176
- var chokidar$1 = {};
176
+ var chokidar = {};
177
177
 
178
178
  const fs$3 = require$$0$1;
179
179
  const { Readable } = require$$1;
180
180
  const sysPath$3 = require$$0$2;
181
181
  const { promisify: promisify$3 } = require$$2;
182
- const picomatch$1 = picomatch$2;
182
+ const picomatch$1 = picomatch$2.exports;
183
183
 
184
184
  const readdir$1 = promisify$3(fs$3.readdir);
185
185
  const stat$3 = promisify$3(fs$3.stat);
@@ -501,7 +501,7 @@ var normalizePath$2 = function(path, stripTrailing) {
501
501
 
502
502
  Object.defineProperty(anymatch$2.exports, "__esModule", { value: true });
503
503
 
504
- const picomatch = picomatch$2;
504
+ const picomatch = picomatch$2.exports;
505
505
  const normalizePath$1 = normalizePath$2;
506
506
 
507
507
  /**
@@ -819,117 +819,117 @@ var utils$3 = {};
819
819
 
820
820
  (function (exports) {
821
821
 
822
- exports.isInteger = num => {
823
- if (typeof num === 'number') {
824
- return Number.isInteger(num);
825
- }
826
- if (typeof num === 'string' && num.trim() !== '') {
827
- return Number.isInteger(Number(num));
828
- }
829
- return false;
830
- };
831
-
832
- /**
833
- * Find a node of the given type
834
- */
835
-
836
- exports.find = (node, type) => node.nodes.find(node => node.type === type);
837
-
838
- /**
839
- * Find a node of the given type
840
- */
841
-
842
- exports.exceedsLimit = (min, max, step = 1, limit) => {
843
- if (limit === false) return false;
844
- if (!exports.isInteger(min) || !exports.isInteger(max)) return false;
845
- return ((Number(max) - Number(min)) / Number(step)) >= limit;
846
- };
847
-
848
- /**
849
- * Escape the given node with '\\' before node.value
850
- */
851
-
852
- exports.escapeNode = (block, n = 0, type) => {
853
- let node = block.nodes[n];
854
- if (!node) return;
855
-
856
- if ((type && node.type === type) || node.type === 'open' || node.type === 'close') {
857
- if (node.escaped !== true) {
858
- node.value = '\\' + node.value;
859
- node.escaped = true;
860
- }
861
- }
862
- };
863
-
864
- /**
865
- * Returns true if the given brace node should be enclosed in literal braces
866
- */
867
-
868
- exports.encloseBrace = node => {
869
- if (node.type !== 'brace') return false;
870
- if ((node.commas >> 0 + node.ranges >> 0) === 0) {
871
- node.invalid = true;
872
- return true;
873
- }
874
- return false;
875
- };
876
-
877
- /**
878
- * Returns true if a brace node is invalid.
879
- */
880
-
881
- exports.isInvalidBrace = block => {
882
- if (block.type !== 'brace') return false;
883
- if (block.invalid === true || block.dollar) return true;
884
- if ((block.commas >> 0 + block.ranges >> 0) === 0) {
885
- block.invalid = true;
886
- return true;
887
- }
888
- if (block.open !== true || block.close !== true) {
889
- block.invalid = true;
890
- return true;
891
- }
892
- return false;
893
- };
894
-
895
- /**
896
- * Returns true if a node is an open or close node
897
- */
898
-
899
- exports.isOpenOrClose = node => {
900
- if (node.type === 'open' || node.type === 'close') {
901
- return true;
902
- }
903
- return node.open === true || node.close === true;
904
- };
905
-
906
- /**
907
- * Reduce an array of text nodes.
908
- */
909
-
910
- exports.reduce = nodes => nodes.reduce((acc, node) => {
911
- if (node.type === 'text') acc.push(node.value);
912
- if (node.type === 'range') node.type = 'text';
913
- return acc;
914
- }, []);
915
-
916
- /**
917
- * Flatten an array
918
- */
919
-
920
- exports.flatten = (...args) => {
921
- const result = [];
922
- const flat = arr => {
923
- for (let i = 0; i < arr.length; i++) {
924
- let ele = arr[i];
925
- Array.isArray(ele) ? flat(ele) : ele !== void 0 && result.push(ele);
926
- }
927
- return result;
928
- };
929
- flat(args);
930
- return result;
931
- };
932
- }(utils$3));
822
+ exports.isInteger = num => {
823
+ if (typeof num === 'number') {
824
+ return Number.isInteger(num);
825
+ }
826
+ if (typeof num === 'string' && num.trim() !== '') {
827
+ return Number.isInteger(Number(num));
828
+ }
829
+ return false;
830
+ };
831
+
832
+ /**
833
+ * Find a node of the given type
834
+ */
835
+
836
+ exports.find = (node, type) => node.nodes.find(node => node.type === type);
837
+
838
+ /**
839
+ * Find a node of the given type
840
+ */
841
+
842
+ exports.exceedsLimit = (min, max, step = 1, limit) => {
843
+ if (limit === false) return false;
844
+ if (!exports.isInteger(min) || !exports.isInteger(max)) return false;
845
+ return ((Number(max) - Number(min)) / Number(step)) >= limit;
846
+ };
847
+
848
+ /**
849
+ * Escape the given node with '\\' before node.value
850
+ */
851
+
852
+ exports.escapeNode = (block, n = 0, type) => {
853
+ let node = block.nodes[n];
854
+ if (!node) return;
855
+
856
+ if ((type && node.type === type) || node.type === 'open' || node.type === 'close') {
857
+ if (node.escaped !== true) {
858
+ node.value = '\\' + node.value;
859
+ node.escaped = true;
860
+ }
861
+ }
862
+ };
863
+
864
+ /**
865
+ * Returns true if the given brace node should be enclosed in literal braces
866
+ */
867
+
868
+ exports.encloseBrace = node => {
869
+ if (node.type !== 'brace') return false;
870
+ if ((node.commas >> 0 + node.ranges >> 0) === 0) {
871
+ node.invalid = true;
872
+ return true;
873
+ }
874
+ return false;
875
+ };
876
+
877
+ /**
878
+ * Returns true if a brace node is invalid.
879
+ */
880
+
881
+ exports.isInvalidBrace = block => {
882
+ if (block.type !== 'brace') return false;
883
+ if (block.invalid === true || block.dollar) return true;
884
+ if ((block.commas >> 0 + block.ranges >> 0) === 0) {
885
+ block.invalid = true;
886
+ return true;
887
+ }
888
+ if (block.open !== true || block.close !== true) {
889
+ block.invalid = true;
890
+ return true;
891
+ }
892
+ return false;
893
+ };
894
+
895
+ /**
896
+ * Returns true if a node is an open or close node
897
+ */
898
+
899
+ exports.isOpenOrClose = node => {
900
+ if (node.type === 'open' || node.type === 'close') {
901
+ return true;
902
+ }
903
+ return node.open === true || node.close === true;
904
+ };
905
+
906
+ /**
907
+ * Reduce an array of text nodes.
908
+ */
909
+
910
+ exports.reduce = nodes => nodes.reduce((acc, node) => {
911
+ if (node.type === 'text') acc.push(node.value);
912
+ if (node.type === 'range') node.type = 'text';
913
+ return acc;
914
+ }, []);
915
+
916
+ /**
917
+ * Flatten an array
918
+ */
919
+
920
+ exports.flatten = (...args) => {
921
+ const result = [];
922
+ const flat = arr => {
923
+ for (let i = 0; i < arr.length; i++) {
924
+ let ele = arr[i];
925
+ Array.isArray(ele) ? flat(ele) : ele !== void 0 && result.push(ele);
926
+ }
927
+ return result;
928
+ };
929
+ flat(args);
930
+ return result;
931
+ };
932
+ } (utils$3));
933
933
 
934
934
  const utils$2 = utils$3;
935
935
 
@@ -2235,6 +2235,8 @@ braces$1.create = (input, options = {}) => {
2235
2235
 
2236
2236
  var braces_1 = braces$1;
2237
2237
 
2238
+ var binaryExtensions$1 = {exports: {}};
2239
+
2238
2240
  const require$$0 = [
2239
2241
  "3dm",
2240
2242
  "3ds",
@@ -2496,10 +2498,12 @@ const require$$0 = [
2496
2498
  "zipx"
2497
2499
  ];
2498
2500
 
2499
- var binaryExtensions$1 = require$$0;
2501
+ (function (module) {
2502
+ module.exports = require$$0;
2503
+ } (binaryExtensions$1));
2500
2504
 
2501
2505
  const path = require$$0$2;
2502
- const binaryExtensions = binaryExtensions$1;
2506
+ const binaryExtensions = binaryExtensions$1.exports;
2503
2507
 
2504
2508
  const extensions = new Set(binaryExtensions);
2505
2509
 
@@ -2509,70 +2513,70 @@ var constants = {};
2509
2513
 
2510
2514
  (function (exports) {
2511
2515
 
2512
- const {sep} = require$$0$2;
2513
- const {platform} = process;
2514
- const os = require$$2$1;
2515
-
2516
- exports.EV_ALL = 'all';
2517
- exports.EV_READY = 'ready';
2518
- exports.EV_ADD = 'add';
2519
- exports.EV_CHANGE = 'change';
2520
- exports.EV_ADD_DIR = 'addDir';
2521
- exports.EV_UNLINK = 'unlink';
2522
- exports.EV_UNLINK_DIR = 'unlinkDir';
2523
- exports.EV_RAW = 'raw';
2524
- exports.EV_ERROR = 'error';
2525
-
2526
- exports.STR_DATA = 'data';
2527
- exports.STR_END = 'end';
2528
- exports.STR_CLOSE = 'close';
2529
-
2530
- exports.FSEVENT_CREATED = 'created';
2531
- exports.FSEVENT_MODIFIED = 'modified';
2532
- exports.FSEVENT_DELETED = 'deleted';
2533
- exports.FSEVENT_MOVED = 'moved';
2534
- exports.FSEVENT_CLONED = 'cloned';
2535
- exports.FSEVENT_UNKNOWN = 'unknown';
2536
- exports.FSEVENT_TYPE_FILE = 'file';
2537
- exports.FSEVENT_TYPE_DIRECTORY = 'directory';
2538
- exports.FSEVENT_TYPE_SYMLINK = 'symlink';
2539
-
2540
- exports.KEY_LISTENERS = 'listeners';
2541
- exports.KEY_ERR = 'errHandlers';
2542
- exports.KEY_RAW = 'rawEmitters';
2543
- exports.HANDLER_KEYS = [exports.KEY_LISTENERS, exports.KEY_ERR, exports.KEY_RAW];
2544
-
2545
- exports.DOT_SLASH = `.${sep}`;
2546
-
2547
- exports.BACK_SLASH_RE = /\\/g;
2548
- exports.DOUBLE_SLASH_RE = /\/\//;
2549
- exports.SLASH_OR_BACK_SLASH_RE = /[/\\]/;
2550
- exports.DOT_RE = /\..*\.(sw[px])$|~$|\.subl.*\.tmp/;
2551
- exports.REPLACER_RE = /^\.[/\\]/;
2552
-
2553
- exports.SLASH = '/';
2554
- exports.SLASH_SLASH = '//';
2555
- exports.BRACE_START = '{';
2556
- exports.BANG = '!';
2557
- exports.ONE_DOT = '.';
2558
- exports.TWO_DOTS = '..';
2559
- exports.STAR = '*';
2560
- exports.GLOBSTAR = '**';
2561
- exports.ROOT_GLOBSTAR = '/**/*';
2562
- exports.SLASH_GLOBSTAR = '/**';
2563
- exports.DIR_SUFFIX = 'Dir';
2564
- exports.ANYMATCH_OPTS = {dot: true};
2565
- exports.STRING_TYPE = 'string';
2566
- exports.FUNCTION_TYPE = 'function';
2567
- exports.EMPTY_STR = '';
2568
- exports.EMPTY_FN = () => {};
2569
- exports.IDENTITY_FN = val => val;
2570
-
2571
- exports.isWindows = platform === 'win32';
2572
- exports.isMacos = platform === 'darwin';
2573
- exports.isLinux = platform === 'linux';
2574
- exports.isIBMi = os.type() === 'OS400';
2575
- }(constants));
2516
+ const {sep} = require$$0$2;
2517
+ const {platform} = process;
2518
+ const os = require$$2$1;
2519
+
2520
+ exports.EV_ALL = 'all';
2521
+ exports.EV_READY = 'ready';
2522
+ exports.EV_ADD = 'add';
2523
+ exports.EV_CHANGE = 'change';
2524
+ exports.EV_ADD_DIR = 'addDir';
2525
+ exports.EV_UNLINK = 'unlink';
2526
+ exports.EV_UNLINK_DIR = 'unlinkDir';
2527
+ exports.EV_RAW = 'raw';
2528
+ exports.EV_ERROR = 'error';
2529
+
2530
+ exports.STR_DATA = 'data';
2531
+ exports.STR_END = 'end';
2532
+ exports.STR_CLOSE = 'close';
2533
+
2534
+ exports.FSEVENT_CREATED = 'created';
2535
+ exports.FSEVENT_MODIFIED = 'modified';
2536
+ exports.FSEVENT_DELETED = 'deleted';
2537
+ exports.FSEVENT_MOVED = 'moved';
2538
+ exports.FSEVENT_CLONED = 'cloned';
2539
+ exports.FSEVENT_UNKNOWN = 'unknown';
2540
+ exports.FSEVENT_TYPE_FILE = 'file';
2541
+ exports.FSEVENT_TYPE_DIRECTORY = 'directory';
2542
+ exports.FSEVENT_TYPE_SYMLINK = 'symlink';
2543
+
2544
+ exports.KEY_LISTENERS = 'listeners';
2545
+ exports.KEY_ERR = 'errHandlers';
2546
+ exports.KEY_RAW = 'rawEmitters';
2547
+ exports.HANDLER_KEYS = [exports.KEY_LISTENERS, exports.KEY_ERR, exports.KEY_RAW];
2548
+
2549
+ exports.DOT_SLASH = `.${sep}`;
2550
+
2551
+ exports.BACK_SLASH_RE = /\\/g;
2552
+ exports.DOUBLE_SLASH_RE = /\/\//;
2553
+ exports.SLASH_OR_BACK_SLASH_RE = /[/\\]/;
2554
+ exports.DOT_RE = /\..*\.(sw[px])$|~$|\.subl.*\.tmp/;
2555
+ exports.REPLACER_RE = /^\.[/\\]/;
2556
+
2557
+ exports.SLASH = '/';
2558
+ exports.SLASH_SLASH = '//';
2559
+ exports.BRACE_START = '{';
2560
+ exports.BANG = '!';
2561
+ exports.ONE_DOT = '.';
2562
+ exports.TWO_DOTS = '..';
2563
+ exports.STAR = '*';
2564
+ exports.GLOBSTAR = '**';
2565
+ exports.ROOT_GLOBSTAR = '/**/*';
2566
+ exports.SLASH_GLOBSTAR = '/**';
2567
+ exports.DIR_SUFFIX = 'Dir';
2568
+ exports.ANYMATCH_OPTS = {dot: true};
2569
+ exports.STRING_TYPE = 'string';
2570
+ exports.FUNCTION_TYPE = 'function';
2571
+ exports.EMPTY_STR = '';
2572
+ exports.EMPTY_FN = () => {};
2573
+ exports.IDENTITY_FN = val => val;
2574
+
2575
+ exports.isWindows = platform === 'win32';
2576
+ exports.isMacos = platform === 'darwin';
2577
+ exports.isLinux = platform === 'linux';
2578
+ exports.isIBMi = os.type() === 'OS400';
2579
+ } (constants));
2576
2580
 
2577
2581
  const fs$2 = require$$0$1;
2578
2582
  const sysPath$2 = require$$0$2;
@@ -4700,7 +4704,7 @@ _readdirp(root, opts) {
4700
4704
  }
4701
4705
 
4702
4706
  // Export FSWatcher class
4703
- chokidar$1.FSWatcher = FSWatcher;
4707
+ chokidar.FSWatcher = FSWatcher;
4704
4708
 
4705
4709
  /**
4706
4710
  * Instantiates watcher with paths to be tracked.
@@ -4714,9 +4718,7 @@ const watch = (paths, options) => {
4714
4718
  return watcher;
4715
4719
  };
4716
4720
 
4717
- chokidar$1.watch = watch;
4718
-
4719
- const chokidar = chokidar$1;
4721
+ chokidar.watch = watch;
4720
4722
 
4721
4723
  class FileWatcher {
4722
4724
  constructor(task, chokidarOptions) {
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.70.2
4
- Fri, 15 Apr 2022 05:14:21 GMT - commit 030c56fd6b186a0ddfd57d143ad703f34fd2c17a
3
+ Rollup.js v2.72.0
4
+ Thu, 05 May 2022 04:32:50 GMT - commit 19aef1315cf45b04c74c37a290cbef8072ddfa6b
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -9,19 +9,19 @@
9
9
  */
10
10
  'use strict';
11
11
 
12
+ const loadConfigFile = require('./shared/loadConfigFile.js');
12
13
  require('fs');
13
14
  require('path');
14
15
  require('process');
15
16
  require('url');
16
- const loadConfigFile_js = require('./shared/loadConfigFile.js');
17
17
  require('./shared/rollup.js');
18
- require('./shared/mergeOptions.js');
19
- require('tty');
20
18
  require('perf_hooks');
21
19
  require('crypto');
22
20
  require('events');
21
+ require('tty');
22
+ require('./shared/mergeOptions.js');
23
23
 
24
24
 
25
25
 
26
- module.exports = loadConfigFile_js.loadAndParseConfigFile;
26
+ module.exports = loadConfigFile.loadAndParseConfigFile;
27
27
  //# sourceMappingURL=loadConfigFile.js.map