ep_openid_connect 2.5.11 → 2.5.14

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
+ };
@@ -43,7 +43,7 @@ jobs:
43
43
  env:
44
44
  PLUGIN_NAME: ${{ steps.plugin_name.outputs.plugin_name }}
45
45
  -
46
- uses: actions/setup-node@v2
46
+ uses: actions/setup-node@v3
47
47
  with:
48
48
  node-version: 12
49
49
  cache: 'npm'
@@ -32,7 +32,7 @@ jobs:
32
32
  with:
33
33
  repository: ether/etherpad-lite
34
34
  -
35
- uses: actions/setup-node@v2
35
+ uses: actions/setup-node@v3
36
36
  with:
37
37
  node-version: 12
38
38
  cache: 'npm'
@@ -40,7 +40,7 @@ jobs:
40
40
  mkdir -p node_modules
41
41
  ln -s ../../etherpad-lite/src node_modules/ep_etherpad-lite
42
42
  -
43
- uses: actions/setup-node@v2
43
+ uses: actions/setup-node@v3
44
44
  with:
45
45
  node-version: 12
46
46
  cache: 'npm'
@@ -81,7 +81,7 @@ jobs:
81
81
  with:
82
82
  fetch-depth: 0
83
83
  -
84
- uses: actions/setup-node@v2
84
+ uses: actions/setup-node@v3
85
85
  with:
86
86
  node-version: 12
87
87
  registry-url: https://registry.npmjs.org/
@@ -97,6 +97,10 @@ jobs:
97
97
  npm ci
98
98
  npm version patch
99
99
  git push --follow-tags
100
+ # This is required if the package has a prepare script that uses something
101
+ # in dependencies or devDependencies.
102
+ -
103
+ run: npm ci
100
104
  # `npm publish` must come after `git push` otherwise there is a race
101
105
  # condition: If two PRs are merged back-to-back then master/main will be
102
106
  # updated with the commits from the second PR before the first PR's
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.11",
3
+ "version": "2.5.14",
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": "^8.7.0",
30
- "eslint-config-etherpad": "^2.0.6",
31
- "eslint-plugin-cypress": "^2.12.1",
32
- "eslint-plugin-eslint-comments": "^3.2.0",
33
- "eslint-plugin-mocha": "^10.0.3",
34
- "eslint-plugin-node": "^11.1.0",
35
- "eslint-plugin-prefer-arrow": "^1.2.3",
36
- "eslint-plugin-promise": "^6.0.0",
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 .",