equipped 5.0.0-alpha.5 → 5.0.0-alpha.7

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/CHANGELOG.md CHANGED
@@ -2,6 +2,20 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ## [5.0.0-alpha.7](https://github.com/kevinand11/equipped/compare/v5.0.0-alpha.6...v5.0.0-alpha.7) (2024-06-27)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * typing of AuthRoles ([8c6ad91](https://github.com/kevinand11/equipped/commit/8c6ad911c8c0b668d53c0c3269414c3b6bdf30aa))
11
+
12
+ ## [5.0.0-alpha.6](https://github.com/kevinand11/equipped/compare/v5.0.0-alpha.5...v5.0.0-alpha.6) (2024-06-26)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * openapi.json relative to index html ([31658f9](https://github.com/kevinand11/equipped/commit/31658f924263ff88dfe2ac757e032e9412598665))
18
+
5
19
  ## [5.0.0-alpha.5](https://github.com/kevinand11/equipped/compare/v5.0.0-alpha.4...v5.0.0-alpha.5) (2024-06-26)
6
20
 
7
21
 
@@ -91,7 +91,7 @@ class Server {
91
91
  handler: () => new requests_1.Response({
92
92
  body: openapiHtml
93
93
  .replaceAll('__API_TITLE__', this.settings.appId)
94
- .replaceAll('__OPENAPI_JSON_URL__', this.openapiJsonUrl),
94
+ .replaceAll('__OPENAPI_JSON_URL__', './openapi.json'),
95
95
  headers: { 'Content-Type': 'text/html' },
96
96
  }),
97
97
  hideSchema: true,
@@ -6,5 +6,6 @@ export interface AuthUser {
6
6
  id: string;
7
7
  roles: AuthRoles;
8
8
  }
9
- export interface AuthRoles extends Partial<Record<Enum<IAuthRole>, boolean>> {
10
- }
9
+ export type AuthRoles = {
10
+ [Role in Enum<IAuthRole>]?: boolean;
11
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "equipped",
3
- "version": "5.0.0-alpha.5",
3
+ "version": "5.0.0-alpha.7",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "main": "lib/index.js",