ep_comments_page 10.0.2 → 10.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/exportHTML.js CHANGED
@@ -1,5 +1,3 @@
1
- 'use strict';
2
-
3
1
  const $ = require('cheerio').load('');
4
2
  const commentManager = require('./commentManager');
5
3
  import settings from 'ep_etherpad-lite/node/utils/Settings'
package/index.js CHANGED
@@ -1,15 +1,15 @@
1
- 'use strict';
2
-
3
- const AttributePool = require('ep_etherpad-lite/static/js/AttributePool');
4
1
  const Changeset = require('ep_etherpad-lite/static/js/Changeset');
2
+ import {} from 'ep_etherpad-lite/static/js/Changeset'
5
3
  const eejs = require('ep_etherpad-lite/node/eejs/');
6
4
  import settings from 'ep_etherpad-lite/node/utils/Settings'
5
+ const padMessageHandler = require('ep_etherpad-lite/node/handler/PadMessageHandler');
6
+
7
+ const apiUtils = require('./apiUtils')
8
+
7
9
  const {Formidable} = require('formidable');
8
10
  const commentManager = require('./commentManager');
9
- const apiUtils = require('./apiUtils');
10
11
  const _ = require('underscore');
11
- const padMessageHandler = require('ep_etherpad-lite/node/handler/PadMessageHandler');
12
- const readOnlyManager = require('ep_etherpad-lite/node/db/ReadOnlyManager');
12
+ import readOnlyManager from 'ep_etherpad-lite/node/db/ReadOnlyManager'
13
13
 
14
14
  let io;
15
15
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "description": "Adds comments on sidebar and link it to the text. For no-skin use ep_page_view.",
3
3
  "name": "ep_comments_page",
4
- "version": "10.0.2",
4
+ "version": "10.0.4",
5
5
  "author": {
6
6
  "name": "Nicolas Lescop",
7
7
  "email": "limplementeur@gmail.com"
@@ -31,7 +31,8 @@
31
31
  "eslint-config-etherpad": "^4.0.4",
32
32
  "socket.io-client": "*",
33
33
  "superagent": "^10.2.0",
34
- "typescript": "^5.4.3"
34
+ "typescript": "^5.4.3",
35
+ "ep_etherpad-lite": "npm:ep_etherpad@2.5.0"
35
36
  },
36
37
  "engines": {
37
38
  "node": ">=20.0.0"
@@ -1,7 +1,5 @@
1
- 'use strict';
2
-
1
+ import {randomString} from 'ep_etherpad-lite/static/js/pad_utils'
3
2
  const _ = require('underscore');
4
- const randomString = require('ep_etherpad-lite/static/js/pad_utils').randomString;
5
3
  const shared = require('./shared');
6
4
 
7
5
  exports.addTextOnClipboard = (e, ace, padInner, removeSelection, comments, replies) => {
@@ -1,6 +1,4 @@
1
- 'use strict';
2
-
3
- const randomString = require('ep_etherpad-lite/static/js/pad_utils').randomString;
1
+ import {randomString} from 'ep_etherpad-lite/static/js/pad_utils'
4
2
 
5
3
  const collectContentPre = (hookName, context, cb) => {
6
4
  const comment = /(?:^| )(c-[A-Za-z0-9]*)/.exec(context.cls);