-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeScript port #48
TypeScript port #48
Conversation
This pull request introduces 1 alert when merging d80d9d2 into c293990 - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging 23aa9c0 into c293990 - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging 562e9b6 into c293990 - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging b4d5287 into c293990 - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging 92b7e06 into c293990 - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging a5278f6 into c293990 - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging ae2bbc1 into c293990 - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging 684a577 into c293990 - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging e31f23c into c293990 - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging 659bb2b into c293990 - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging 8f04fec into c293990 - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging 5399f2a into c293990 - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging 50e4014 into c293990 - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging f7e91e3 into c293990 - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging 0ab49ea into c293990 - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging 339d9a3 into c293990 - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging 5a1f7c5 into c293990 - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging c3e4e97 into c293990 - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging c845d5e into c293990 - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging d2b5d4a into c293990 - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging 4ec3a0b into c293990 - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging 2a3a2b9 into c293990 - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging 0c9637c into c293990 - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging 5debe65 into c293990 - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging 8cf482b into c293990 - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging ee60b97 into c293990 - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging 5f82bf1 into c293990 - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging f3fe3bd into c293990 - view on LGTM.com new alerts:
|
src/lib/types.ts
Outdated
statusCode: number; | ||
} | ||
|
||
export type scopesOrTransform = string | string[] | jwtTransform; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be Pascal-cased?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
src/lib/types.ts
Outdated
|
||
export type scopesOrTransform = string | string[] | jwtTransform; | ||
|
||
export interface jwtTransform { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be Pascal-cased?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
src/oauth2-mock-server.ts
Outdated
@@ -125,47 +126,44 @@ function parsePort(portStr) { | |||
return port; | |||
} | |||
|
|||
function parseJWK(filename) { | |||
async function parseJWK(filename: string): Promise<JWK.Key> { | |||
const jwkStr = fs.readFileSync(filename, 'utf8'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we are async now, then this call should also be (via promisify
, I guess).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
src/oauth2-mock-server.ts
Outdated
function parsePEM(filename) { | ||
return { | ||
async function parsePEM(filename: string): Promise<JWK.Key> { | ||
const pem = fs.readFileSync(filename, 'utf8'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we are async now, then this call should also be (via promisify
, I guess).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
This pull request introduces 1 alert when merging e5dbd04 into c293990 - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging b2195a2 into c293990 - view on LGTM.com new alerts:
|
Fix #35
PR Checklist
npm test
locally and all tests are passing.PR Description