rollup 3.17.3-0 → 3.17.3-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/bin/rollup CHANGED
@@ -2,8 +2,8 @@
2
2
 
3
3
  /*
4
4
  @license
5
- Rollup.js v3.17.3-0
6
- Wed, 22 Feb 2023 06:04:55 GMT - commit b4fddb7fd14781e68b8271c09b41f248afb8e4c1
5
+ Rollup.js v3.17.3-1
6
+ Thu, 23 Feb 2023 18:26:12 GMT - commit a44e087fa8b10fcbee144d5d296611c72c4f489c
7
7
 
8
8
  https://github.com/rollup/rollup
9
9
 
package/dist/es/rollup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.17.3-0
4
- Wed, 22 Feb 2023 06:04:55 GMT - commit b4fddb7fd14781e68b8271c09b41f248afb8e4c1
3
+ Rollup.js v3.17.3-1
4
+ Thu, 23 Feb 2023 18:26:12 GMT - commit a44e087fa8b10fcbee144d5d296611c72c4f489c
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.17.3-0
4
- Wed, 22 Feb 2023 06:04:55 GMT - commit b4fddb7fd14781e68b8271c09b41f248afb8e4c1
3
+ Rollup.js v3.17.3-1
4
+ Thu, 23 Feb 2023 18:26:12 GMT - commit a44e087fa8b10fcbee144d5d296611c72c4f489c
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -16,7 +16,7 @@ import { lstat, realpath, readdir, readFile, mkdir, writeFile } from 'node:fs/pr
16
16
  import { EventEmitter } from 'node:events';
17
17
  import * as tty from 'tty';
18
18
 
19
- var version$1 = "3.17.3-0";
19
+ var version$1 = "3.17.3-1";
20
20
 
21
21
  const comma = ','.charCodeAt(0);
22
22
  const semicolon = ';'.charCodeAt(0);
@@ -5854,20 +5854,6 @@ class NodeBase extends ExpressionEntity {
5854
5854
  function logNode(node) {
5855
5855
  return node.context.code.slice(node.start, node.end);
5856
5856
  }
5857
- function logEffect(node, module) {
5858
- if (!module.hasLoggedEffect) {
5859
- module.hasLoggedEffect = true;
5860
- let effect = logNode(node);
5861
- let truncated = false;
5862
- if (effect.length > 150) {
5863
- truncated = true;
5864
- effect = effect.slice(0, 150) + '...';
5865
- }
5866
- console.log(`==> First side effect in ${relativeId(module.id)}${truncated ? ' (truncated)' : ''}:`);
5867
- console.log(effect);
5868
- console.log('<==\n');
5869
- }
5870
- }
5871
5857
 
5872
5858
  class SpreadElement extends NodeBase {
5873
5859
  deoptimizeThisOnInteractionAtPath(interaction, path, recursionTracker) {
@@ -8343,10 +8329,8 @@ class BlockStatement extends NodeBase {
8343
8329
  for (const node of this.body) {
8344
8330
  if (context.brokenFlow)
8345
8331
  break;
8346
- if (node.hasEffects(context)) {
8347
- logEffect(node, this.context.module);
8332
+ if (node.hasEffects(context))
8348
8333
  return true;
8349
- }
8350
8334
  }
8351
8335
  return false;
8352
8336
  }
@@ -11459,6 +11443,7 @@ class Program extends NodeBase {
11459
11443
  constructor() {
11460
11444
  super(...arguments);
11461
11445
  this.hasCachedEffect = null;
11446
+ this.hasLoggedEffect = false;
11462
11447
  }
11463
11448
  hasCachedEffects() {
11464
11449
  return this.hasCachedEffect === null
@@ -11468,7 +11453,18 @@ class Program extends NodeBase {
11468
11453
  hasEffects(context) {
11469
11454
  for (const node of this.body) {
11470
11455
  if (node.hasEffects(context)) {
11471
- logEffect(node, this.context.module);
11456
+ if (!this.hasLoggedEffect) {
11457
+ this.hasLoggedEffect = true;
11458
+ let effect = logNode(node);
11459
+ let truncated = false;
11460
+ if (effect.length > 150) {
11461
+ truncated = true;
11462
+ effect = effect.slice(0, 150) + '...';
11463
+ }
11464
+ console.log(`==> First side effect in ${relativeId(this.context.module.id)}${truncated ? ' (truncated)' : ''}:`);
11465
+ console.log(effect);
11466
+ console.log('<==\n');
11467
+ }
11472
11468
  return (this.hasCachedEffect = true);
11473
11469
  }
11474
11470
  }
@@ -13034,7 +13030,6 @@ class Module {
13034
13030
  this.dynamicImporters = [];
13035
13031
  this.dynamicImports = [];
13036
13032
  this.execIndex = Infinity;
13037
- this.hasLoggedEffect = false;
13038
13033
  this.implicitlyLoadedAfter = new Set();
13039
13034
  this.implicitlyLoadedBefore = new Set();
13040
13035
  this.importDescriptions = new Map();
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.17.3-0
4
- Wed, 22 Feb 2023 06:04:55 GMT - commit b4fddb7fd14781e68b8271c09b41f248afb8e4c1
3
+ Rollup.js v3.17.3-1
4
+ Thu, 23 Feb 2023 18:26:12 GMT - commit a44e087fa8b10fcbee144d5d296611c72c4f489c
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.17.3-0
4
- Wed, 22 Feb 2023 06:04:55 GMT - commit b4fddb7fd14781e68b8271c09b41f248afb8e4c1
3
+ Rollup.js v3.17.3-1
4
+ Thu, 23 Feb 2023 18:26:12 GMT - commit a44e087fa8b10fcbee144d5d296611c72c4f489c
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/dist/rollup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.17.3-0
4
- Wed, 22 Feb 2023 06:04:55 GMT - commit b4fddb7fd14781e68b8271c09b41f248afb8e4c1
3
+ Rollup.js v3.17.3-1
4
+ Thu, 23 Feb 2023 18:26:12 GMT - commit a44e087fa8b10fcbee144d5d296611c72c4f489c
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.17.3-0
4
- Wed, 22 Feb 2023 06:04:55 GMT - commit b4fddb7fd14781e68b8271c09b41f248afb8e4c1
3
+ Rollup.js v3.17.3-1
4
+ Thu, 23 Feb 2023 18:26:12 GMT - commit a44e087fa8b10fcbee144d5d296611c72c4f489c
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.17.3-0
4
- Wed, 22 Feb 2023 06:04:55 GMT - commit b4fddb7fd14781e68b8271c09b41f248afb8e4c1
3
+ Rollup.js v3.17.3-1
4
+ Thu, 23 Feb 2023 18:26:12 GMT - commit a44e087fa8b10fcbee144d5d296611c72c4f489c
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.17.3-0
4
- Wed, 22 Feb 2023 06:04:55 GMT - commit b4fddb7fd14781e68b8271c09b41f248afb8e4c1
3
+ Rollup.js v3.17.3-1
4
+ Thu, 23 Feb 2023 18:26:12 GMT - commit a44e087fa8b10fcbee144d5d296611c72c4f489c
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.17.3-0
4
- Wed, 22 Feb 2023 06:04:55 GMT - commit b4fddb7fd14781e68b8271c09b41f248afb8e4c1
3
+ Rollup.js v3.17.3-1
4
+ Thu, 23 Feb 2023 18:26:12 GMT - commit a44e087fa8b10fcbee144d5d296611c72c4f489c
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -31,7 +31,7 @@ function _interopNamespaceDefault(e) {
31
31
 
32
32
  const tty__namespace = /*#__PURE__*/_interopNamespaceDefault(tty);
