rollup 2.45.1 → 2.48.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.45.1
4
- Sat, 10 Apr 2021 05:04:58 GMT - commit 345ae5d7b760fabb35a778bc7379cf862db0b31f
3
+ Rollup.js v2.48.0
4
+ Sat, 15 May 2021 04:50:11 GMT - commit 07b3a02069594147665daa95d3fa3e041a82b2d0
5
5
 
6
6
 
7
7
  https://github.com/rollup/rollup
@@ -11,13 +11,28 @@
11
11
  import * as require$$0$1 from 'path';
12
12
  import require$$0__default, { sep, resolve } from 'path';
13
13
  import require$$0$2 from 'util';
14
- import { defaultOnWarn, ensureArray as ensureArray$1, warnUnknownOptions, getAugmentedNamespace, fseventsImporter, rollupInternal } from './rollup.js';
14
+ import { defaultOnWarn, ensureArray as ensureArray$1, warnUnknownOptions, fseventsImporter, rollupInternal } from './rollup.js';
15
15
  import require$$0$3 from 'events';
16
16
  import fs__default from 'fs';
17
17
  import require$$1 from 'stream';
18
18
  import require$$2, { platform } from 'os';
19
19
  import 'crypto';
20
20
 
21
+ function getAugmentedNamespace(n) {
22
+ if (n.__esModule) return n;
23
+ var a = Object.defineProperty({}, '__esModule', {value: true});
24
+ Object.keys(n).forEach(function (k) {
25
+ var d = Object.getOwnPropertyDescriptor(n, k);
26
+ Object.defineProperty(a, k, d.get ? d : {
27
+ enumerable: true,
28
+ get: function () {
29
+ return n[k];
30
+ }
31
+ });
32
+ });
33
+ return a;
34
+ }
35
+
21
36
  var utils$8 = {};
22
37
 
23
38
  (function (exports) {
@@ -1915,13 +1930,15 @@ const scan$1 = (input, options) => {
1915
1930
  isBracket = token.isBracket = true;
1916
1931
  isGlob = token.isGlob = true;
1917
1932
  finished = true;
1918
-
1919
- if (scanToEnd === true) {
1920
- continue;
1921
- }
1922
1933
  break;
1923
1934
  }
1924
1935
  }
1936
+
1937
+ if (scanToEnd === true) {
1938
+ continue;
1939
+ }
1940
+
1941
+ break;
1925
1942
  }
1926
1943
 
