ep_openid_connect 2.5.10 → 2.5.13

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/.eslintrc.cjs ADDED
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ // This is a workaround for https://github.com/eslint/eslint/issues/3458
4
+ require('eslint-config-etherpad/patch/modern-module-resolution');
5
+
6
+ module.exports = {
7
+ root: true,
8
+ extends: 'etherpad/plugin',
9
+ };
package/index.js CHANGED
@@ -251,8 +251,7 @@ exports.handleMessage = async (hookName, {message, socket}) => {
251
251
  if (!displayname) return;
252
252
  if (message.type === 'CLIENT_READY') {
253
253
  logger.debug(
254
- `CLIENT_READY ${socket.id}: Setting username for token ${message.token} to ${displayname}`
255
- );
254
+ `CLIENT_READY ${socket.id}: Setting username for token ${message.token} to ${displayname}`);
256
255
  // TODO: author ID might come from session ID, not token.
257
256
  const authorId = await authorManager.getAuthor4Token(message.token);
258
257
  await authorManager.setAuthorName(authorId, displayname);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ep_openid_connect",
3
- "version": "2.5.10",
3
+ "version": "2.5.13",
4
4
  "description": "Etherpad plugin to authenticate users against an OpenID Connect provider.",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -23,24 +23,14 @@
23
23
  },
24
24
  "homepage": "https://github.com/ether/ep_openid_connect#readme",
25
25
  "dependencies": {
26
- "openid-client": "^5.1.2"
26
+ "openid-client": "^5.1.3"
27
27
  },
28
28
  "devDependencies": {
29
- "eslint": "^7.32.0",
30
- "eslint-config-etherpad": "^2.0.3",
31
- "eslint-plugin-cypress": "^2.12.1",
32
- "eslint-plugin-eslint-comments": "^3.2.0",
33
- "eslint-plugin-mocha": "^9.0.0",
34
- "eslint-plugin-node": "^11.1.0",
35
- "eslint-plugin-prefer-arrow": "^1.2.3",
36
- "eslint-plugin-promise": "^5.1.1",
37
- "eslint-plugin-you-dont-need-lodash-underscore": "^6.12.0",
29
+ "eslint": "^8.9.0",
30
+ "eslint-config-etherpad": "^3.0.1",
38
31
  "oidc-provider": "^7.10.6",
39
- "supertest": "^6.2.2"
40
- },
41
- "eslintConfig": {
42
- "root": true,
43
- "extends": "etherpad/plugin"
32
+ "supertest": "^6.2.2",
33
+ "typescript": "^4.5.5"
44
34
  },
45
35
  "scripts": {
46
36
  "lint": "eslint .",