summaryrefslogtreecommitdiffhomepage
path: root/src/nodejs
diff options
context:
space:
mode:
Diffstat (limited to 'src/nodejs')
-rw-r--r--src/nodejs/unit-http/loader.js (renamed from src/nodejs/unit-http/require_shim.js)4
-rw-r--r--src/nodejs/unit-http/loader.mjs (renamed from src/nodejs/unit-http/require_shim.mjs)0
2 files changed, 2 insertions, 2 deletions
diff --git a/src/nodejs/unit-http/require_shim.js b/src/nodejs/unit-http/loader.js
index 2b307629..e5aa3558 100644
--- a/src/nodejs/unit-http/require_shim.js
+++ b/src/nodejs/unit-http/loader.js
@@ -2,7 +2,7 @@
if (module.parent && module.parent.id === "internal/preload") {
const { Module } = require("module")
- if (!Module.prototype.require.__unit_shim) {
+ if (!Module.prototype.require.__unit_loader) {
const http = require("./http")
const websocket = require("./websocket")
@@ -22,6 +22,6 @@ if (module.parent && module.parent.id === "internal/preload") {
return original.apply(this, arguments);
}
- Module.prototype.require.__unit_shim = true;
+ Module.prototype.require.__unit_loader = true;
}
}
diff --git a/src/nodejs/unit-http/require_shim.mjs b/src/nodejs/unit-http/loader.mjs
index 067d63d4..067d63d4 100644
--- a/src/nodejs/unit-http/require_shim.mjs
+++ b/src/nodejs/unit-http/loader.mjs