rollup 2.47.0 → 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.
package/dist/rollup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.47.0
4
- Tue, 04 May 2021 05:02:40 GMT - commit 6cc9d6b5137dd80fef9618e97471f89f8fbc54ad
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
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.47.0
4
- Tue, 04 May 2021 05:02:40 GMT - commit 6cc9d6b5137dd80fef9618e97471f89f8fbc54ad
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
@@ -18,6 +18,21 @@ var require$$1 = require('stream');
18
18
  var require$$2 = require('os');
19
19
  var rollup = require('./rollup.js');
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$7 = {};
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
  }
@@ -3883,7 +3900,9 @@ const anymatch$1 = (matchers, testString, options = DEFAULT_OPTIONS) => {
3883
3900
  .filter(item => typeof item === 'string' && item.charAt(0) === BANG$1)
3884
3901
  .map(item => item.slice(1))
3885
3902
  .map(item => picomatch(item, opts));
3886
- const patterns = mtchers.map(matcher => createPattern(matcher, opts));
3903
+ const patterns = mtchers
3904
+ .filter(item => typeof item !== 'string' || (typeof item === 'string' && item.charAt(0) !== BANG$1))
3905
+ .map(matcher => createPattern(matcher, opts));
3887
3906
 
3888
3907
  if (testString == null) {
3889
3908
  return (testString, ri = false) => {
@@ -3974,7 +3993,7 @@ var isWin32 = require$$2.platform() === 'win32';
3974
3993
 
3975
3994
  var slash = '/';
3976
3995
  var backslash = /\\/g;
3977
- var enclosure = /[\{\[].*[\/]*.*[\}\]]$/;
3996
+ var enclosure = /[\{\[].*[\}\]]$/;
3978
3997
  var globby = /(^|[^\\])([\{\[]|\([^\)]+$)/;
3979
3998
  var escaped = /\\([\!\*\?\|\[\]\(\)\{\}])/g;
3980
3999
 
@@ -3982,6 +4001,7 @@ var escaped = /\\([\!\*\?\|\[\]\(\)\{\}])/g;
3982
4001
  * @param {string} str
3983
4002
  * @param {Object} opts
3984
4003
  * @param {boolean} [opts.flipBackslashes=true]
4004
+ * @returns {string}
3985
4005
  */
3986
4006
  var globParent$1 = function globParent(str, opts) {
3987
4007
  var options = Object.assign({ flipBackslashes: true }, opts);
@@ -4982,7 +5002,7 @@ var nodefsHandler = NodeFsHandler$1;
4982
5002
 
4983
5003
  var fseventsHandler = {exports: {}};
4984
5004
 
4985
- var require$$3 = /*@__PURE__*/rollup.getAugmentedNamespace(rollup.fseventsImporter);
5005
+ var require$$3 = /*@__PURE__*/getAugmentedNamespace(rollup.fseventsImporter);
4986
5006
 
4987
5007
  const fs$1 = fs$4;
4988
5008
  const sysPath$1 = path$3;
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.47.0
4
- Tue, 04 May 2021 05:02:40 GMT - commit 6cc9d6b5137dd80fef9618e97471f89f8fbc54ad
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
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.47.0
4
- Tue, 04 May 2021 05:02:40 GMT - commit 6cc9d6b5137dd80fef9618e97471f89f8fbc54ad
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