@rollup/wasm-node 4.16.4 → 4.17.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.
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.16.4
4
- Tue, 23 Apr 2024 13:14:37 GMT - commit 1c404fa352b70007066e94ff4c1981f8046f8cef
3
+ Rollup.js v4.17.1
4
+ Mon, 29 Apr 2024 04:57:19 GMT - commit dbf0a2e5d3c3eae09ac4d502646d0ecab63f40fd
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -14,6 +14,7 @@ const ArrowFunctionExpression = 'ArrowFunctionExpression';
14
14
  const BlockStatement = 'BlockStatement';
15
15
  const CallExpression = 'CallExpression';
16
16
  const CatchClause = 'CatchClause';
17
+ const ExportDefaultDeclaration = 'ExportDefaultDeclaration';
17
18
  const ExpressionStatement = 'ExpressionStatement';
18
19
  const Identifier = 'Identifier';
19
20
  const Literal = 'Literal';
@@ -23,6 +24,7 @@ const Program = 'Program';
23
24
  const Property = 'Property';
24
25
  const ReturnStatement = 'ReturnStatement';
25
26
  const TemplateLiteral = 'TemplateLiteral';
27
+ const VariableDeclarator = 'VariableDeclarator';
26
28
 
27
29
  const BLANK = Object.freeze(Object.create(null));
28
30
  const EMPTY_OBJECT = Object.freeze({});
@@ -548,7 +550,7 @@ function logDeprecation(deprecation, urlSnippet, plugin) {
548
550
  code: DEPRECATED_FEATURE,
549
551
  message: deprecation,
550
552
  url: getRollupUrl(urlSnippet),
551
- ...(plugin ? { plugin } : {})
553
+ ...({})
552
554
  };
553
555
  }
554
556
  function logConstVariableReassignError() {
@@ -1032,11 +1034,11 @@ function logFailedValidation(message) {
1032
1034
  };
1033
1035
  }
1034
1036
  function warnDeprecation(deprecation, urlSnippet, activeDeprecation, options, plugin) {
1035
- warnDeprecationWithOptions(deprecation, urlSnippet, activeDeprecation, options.onLog, options.strictDeprecations, plugin);
1037
+ warnDeprecationWithOptions(deprecation, urlSnippet, activeDeprecation, options.onLog, options.strictDeprecations);
1036
1038
  }
