PHP 8.2.30
Preview: modules.js Size: 2.51 KB
/home/byroehnu/.trash/node_modules11/rollup-plugin-polyfill-node/dist/modules.js

'use strict';

const polyfills = require('./polyfills.js');

const EMPTY_PATH = polyfills['empty.js'];
function getModules() {
    const libs = new Map();
    libs.set('process', polyfills['process-es6.js']);
    libs.set('global', polyfills['global.js']);
    libs.set('buffer', polyfills['buffer-es6.js']);
    libs.set('util', polyfills['util.js']);
    libs.set('sys', libs.get('util'));
    libs.set('events', polyfills['events.js']);
    libs.set('stream', polyfills['stream.js']);
    libs.set('path', polyfills['path.js']);
    libs.set('querystring', polyfills['querystring.js']);
    libs.set('punycode', polyfills['punycode.js']);
    libs.set('url', polyfills['url.js']);
    libs.set('string_decoder', polyfills['string-decoder.js']);
    libs.set('http', polyfills['http.js']);
    libs.set('https', polyfills['http.js']);
    libs.set('os', polyfills['os.js']);
    libs.set('assert', polyfills['assert.js']);
    libs.set('constants', polyfills['constants.js']);
    libs.set('_stream_duplex', polyfills['__readable-stream/duplex.js']);
    libs.set('_stream_passthrough', polyfills['__readable-stream/passthrough.js']);
    libs.set('_stream_readable', polyfills['__readable-stream/readable.js']);
    libs.set('_stream_writable', polyfills['__readable-stream/writable.js']);
    libs.set('_stream_transform', polyfills['__readable-stream/transform.js']);
    libs.set('_inherits', polyfills['inherits.js']);
    libs.set('_buffer_list', polyfills['__readable-stream/buffer-list.js']);
    libs.set('timers', polyfills['timers.js']);
    libs.set('console', polyfills['console.js']);
    libs.set('vm', polyfills['vm.js']);
    libs.set('zlib', polyfills['zlib.js']);
    libs.set('tty', polyfills['tty.js']);
    libs.set('domain', polyfills['domain.js']);
    // TODO: Decide if we want to implement these or not
    // currently causing trouble in tests
    libs.set('fs', EMPTY_PATH);
    libs.set('crypto', EMPTY_PATH);
    // libs.set('fs', POLYFILLS['browserify-fs.js']);
    // libs.set('crypto', POLYFILLS['crypto-browserify.js']);
    // TODO: No good polyfill exists yet
    libs.set('http2', EMPTY_PATH);
    // not shimmed
    libs.set('dns', EMPTY_PATH);
    libs.set('dgram', EMPTY_PATH);
    libs.set('child_process', EMPTY_PATH);
    libs.set('cluster', EMPTY_PATH);
    libs.set('module', EMPTY_PATH);
    libs.set('net', EMPTY_PATH);
    libs.set('readline', EMPTY_PATH);
    libs.set('repl', EMPTY_PATH);
    libs.set('tls', EMPTY_PATH);
    libs.set('perf_hooks', EMPTY_PATH);
    return libs;
}

exports.getModules = getModules;

Directory Contents

Dirs: 1 × Files: 6

Name Size Perms Modified Actions
es DIR
- drwxr-xr-x 2026-02-28 00:27:34
Edit Download
402 B lrw-r--r-- 2026-02-28 00:28:56
Edit Download
3.21 KB lrw-r--r-- 2026-02-28 00:27:08
Edit Download
59 B lrw-r--r-- 2026-02-28 00:28:58
Edit Download
2.51 KB lrw-r--r-- 2026-02-28 00:27:28
Edit Download
1.66 KB lrw-r--r-- 2026-02-28 00:28:58
Edit Download
506.68 KB lrw-r--r-- 2026-02-28 00:28:48
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).