@tsed/cli-plugin-oidc-provider 4.5.2 → 4.5.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsed/cli-plugin-oidc-provider",
3
- "version": "4.5.2",
3
+ "version": "4.5.3",
4
4
  "description": "Ts.ED CLI plugin. Add OIDC Provider",
5
5
  "source": "./src/index.ts",
6
6
  "main": "./lib/cjs/index.js",
@@ -13,9 +13,11 @@
13
13
  "default": "./lib/esm/index.js"
14
14
  },
15
15
  "scripts": {
16
- "build": "yarn run build:esm && yarn run build:cjs",
17
- "build:cjs": "tsc --build tsconfig.compile.json",
18
- "build:esm": "tsc --build tsconfig.compile.esm.json"
16
+ "build": "yarn build:ts",
17
+ "build:ts": "tsc --build tsconfig.json && tsc --build tsconfig.esm.json && cp scripts/templateDir.esm.js lib/esm/utils/templateDir.js",
18
+ "lint": "eslint '**/*.{ts,js}'",
19
+ "lint:fix": "eslint '**/*.{ts,js}' --fix",
20
+ "test": "cross-env NODE_ENV=test yarn jest --max-workers=2 --passWithNoTests && jest-coverage-thresholds-bumper"
19
21
  },
20
22
  "files": [
21
23
  "lib",
@@ -25,12 +27,18 @@
25
27
  "tslib": "2.3.1"
26
28
  },
27
29
  "devDependencies": {
28
- "@tsed/cli": "4.5.2",
29
- "@tsed/cli-core": "4.5.2"
30
+ "@tsed/cli": "4.5.3",
31
+ "@tsed/cli-core": "4.5.3",
32
+ "@tsed/eslint": "4.5.3",
33
+ "@tsed/jest-config": "4.5.3",
34
+ "@tsed/typescript": "4.5.3",
35
+ "cross-env": "7.0.3",
36
+ "eslint": "8.22.0",
37
+ "jest": "29.5.0"
30
38
  },
31
39
  "peerDependencies": {
32
- "@tsed/cli": "^4.5.2",
33
- "@tsed/cli-core": "^4.5.2"
40
+ "@tsed/cli": "^4.5.3",
41
+ "@tsed/cli-core": "^4.5.3"
34
42
  },
35
43
  "repository": "https://github.com/tsedio/tsed-cli",
36
44
  "bugs": {
@@ -10,7 +10,7 @@ import * as interactions from "../../interactions/index";
10
10
  })
11
11
  export class InteractionsController {
12
12
  @Get("/:name?")
13
- async promptInteraction(@PathParams("name") name: string | undefined, @OidcCtx() oidcCtx: OidcCtx) {
13
+ promptInteraction(@PathParams("name") name: string | undefined, @OidcCtx() oidcCtx: OidcCtx) {
14
14
  return oidcCtx.runInteraction();
15
15
  }
16
16
  }
@@ -12,7 +12,7 @@ export class AbortInteraction implements InteractionMethods {
12
12
  oidc: OidcProvider;
13
13
 
14
14
  @View("interaction")
15
- async $prompt(@OidcCtx() oidcCtx: OidcCtx): Promise<any> {
15
+ $prompt(@OidcCtx() oidcCtx: OidcCtx): Promise<any> {
16
16
  return oidcCtx.interactionFinished(
17
17
  {
18
18
  error: "access_denied",
@@ -17,7 +17,7 @@ export class Account {
17
17
  return this._id;
18
18
  }
19
19
 
20
- async claims() {
20
+ claims() {
21
21
  return {
22
22
  sub: this._id,
23
23
  email: this.email,
@@ -25,11 +25,11 @@ export class Accounts implements OidcAccountsMethods {
25
25
  }
26
26
  }
27
27
 
28
- async findAccount(id: string) {
28
+ findAccount(id: string) {
29
29
  return this.adapter.findById(id);
30
30
  }
31
31
 
32
- async authenticate(email: string) {
32
+ authenticate(email: string) {
33
33
  return this.adapter.findOne({email});
34
34
  }
35
35
  }