@rollup/wasm-node 4.25.0-0 → 4.25.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,14 +1,14 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.25.0-0
4
- Tue, 29 Oct 2024 06:14:37 GMT - commit b7fcaba12e863db516f39de74c1eacfe5329a5c3
3
+ Rollup.js v4.25.0
4
+ Sat, 09 Nov 2024 08:36:52 GMT - commit 42e587e0e37bc0661aa39fe7ad6f1d7fd33f825c
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
8
8
  Released under the MIT License.
9
9
  */
10
10
  import { parse, parseAsync } from '../../native.js';
11
- import { resolve, dirname, basename, extname } from 'node:path';
11
+ import { resolve, basename, extname, dirname } from 'node:path';
12
12
 
13
13
  // This file is generated by scripts/generate-node-types.js.
14
14
  // Do not edit this file directly.
@@ -20,6 +20,7 @@ const ExportDefaultDeclaration = 'ExportDefaultDeclaration';
20
20
  const ExpressionStatement = 'ExpressionStatement';
21
21
  const Identifier = 'Identifier';
22
22
  const Literal = 'Literal';
23
+ const ObjectExpression = 'ObjectExpression';
23
24
  const PanicError = 'PanicError';
24
25
  const ParseError = 'ParseError';
25
26
  const Program = 'Program';
@@ -112,9 +113,9 @@ const convertAnnotations = (position, buffer) => {
112
113
  if (position === 0)
113
114
  return EMPTY_ARRAY;
114
115
  const length = buffer[position++];
115
- const list = [];
116
+ const list = new Array(length);
116
117
  for (let index = 0; index < length; index++) {
117
- list.push(convertAnnotation(buffer[position++], buffer));
118
+ list[index] = convertAnnotation(buffer[position++], buffer);
118
119
  }
119
120
  return list;
120
121
  };
@@ -2036,10 +2037,10 @@ function convertNodeList(position, buffer) {
2036
2037
  if (position === 0)
2037
2038
  return EMPTY_ARRAY;
2038
2039
  const length = buffer[position++];
2039
- const list = [];
2040
+ const list = new Array(length);
2040
2041
  for (let index = 0; index < length; index++) {
2041
2042
  const nodePosition = buffer[position++];
2042
- list.push(nodePosition ? convertNode(nodePosition, buffer) : null);
2043
+ list[index] = nodePosition ? convertNode(nodePosition, buffer) : null;
2043
2044
  }
2044
2045
  return list;
2045
2046
  }
