ep_comments_page 1.0.39 → 10.0.1

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/apiUtils.js CHANGED
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- const absolutePaths = require('ep_etherpad-lite/node/utils/AbsolutePaths');
3
+ import * as absolutePaths from 'ep_etherpad-lite/node/utils/AbsolutePaths';
4
4
  const fs = require('fs');
5
5
  const padManager = require('ep_etherpad-lite/node/db/PadManager');
6
- const settings = require('ep_etherpad-lite/node/utils/Settings');
6
+ import settings from 'ep_etherpad-lite/node/utils/Settings'
7
7
 
8
8
  // ensure we have an apiKey
9
9
  let apiKey = '';
package/exportHTML.js CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  const $ = require('cheerio').load('');
4
4
  const commentManager = require('./commentManager');
5
- const settings = require('ep_etherpad-lite/node/utils/Settings');
5
+ import settings from 'ep_etherpad-lite/node/utils/Settings'
6
6
 
7
7
  // Iterate over pad attributes to find only the comment ones
8
8
  const findAllCommentUsedOn = (pad) => {
package/index.js CHANGED
@@ -3,7 +3,7 @@
3
3
  const AttributePool = require('ep_etherpad-lite/static/js/AttributePool');
4
4
  const Changeset = require('ep_etherpad-lite/static/js/Changeset');
5
5
  const eejs = require('ep_etherpad-lite/node/eejs/');
6
- const settings = require('ep_etherpad-lite/node/utils/Settings');
6
+ import settings from 'ep_etherpad-lite/node/utils/Settings'
7
7
  const {Formidable} = require('formidable');
8
8
  const commentManager = require('./commentManager');
9
9
  const apiUtils = require('./apiUtils');
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": "1.0.39",
4
+ "version": "10.0.1",
5
5
  "author": {
6
6
  "name": "Nicolas Lescop",
7
7
  "email": "limplementeur@gmail.com"
@@ -4,7 +4,7 @@ const utils = require('../../../utils');
4
4
  const codeToBe0 = utils.codeToBe0;
5
5
  const apiVersion = utils.apiVersion;
6
6
  const randomString = require('ep_etherpad-lite/static/js/pad_utils').randomString;
7
- const settings = require('ep_etherpad-lite/node/utils/Settings');
7
+ import settings from 'ep_etherpad-lite/node/utils/Settings'
8
8
  const common = require('ep_etherpad-lite/tests/backend/common');
9
9
  const db = require('ep_etherpad-lite/node/db/DB');
10
10