nodebb-plugin-session-sharing 7.2.0 → 7.2.2
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/eslint.config.mjs +10 -0
- package/library.js +37 -32
- package/package-lock.json +6428 -0
- package/package.json +7 -7
- package/static/lib/admin.js +0 -2
- package/static/lib/main.js +0 -2
- package/test/index.js +0 -1
- package/.eslintrc +0 -137
package/package.json
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nodebb-plugin-session-sharing",
|
|
3
|
-
"version": "7.2.
|
|
3
|
+
"version": "7.2.2",
|
|
4
4
|
"description": "Allows login sessions from your app to persist in NodeBB",
|
|
5
5
|
"main": "library.js",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "https://github.com/julianlam/nodebb-plugin-session-sharing"
|
|
9
9
|
},
|
|
10
|
+
"scripts": {
|
|
11
|
+
"lint": "eslint ."
|
|
12
|
+
},
|
|
10
13
|
"keywords": [
|
|
11
14
|
"nodebb",
|
|
12
15
|
"plugin"
|
|
@@ -21,7 +24,7 @@
|
|
|
21
24
|
},
|
|
22
25
|
"readmeFilename": "README.md",
|
|
23
26
|
"nbbpm": {
|
|
24
|
-
"compatibility": "^3.0.
|
|
27
|
+
"compatibility": "^3.2.0 || ^4.x"
|
|
25
28
|
},
|
|
26
29
|
"husky": {
|
|
27
30
|
"hooks": {
|
|
@@ -38,7 +41,6 @@
|
|
|
38
41
|
"dependencies": {
|
|
39
42
|
"@commitlint/cli": "^9.1.2",
|
|
40
43
|
"async": "^3",
|
|
41
|
-
"eslint": "^7.7.0",
|
|
42
44
|
"jsonwebtoken": "^8.5.1",
|
|
43
45
|
"lint-staged": "^10.0.9",
|
|
44
46
|
"lodash": "^4.17.14"
|
|
@@ -46,10 +48,8 @@
|
|
|
46
48
|
"devDependencies": {
|
|
47
49
|
"@commitlint/cli": "^9.1.2",
|
|
48
50
|
"@commitlint/config-angular": "^7.1.2",
|
|
49
|
-
"eslint": "
|
|
50
|
-
"eslint-config-
|
|
51
|
-
"eslint-config-nodebb": "0.1.1",
|
|
52
|
-
"eslint-plugin-import": "2.x",
|
|
51
|
+
"eslint": "9.26.0",
|
|
52
|
+
"eslint-config-nodebb": "^1.1.4",
|
|
53
53
|
"husky": "^2.4.0",
|
|
54
54
|
"lint-staged": "^10.0.9",
|
|
55
55
|
"request": "^2.88.2",
|
package/static/lib/admin.js
CHANGED
package/static/lib/main.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
/* globals document, $, window, config, ajaxify, bootbox */
|
|
4
|
-
|
|
5
3
|
$(document).ready(function () {
|
|
6
4
|
if (config.sessionSharing && config.sessionSharing.hostWhitelist) {
|
|
7
5
|
var hosts = config.sessionSharing.hostWhitelist.split(',') || [config.sessionSharing.hostWhitelist];
|
package/test/index.js
CHANGED
|
@@ -10,7 +10,6 @@ const url = require('url');
|
|
|
10
10
|
const util = require('util');
|
|
11
11
|
const request = require('request-promise-native');
|
|
12
12
|
|
|
13
|
-
// eslint-disable-next-line no-unused-vars
|
|
14
13
|
const db = require.main.require('./test/mocks/databasemock');
|
|
15
14
|
|
|
16
15
|
const nconf = require.main.require('nconf');
|
package/.eslintrc
DELETED
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "airbnb-base",
|
|
3
|
-
"parserOptions": {
|
|
4
|
-
"sourceType": "script"
|
|
5
|
-
},
|
|
6
|
-
|
|
7
|
-
"rules": {
|
|
8
|
-
// Customized
|
|
9
|
-
"handle-callback-err": [ "error","^(e$|(e|(.*(_e|E)))rr)" ],
|
|
10
|
-
"comma-dangle": ["error", {
|
|
11
|
-
"arrays": "always-multiline",
|
|
12
|
-
"objects": "always-multiline",
|
|
13
|
-
"imports": "always-multiline",
|
|
14
|
-
"exports": "always-multiline",
|
|
15
|
-
"functions": "never"
|
|
16
|
-
}],
|
|
17
|
-
"no-empty": ["error", { "allowEmptyCatch": true }],
|
|
18
|
-
"no-underscore-dangle": "off",
|
|
19
|
-
"no-console": "off",
|
|
20
|
-
"no-mixed-operators": ["error", { "allowSamePrecedence": true }],
|
|
21
|
-
"strict": ["error", "global"],
|
|
22
|
-
"consistent-return": "off",
|
|
23
|
-
"func-names": "off",
|
|
24
|
-
"no-tabs": "off",
|
|
25
|
-
"indent": ["error", "tab"],
|
|
26
|
-
"no-eq-null": "off",
|
|
27
|
-
"camelcase": "off",
|
|
28
|
-
"no-new": "off",
|
|
29
|
-
"no-shadow": "off",
|
|
30
|
-
"no-use-before-define": ["error", "nofunc"],
|
|
31
|
-
"no-prototype-builtins": "off",
|
|
32
|
-
"new-cap": "off",
|
|
33
|
-
"no-plusplus": ["error", { "allowForLoopAfterthoughts": true }],
|
|
34
|
-
"object-curly-newline": "off",
|
|
35
|
-
"no-restricted-globals": "off",
|
|
36
|
-
"function-paren-newline": "off",
|
|
37
|
-
"import/no-unresolved": "error",
|
|
38
|
-
"quotes": ["error", "single", {
|
|
39
|
-
"avoidEscape": true,
|
|
40
|
-
"allowTemplateLiterals": true
|
|
41
|
-
}],
|
|
42
|
-
"no-else-return": [ "error", { "allowElseIf": true } ],
|
|
43
|
-
"operator-linebreak": [ "error", "after" ],
|
|
44
|
-
|
|
45
|
-
// ES6
|
|
46
|
-
"prefer-rest-params": "off",
|
|
47
|
-
"prefer-spread": "off",
|
|
48
|
-
"prefer-arrow-callback": "off",
|
|
49
|
-
"prefer-template": "off",
|
|
50
|
-
"no-var": "off",
|
|
51
|
-
"object-shorthand": "off",
|
|
52
|
-
"vars-on-top": "off",
|
|
53
|
-
"prefer-destructuring": "off",
|
|
54
|
-
|
|
55
|
-
// TODO
|
|
56
|
-
"import/no-extraneous-dependencies": "off",
|
|
57
|
-
"import/no-dynamic-require": "off",
|
|
58
|
-
"import/newline-after-import": "off",
|
|
59
|
-
"no-bitwise": "off",
|
|
60
|
-
"global-require": "off",
|
|
61
|
-
"max-len": "off",
|
|
62
|
-
"no-param-reassign": "off",
|
|
63
|
-
"no-restricted-syntax": "off",
|
|
64
|
-
"no-script-url": "off",
|
|
65
|
-
"default-case": "off",
|
|
66
|
-
"linebreak-style": "off",
|
|
67
|
-
|
|
68
|
-
// "no-multi-assign": "off",
|
|
69
|
-
// "one-var": "off",
|
|
70
|
-
// "no-undef": "off",
|
|
71
|
-
// "max-nested-callbacks": "off",
|
|
72
|
-
// "no-mixed-requires": "off",
|
|
73
|
-
// "brace-style": "off",
|
|
74
|
-
// "max-statements-per-line": "off",
|
|
75
|
-
// "no-unused-vars": "off",
|
|
76
|
-
// "no-mixed-spaces-and-tabs": "off",
|
|
77
|
-
// "no-useless-concat": "off",
|
|
78
|
-
// "require-jsdoc": "off",
|
|
79
|
-
// "eqeqeq": "off",
|
|
80
|
-
// "no-negated-condition": "off",
|
|
81
|
-
// "one-var-declaration-per-line": "off",
|
|
82
|
-
// "no-lonely-if": "off",
|
|
83
|
-
// "radix": "off",
|
|
84
|
-
// "no-else-return": "off",
|
|
85
|
-
// "no-useless-escape": "off",
|
|
86
|
-
// "block-scoped-var": "off",
|
|
87
|
-
// "operator-assignment": "off",
|
|
88
|
-
// "yoda": "off",
|
|
89
|
-
// "no-loop-func": "off",
|
|
90
|
-
// "no-void": "off",
|
|
91
|
-
// "valid-jsdoc": "off",
|
|
92
|
-
// "no-cond-assign": "off",
|
|
93
|
-
// "no-redeclare": "off",
|
|
94
|
-
// "no-unreachable": "off",
|
|
95
|
-
// "no-nested-ternary": "off",
|
|
96
|
-
// "operator-linebreak": "off",
|
|
97
|
-
// "guard-for-in": "off",
|
|
98
|
-
// "no-unneeded-ternary": "off",
|
|
99
|
-
// "no-sequences": "off",
|
|
100
|
-
// "no-extend-native": "off",
|
|
101
|
-
// "no-shadow-restricted-names": "off",
|
|
102
|
-
// "no-extra-boolean-cast": "off",
|
|
103
|
-
// "no-path-concat": "off",
|
|
104
|
-
// "no-unused-expressions": "off",
|
|
105
|
-
// "no-return-assign": "off",
|
|
106
|
-
// "no-restricted-modules": "off",
|
|
107
|
-
// "object-curly-spacing": "off",
|
|
108
|
-
// "indent": "off",
|
|
109
|
-
// "padded-blocks": "off",
|
|
110
|
-
// "eol-last": "off",
|
|
111
|
-
// "lines-around-directive": "off",
|
|
112
|
-
// "strict": "off",
|
|
113
|
-
// "comma-dangle": "off",
|
|
114
|
-
// "no-multi-spaces": "off",
|
|
115
|
-
// "quotes": "off",
|
|
116
|
-
// "keyword-spacing": "off",
|
|
117
|
-
// "no-mixed-operators": "off",
|
|
118
|
-
// "comma-spacing": "off",
|
|
119
|
-
// "no-trailing-spaces": "off",
|
|
120
|
-
// "key-spacing": "off",
|
|
121
|
-
// "no-multiple-empty-lines": "off",
|
|
122
|
-
// "spaced-comment": "off",
|
|
123
|
-
// "space-in-parens": "off",
|
|
124
|
-
// "block-spacing": "off",
|
|
125
|
-
// "quote-props": "off",
|
|
126
|
-
// "space-unary-ops": "off",
|
|
127
|
-
// "no-empty": "off",
|
|
128
|
-
// "dot-notation": "off",
|
|
129
|
-
// "func-call-spacing": "off",
|
|
130
|
-
// "array-bracket-spacing": "off",
|
|
131
|
-
// "object-property-newline": "off",
|
|
132
|
-
// "no-continue": "off",
|
|
133
|
-
// "no-extra-semi": "off",
|
|
134
|
-
// "no-spaced-func": "off",
|
|
135
|
-
// "no-useless-return": "off"
|
|
136
|
-
}
|
|
137
|
-
}
|