rollup 2.78.0 → 2.78.1

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.78.0
4
- Sun, 14 Aug 2022 04:30:34 GMT - commit 105b264847892c8f7966364d73f6900554178f58
3
+ Rollup.js v2.78.1
4
+ Fri, 19 Aug 2022 05:19:43 GMT - commit 398d0c4970b679795025f36e320f8aecb2859d24
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.78.0
4
- Sun, 14 Aug 2022 04:30:34 GMT - commit 105b264847892c8f7966364d73f6900554178f58
3
+ Rollup.js v2.78.1
4
+ Fri, 19 Aug 2022 05:19:43 GMT - commit 398d0c4970b679795025f36e320f8aecb2859d24
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.78.0
4
- Sun, 14 Aug 2022 04:30:34 GMT - commit 105b264847892c8f7966364d73f6900554178f58
3
+ Rollup.js v2.78.1
4
+ Fri, 19 Aug 2022 05:19:43 GMT - commit 398d0c4970b679795025f36e320f8aecb2859d24
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.78.0
4
- Sun, 14 Aug 2022 04:30:34 GMT - commit 105b264847892c8f7966364d73f6900554178f58
3
+ Rollup.js v2.78.1
4
+ Fri, 19 Aug 2022 05:19:43 GMT - commit 398d0c4970b679795025f36e320f8aecb2859d24
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.78.0
4
- Sun, 14 Aug 2022 04:30:34 GMT - commit 105b264847892c8f7966364d73f6900554178f58
3
+ Rollup.js v2.78.1
4
+ Fri, 19 Aug 2022 05:19:43 GMT - commit 398d0c4970b679795025f36e320f8aecb2859d24
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -27,7 +27,7 @@ function _interopNamespaceDefault(e) {
27
27
  return n;
28
28
  }
29
29
 
30
- var version$1 = "2.78.0";
30
+ var version$1 = "2.78.1";
31
31
 
32
32
  function ensureArray$1(items) {
33
33
  if (Array.isArray(items)) {
@@ -2426,15 +2426,16 @@ const RESERVED_NAMES$1 = RESERVED_NAMES;
2426
2426
 
2427
2427
  const illegalCharacters = /[^$_a-zA-Z0-9]/g;
2428
2428
  const startsWithDigit = (str) => /\d/.test(str[0]);
2429
+ const needsEscape = (str) => startsWithDigit(str) || RESERVED_NAMES$1.has(str) || str === 'arguments';
2429
2430
  function isLegal(str) {
2430
- if (startsWithDigit(str) || RESERVED_NAMES$1.has(str)) {
2431
+ if (needsEscape(str)) {
2431
2432
  return false;
2432
2433
  }
2433
2434
  return !illegalCharacters.test(str);
2434
2435
  }
2435
2436
  function makeLegal(str) {
2436
2437
  str = str.replace(/-(\w)/g, (_, letter) => letter.toUpperCase()).replace(illegalCharacters, '_');
2437
- if (startsWithDigit(str) || RESERVED_NAMES$1.has(str))
2438
+ if (needsEscape(str))
2438
2439
  str = `_${str}`;
2439
2440
  return str || '_';
2440
2441
  }
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.78.0
4
- Sun, 14 Aug 2022 04:30:34 GMT - commit 105b264847892c8f7966364d73f6900554178f58
3
+ Rollup.js v2.78.1
4
+ Fri, 19 Aug 2022 05:19:43 GMT - commit 398d0c4970b679795025f36e320f8aecb2859d24
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.78.0
4
- Sun, 14 Aug 2022 04:30:34 GMT - commit 105b264847892c8f7966364d73f6900554178f58
3
+ Rollup.js v2.78.1
4
+ Fri, 19 Aug 2022 05:19:43 GMT - commit 398d0c4970b679795025f36e320f8aecb2859d24
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rollup",
3
- "version": "2.78.0",
3
+ "version": "2.78.1",
4
4
  "description": "Next-generation ES module bundler",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",
@@ -23,6 +23,8 @@
23
23
  "perf:debug": "node --inspect-brk scripts/perf-debug.js",
24
24
  "perf:init": "node scripts/perf-init.js",
25
25
  "postpublish": "git push && git push --tags",
26
+ "prepare": "husky install && npm run build",
27
+ "prepublishOnly": "git pull --ff-only && npm ci && npm run lint:nofix && npm run security && npm run build:bootstrap && npm run test:all",
26
28
  "security": "npm audit",
27
29
  "test": "npm run build && npm run test:all",
28
30
  "test:cjs": "npm run build:cjs && npm run test:only",