summaryrefslogtreecommitdiffhomepage
path: root/src/nodejs
diff options
context:
space:
mode:
authorOisin Canty <o.canty@f5.com>2021-05-24 09:01:42 +0000
committerOisin Canty <o.canty@f5.com>2021-05-24 09:01:42 +0000
commitc160ea11e4ece4db52731ac8b83dd09ca2d1ef11 (patch)
treeebfd605f6e93a05b65bae5c327b47a1a764a8d63 /src/nodejs
parentd6439002371d0bc73183c9d3d28df4f62ce0b972 (diff)
downloadunit-c160ea11e4ece4db52731ac8b83dd09ca2d1ef11.tar.gz
unit-c160ea11e4ece4db52731ac8b83dd09ca2d1ef11.tar.bz2
Node.js: renamed "require_shim" to "loader".
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