Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into pr/880
Browse files Browse the repository at this point in the history
cjbarth committed Mar 6, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
2 parents 03ac426 + eacbbbb commit e518dab
Showing 5 changed files with 124 additions and 239 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -23,7 +23,8 @@
{
"files": ["test/**"],
"rules": {
"@typescript-eslint/ban-ts-comment": "off"
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-explicit-any": "error"
}
}
]
10 changes: 9 additions & 1 deletion .prettierrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
{
"printWidth": 100
"printWidth": 100,
"overrides": [
{
"files": "README.MD",
"options": {
"proseWrap": "always"
}
}
]
}
333 changes: 105 additions & 228 deletions README.md

Large diffs are not rendered by default.

12 changes: 7 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -35,19 +35,21 @@
"scripts": {
"build": "tsc",
"changelog": "gren changelog --override --generate --head master",
"lint": "eslint --ext .ts \"**/*.ts\" --cache",
"lint": "eslint --ext .ts \"**/*.ts\" --cache && npm run prettier-check",
"lint-watch": "onchange -k -p 100 \"**/*.ts\" -- eslint {{file}}",
"lint:fix": "eslint --ext .ts --fix src",
"lint:fix": "eslint --ext .ts --fix src && npm run prettier-format",
"prepare": "tsc",
"prettier-check": "prettier --config .prettierrc.json --check .",
"prettier-format": "prettier --config .prettierrc.json --write .",
"prettier-watch": "onchange -k -p 100 \".\" -- prettier --config .prettierrc.json --write {{file}}",
"prerelease": "git clean -xfd && npm ci && npm test && npm run build",
"prettier-watch": "npm run prettier-format && onchange -k -p 100 \".\" -- prettier --config .prettierrc.json --write {{file}}",
"prerelease": "git clean -xfd && npm ci && npm run lint && npm test && npm run build",
"release": "release-it",
"test": "npm run prettier-check && npm run lint && npm run tsc && nyc mocha",
"test": "npm run tsc && nyc mocha",
"test-watch": "mocha --watch",
"tsc": "tsc",
"tsc-watch": "tsc --watch",
"update:major": "npx npm-check-updates -i",
"update:minor": "npx npm-check-updates -i -t minor",
"watch": "concurrently --kill-others \"npm:*-watch\""
},
"dependencies": {
5 changes: 1 addition & 4 deletions src/types.ts
Original file line number Diff line number Diff line change
@@ -4,13 +4,10 @@ import { Profile, SamlConfig } from ".";

export interface AuthenticateOptions extends passport.AuthenticateOptions {
samlFallback?: "login-request" | "logout-request";
// eslint-disable-next-line @typescript-eslint/no-explicit-any
additionalParams?: Record<string, any>;
}

export interface AuthorizeOptions extends AuthenticateOptions {
samlFallback?: "login-request" | "logout-request";
}

export interface StrategyOptions {
name?: string;
passReqToCallback?: boolean;

0 comments on commit e518dab

Please sign in to comment.