Socket
Socket
Sign inDemoInstall

@rollup/wasm-node

Package Overview
Dependencies
Maintainers
4
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rollup/wasm-node - npm Package Compare versions

Comparing version 4.0.0-24 to 4.0.0-25

dist/es/parseAst.js

4

dist/es/getLogFilter.js
/*
@license
Rollup.js v4.0.0-24
Tue, 03 Oct 2023 05:11:52 GMT - commit ced077f2920c473c4c2ca31a8d72b259bec91f67
Rollup.js v4.0.0-25
Thu, 05 Oct 2023 14:11:47 GMT - commit 1ac6bbc437c7ed0de3ad23e4e0904f00783e703d

@@ -6,0 +6,0 @@ https://github.com/rollup/rollup

/*
@license
Rollup.js v4.0.0-24
Tue, 03 Oct 2023 05:11:52 GMT - commit ced077f2920c473c4c2ca31a8d72b259bec91f67
Rollup.js v4.0.0-25
Thu, 05 Oct 2023 14:11:47 GMT - commit 1ac6bbc437c7ed0de3ad23e4e0904f00783e703d

@@ -11,2 +11,4 @@ https://github.com/rollup/rollup

export { version as VERSION, defineConfig, rollup, watch } from './shared/node-entry.js';
import './shared/parseAst.js';
import '../native.js';
import 'node:path';

@@ -16,4 +18,3 @@ import 'path';

import 'node:perf_hooks';
import '../native.js';
import 'node:fs/promises';
import 'tty';
/*
@license
Rollup.js v4.0.0-24
Tue, 03 Oct 2023 05:11:52 GMT - commit ced077f2920c473c4c2ca31a8d72b259bec91f67
Rollup.js v4.0.0-25
Thu, 05 Oct 2023 14:11:47 GMT - commit 1ac6bbc437c7ed0de3ad23e4e0904f00783e703d

@@ -6,0 +6,0 @@ https://github.com/rollup/rollup

/*
@license
Rollup.js v4.0.0-24
Tue, 03 Oct 2023 05:11:52 GMT - commit ced077f2920c473c4c2ca31a8d72b259bec91f67
Rollup.js v4.0.0-25
Thu, 05 Oct 2023 14:11:47 GMT - commit 1ac6bbc437c7ed0de3ad23e4e0904f00783e703d

@@ -19,2 +19,3 @@ https://github.com/rollup/rollup

require('./shared/rollup.js');
require('./shared/parseAst.js');
const loadConfigFile_js = require('./shared/loadConfigFile.js');

@@ -21,0 +22,0 @@ require('tty');

@@ -204,2 +204,7 @@ export const VERSION: string;

export type ParseAst = (
input: string,
options?: { allowReturnOutsideFunction?: boolean }
) => AstNode;
export interface PluginContext extends MinimalPluginContext {

@@ -219,3 +224,3 @@ addWatchFile: (id: string) => void;

) => Promise<ModuleInfo>;
parse: (input: string, options?: { allowReturnOutsideFunction?: boolean }) => AstNode;
parse: ParseAst;
resolve: (

@@ -222,0 +227,0 @@ source: string,

/*
@license
Rollup.js v4.0.0-24
Tue, 03 Oct 2023 05:11:52 GMT - commit ced077f2920c473c4c2ca31a8d72b259bec91f67
Rollup.js v4.0.0-25
Thu, 05 Oct 2023 14:11:47 GMT - commit 1ac6bbc437c7ed0de3ad23e4e0904f00783e703d

@@ -16,8 +16,9 @@ https://github.com/rollup/rollup

const watchProxy = require('./shared/watch-proxy.js');
require('./shared/parseAst.js');
require('./native.js');
require('node:path');
require('node:process');
require('tty');
require('node:path');
require('path');
require('node:perf_hooks');
require('./native.js');
require('node:fs/promises');

@@ -24,0 +25,0 @@ require('./shared/fsevents-importer.js');

/*
@license
Rollup.js v4.0.0-24
Tue, 03 Oct 2023 05:11:52 GMT - commit ced077f2920c473c4c2ca31a8d72b259bec91f67
Rollup.js v4.0.0-25
Thu, 05 Oct 2023 14:11:47 GMT - commit 1ac6bbc437c7ed0de3ad23e4e0904f00783e703d

@@ -6,0 +6,0 @@ https://github.com/rollup/rollup

/*
@license
Rollup.js v4.0.0-24
Tue, 03 Oct 2023 05:11:52 GMT - commit ced077f2920c473c4c2ca31a8d72b259bec91f67
Rollup.js v4.0.0-25
Thu, 05 Oct 2023 14:11:47 GMT - commit 1ac6bbc437c7ed0de3ad23e4e0904f00783e703d

@@ -17,2 +17,3 @@ https://github.com/rollup/rollup

const rollup = require('./rollup.js');
const parseAst_js = require('./parseAst.js');
const getLogFilter_js = require('../getLogFilter.js');

@@ -61,6 +62,6 @@

switch (level) {
case rollup.LOGLEVEL_WARN: {
case parseAst_js.LOGLEVEL_WARN: {
return add(log);
}
case rollup.LOGLEVEL_DEBUG: {
case parseAst_js.LOGLEVEL_DEBUG: {
if (!silent) {

@@ -88,3 +89,3 @@ rollup.stderr(rollup.bold(rollup.blue(log.message)));

title(`Missing shims for Node.js built-ins`);
rollup.stderr(`Creating a browser bundle that depends on ${rollup.printQuotedStringList(warning.ids)}. You might need to include https://github.com/FredKSchott/rollup-plugin-polyfill-node`);
rollup.stderr(`Creating a browser bundle that depends on ${parseAst_js.printQuotedStringList(warning.ids)}. You might need to include https://github.com/FredKSchott/rollup-plugin-polyfill-node`);
},

@@ -101,3 +102,3 @@ UNKNOWN_OPTION(warning) {

for (const warning of displayed) {
rollup.stderr(warning.ids.map(rollup.relativeId).join(' -> '));
rollup.stderr(warning.ids.map(parseAst_js.relativeId).join(' -> '));
}

@@ -110,7 +111,7 @@ if (warnings.length > displayed.length) {

title(`Generated${warnings.length === 1 ? ' an' : ''} empty ${warnings.length > 1 ? 'chunks' : 'chunk'}`);
rollup.stderr(rollup.printQuotedStringList(warnings.map(warning => warning.names[0])));
rollup.stderr(parseAst_js.printQuotedStringList(warnings.map(warning => warning.names[0])));
},
EVAL(warnings) {
title('Use of eval is strongly discouraged');
info(rollup.getRollupUrl(rollup.URL_AVOIDING_EVAL));
info(parseAst_js.getRollupUrl(parseAst_js.URL_AVOIDING_EVAL));
showTruncatedWarnings(warnings);

@@ -120,6 +121,6 @@ },

title('Missing exports');
info(rollup.getRollupUrl(rollup.URL_NAME_IS_NOT_EXPORTED));
info(parseAst_js.getRollupUrl(parseAst_js.URL_NAME_IS_NOT_EXPORTED));
for (const warning of warnings) {
rollup.stderr(rollup.bold(rollup.relativeId(warning.id)));
rollup.stderr(`${warning.binding} is not exported by ${rollup.relativeId(warning.exporter)}`);
rollup.stderr(rollup.bold(parseAst_js.relativeId(warning.id)));
rollup.stderr(`${warning.binding} is not exported by ${parseAst_js.relativeId(warning.exporter)}`);
rollup.stderr(rollup.gray(warning.frame));

@@ -130,3 +131,3 @@ }

title(`Missing global variable ${warnings.length > 1 ? 'names' : 'name'}`);
info(rollup.getRollupUrl(rollup.URL_OUTPUT_GLOBALS));
info(parseAst_js.getRollupUrl(parseAst_js.URL_OUTPUT_GLOBALS));
rollup.stderr(`Use "output.globals" to specify browser global variable names corresponding to external modules:`);

@@ -139,3 +140,3 @@ for (const warning of warnings) {

title('Mixing named and default exports');
info(rollup.getRollupUrl(rollup.URL_OUTPUT_EXPORTS));
info(parseAst_js.getRollupUrl(parseAst_js.URL_OUTPUT_EXPORTS));
rollup.stderr(rollup.bold('The following entry modules are using named and default exports together:'));

@@ -145,3 +146,3 @@ warnings.sort((a, b) => (a.id < b.id ? -1 : 1));

for (const warning of displayedWarnings) {
rollup.stderr(rollup.relativeId(warning.id));
rollup.stderr(parseAst_js.relativeId(warning.id));
}

@@ -156,3 +157,3 @@ if (displayedWarnings.length < warnings.length) {

for (const warning of warnings) {
rollup.stderr(`"${rollup.bold(rollup.relativeId(warning.reexporter))}" re-exports "${warning.binding}" from both "${rollup.relativeId(warning.ids[0])}" and "${rollup.relativeId(warning.ids[1])}" (will be ignored).`);
rollup.stderr(`"${rollup.bold(parseAst_js.relativeId(warning.reexporter))}" re-exports "${warning.binding}" from both "${parseAst_js.relativeId(warning.ids[0])}" and "${parseAst_js.relativeId(warning.ids[1])}" (will be ignored).`);
}

@@ -172,3 +173,3 @@ },

if (id) {
let loc = rollup.relativeId(id);
let loc = parseAst_js.relativeId(id);
if (warning.loc) {

@@ -187,9 +188,9 @@ loc += `: (${warning.loc.line}:${warning.loc.column})`;

title(`Broken sourcemap`);
info(rollup.getRollupUrl(rollup.URL_SOURCEMAP_IS_LIKELY_TO_BE_INCORRECT));
info(parseAst_js.getRollupUrl(parseAst_js.URL_SOURCEMAP_IS_LIKELY_TO_BE_INCORRECT));
const plugins = [...new Set(warnings.map(({ plugin }) => plugin).filter(Boolean))];
rollup.stderr(`Plugins that transform code (such as ${rollup.printQuotedStringList(plugins)}) should generate accompanying sourcemaps.`);
rollup.stderr(`Plugins that transform code (such as ${parseAst_js.printQuotedStringList(plugins)}) should generate accompanying sourcemaps.`);
},
THIS_IS_UNDEFINED(warnings) {
title('"this" has been rewritten to "undefined"');
info(rollup.getRollupUrl(rollup.URL_THIS_IS_UNDEFINED));
info(parseAst_js.getRollupUrl(parseAst_js.URL_THIS_IS_UNDEFINED));
showTruncatedWarnings(warnings);

@@ -199,9 +200,9 @@ },

title('Unresolved dependencies');
info(rollup.getRollupUrl(rollup.URL_TREATING_MODULE_AS_EXTERNAL_DEPENDENCY));
info(parseAst_js.getRollupUrl(parseAst_js.URL_TREATING_MODULE_AS_EXTERNAL_DEPENDENCY));
const dependencies = new Map();
for (const warning of warnings) {
rollup.getOrCreate(dependencies, rollup.relativeId(warning.exporter), rollup.getNewArray).push(rollup.relativeId(warning.id));
rollup.getOrCreate(dependencies, parseAst_js.relativeId(warning.exporter), rollup.getNewArray).push(parseAst_js.relativeId(warning.id));
}
for (const [dependency, importers] of dependencies) {
rollup.stderr(`${rollup.bold(dependency)} (imported by ${rollup.printQuotedStringList(importers)})`);
rollup.stderr(`${rollup.bold(dependency)} (imported by ${parseAst_js.printQuotedStringList(importers)})`);
}

@@ -216,3 +217,3 @@ },

'" but never used in ' +
rollup.printQuotedStringList(warning.ids.map(rollup.relativeId)) +
parseAst_js.printQuotedStringList(warning.ids.map(parseAst_js.relativeId)) +
'.');

@@ -224,8 +225,8 @@ }

if (log.url) {
info(rollup.getRollupUrl(log.url));
info(parseAst_js.getRollupUrl(log.url));
}
const id = log.loc?.file || log.id;
if (id) {
const loc = log.loc ? `${rollup.relativeId(id)} (${log.loc.line}:${log.loc.column})` : rollup.relativeId(id);
rollup.stderr(rollup.bold(rollup.relativeId(loc)));
const loc = log.loc ? `${parseAst_js.relativeId(id)} (${log.loc.line}:${log.loc.column})` : parseAst_js.relativeId(id);
rollup.stderr(rollup.bold(parseAst_js.relativeId(loc)));
}

@@ -261,3 +262,3 @@ if (log.frame)

for (const { key: id, items } of displayedByModule) {
rollup.stderr(rollup.bold(rollup.relativeId(id)));
rollup.stderr(rollup.bold(parseAst_js.relativeId(id)));
rollup.stderr(rollup.gray(items[0].frame));

@@ -467,3 +468,3 @@ if (items.length > 1) {

if (error_.message.includes('not defined in ES module scope')) {
return rollup.error(rollup.logCannotBundleConfigAsEsm(error_));
return parseAst_js.error(parseAst_js.logCannotBundleConfigAsEsm(error_));
}

@@ -490,6 +491,6 @@ throw error_;

if (cannotLoadEsm) {
return rollup.error(rollup.logCannotLoadConfigAsCjs(error_));
return parseAst_js.error(parseAst_js.logCannotLoadConfigAsCjs(error_));
}
if (error_.message.includes('not defined in ES module scope')) {
return rollup.error(rollup.logCannotLoadConfigAsEsm(error_));
return parseAst_js.error(parseAst_js.logCannotLoadConfigAsEsm(error_));
}

@@ -535,3 +536,3 @@ throw error_;

if (!silent && warnings.count > 0) {
rollup.stderr(rollup.bold(`loaded ${rollup.relativeId(fileName)} with warnings`));
rollup.stderr(rollup.bold(`loaded ${parseAst_js.relativeId(fileName)} with warnings`));
warnings.flush();

@@ -556,3 +557,3 @@ }

if (Object.keys(config).length === 0) {
return rollup.error(rollup.logMissingConfig());
return parseAst_js.error(parseAst_js.logMissingConfig());
}

@@ -559,0 +560,0 @@ return Array.isArray(config) ? config : [config];

/*
@license
Rollup.js v4.0.0-24
Tue, 03 Oct 2023 05:11:52 GMT - commit ced077f2920c473c4c2ca31a8d72b259bec91f67
Rollup.js v4.0.0-25
Thu, 05 Oct 2023 14:11:47 GMT - commit 1ac6bbc437c7ed0de3ad23e4e0904f00783e703d

@@ -19,2 +19,3 @@ https://github.com/rollup/rollup

const rollup = require('./rollup.js');
const parseAst_js = require('./parseAst.js');
const loadConfigFile_js = require('./loadConfigFile.js');

@@ -515,3 +516,3 @@ const node_child_process = require('node:child_process');

}
rollup.stderr(rollup.cyan$1(`bundles ${rollup.bold(input)} → ${rollup.bold(event.output.map(rollup.relativeId).join(', '))}...`));
rollup.stderr(rollup.cyan$1(`bundles ${rollup.bold(input)} → ${rollup.bold(event.output.map(parseAst_js.relativeId).join(', '))}...`));
}

@@ -524,3 +525,3 @@ runWatchHook('onBundleStart');

if (!silent)
rollup.stderr(rollup.green(`created ${rollup.bold(event.output.map(rollup.relativeId).join(', '))} in ${rollup.bold(cli.prettyMilliseconds(event.duration))}`));
rollup.stderr(rollup.green(`created ${rollup.bold(event.output.map(parseAst_js.relativeId).join(', '))} in ${rollup.bold(cli.prettyMilliseconds(event.duration))}`));
runWatchHook('onBundleEnd');

@@ -527,0 +528,0 @@ if (event.result && event.result.getTimings) {

/*
@license
Rollup.js v4.0.0-24
Tue, 03 Oct 2023 05:11:52 GMT - commit ced077f2920c473c4c2ca31a8d72b259bec91f67
Rollup.js v4.0.0-25
Thu, 05 Oct 2023 14:11:47 GMT - commit 1ac6bbc437c7ed0de3ad23e4e0904f00783e703d

@@ -13,2 +13,3 @@ https://github.com/rollup/rollup

const rollup = require('./rollup.js');
const parseAst_js = require('./parseAst.js');
const fseventsImporter = require('./fsevents-importer.js');

@@ -80,3 +81,3 @@

if (watchOptionsList.length === 0) {
return rollup.error(rollup.logInvalidOption('watch', rollup.URL_WATCH, 'there must be at least one config where "watch" is not set to "false"'));
return parseAst_js.error(parseAst_js.logInvalidOption('watch', parseAst_js.URL_WATCH, 'there must be at least one config where "watch" is not set to "false"'));
}

@@ -83,0 +84,0 @@ await fseventsImporter.loadFsEvents();

/*
@license
Rollup.js v4.0.0-24
Tue, 03 Oct 2023 05:11:52 GMT - commit ced077f2920c473c4c2ca31a8d72b259bec91f67
Rollup.js v4.0.0-25
Thu, 05 Oct 2023 14:11:47 GMT - commit 1ac6bbc437c7ed0de3ad23e4e0904f00783e703d

@@ -19,6 +19,7 @@ https://github.com/rollup/rollup

const index = require('./index.js');
require('./parseAst.js');
require('../native.js');
require('tty');
require('path');
require('node:perf_hooks');
require('../native.js');
require('node:fs/promises');

@@ -25,0 +26,0 @@ require('fs');

@@ -276,4 +276,4 @@ let imports = {};

module.exports.__wbindgen_string_new = function(arg0, arg1) {
const ret = getStringFromWasm0(arg0, arg1);
module.exports.__wbindgen_error_new = function(arg0, arg1) {
const ret = new Error(getStringFromWasm0(arg0, arg1));
return addHeapObject(ret);

@@ -313,4 +313,4 @@ };

module.exports.__wbindgen_error_new = function(arg0, arg1) {
const ret = new Error(getStringFromWasm0(arg0, arg1));
module.exports.__wbindgen_string_new = function(arg0, arg1) {
const ret = getStringFromWasm0(arg0, arg1);
return addHeapObject(ret);

@@ -336,2 +336,7 @@ };

module.exports.__wbindgen_number_new = function(arg0) {
const ret = arg0;
return addHeapObject(ret);
};
module.exports.__wbg_getwithrefkey_15c62c2b8546208d = function(arg0, arg1) {

@@ -460,2 +465,7 @@ const ret = getObject(arg0)[getObject(arg1)];

module.exports.__wbg_new_cd59bfc8881f487b = function(arg0) {
const ret = new Date(getObject(arg0));
return addHeapObject(ret);
};
module.exports.__wbg_new0_c0be7df4b6bd481f = function() {

@@ -462,0 +472,0 @@ const ret = new Date();

{
"name": "@rollup/wasm-node",
"version": "4.0.0-24",
"version": "4.0.0-25",
"description": "Next-generation ES module bundler with Node wasm",

@@ -32,3 +32,3 @@ "main": "dist/rollup.js",

"devDependencies": {
"@codemirror/commands": "^6.2.5",
"@codemirror/commands": "^6.3.0",
"@codemirror/lang-javascript": "^6.2.1",

@@ -38,6 +38,6 @@ "@codemirror/language": "^6.9.1",

"@codemirror/state": "^6.2.1",
"@codemirror/view": "^6.20.2",
"@codemirror/view": "^6.21.2",
"@jridgewell/sourcemap-codec": "^1.4.15",
"@mermaid-js/mermaid-cli": "^10.4.0",
"@napi-rs/cli": "^2.16.2",
"@napi-rs/cli": "^2.16.3",
"@rollup/plugin-alias": "^5.0.0",

@@ -50,10 +50,10 @@ "@rollup/plugin-buble": "^1.0.2",

"@rollup/plugin-terser": "^0.4.3",
"@rollup/plugin-typescript": "11.1.2",
"@rollup/plugin-typescript": "11.1.4",
"@rollup/pluginutils": "^5.0.4",
"@types/estree": "1.0.2",
"@types/mocha": "^10.0.1",
"@types/mocha": "^10.0.2",
"@types/node": "18.0.0",
"@types/yargs-parser": "^21.0.1",
"@typescript-eslint/eslint-plugin": "^6.7.3",
"@typescript-eslint/parser": "^6.7.3",
"@typescript-eslint/eslint-plugin": "^6.7.4",
"@typescript-eslint/parser": "^6.7.4",
"@vue/eslint-config-prettier": "^8.0.0",

@@ -68,3 +68,3 @@ "@vue/eslint-config-typescript": "^12.0.0",

"concurrently": "^8.2.1",
"core-js": "^3.32.2",
"core-js": "^3.33.0",
"date-time": "^4.0.0",

@@ -89,3 +89,3 @@ "es5-shim": "^4.6.7",

"locate-character": "^3.0.0",
"magic-string": "^0.30.3",
"magic-string": "^0.30.4",
"mocha": "^10.2.0",

@@ -98,3 +98,3 @@ "nyc": "^15.1.0",

"requirejs": "^2.3.6",
"rollup": "^3.29.3",
"rollup": "^3.29.4",
"rollup-plugin-license": "^3.1.0",

@@ -109,6 +109,6 @@ "rollup-plugin-string": "^3.0.0",

"systemjs": "^6.14.2",
"terser": "^5.20.0",
"terser": "^5.21.0",
"tslib": "^2.6.2",
"typescript": "^5.2.2",
"vite": "^4.4.9",
"vite": "^4.4.11",
"vitepress": "^1.0.0-rc.20",

@@ -151,4 +151,9 @@ "vue": "^3.3.4",

},
"./parseAst": {
"types": "./dist/parseAst.d.ts",
"require": "./dist/parseAst.js",
"import": "./dist/es/parseAst.js"
},
"./dist/*": "./dist/*"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc