Skip to content

Commit e5cf3cc

Browse files
authored
Upgrades (#190)
* Upgrades * fixes * fixess
1 parent 520b9fc commit e5cf3cc

26 files changed

+3353
-2885
lines changed

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
test
2+
examples

.eslintrc.json

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
{
2+
"env": {
3+
"node": true,
4+
"es6": true,
5+
"mocha": true
6+
},
7+
"parserOptions": {
8+
"ecmaVersion": 2022
9+
},
10+
"rules": {
11+
"no-var": 2,
12+
"no-bitwise": 2,
13+
"curly": ["error", "all"],
14+
"eqeqeq": 2,
15+
"wrap-iife": [
16+
2,
17+
"any"
18+
],
19+
"indent": [
20+
2,
21+
2,
22+
{
23+
"SwitchCase": 1
24+
}
25+
],
26+
"no-use-before-define": 2,
27+
"new-cap": 2,
28+
"no-caller": 2,
29+
"quotes": [
30+
2,
31+
"single",
32+
"avoid-escape"
33+
],
34+
"no-undef": 2,
35+
"strict": 0,
36+
"no-unused-expressions": 2,
37+
"no-eval": 2,
38+
"dot-notation": 0,
39+
"no-unused-vars": 2,
40+
"comma-style": [
41+
2,
42+
"last"
43+
],
44+
"no-useless-escape": "off",
45+
"security/detect-non-literal-fs-filename": "off",
46+
"security/detect-object-injection": "off",
47+
"security/detect-unsafe-regex": "off",
48+
"camelcase": 1
49+
},
50+
"extends": [
51+
"eslint:recommended"
52+
]
53+
}

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88

99
strategy:
1010
matrix:
11-
node-version: [12.x, 14.x, 16.x]
11+
node-version: [18.x, 20.x, 22.x]
1212
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
1313

1414
steps:

.jshintrc

Lines changed: 0 additions & 39 deletions
This file was deleted.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
function SamlRequestParserError (message, detail, status) {
2+
var err = Error.call(this, message);
3+
err.name = 'SamlRequestParserError';
4+
err.message = message || 'Error parsing SAMLRequest';
5+
err.detail = detail;
6+
err.status = status || 400;
7+
return err;
8+
}
9+
10+
SamlRequestParserError.prototype = Object.create(Error.prototype);
11+
SamlRequestParserError.prototype.constructor = SamlRequestParserError;
12+
13+
module.exports = SamlRequestParserError;

0 commit comments

Comments
 (0)