PHP 8.2.30
Preview: hook.cjs Size: 1.79 KB
/proc/thread-self/root/home/byroehnu/.trash/node_modules11/@babel/register/lib/hook.cjs

"use strict";

const pirates = require("pirates");
const sourceMapSupport = require("source-map-support");
let piratesRevert;
const maps = Object.create(null);
function installSourceMapSupport() {
  installSourceMapSupport = () => {};
  sourceMapSupport.install({
    handleUncaughtExceptions: false,
    environment: "node",
    retrieveSourceMap(filename) {
      const map = maps == null ? void 0 : maps[filename];
      if (map) {
        return {
          url: null,
          map: map
        };
      } else {
        return null;
      }
    }
  });
}
const Module = require("module");
let compiling = false;
const internalModuleCache = Module._cache;
var compileBabel7 = function compileBabel7(client, code, filename) {
  if (!client.isLocalClient) return compile(client, code, filename);
  if (compiling) return code;
  const globalModuleCache = Module._cache;
  try {
    compiling = true;
    Module._cache = internalModuleCache;
    return compile(client, code, filename);
  } finally {
    compiling = false;
    Module._cache = globalModuleCache;
  }
};
function compile(client, inputCode, filename) {
  const result = client.transform(inputCode, filename);
  if (result === null) return inputCode;
  const {
    code,
    map
  } = result;
  if (map) {
    maps[filename] = map;
    installSourceMapSupport();
  }
  return code;
}
function register(client, opts = {}) {
  var _opts$extensions;
  if (piratesRevert) piratesRevert();
  piratesRevert = pirates.addHook(compileBabel7.bind(null, client), {
    exts: (_opts$extensions = opts.extensions) != null ? _opts$extensions : client.getDefaultExtensions(),
    ignoreNodeModules: false
  });
  client.setOptions(opts);
}
function revert() {
  if (piratesRevert) piratesRevert();
}
module.exports = {
  register,
  revert
};

//# sourceMappingURL=hook.cjs.map

Directory Contents

Dirs: 1 × Files: 20

Name Size Perms Modified Actions
worker DIR
- drwxr-xr-x 2026-02-28 00:28:48
Edit Download
192 B lrw-r--r-- 2026-02-28 00:27:06
Edit Download
672 B lrw-r--r-- 2026-02-28 00:27:14
Edit Download
84 B lrw-r--r-- 2026-02-28 00:27:26
Edit Download
335 B lrw-r--r-- 2026-02-28 00:27:32
Edit Download
676 B lrw-r--r-- 2026-02-28 00:27:38
Edit Download
1.81 KB lrw-r--r-- 2026-02-28 00:27:44
Edit Download
1.79 KB lrw-r--r-- 2026-02-28 00:27:52
Edit Download
4.99 KB lrw-r--r-- 2026-02-28 00:28:00
Edit Download
267 B lrw-r--r-- 2026-02-28 00:28:04
Edit Download
1.19 KB lrw-r--r-- 2026-02-28 00:28:08
Edit Download
398 B lrw-r--r-- 2026-02-28 00:28:12
Edit Download
1.38 KB lrw-r--r-- 2026-02-28 00:28:18
Edit Download
358 B lrw-r--r-- 2026-02-28 00:28:22
Edit Download
1005 B lrw-r--r-- 2026-02-28 00:28:24
Edit Download
468 B lrw-r--r-- 2026-02-28 00:28:26
Edit Download
1.73 KB lrw-r--r-- 2026-02-28 00:28:28
Edit Download
324 B lrw-r--r-- 2026-02-28 00:28:28
Edit Download
741 B lrw-r--r-- 2026-02-28 00:28:30
Edit Download
3.57 KB lrw-r--r-- 2026-02-28 00:28:32
Edit Download
6.70 KB lrw-r--r-- 2026-02-28 00:28:34
Edit Download

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