rollup 4.22.3 → 4.22.4

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
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  /*
3
3
  @license
4
- Rollup.js v4.22.3
5
- Sat, 21 Sep 2024 05:02:38 GMT - commit e1cba8e84a0c01dd16580ba7a2536a988dfb4e18
4
+ Rollup.js v4.22.4
5
+ Sat, 21 Sep 2024 06:10:53 GMT - commit 79c0aba353ca84c0e22c3cfe9eee433ba83f3670
6
6
 
7
7
  https://github.com/rollup/rollup
8
8
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.22.3
4
- Sat, 21 Sep 2024 05:02:38 GMT - commit e1cba8e84a0c01dd16580ba7a2536a988dfb4e18
3
+ Rollup.js v4.22.4
4
+ Sat, 21 Sep 2024 06:10:53 GMT - commit 79c0aba353ca84c0e22c3cfe9eee433ba83f3670
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.22.3
4
- Sat, 21 Sep 2024 05:02:38 GMT - commit e1cba8e84a0c01dd16580ba7a2536a988dfb4e18
3
+ Rollup.js v4.22.4
4
+ Sat, 21 Sep 2024 06:10:53 GMT - commit 79c0aba353ca84c0e22c3cfe9eee433ba83f3670
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/dist/es/rollup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.22.3
4
- Sat, 21 Sep 2024 05:02:38 GMT - commit e1cba8e84a0c01dd16580ba7a2536a988dfb4e18
3
+ Rollup.js v4.22.4
4
+ Sat, 21 Sep 2024 06:10:53 GMT - commit 79c0aba353ca84c0e22c3cfe9eee433ba83f3670
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.22.3
4
- Sat, 21 Sep 2024 05:02:38 GMT - commit e1cba8e84a0c01dd16580ba7a2536a988dfb4e18
3
+ Rollup.js v4.22.4
4
+ Sat, 21 Sep 2024 06:10:53 GMT - commit 79c0aba353ca84c0e22c3cfe9eee433ba83f3670
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -16,7 +16,7 @@ import { performance } from 'node:perf_hooks';
16
16
  import { lstat, realpath, readdir, readFile, mkdir, writeFile } from 'node:fs/promises';
17
17
  import * as tty from 'tty';
18
18
 
19
- var version = "4.22.3";
19
+ var version = "4.22.4";
20
20
 
21
21
  const comma = ','.charCodeAt(0);
22
22
  const semicolon = ';'.charCodeAt(0);
@@ -7235,7 +7235,7 @@ const accessedFileUrlGlobals = {
7235
7235
  umd: ['document', 'require', 'URL']
7236
7236
  };
7237
7237
  const getResolveUrl = (path, URL = 'URL') => `new ${URL}(${path}).href`;
7238
- const getRelativeUrlFromDocument = (relativePath, umd = false) => getResolveUrl(`'${escapeId(relativePath)}', ${umd ? `typeof document === 'undefined' ? location.href : ` : ''}document.currentScript && document.currentScript.src || document.baseURI`);
7238
+ const getRelativeUrlFromDocument = (relativePath, umd = false) => getResolveUrl(`'${escapeId(relativePath)}', ${umd ? `typeof document === 'undefined' ? location.href : ` : ''}document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT' && document.currentScript.src || document.baseURI`);
7239
7239
  const getGenericImportMetaMechanism = (getUrl) => (property, { chunkId }) => {
7240
7240
  const urlMechanism = getUrl(chunkId);
7241
7241
  return property === null
@@ -7246,7 +7246,7 @@ const getGenericImportMetaMechanism = (getUrl) => (property, { chunkId }) => {
7246
7246
  };
7247
7247
  const getFileUrlFromFullPath = (path) => `require('u' + 'rl').pathToFileURL(${path}).href`;
7248
7248
  const getFileUrlFromRelativePath = (path) => getFileUrlFromFullPath(`__dirname + '/${escapeId(path)}'`);
7249
- const getUrlFromDocument = (chunkId, umd = false) => `${umd ? `typeof document === 'undefined' ? location.href : ` : ''}(${DOCUMENT_CURRENT_SCRIPT} && ${DOCUMENT_CURRENT_SCRIPT}.src || new URL('${escapeId(chunkId)}', document.baseURI).href)`;
7249
+ const getUrlFromDocument = (chunkId, umd = false) => `${umd ? `typeof document === 'undefined' ? location.href : ` : ''}(${DOCUMENT_CURRENT_SCRIPT} && ${DOCUMENT_CURRENT_SCRIPT}.tagName.toUpperCase() === 'SCRIPT' && ${DOCUMENT_CURRENT_SCRIPT}.src || new URL('${escapeId(chunkId)}', document.baseURI).href)`;
7250
7250
  const relativeUrlMechanisms = {
7251
7251
  amd: relativePath => {
7252
7252
  if (relativePath[0] !== '.')
@@ -8069,14 +8069,17 @@ const keypath = (keypath, getPropertyAccess) => keypath.split('.').map(getProper
8069
8069
 
8070
8070
  function setupNamespace(name, root, globals, { _, getPropertyAccess, s }, compact, log) {
8071
8071
  const parts = name.split('.');
8072
- // Check if the key is exist in the prototype of the object
8073
- const isReserved = parts[0] in {};
8072
+ // Check if the key exists in the object's prototype.
8073
+ const isReserved = parts[0] in Object.prototype;
8074
8074
  if (log && isReserved) {
8075
8075
  log(LOGLEVEL_WARN, logReservedNamespace(parts[0]));
8076
8076
  }
8077
8077
  parts[0] =
8078
- (typeof globals === 'function' ? globals(parts[0]) : isReserved ? null : globals[parts[0]]) ||
8079
- parts[0];
8078
+ (typeof globals === 'function'
8079
+ ? globals(parts[0])
8080
+ : isReserved
8081
+ ? parts[0]
8082
+ : globals[parts[0]]) || parts[0];
8080
8083
  parts.pop();
8081
8084
  let propertyPath = root;
8082
8085
  return (parts
@@ -8088,14 +8091,17 @@ function setupNamespace(name, root, globals, { _, getPropertyAccess, s }, compac
8088
8091
  }
8089
8092
  function assignToDeepVariable(deepName, root, globals, assignment, { _, getPropertyAccess }, log) {
8090
8093
  const parts = deepName.split('.');
8091
- // Check if the key is exist in the prototype of the object
8092
- const isReserved = parts[0] in {};
8094
+ // Check if the key exists in the object's prototype.
8095
+ const isReserved = parts[0] in Object.prototype;
8093
8096
  if (log && isReserved) {
8094
8097
  log(LOGLEVEL_WARN, logReservedNamespace(parts[0]));
8095
8098
  }
8096
8099
  parts[0] =
8097
- (typeof globals === 'function' ? globals(parts[0]) : isReserved ? null : globals[parts[0]]) ||
8098
- parts[0];
8100
+ (typeof globals === 'function'
8101
+ ? globals(parts[0])
8102
+ : isReserved
8103
+ ? parts[0]
8104
+ : globals[parts[0]]) || parts[0];
8099
8105
  const last = parts.pop();
8100
8106
  let propertyPath = root;
8101
8107
  let deepAssignment = [
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.22.3
4
- Sat, 21 Sep 2024 05:02:38 GMT - commit e1cba8e84a0c01dd16580ba7a2536a988dfb4e18
3
+ Rollup.js v4.22.4
4
+ Sat, 21 Sep 2024 06:10:53 GMT - commit 79c0aba353ca84c0e22c3cfe9eee433ba83f3670
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.22.3
4
- Sat, 21 Sep 2024 05:02:38 GMT - commit e1cba8e84a0c01dd16580ba7a2536a988dfb4e18
3
+ Rollup.js v4.22.4
4
+ Sat, 21 Sep 2024 06:10:53 GMT - commit 79c0aba353ca84c0e22c3cfe9eee433ba83f3670
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.22.3
4
- Sat, 21 Sep 2024 05:02:38 GMT - commit e1cba8e84a0c01dd16580ba7a2536a988dfb4e18
3
+ Rollup.js v4.22.4
4
+ Sat, 21 Sep 2024 06:10:53 GMT - commit 79c0aba353ca84c0e22c3cfe9eee433ba83f3670
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.22.3
4
- Sat, 21 Sep 2024 05:02:38 GMT - commit e1cba8e84a0c01dd16580ba7a2536a988dfb4e18
3
+ Rollup.js v4.22.4
4
+ Sat, 21 Sep 2024 06:10:53 GMT - commit 79c0aba353ca84c0e22c3cfe9eee433ba83f3670
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/dist/parseAst.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.22.3
4
- Sat, 21 Sep 2024 05:02:38 GMT - commit e1cba8e84a0c01dd16580ba7a2536a988dfb4e18
3
+ Rollup.js v4.22.4
4
+ Sat, 21 Sep 2024 06:10:53 GMT - commit 79c0aba353ca84c0e22c3cfe9eee433ba83f3670
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 v4.22.3
4
- Sat, 21 Sep 2024 05:02:38 GMT - commit e1cba8e84a0c01dd16580ba7a2536a988dfb4e18
3
+ Rollup.js v4.22.4
4
+ Sat, 21 Sep 2024 06:10:53 GMT - commit 79c0aba353ca84c0e22c3cfe9eee433ba83f3670
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.22.3
4
- Sat, 21 Sep 2024 05:02:38 GMT - commit e1cba8e84a0c01dd16580ba7a2536a988dfb4e18
3
+ Rollup.js v4.22.4
4
+ Sat, 21 Sep 2024 06:10:53 GMT - commit 79c0aba353ca84c0e22c3cfe9eee433ba83f3670
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.22.3
4
- Sat, 21 Sep 2024 05:02:38 GMT - commit e1cba8e84a0c01dd16580ba7a2536a988dfb4e18
3
+ Rollup.js v4.22.4
4
+ Sat, 21 Sep 2024 06:10:53 GMT - commit 79c0aba353ca84c0e22c3cfe9eee433ba83f3670
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.22.3
4
- Sat, 21 Sep 2024 05:02:38 GMT - commit e1cba8e84a0c01dd16580ba7a2536a988dfb4e18
3
+ Rollup.js v4.22.4
4
+ Sat, 21 Sep 2024 06:10:53 GMT - commit 79c0aba353ca84c0e22c3cfe9eee433ba83f3670
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.22.3
4
- Sat, 21 Sep 2024 05:02:38 GMT - commit e1cba8e84a0c01dd16580ba7a2536a988dfb4e18
3
+ Rollup.js v4.22.4
4
+ Sat, 21 Sep 2024 06:10:53 GMT - commit 79c0aba353ca84c0e22c3cfe9eee433ba83f3670
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.22.3
4
- Sat, 21 Sep 2024 05:02:38 GMT - commit e1cba8e84a0c01dd16580ba7a2536a988dfb4e18
3
+ Rollup.js v4.22.4
4
+ Sat, 21 Sep 2024 06:10:53 GMT - commit 79c0aba353ca84c0e22c3cfe9eee433ba83f3670
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 = "4.22.3";
34
+ var version = "4.22.4";
35
35
 
36
36
  function ensureArray$1(items) {
37
37
  if (Array.isArray(items)) {
@@ -8689,7 +8689,7 @@ const accessedFileUrlGlobals = {
8689
8689
  umd: ['document', 'require', 'URL']
8690
8690
  };
8691
8691
  const getResolveUrl = (path, URL = 'URL') => `new ${URL}(${path}).href`;
8692
- const getRelativeUrlFromDocument = (relativePath, umd = false) => getResolveUrl(`'${escapeId(relativePath)}', ${umd ? `typeof document === 'undefined' ? location.href : ` : ''}document.currentScript && document.currentScript.src || document.baseURI`);
8692
+ const getRelativeUrlFromDocument = (relativePath, umd = false) => getResolveUrl(`'${escapeId(relativePath)}', ${umd ? `typeof document === 'undefined' ? location.href : ` : ''}document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT' && document.currentScript.src || document.baseURI`);
8693
8693
  const getGenericImportMetaMechanism = (getUrl) => (property, { chunkId }) => {
8694
8694
  const urlMechanism = getUrl(chunkId);
8695
8695
  return property === null
@@ -8700,7 +8700,7 @@ const getGenericImportMetaMechanism = (getUrl) => (property, { chunkId }) => {
8700
8700
  };
8701
8701
  const getFileUrlFromFullPath = (path) => `require('u' + 'rl').pathToFileURL(${path}).href`;
8702
8702
  const getFileUrlFromRelativePath = (path) => getFileUrlFromFullPath(`__dirname + '/${escapeId(path)}'`);
8703
- const getUrlFromDocument = (chunkId, umd = false) => `${umd ? `typeof document === 'undefined' ? location.href : ` : ''}(${DOCUMENT_CURRENT_SCRIPT} && ${DOCUMENT_CURRENT_SCRIPT}.src || new URL('${escapeId(chunkId)}', document.baseURI).href)`;
8703
+ const getUrlFromDocument = (chunkId, umd = false) => `${umd ? `typeof document === 'undefined' ? location.href : ` : ''}(${DOCUMENT_CURRENT_SCRIPT} && ${DOCUMENT_CURRENT_SCRIPT}.tagName.toUpperCase() === 'SCRIPT' && ${DOCUMENT_CURRENT_SCRIPT}.src || new URL('${escapeId(chunkId)}', document.baseURI).href)`;
8704
8704
  const relativeUrlMechanisms = {
8705
8705
  amd: relativePath => {
8706
8706
  if (relativePath[0] !== '.')
@@ -9523,14 +9523,17 @@ const keypath = (keypath, getPropertyAccess) => keypath.split('.').map(getProper
9523
9523
 
9524
9524
  function setupNamespace(name, root, globals, { _, getPropertyAccess, s }, compact, log) {
9525
9525
  const parts = name.split('.');
9526
- // Check if the key is exist in the prototype of the object
9527
- const isReserved = parts[0] in {};
9526
+ // Check if the key exists in the object's prototype.
9527
+ const isReserved = parts[0] in Object.prototype;
9528
9528
  if (log && isReserved) {
9529
9529
  log(parseAst_js.LOGLEVEL_WARN, parseAst_js.logReservedNamespace(parts[0]));
9530
9530
  }
9531
9531
  parts[0] =
9532
- (typeof globals === 'function' ? globals(parts[0]) : isReserved ? null : globals[parts[0]]) ||
9533
- parts[0];
9532
+ (typeof globals === 'function'
9533
+ ? globals(parts[0])
9534
+ : isReserved
9535
+ ? parts[0]
9536
+ : globals[parts[0]]) || parts[0];
9534
9537
  parts.pop();
9535
9538
  let propertyPath = root;
9536
9539
  return (parts
@@ -9542,14 +9545,17 @@ function setupNamespace(name, root, globals, { _, getPropertyAccess, s }, compac
9542
9545
  }
9543
9546
  function assignToDeepVariable(deepName, root, globals, assignment, { _, getPropertyAccess }, log) {
9544
9547
  const parts = deepName.split('.');
9545
- // Check if the key is exist in the prototype of the object
9546
- const isReserved = parts[0] in {};
9548
+ // Check if the key exists in the object's prototype.
9549
+ const isReserved = parts[0] in Object.prototype;
9547
9550
  if (log && isReserved) {
9548
9551
  log(parseAst_js.LOGLEVEL_WARN, parseAst_js.logReservedNamespace(parts[0]));
9549
9552
  }
9550
9553
  parts[0] =
9551
- (typeof globals === 'function' ? globals(parts[0]) : isReserved ? null : globals[parts[0]]) ||
9552
- parts[0];
9554
+ (typeof globals === 'function'
9555
+ ? globals(parts[0])
9556
+ : isReserved
9557
+ ? parts[0]
9558
+ : globals[parts[0]]) || parts[0];
9553
9559
  const last = parts.pop();
9554
9560
  let propertyPath = root;
9555
9561
  let deepAssignment = [
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.22.3
4
- Sat, 21 Sep 2024 05:02:38 GMT - commit e1cba8e84a0c01dd16580ba7a2536a988dfb4e18
3
+ Rollup.js v4.22.4
4
+ Sat, 21 Sep 2024 06:10:53 GMT - commit 79c0aba353ca84c0e22c3cfe9eee433ba83f3670
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.22.3
4
- Sat, 21 Sep 2024 05:02:38 GMT - commit e1cba8e84a0c01dd16580ba7a2536a988dfb4e18
3
+ Rollup.js v4.22.4
4
+ Sat, 21 Sep 2024 06:10:53 GMT - commit 79c0aba353ca84c0e22c3cfe9eee433ba83f3670
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": "4.22.3",
3
+ "version": "4.22.4",
4
4
  "description": "Next-generation ES module bundler",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",
@@ -107,22 +107,22 @@
107
107
  "homepage": "https://rollupjs.org/",
108
108
  "optionalDependencies": {
109
109
  "fsevents": "~2.3.2",
110
- "@rollup/rollup-darwin-arm64": "4.22.3",
111
- "@rollup/rollup-android-arm64": "4.22.3",
112
- "@rollup/rollup-win32-arm64-msvc": "4.22.3",
113
- "@rollup/rollup-linux-arm64-gnu": "4.22.3",
114
- "@rollup/rollup-linux-arm64-musl": "4.22.3",
115
- "@rollup/rollup-android-arm-eabi": "4.22.3",
116
- "@rollup/rollup-linux-arm-gnueabihf": "4.22.3",
117
- "@rollup/rollup-linux-arm-musleabihf": "4.22.3",
118
- "@rollup/rollup-win32-ia32-msvc": "4.22.3",
119
- "@rollup/rollup-linux-riscv64-gnu": "4.22.3",
120
- "@rollup/rollup-linux-powerpc64le-gnu": "4.22.3",
121
- "@rollup/rollup-linux-s390x-gnu": "4.22.3",
122
- "@rollup/rollup-darwin-x64": "4.22.3",
123
- "@rollup/rollup-win32-x64-msvc": "4.22.3",
124
- "@rollup/rollup-linux-x64-gnu": "4.22.3",
125
- "@rollup/rollup-linux-x64-musl": "4.22.3"
110
+ "@rollup/rollup-darwin-arm64": "4.22.4",
111
+ "@rollup/rollup-android-arm64": "4.22.4",
112
+ "@rollup/rollup-win32-arm64-msvc": "4.22.4",
113
+ "@rollup/rollup-linux-arm64-gnu": "4.22.4",
114
+ "@rollup/rollup-linux-arm64-musl": "4.22.4",
115
+ "@rollup/rollup-android-arm-eabi": "4.22.4",
116
+ "@rollup/rollup-linux-arm-gnueabihf": "4.22.4",
117
+ "@rollup/rollup-linux-arm-musleabihf": "4.22.4",
118
+ "@rollup/rollup-win32-ia32-msvc": "4.22.4",
119
+ "@rollup/rollup-linux-riscv64-gnu": "4.22.4",
120
+ "@rollup/rollup-linux-powerpc64le-gnu": "4.22.4",
121
+ "@rollup/rollup-linux-s390x-gnu": "4.22.4",
122
+ "@rollup/rollup-darwin-x64": "4.22.4",
123
+ "@rollup/rollup-win32-x64-msvc": "4.22.4",
124
+ "@rollup/rollup-linux-x64-gnu": "4.22.4",
125
+ "@rollup/rollup-linux-x64-musl": "4.22.4"
126
126
  },
127
127
  "dependencies": {
128
128
  "@types/estree": "1.0.5"