1927
1944
  if (opts.nonegate !== true && code === CHAR_EXCLAMATION_MARK && index === start) {
@@ -2306,7 +2323,7 @@ const parse$1 = (input, options) => {
2306
2323
  output = token.close = `)$))${extglobStar}`;
2307
2324
  }
2308
2325
 
2309
- if (token.prev.type === 'bos' && eos()) {
2326
+ if (token.prev.type === 'bos') {
2310
2327
  state.negatedExtglob = true;
2311
2328
  }
2312
2329
  }
@@ -3480,7 +3497,7 @@ const util = require$$0$2;
3480
3497
  const braces$1 = braces_1;
3481
3498
  const picomatch$2 = picomatch$3;
3482
3499
  const utils = utils$4;
3483
- const isEmptyString = val => typeof val === 'string' && (val === '' || val === './');
3500
+ const isEmptyString = val => val === '' || val === './';
3484
3501
 
3485
3502
  /**
3486
3503
  * Returns an array of strings that match one or more glob patterns.
@@ -3492,9 +3509,9 @@ const isEmptyString = val => typeof val === 'string' && (val === '' || val === '
3492
3509
  * console.log(mm(['a.js', 'a.txt'], ['*.js']));
3493
3510
  * //=> [ 'a.js' ]
3494
3511
  * ```
3495
- * @param {String|Array<string>} list List of strings to match.
3496
- * @param {String|Array<string>} patterns One or more glob patterns to use for matching.
3497
- * @param {Object} options See available [options](#options)
3512
+ * @param {String|Array<string>} `list` List of strings to match.
3513
+ * @param {String|Array<string>} `patterns` One or more glob patterns to use for matching.
3514
+ * @param {Object} `options` See available [options](#options)
3498
3515
  * @return {Array} Returns an array of matches
3499
3516
  * @summary false
3500
3517
  * @api public
@@ -3589,9 +3606,9 @@ micromatch.matcher = (pattern, options) => picomatch$2(pattern, options);
3589
3606
  * console.log(mm.isMatch('a.a', ['b.*', '*.a'])); //=> true
3590
3607
  * console.log(mm.isMatch('a.a', 'b.*')); //=> false
3591
3608
  * ```
3592
- * @param {String} str The string to test.
3593
- * @param {String|Array} patterns One or more glob patterns to use for matching.
3594
- * @param {Object} [options] See available [options](#options).
3609
+ * @param {String} `str` The string to test.
3610
+ * @param {String|Array} `patterns` One or more glob patterns to use for matching.
3611
+ * @param {Object} `[options]` See available [options](#options).
3595
3612
  * @return {Boolean} Returns true if any patterns match `str`
3596
3613
  * @api public
3597
3614
  */
@@ -3657,7 +3674,7 @@ micromatch.not = (list, patterns, options = {}) => {
3657
3674
  * @param {String} `str` The string to match.
3658
3675
  * @param {String|Array} `patterns` Glob pattern to use for matching.
3659
3676
  * @param {Object} `options` See available [options](#options) for changing how matches are performed
3660
- * @return {Boolean} Returns true if the patter matches any part of `str`.
3677
+ * @return {Boolean} Returns true if any of the patterns matches any part of `str`.
3661
3678
  * @api public
3662
3679
  */
3663
3680
 
@@ -3728,7 +3745,7 @@ micromatch.matchKeys = (obj, patterns, options) => {
3728
3745
  * @param {String|Array} `list` The string or array of strings to test. Returns as soon as the first match is found.
3729
3746
  * @param {String|Array} `patterns` One or more glob patterns to use for matching.
3730
3747
  * @param {Object} `options` See available [options](#options) for changing how matches are performed
3731
- * @return {Boolean} Returns true if any patterns match `str`
3748
+ * @return {Boolean} Returns true if any `patterns` matches any of the strings in `list`
3732
3749
  * @api public
3733
3750
  */
3734
3751
 
@@ -3764,7 +3781,7 @@ micromatch.some = (list, patterns, options) => {
3764
3781
  * @param {String|Array} `list` The string or array of strings to test.
3765
3782
  * @param {String|Array} `patterns` One or more glob patterns to use for matching.
3766
3783
  * @param {Object} `options` See available [options](#options) for changing how matches are performed
3767
- * @return {Boolean} Returns true if any patterns match `str`
3784
+ * @return {Boolean} Returns true if all `patterns` matches all of the strings in `list`
3768
3785
  * @api public
3769
3786
  */
3770
3787
 
@@ -3830,7 +3847,7 @@ micromatch.all = (str, patterns, options) => {
3830
3847
  * @param {String} `glob` Glob pattern to use for matching.
3831
3848
  * @param {String} `input` String to match
3832
3849
  * @param {Object} `options` See available [options](#options) for changing how matches are performed
3833
- * @return {Boolean} Returns an array of captures if the input matches the glob pattern, otherwise `null`.
3850
+ * @return {Array|null} Returns an array of captures if the input matches the glob pattern, otherwise `null`.
3834
3851
  * @api public
3835
3852
  */
3836
3853
 
@@ -4132,6 +4149,7 @@ function mergeOutputOptions(config, overrides, warn) {
4132
4149
  preferConst: getOption('preferConst'),
4133
4150
  preserveModules: getOption('preserveModules'),
4134
4151
  preserveModulesRoot: getOption('preserveModulesRoot'),
4152
+ sanitizeFileName: getOption('sanitizeFileName'),
4135
4153
  sourcemap: getOption('sourcemap'),
4136
4154
  sourcemapExcludeSources: getOption('sourcemapExcludeSources'),
4137
4155
  sourcemapFile: getOption('sourcemapFile'),
@@ -4551,7 +4569,9 @@ const anymatch$1 = (matchers, testString, options = DEFAULT_OPTIONS) => {
4551
4569
  .filter(item => typeof item === 'string' && item.charAt(0) === BANG$1)
4552
4570
  .map(item => item.slice(1))
4553
4571
  .map(item => picomatch(item, opts));
4554
- const patterns = mtchers.map(matcher => createPattern(matcher, opts));
4572
+ const patterns = mtchers
4573
+ .filter(item => typeof item !== 'string' || (typeof item === 'string' && item.charAt(0) !== BANG$1))
4574
+ .map(matcher => createPattern(matcher, opts));
4555
4575
 
4556
4576
  if (testString == null) {
4557
4577
  return (testString, ri = false) => {
@@ -4642,7 +4662,7 @@ var isWin32 = require$$2.platform() === 'win32';
4642
4662
 
4643
4663
  var slash = '/';
4644
4664
  var backslash = /\\/g;
4645
- var enclosure = /[\{\[].*[\/]*.*[\}\]]$/;
4665
+ var enclosure = /[\{\[].*[\}\]]$/;
4646
4666
  var globby = /(^|[^\\])([\{\[]|\([^\)]+$)/;
4647
4667
  var escaped = /\\([\!\*\?\|\[\]\(\)\{\}])/g;
4648
4668
 
@@ -4650,6 +4670,7 @@ var escaped = /\\([\!\*\?\|\[\]\(\)\{\}])/g;
4650
4670
  * @param {string} str
4651
4671
  * @param {Object} opts
4652
4672
  * @param {boolean} [opts.flipBackslashes=true]
4673
+ * @returns {string}
4653
4674
  */
4654
4675
  var globParent$1 = function globParent(str, opts) {
4655
4676
  var options = Object.assign({ flipBackslashes: true }, opts);
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.45.1
4
- Sat, 10 Apr 2021 05:04:58 GMT - commit 345ae5d7b760fabb35a778bc7379cf862db0b31f
3
+ Rollup.js v2.48.0
4
+ Sat, 15 May 2021 04:50:11 GMT - commit 07b3a02069594147665daa95d3fa3e041a82b2d0
5
5
 
6
6
 
7
7
  https://github.com/rollup/rollup