33
33
 
34
- var version$1 = "3.17.3-0";
34
+ var version$1 = "3.17.3-1";
35
35
 
36
36
  function ensureArray$1(items) {
37
37
  if (Array.isArray(items)) {
@@ -6351,20 +6351,6 @@ class NodeBase extends ExpressionEntity {
6351
6351
  function logNode(node) {
6352
6352
  return node.context.code.slice(node.start, node.end);
6353
6353
  }
6354
- function logEffect(node, module) {
6355
- if (!module.hasLoggedEffect) {
6356
- module.hasLoggedEffect = true;
6357
- let effect = logNode(node);
6358
- let truncated = false;
6359
- if (effect.length > 150) {
6360
- truncated = true;
6361
- effect = effect.slice(0, 150) + '...';
6362
- }
6363
- console.log(`==> First side effect in ${relativeId(module.id)}${truncated ? ' (truncated)' : ''}:`);
6364
- console.log(effect);
6365
- console.log('<==\n');
6366
- }
6367
- }
6368
6354
 
6369
6355
  class SpreadElement extends NodeBase {
6370
6356
  deoptimizeThisOnInteractionAtPath(interaction, path, recursionTracker) {
@@ -8840,10 +8826,8 @@ class BlockStatement extends NodeBase {
8840
8826
  for (const node of this.body) {
8841
8827
  if (context.brokenFlow)
8842
8828
  break;
8843
- if (node.hasEffects(context)) {
8844
- logEffect(node, this.context.module);
8829
+ if (node.hasEffects(context))
8845
8830
  return true;
8846
- }
8847
8831
  }
8848
8832
  return false;
8849
8833
  }
@@ -11956,6 +11940,7 @@ class Program extends NodeBase {
11956
11940
  constructor() {
11957
11941
  super(...arguments);
11958
11942
  this.hasCachedEffect = null;
11943
+ this.hasLoggedEffect = false;
11959
11944
  }
11960
11945
  hasCachedEffects() {
11961
11946
  return this.hasCachedEffect === null
@@ -11965,7 +11950,18 @@ class Program extends NodeBase {
11965
11950
  hasEffects(context) {
11966
11951
  for (const node of this.body) {
11967
11952
  if (node.hasEffects(context)) {
11968
- logEffect(node, this.context.module);
11953
+ if (!this.hasLoggedEffect) {
11954
+ this.hasLoggedEffect = true;
11955
+ let effect = logNode(node);
11956
+ let truncated = false;
11957
+ if (effect.length > 150) {
11958
+ truncated = true;
11959
+ effect = effect.slice(0, 150) + '...';
11960
+ }
11961
+ console.log(`==> First side effect in ${relativeId(this.context.module.id)}${truncated ? ' (truncated)' : ''}:`);
11962
+ console.log(effect);
11963
+ console.log('<==\n');
11964
+ }
11969
11965
  return (this.hasCachedEffect = true);
11970
11966
  }
11971
11967
  }
@@ -13531,7 +13527,6 @@ class Module {
13531
13527
  this.dynamicImporters = [];
13532
13528
  this.dynamicImports = [];
13533
13529
  this.execIndex = Infinity;
13534
- this.hasLoggedEffect = false;
13535
13530
  this.implicitlyLoadedAfter = new Set();
13536
13531
  this.implicitlyLoadedBefore = new Set();
13537
13532
  this.importDescriptions = new Map();
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.17.3-0
4
- Wed, 22 Feb 2023 06:04:55 GMT - commit b4fddb7fd14781e68b8271c09b41f248afb8e4c1
3
+ Rollup.js v3.17.3-1
4
+ Thu, 23 Feb 2023 18:26:12 GMT - commit a44e087fa8b10fcbee144d5d296611c72c4f489c
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.17.3-0
4
- Wed, 22 Feb 2023 06:04:55 GMT - commit b4fddb7fd14781e68b8271c09b41f248afb8e4c1
3
+ Rollup.js v3.17.3-1
4
+ Thu, 23 Feb 2023 18:26:12 GMT - commit a44e087fa8b10fcbee144d5d296611c72c4f489c
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.17.3-0
4
- Wed, 22 Feb 2023 06:04:55 GMT - commit b4fddb7fd14781e68b8271c09b41f248afb8e4c1
3
+ Rollup.js v3.17.3-1
4
+ Thu, 23 Feb 2023 18:26:12 GMT - commit a44e087fa8b10fcbee144d5d296611c72c4f489c
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": "3.17.3-0",
3
+ "version": "3.17.3-1",
4
4
  "description": "Next-generation ES module bundler",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",