mirror of
https://github.com/Youzini-afk/ST-Bionic-Memory-Ecology.git
synced 2026-05-15 22:30:38 +08:00
fix(ci): support node 20 module hook fallback
This commit is contained in:
@@ -1,4 +1,11 @@
|
||||
import { register, registerHooks } from "node:module";
|
||||
import * as nodeModule from "node:module";
|
||||
|
||||
const register =
|
||||
typeof nodeModule.register === "function" ? nodeModule.register : undefined;
|
||||
const registerHooks =
|
||||
typeof nodeModule.registerHooks === "function"
|
||||
? nodeModule.registerHooks
|
||||
: undefined;
|
||||
|
||||
const DEFAULT_REGEX_ENGINE_HOOK_ENTRIES = Object.freeze([
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user