@tsed/oidc-provider 8.16.0-rc.2 → 8.16.0-rc.4

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.
@@ -1,6 +1,7 @@
1
1
  import { __decorate } from "tslib";
2
2
  import { Env, setValue } from "@tsed/core";
3
3
  import { constant, context, inject, Injectable, InjectorService } from "@tsed/di";
4
+ import { $asyncAlter } from "@tsed/hooks";
4
5
  import { PlatformApplication } from "@tsed/platform-http";
5
6
  import Provider from "oidc-provider";
6
7
  import { INTERACTIONS } from "../constants/constants.js";
@@ -76,7 +77,7 @@ let OidcProvider = class OidcProvider {
76
77
  if (this.httpsPort) {
77
78
  return `https://localhost:${this.httpsPort}`;
78
79
  }
79
- return `http://localhost:${this.httpPort}`;
80
+ return this.httpPort ? `http://localhost:${this.httpPort}` : "http://localhost";
80
81
  }
81
82
  get() {
82
83
  return this.raw;
@@ -87,7 +88,7 @@ let OidcProvider = class OidcProvider {
87
88
  async create() {
88
89
  const { proxy = this.env === Env.PROD, secureKey, allowHttpLocalhost = this.env !== Env.PROD } = this.oidc;
89
90
  const configuration = await this.getConfiguration();
90
- await this.injector.alterAsync("$alterOidcConfiguration", configuration);
91
+ await $asyncAlter("$alterOidcConfiguration", configuration);
91
92
  const oidcProvider = new Provider(this.getIssuer(), configuration);
92
93
  if (proxy) {
93
94
  // istanbul ignore next
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@tsed/oidc-provider",
3
3
  "description": "OIDC provider package for Ts.ED framework",
4
4
  "type": "module",
5
- "version": "8.16.0-rc.2",
5
+ "version": "8.16.0-rc.4",
6
6
  "source": "./src/index.ts",
7
7
  "main": "./lib/esm/index.js",
8
8
  "module": "./lib/esm/index.js",
@@ -24,7 +24,7 @@
24
24
  "test:ci": "vitest run --coverage.thresholds.autoUpdate=true"
25
25
  },
26
26
  "dependencies": {
27
- "@tsed/adapters": "8.16.0-rc.2",
27
+ "@tsed/adapters": "8.16.0-rc.4",
28
28
  "express-urlrewrite": "^2.0.3",
29
29
  "jose2": "npm:jose@^2.0.4",
30
30
  "koa-mount": "^4.0.0",
@@ -34,13 +34,13 @@
34
34
  "uuid": "^10.0.0"
35
35
  },
36
36
  "devDependencies": {
37
- "@tsed/barrels": "8.16.0-rc.2",
38
- "@tsed/core": "8.16.0-rc.2",
39
- "@tsed/di": "8.16.0-rc.2",
40
- "@tsed/exceptions": "8.16.0-rc.2",
41
- "@tsed/jwks": "8.16.0-rc.2",
42
- "@tsed/platform-http": "8.16.0-rc.2",
43
- "@tsed/typescript": "8.16.0-rc.2",
37
+ "@tsed/barrels": "8.16.0-rc.4",
38
+ "@tsed/core": "8.16.0-rc.4",
39
+ "@tsed/di": "8.16.0-rc.4",
40
+ "@tsed/exceptions": "8.16.0-rc.4",
41
+ "@tsed/jwks": "8.16.0-rc.4",
42
+ "@tsed/platform-http": "8.16.0-rc.4",
43
+ "@tsed/typescript": "8.16.0-rc.4",
44
44
  "@types/lowdb": "1.0.15",
45
45
  "@types/oidc-provider": "8.5.2",
46
46
  "@types/uuid": "10.0.0",