@@ -2068,4 +2069,4 @@ function getAstBuffer(astBuffer) {
2068
2069
  const parseAst = (input, { allowReturnOutsideFunction = false, jsx = false } = {}) => convertProgram(getAstBuffer(parse(input, allowReturnOutsideFunction, jsx)));
2069
2070
  const parseAstAsync = async (input, { allowReturnOutsideFunction = false, jsx = false, signal } = {}) => convertProgram(getAstBuffer(await parseAsync(input, allowReturnOutsideFunction, jsx, signal)));
2070
2071
 
2071
- export { ANNOTATION_KEY, ArrowFunctionExpression, BLANK, BlockStatement, CallExpression, CatchClause, EMPTY_ARRAY, EMPTY_OBJECT, EMPTY_SET, ExportDefaultDeclaration, ExpressionStatement, FIXED_STRINGS, INVALID_ANNOTATION_KEY, Identifier, LOGLEVEL_DEBUG, LOGLEVEL_ERROR, LOGLEVEL_INFO, LOGLEVEL_WARN, Literal, Program, Property, ReturnStatement, StaticBlock, TemplateLiteral, URL_GENERATEBUNDLE, URL_JSX, URL_OUTPUT_AMD_BASEPATH, URL_OUTPUT_AMD_ID, URL_OUTPUT_DIR, URL_OUTPUT_EXTERNALIMPORTATTRIBUTES, URL_OUTPUT_FORMAT, URL_OUTPUT_GENERATEDCODE, URL_OUTPUT_INLINEDYNAMICIMPORTS, URL_OUTPUT_INTEROP, URL_OUTPUT_MANUALCHUNKS, URL_OUTPUT_SOURCEMAPBASEURL, URL_OUTPUT_SOURCEMAPFILE, URL_PRESERVEENTRYSIGNATURES, URL_TREESHAKE, URL_TREESHAKE_MODULESIDEEFFECTS, URL_WATCH, VariableDeclarator, addTrailingSlashIfMissed, augmentCodeLocation, augmentLogMessage, convertAnnotations, convertNode, error, getAliasName, getAstBuffer, getImportPath, getRollupError, isAbsolute, isPathFragment, isRelative, isValidUrl, locate, logAddonNotGenerated, logAlreadyClosed, logAmbiguousExternalNamespaces, logAnonymousPluginCache, logAssetNotFinalisedForFileName, logAssetReferenceIdNotFoundForSetSource, logAssetSourceAlreadySet, logBadLoader, logCannotAssignModuleToChunk, logCannotCallNamespace, logCannotEmitFromOptionsHook, logChunkInvalid, logChunkNotGeneratedForFileName, logCircularDependency, logCircularReexport, logConflictingSourcemapSources, logConstVariableReassignError, logCyclicCrossChunkReexport, logDuplicateArgumentNameError, logDuplicateExportError, logDuplicatePluginName, logEmptyChunk, logEntryCannotBeExternal, logEval, logExternalModulesCannotBeIncludedInManualChunks, logExternalModulesCannotBeTransformedToModules, logExternalSyntheticExports, logFailedValidation, logFileNameConflict, logFileReferenceIdNotFoundForFilename, logFirstSideEffect, logIllegalIdentifierAsName, logIllegalImportReassignment, logImplicitDependantCannotBeExternal, logImplicitDependantIsNotIncluded, logImportAttributeIsInvalid, logImportOptionsAreInvalid, logIncompatibleExportOptionValue, logInconsistentImportAttributes, logInputHookInOutputPlugin, logInternalIdCannotBeExternal, logInvalidAddonPluginHook, logInvalidAnnotation, logInvalidExportOptionValue, logInvalidFormatForTopLevelAwait, logInvalidFunctionPluginHook, logInvalidLogPosition, logInvalidOption, logInvalidRollupPhaseForChunkEmission, logInvalidSetAssetSourceCall, logInvalidSourcemapForError, logLevelPriority, logMissingEntryExport, logMissingExport, logMissingFileOrDirOption, logMissingGlobalName, logMissingJsxExport, logMissingNameOptionForIifeExport, logMissingNameOptionForUmdExport, logMissingNodeBuiltins, logMixedExport, logModuleLevelDirective, logModuleParseError, logNamespaceConflict, logNoAssetSourceSet, logNoTransformMapOrAstWithoutCode, logOptimizeChunkStatus, logParseError, logPluginError, logRedeclarationError, logReservedNamespace, logShimmedExport, logSourcemapBroken, logSyntheticNamedExportsNeedNamespaceExport, logThisIsUndefined, logUnexpectedNamedImport, logUnexpectedNamespaceReexport, logUnknownOption, logUnresolvedEntry, logUnresolvedImplicitDependant, logUnresolvedImport, logUnresolvedImportTreatedAsExternal, logUnusedExternalImports, normalize, parseAst, parseAstAsync, printQuotedStringList, relative, relativeId, warnDeprecation };
2072
+ export { ANNOTATION_KEY, ArrowFunctionExpression, BLANK, BlockStatement, CallExpression, CatchClause, EMPTY_ARRAY, EMPTY_OBJECT, EMPTY_SET, ExportDefaultDeclaration, ExpressionStatement, FIXED_STRINGS, INVALID_ANNOTATION_KEY, Identifier, LOGLEVEL_DEBUG, LOGLEVEL_ERROR, LOGLEVEL_INFO, LOGLEVEL_WARN, Literal, ObjectExpression, Program, Property, ReturnStatement, StaticBlock, TemplateLiteral, URL_GENERATEBUNDLE, URL_JSX, URL_OUTPUT_AMD_BASEPATH, URL_OUTPUT_AMD_ID, URL_OUTPUT_DIR, URL_OUTPUT_EXTERNALIMPORTATTRIBUTES, URL_OUTPUT_FORMAT, URL_OUTPUT_GENERATEDCODE, URL_OUTPUT_INLINEDYNAMICIMPORTS, URL_OUTPUT_INTEROP, URL_OUTPUT_MANUALCHUNKS, URL_OUTPUT_SOURCEMAPBASEURL, URL_OUTPUT_SOURCEMAPFILE, URL_PRESERVEENTRYSIGNATURES, URL_TREESHAKE, URL_TREESHAKE_MODULESIDEEFFECTS, URL_WATCH, VariableDeclarator, addTrailingSlashIfMissed, augmentCodeLocation, augmentLogMessage, convertAnnotations, convertNode, error, getAliasName, getAstBuffer, getImportPath, getRollupError, isAbsolute, isPathFragment, isRelative, isValidUrl, locate, logAddonNotGenerated, logAlreadyClosed, logAmbiguousExternalNamespaces, logAnonymousPluginCache, logAssetNotFinalisedForFileName, logAssetReferenceIdNotFoundForSetSource, logAssetSourceAlreadySet, logBadLoader, logCannotAssignModuleToChunk, logCannotCallNamespace, logCannotEmitFromOptionsHook, logChunkInvalid, logChunkNotGeneratedForFileName, logCircularDependency, logCircularReexport, logConflictingSourcemapSources, logConstVariableReassignError, logCyclicCrossChunkReexport, logDuplicateArgumentNameError, logDuplicateExportError, logDuplicatePluginName, logEmptyChunk, logEntryCannotBeExternal, logEval, logExternalModulesCannotBeIncludedInManualChunks, logExternalModulesCannotBeTransformedToModules, logExternalSyntheticExports, logFailedValidation, logFileNameConflict, logFileReferenceIdNotFoundForFilename, logFirstSideEffect, logIllegalIdentifierAsName, logIllegalImportReassignment, logImplicitDependantCannotBeExternal, logImplicitDependantIsNotIncluded, logImportAttributeIsInvalid, logImportOptionsAreInvalid, logIncompatibleExportOptionValue, logInconsistentImportAttributes, logInputHookInOutputPlugin, logInternalIdCannotBeExternal, logInvalidAddonPluginHook, logInvalidAnnotation, logInvalidExportOptionValue, logInvalidFormatForTopLevelAwait, logInvalidFunctionPluginHook, logInvalidLogPosition, logInvalidOption, logInvalidRollupPhaseForChunkEmission, logInvalidSetAssetSourceCall, logInvalidSourcemapForError, logLevelPriority, logMissingEntryExport, logMissingExport, logMissingFileOrDirOption, logMissingGlobalName, logMissingJsxExport, logMissingNameOptionForIifeExport, logMissingNameOptionForUmdExport, logMissingNodeBuiltins, logMixedExport, logModuleLevelDirective, logModuleParseError, logNamespaceConflict, logNoAssetSourceSet, logNoTransformMapOrAstWithoutCode, logOptimizeChunkStatus, logParseError, logPluginError, logRedeclarationError, logReservedNamespace, logShimmedExport, logSourcemapBroken, logSyntheticNamedExportsNeedNamespaceExport, logThisIsUndefined, logUnexpectedNamedImport, logUnexpectedNamespaceReexport, logUnknownOption, logUnresolvedEntry, logUnresolvedImplicitDependant, logUnresolvedImport, logUnresolvedImportTreatedAsExternal, logUnusedExternalImports, normalize, parseAst, parseAstAsync, printQuotedStringList, relative, relativeId, warnDeprecation };
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.25.0-0
4
- Tue, 29 Oct 2024 06:14:37 GMT - commit b7fcaba12e863db516f39de74c1eacfe5329a5c3
3
+ Rollup.js v4.25.0
4
+ Sat, 09 Nov 2024 08:36:52 GMT - commit 42e587e0e37bc0661aa39fe7ad6f1d7fd33f825c
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -11,8 +11,8 @@ import { getAugmentedNamespace, fseventsImporter, getDefaultExportFromCjs, creat
11
11
  import path from 'node:path';
12
12
  import process$1 from 'node:process';
13
13
  import require$$0$1 from 'path';
14
- import require$$2 from 'util';
15
14
  import require$$0$2 from 'fs';
15
+ import require$$2 from 'util';
16
16
  import require$$1 from 'stream';
17
17
  import require$$2$1 from 'os';
18
18
  import require$$0$3 from 'events';
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.25.0-0
4
- Tue, 29 Oct 2024 06:14:37 GMT - commit b7fcaba12e863db516f39de74c1eacfe5329a5c3
3
+ Rollup.js v4.25.0
4
+ Sat, 09 Nov 2024 08:36:52 GMT - commit 42e587e0e37bc0661aa39fe7ad6f1d7fd33f825c
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.25.0-0
4
- Tue, 29 Oct 2024 06:14:37 GMT - commit b7fcaba12e863db516f39de74c1eacfe5329a5c3
3
+ Rollup.js v4.25.0
4
+ Sat, 09 Nov 2024 08:36:52 GMT - commit 42e587e0e37bc0661aa39fe7ad6f1d7fd33f825c
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.25.0-0
4
- Tue, 29 Oct 2024 06:14:37 GMT - commit b7fcaba12e863db516f39de74c1eacfe5329a5c3
3
+ Rollup.js v4.25.0
4
+ Sat, 09 Nov 2024 08:36:52 GMT - commit 42e587e0e37bc0661aa39fe7ad6f1d7fd33f825c
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/dist/rollup.d.ts CHANGED
@@ -512,7 +512,7 @@ export type PluginHooks = {
512
512
 
513
513
  export interface OutputPlugin
514
514
  extends Partial<{ [K in OutputPluginHooks]: PluginHooks[K] }>,
515
- Partial<{ [K in AddonHooks]: ObjectHook<AddonHook> }> {
515
+ Partial<Record<AddonHooks, ObjectHook<AddonHook>>> {
516
516
  cacheKey?: string;
517
517
  name: string;
518
518
  version?: string;
@@ -782,6 +782,7 @@ export interface OutputOptions {
782
782
  sourcemapFileNames?: string | ((chunkInfo: PreRenderedChunk) => string);
783
783
  sourcemapIgnoreList?: boolean | SourcemapIgnoreListOption;
784
784
  sourcemapPathTransform?: SourcemapPathTransformOption;
785
+ sourcemapDebugIds?: boolean;
785
786
  strict?: boolean;
786
787
  systemNullSetters?: boolean;
787
788
  validate?: boolean;
@@ -836,6 +837,7 @@ export interface NormalizedOutputOptions {
836
837
  sourcemapFileNames: string | ((chunkInfo: PreRenderedChunk) => string) | undefined;
837
838
  sourcemapIgnoreList: SourcemapIgnoreListOption;
838
839
  sourcemapPathTransform: SourcemapPathTransformOption | undefined;
840
+ sourcemapDebugIds: boolean;
839
841
  strict: boolean;
840
842
  systemNullSetters: boolean;
841
843
  validate: boolean;
package/dist/rollup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.25.0-0
4
- Tue, 29 Oct 2024 06:14:37 GMT - commit b7fcaba12e863db516f39de74c1eacfe5329a5c3
3
+ Rollup.js v4.25.0
4
+ Sat, 09 Nov 2024 08:36:52 GMT - commit 42e587e0e37bc0661aa39fe7ad6f1d7fd33f825c
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.25.0-0
4
- Tue, 29 Oct 2024 06:14:37 GMT - commit b7fcaba12e863db516f39de74c1eacfe5329a5c3
3
+ Rollup.js v4.25.0
4
+ Sat, 09 Nov 2024 08:36:52 GMT - commit 42e587e0e37bc0661aa39fe7ad6f1d7fd33f825c
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.25.0-0
4
- Tue, 29 Oct 2024 06:14:37 GMT - commit b7fcaba12e863db516f39de74c1eacfe5329a5c3
3
+ Rollup.js v4.25.0
4
+ Sat, 09 Nov 2024 08:36:52 GMT - commit 42e587e0e37bc0661aa39fe7ad6f1d7fd33f825c
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -11,8 +11,8 @@
11
11
 
12
12
  const rollup = require('./rollup.js');
13
13
  const require$$0$1 = require('path');
14
- const require$$2 = require('util');
15
14
  const require$$0$2 = require('fs');
15
+ const require$$2 = require('util');
16
16
  const require$$1 = require('stream');
17
17
  const require$$2$1 = require('os');
18
18
  const fseventsImporter = require('./fsevents-importer.js');
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.25.0-0
4
- Tue, 29 Oct 2024 06:14:37 GMT - commit b7fcaba12e863db516f39de74c1eacfe5329a5c3
3
+ Rollup.js v4.25.0
4
+ Sat, 09 Nov 2024 08:36:52 GMT - commit 42e587e0e37bc0661aa39fe7ad6f1d7fd33f825c
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.25.0-0
4
- Tue, 29 Oct 2024 06:14:37 GMT - commit b7fcaba12e863db516f39de74c1eacfe5329a5c3
3
+ Rollup.js v4.25.0
4
+ Sat, 09 Nov 2024 08:36:52 GMT - commit 42e587e0e37bc0661aa39fe7ad6f1d7fd33f825c
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1038,6 +1038,7 @@ const ExportDefaultDeclaration = 'ExportDefaultDeclaration';
1038
1038
  const ExpressionStatement = 'ExpressionStatement';
1039
1039
  const Identifier = 'Identifier';
1040
1040
  const Literal = 'Literal';
1041
+ const ObjectExpression = 'ObjectExpression';
1041
1042
  const PanicError = 'PanicError';
1042
1043
  const ParseError = 'ParseError';
1043
1044
  const Program = 'Program';
@@ -1121,9 +1122,9 @@ const convertAnnotations = (position, buffer) => {
1121
1122
  if (position === 0)
1122
1123
  return EMPTY_ARRAY;
1123
1124
  const length = buffer[position++];
1124
- const list = [];
1125
+ const list = new Array(length);
1125
1126
  for (let index = 0; index < length; index++) {
1126
- list.push(convertAnnotation(buffer[position++], buffer));
1127
+ list[index] = convertAnnotation(buffer[position++], buffer);
1127
1128
  }
1128
1129
  return list;
1129
1130
  };
@@ -2099,10 +2100,10 @@ function convertNodeList(position, buffer) {
2099
2100
  if (position === 0)
2100
2101
  return EMPTY_ARRAY;
2101
2102
  const length = buffer[position++];
2102
- const list = [];
2103
+ const list = new Array(length);
2103
2104
  for (let index = 0; index < length; index++) {
2104
2105
  const nodePosition = buffer[position++];
2105
- list.push(nodePosition ? convertNode(nodePosition, buffer) : null);
2106
+ list[index] = nodePosition ? convertNode(nodePosition, buffer) : null;
2106
2107
  }
2107
2108
  return list;
2108
2109
  }
@@ -2150,6 +2151,7 @@ exports.LOGLEVEL_ERROR = LOGLEVEL_ERROR;
2150
2151
  exports.LOGLEVEL_INFO = LOGLEVEL_INFO;
2151
2152
  exports.LOGLEVEL_WARN = LOGLEVEL_WARN;
2152
2153
  exports.Literal = Literal;
2154
+ exports.ObjectExpression = ObjectExpression;
2153
2155
  exports.Program = Program;
2154
2156
  exports.Property = Property;
2155
2157
  exports.ReturnStatement = ReturnStatement;