1037
1039
  function warnDeprecationWithOptions(deprecation, urlSnippet, activeDeprecation, log, strictDeprecations, plugin) {
1038
- if (activeDeprecation || strictDeprecations) {
1039
- const warning = logDeprecation(deprecation, urlSnippet, plugin);
1040
+ {
1041
+ const warning = logDeprecation(deprecation, urlSnippet);
1040
1042
  if (strictDeprecations) {
1041
1043
  return error(warning);
1042
1044
  }
@@ -2204,4 +2206,4 @@ const parseAstAsync = async (input, { allowReturnOutsideFunction = false, signal
2204
2206
  return convertProgram(astBuffer.buffer, getReadStringFunction(astBuffer));
2205
2207
  };
2206
2208
 
2207
- export { ANNOTATION_KEY, ArrowFunctionExpression, BLANK, BlockStatement, CallExpression, CatchClause, EMPTY_ARRAY, EMPTY_OBJECT, EMPTY_SET, ExpressionStatement, FIXED_STRINGS, INVALID_ANNOTATION_KEY, Identifier, LOGLEVEL_DEBUG, LOGLEVEL_ERROR, LOGLEVEL_INFO, LOGLEVEL_WARN, Literal, Program, Property, ReturnStatement, TemplateLiteral, 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, addTrailingSlashIfMissed, augmentCodeLocation, augmentLogMessage, convertAnnotations, convertNode, convertString, error, getAliasName, getImportPath, getReadStringFunction, 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, logMissingNameOptionForIifeExport, logMissingNameOptionForUmdExport, logMissingNodeBuiltins, logMixedExport, logModuleLevelDirective, logModuleParseError, logNamespaceConflict, logNoAssetSourceSet, logNoTransformMapOrAstWithoutCode, logOptimizeChunkStatus, logParseError, logPluginError, logRedeclarationError, logShimmedExport, logSourcemapBroken, logSyntheticNamedExportsNeedNamespaceExport, logThisIsUndefined, logUnexpectedNamedImport, logUnexpectedNamespaceReexport, logUnknownOption, logUnresolvedEntry, logUnresolvedImplicitDependant, logUnresolvedImport, logUnresolvedImportTreatedAsExternal, logUnusedExternalImports, normalize, parseAst, parseAstAsync, printQuotedStringList, relative, relativeId, warnDeprecation };
2209
+ 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, TemplateLiteral, 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, convertString, error, getAliasName, getImportPath, getReadStringFunction, 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, logMissingNameOptionForIifeExport, logMissingNameOptionForUmdExport, logMissingNodeBuiltins, logMixedExport, logModuleLevelDirective, logModuleParseError, logNamespaceConflict, logNoAssetSourceSet, logNoTransformMapOrAstWithoutCode, logOptimizeChunkStatus, logParseError, logPluginError, logRedeclarationError, 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.16.4
4
- Tue, 23 Apr 2024 13:14:37 GMT - commit 1c404fa352b70007066e94ff4c1981f8046f8cef
3
+ Rollup.js v4.17.1
4
+ Mon, 29 Apr 2024 04:57:19 GMT - commit dbf0a2e5d3c3eae09ac4d502646d0ecab63f40fd
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.16.4
4
- Tue, 23 Apr 2024 13:14:37 GMT - commit 1c404fa352b70007066e94ff4c1981f8046f8cef
3
+ Rollup.js v4.17.1
4
+ Mon, 29 Apr 2024 04:57:19 GMT - commit dbf0a2e5d3c3eae09ac4d502646d0ecab63f40fd
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.16.4
4
- Tue, 23 Apr 2024 13:14:37 GMT - commit 1c404fa352b70007066e94ff4c1981f8046f8cef
3
+ Rollup.js v4.17.1
4
+ Mon, 29 Apr 2024 04:57:19 GMT - commit dbf0a2e5d3c3eae09ac4d502646d0ecab63f40fd
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.16.4
4
- Tue, 23 Apr 2024 13:14:37 GMT - commit 1c404fa352b70007066e94ff4c1981f8046f8cef
3
+ Rollup.js v4.17.1
4
+ Mon, 29 Apr 2024 04:57:19 GMT - commit dbf0a2e5d3c3eae09ac4d502646d0ecab63f40fd
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.16.4
4
- Tue, 23 Apr 2024 13:14:37 GMT - commit 1c404fa352b70007066e94ff4c1981f8046f8cef
3
+ Rollup.js v4.17.1
4
+ Mon, 29 Apr 2024 04:57:19 GMT - commit dbf0a2e5d3c3eae09ac4d502646d0ecab63f40fd
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.16.4
4
- Tue, 23 Apr 2024 13:14:37 GMT - commit 1c404fa352b70007066e94ff4c1981f8046f8cef
3
+ Rollup.js v4.17.1
4
+ Mon, 29 Apr 2024 04:57:19 GMT - commit dbf0a2e5d3c3eae09ac4d502646d0ecab63f40fd
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.16.4
4
- Tue, 23 Apr 2024 13:14:37 GMT - commit 1c404fa352b70007066e94ff4c1981f8046f8cef
3
+ Rollup.js v4.17.1
4
+ Mon, 29 Apr 2024 04:57:19 GMT - commit dbf0a2e5d3c3eae09ac4d502646d0ecab63f40fd
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.16.4
4
- Tue, 23 Apr 2024 13:14:37 GMT - commit 1c404fa352b70007066e94ff4c1981f8046f8cef
3
+ Rollup.js v4.17.1
4
+ Mon, 29 Apr 2024 04:57:19 GMT - commit dbf0a2e5d3c3eae09ac4d502646d0ecab63f40fd
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.16.4
4
- Tue, 23 Apr 2024 13:14:37 GMT - commit 1c404fa352b70007066e94ff4c1981f8046f8cef
3
+ Rollup.js v4.17.1
4
+ Mon, 29 Apr 2024 04:57:19 GMT - commit dbf0a2e5d3c3eae09ac4d502646d0ecab63f40fd
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -438,7 +438,7 @@ function logDeprecation(deprecation, urlSnippet, plugin) {
438
438
  code: DEPRECATED_FEATURE,
439
439
  message: deprecation,
440
440
  url: getRollupUrl(urlSnippet),
441
- ...(plugin ? { plugin } : {})
441
+ ...({})
442
442
  };
443
443
  }
444
444
  function logConstVariableReassignError() {
@@ -980,11 +980,11 @@ function logFailedValidation(message) {
980
980
  };
981
981
  }
982
982
  function warnDeprecation(deprecation, urlSnippet, activeDeprecation, options, plugin) {
983
- warnDeprecationWithOptions(deprecation, urlSnippet, activeDeprecation, options.onLog, options.strictDeprecations, plugin);
983
+ warnDeprecationWithOptions(deprecation, urlSnippet, activeDeprecation, options.onLog, options.strictDeprecations);
984
984
  }
985
985
  function warnDeprecationWithOptions(deprecation, urlSnippet, activeDeprecation, log, strictDeprecations, plugin) {
986
- if (activeDeprecation || strictDeprecations) {
987
- const warning = logDeprecation(deprecation, urlSnippet, plugin);
986
+ {
987
+ const warning = logDeprecation(deprecation, urlSnippet);
988
988
  if (strictDeprecations) {
989
989
  return error(warning);
990
990
  }
@@ -1005,6 +1005,7 @@ const ArrowFunctionExpression = 'ArrowFunctionExpression';
1005
1005
  const BlockStatement = 'BlockStatement';
1006
1006
  const CallExpression = 'CallExpression';
1007
1007
  const CatchClause = 'CatchClause';
1008
+ const ExportDefaultDeclaration = 'ExportDefaultDeclaration';
1008
1009
  const ExpressionStatement = 'ExpressionStatement';
1009
1010
  const Identifier = 'Identifier';
1010
1011
  const Literal = 'Literal';
@@ -1014,6 +1015,7 @@ const Program = 'Program';
1014
1015
  const Property = 'Property';
1015
1016
  const ReturnStatement = 'ReturnStatement';
1016
1017
  const TemplateLiteral = 'TemplateLiteral';
1018
+ const VariableDeclarator = 'VariableDeclarator';
1017
1019
 
1018
1020
  // This file is generated by scripts/generate-string-constants.js.
1019
1021
  // Do not edit this file directly.
@@ -2276,6 +2278,7 @@ exports.CatchClause = CatchClause;
2276
2278
  exports.EMPTY_ARRAY = EMPTY_ARRAY;
2277
2279
  exports.EMPTY_OBJECT = EMPTY_OBJECT;
2278
2280
  exports.EMPTY_SET = EMPTY_SET;
2281
+ exports.ExportDefaultDeclaration = ExportDefaultDeclaration;
2279
2282
  exports.ExpressionStatement = ExpressionStatement;
2280
2283
  exports.FIXED_STRINGS = FIXED_STRINGS;
2281
2284
  exports.INVALID_ANNOTATION_KEY = INVALID_ANNOTATION_KEY;
@@ -2311,6 +2314,7 @@ exports.URL_TREATING_MODULE_AS_EXTERNAL_DEPENDENCY = URL_TREATING_MODULE_AS_EXTE
2311
2314
  exports.URL_TREESHAKE = URL_TREESHAKE;
2312
2315
  exports.URL_TREESHAKE_MODULESIDEEFFECTS = URL_TREESHAKE_MODULESIDEEFFECTS;
2313
2316
  exports.URL_WATCH = URL_WATCH;
2317
+ exports.VariableDeclarator = VariableDeclarator;
2314
2318
  exports.addTrailingSlashIfMissed = addTrailingSlashIfMissed;
2315
2319
  exports.augmentCodeLocation = augmentCodeLocation;
2316
2320
  exports.augmentLogMessage = augmentLogMessage;