From ceb0e79a8b25b67db9b8ee2988c2238681e3431c Mon Sep 17 00:00:00 2001 From: SamTV12345 <40429738+samtv12345@users.noreply.github.com> Date: Mon, 25 May 2026 16:44:28 +0200 Subject: [PATCH] fix: backward-compat for ESM etherpad - Drop trailing slash on ep_etherpad-lite/node/eejs/ require Backward-compatible with current CJS etherpad release; also compatible with the upcoming ESM etherpad branch which has stricter exports map resolution. --- eejs.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/eejs.js b/eejs.js index b5369c7..ef4b43f 100644 --- a/eejs.js +++ b/eejs.js @@ -1,6 +1,6 @@ 'use strict'; -const eejs = require('ep_etherpad-lite/node/eejs/'); +const eejs = require('ep_etherpad-lite/node/eejs'); exports.eejsBlock_editbarMenuRight = (hookName, args, cb) => { args.content = eejs.require('ep_define/templates/define.ejs', {settings: false}) + args.content; diff --git a/package.json b/package.json index 5151427..a59f2f3 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "ep_define", "description": "Define and Research Words", - "version": "0.0.57", + "version": "0.0.58", "author": "johnyma22 (John McLear) ", "dependencies": { "wordnet": "^2.0.0"