From ba3cf7513043c8d0843d6b0a9eabc34e071007b5 Mon Sep 17 00:00:00 2001 From: SamTV12345 <40429738+samtv12345@users.noreply.github.com> Date: Mon, 25 May 2026 16:45:06 +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 54ab1f6..4494ee4 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_mySettings = (hookName, args, cb) => { args.content += diff --git a/package.json b/package.json index 42457a9..3baefc6 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "ep_text_statistics", "description": "Reading Ease and Grade Level of a pad", - "version": "0.0.60", + "version": "0.0.61", "author": "johnyma22 (John McLear) ", "dependencies": { "text-statistics": "^0.1.1"