From 7b30bc3f8718dba5f0736aecbd794fecc6757d48 Mon Sep 17 00:00:00 2001 From: SamTV12345 <40429738+samtv12345@users.noreply.github.com> Date: Mon, 25 May 2026 16:44:44 +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. --- exportHTML.js | 2 +- index.js | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/exportHTML.js b/exportHTML.js index 182fad3..f921631 100644 --- a/exportHTML.js +++ b/exportHTML.js @@ -1,6 +1,6 @@ 'use strict'; -const eejs = require('ep_etherpad-lite/node/eejs/'); +const eejs = require('ep_etherpad-lite/node/eejs'); // Add non-used props to be supported in export exports.exportHtmlAdditionalTagsWithData = async (hookName, pad) => { diff --git a/index.js b/index.js index 91b3a42..dbf24b4 100644 --- a/index.js +++ b/index.js @@ -1,6 +1,6 @@ 'use strict'; -const eejs = require('ep_etherpad-lite/node/eejs/'); +const eejs = require('ep_etherpad-lite/node/eejs'); const settings = require('ep_etherpad-lite/node/utils/Settings'); // Tries to include content that never existed... diff --git a/package.json b/package.json index 9f4cac1..0a89d39 100644 --- a/package.json +++ b/package.json @@ -37,5 +37,5 @@ "lint": "eslint .", "lint:fix": "eslint --fix ." }, - "version": "0.0.25" + "version": "0.0.26" }