@antelopejs/dms-api 0.6.4 → 0.7.0
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/README.md +9 -9
- package/dist/db/models/api_settings.model.d.ts +3 -3
- package/dist/db/models/request_log.model.d.ts +3 -3
- package/dist/db/models/routes.model.d.ts +3 -3
- package/dist/db/models/routes_statistics.model.d.ts +3 -3
- package/dist/guards.d.ts +1 -5
- package/dist/guards.js +2 -6
- package/dist/guards.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +1 -2
- package/dist/index.js.map +1 -1
- package/dist/memo.d.ts +8 -3
- package/dist/memo.js +46 -24
- package/dist/memo.js.map +1 -1
- package/dist/routes/routes.d.ts +1 -1
- package/dist/routes/routes.js +2 -2
- package/dist/routes/routes.js.map +1 -1
- package/dist/routes/settings.d.ts +1 -1
- package/dist/routes/settings.js +2 -2
- package/dist/routes/settings.js.map +1 -1
- package/dist/services/aggregate-cache.d.ts +2 -1
- package/dist/services/aggregate-cache.js +4 -4
- package/dist/services/aggregate-cache.js.map +1 -1
- package/dist/services/introspection/index.d.ts +1 -1
- package/dist/services/introspection/index.js +4 -2
- package/dist/services/introspection/index.js.map +1 -1
- package/dist/services/overview.js +4 -2
- package/dist/services/overview.js.map +1 -1
- package/dist/services/request-log/body.d.ts +14 -0
- package/dist/services/request-log/body.js +20 -0
- package/dist/services/request-log/body.js.map +1 -0
- package/dist/services/request-log/capture.d.ts +4 -4
- package/dist/services/request-log/capture.js +30 -32
- package/dist/services/request-log/capture.js.map +1 -1
- package/dist/services/request-log/read.js.map +1 -1
- package/dist/services/request-log/redaction.d.ts +2 -1
- package/dist/services/request-log/redaction.js +5 -6
- package/dist/services/request-log/redaction.js.map +1 -1
- package/dist/services/request-log/util.d.ts +3 -2
- package/dist/services/request-log/util.js +7 -8
- package/dist/services/request-log/util.js.map +1 -1
- package/dist/services/route-catalog.js.map +1 -1
- package/dist/services/traffic-samples.js +5 -3
- package/dist/services/traffic-samples.js.map +1 -1
- package/dist/services/traffic.js +6 -3
- package/dist/services/traffic.js.map +1 -1
- package/frontend-vue/app/components/blocks/HealthHero.vue +11 -11
- package/frontend-vue/app/components/blocks/LiveTraffic.vue +3 -3
- package/frontend-vue/app/components/blocks/RequestDetail.vue +7 -7
- package/frontend-vue/app/components/blocks/RouteDocumentation.vue +13 -13
- package/frontend-vue/app/components/blocks/RouteHeader.vue +8 -8
- package/frontend-vue/app/components/blocks/RouteTester.vue +6 -6
- package/frontend-vue/app/components/blocks/RouteTree.vue +3 -3
- package/frontend-vue/app/components/internal/RequestGeneral.vue +1 -1
- package/frontend-vue/app/components/internal/RequestTiming.vue +1 -1
- package/frontend-vue/app/components/internal/RouteInternals.vue +2 -2
- package/frontend-vue/app/components/internal/RouteTesterRequest.vue +2 -2
- package/frontend-vue/app/components/internal/RouteTesterResponse.vue +6 -6
- package/frontend-vue/build/backend-boundary.ts +7 -2
- package/frontend-vue/eslint.config.mjs +0 -1
- package/frontend-vue/package.json +2 -2
- package/frontend-vue/pnpm-lock.yaml +15 -13
- package/frontend-vue/tests/backend-boundary.test.ts +8 -4
- package/package.json +13 -13
|
@@ -13,8 +13,8 @@ importers:
|
|
|
13
13
|
version: 3.5.22(typescript@6.0.3)
|
|
14
14
|
devDependencies:
|
|
15
15
|
'@antelopejs/tooling-configs':
|
|
16
|
-
specifier:
|
|
17
|
-
version: 0.
|
|
16
|
+
specifier: '>=0.7.1 <0.8.0'
|
|
17
|
+
version: 0.7.1
|
|
18
18
|
'@typescript-eslint/parser':
|
|
19
19
|
specifier: ^8.0.0
|
|
20
20
|
version: 8.27.0(eslint@9.39.5(jiti@2.7.0))(typescript@6.0.3)
|
|
@@ -45,8 +45,8 @@ importers:
|
|
|
45
45
|
|
|
46
46
|
packages:
|
|
47
47
|
|
|
48
|
-
'@antelopejs/tooling-configs@0.
|
|
49
|
-
resolution: {integrity: sha512-
|
|
48
|
+
'@antelopejs/tooling-configs@0.7.1':
|
|
49
|
+
resolution: {integrity: sha512-X/mr/nQEgmFI2dMr3ThMS7HcPaU1amsTU/RNfEnQv46+l7au8cv7unpypCZ0BggnfJHjpk2QG2CTOOllpwj3cw==}
|
|
50
50
|
engines: {node: '>=22.18.0'}
|
|
51
51
|
hasBin: true
|
|
52
52
|
peerDependencies:
|
|
@@ -507,6 +507,10 @@ packages:
|
|
|
507
507
|
resolution: {integrity: sha512-WsXQwMkILJvffP6z4U3FYJPlbf/j07HIxmDjZpbNvBJkMfvwXj5ACRkkHwBDvLBbDbtX5TdU64/rcvKJ/vuInQ==}
|
|
508
508
|
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
|
|
509
509
|
|
|
510
|
+
'@typescript/typescript6@6.0.2':
|
|
511
|
+
resolution: {integrity: sha512-mbCddXd+jm7hfx7w2YU64/Av4/NqqeG3GoRZgxPcgoTxYjhrcfJRw9ULch71SS4G+Q3bOXFhRvPqjguN0Hyp5w==}
|
|
512
|
+
hasBin: true
|
|
513
|
+
|
|
510
514
|
'@vitejs/plugin-vue@6.0.10':
|
|
511
515
|
resolution: {integrity: sha512-b80aUQh3n+qEzzZm5oQp3rT2QImeCx58K6eFl/RkJ3d65KW0kTuv5lNsLRVAjbW9YRUpo/wzmvzMgV34bTAItA==}
|
|
512
516
|
engines: {node: ^20.19.0 || >=22.12.0}
|
|
@@ -1273,11 +1277,6 @@ packages:
|
|
|
1273
1277
|
resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==}
|
|
1274
1278
|
engines: {node: '>= 0.8.0'}
|
|
1275
1279
|
|
|
1276
|
-
typescript@5.9.3:
|
|
1277
|
-
resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==}
|
|
1278
|
-
engines: {node: '>=14.17'}
|
|
1279
|
-
hasBin: true
|
|
1280
|
-
|
|
1281
1280
|
typescript@6.0.3:
|
|
1282
1281
|
resolution: {integrity: sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==}
|
|
1283
1282
|
engines: {node: '>=14.17'}
|
|
@@ -1424,12 +1423,13 @@ packages:
|
|
|
1424
1423
|
|
|
1425
1424
|
snapshots:
|
|
1426
1425
|
|
|
1427
|
-
'@antelopejs/tooling-configs@0.
|
|
1426
|
+
'@antelopejs/tooling-configs@0.7.1':
|
|
1428
1427
|
dependencies:
|
|
1429
1428
|
'@oxlint/plugins': 1.81.0
|
|
1429
|
+
'@typescript/typescript6': 6.0.2
|
|
1430
1430
|
dts-bundle-generator: 9.5.1
|
|
1431
1431
|
minimatch: 10.2.6
|
|
1432
|
-
|
|
1432
|
+
semver: 7.8.5
|
|
1433
1433
|
yaml: 2.9.1
|
|
1434
1434
|
|
|
1435
1435
|
'@babel/helper-string-parser@7.27.1': {}
|
|
@@ -1754,6 +1754,10 @@ snapshots:
|
|
|
1754
1754
|
'@typescript-eslint/types': 8.27.0
|
|
1755
1755
|
eslint-visitor-keys: 4.2.0
|
|
1756
1756
|
|
|
1757
|
+
'@typescript/typescript6@6.0.2':
|
|
1758
|
+
dependencies:
|
|
1759
|
+
'@typescript/old': typescript@6.0.3
|
|
1760
|
+
|
|
1757
1761
|
'@vitejs/plugin-vue@6.0.10(vite@7.1.10(@types/node@24.2.0)(jiti@2.7.0)(lightningcss@1.33.0)(terser@5.39.0)(yaml@2.9.1))(vue@3.5.22(typescript@6.0.3))':
|
|
1758
1762
|
dependencies:
|
|
1759
1763
|
'@rolldown/pluginutils': 1.0.1
|
|
@@ -2470,8 +2474,6 @@ snapshots:
|
|
|
2470
2474
|
dependencies:
|
|
2471
2475
|
prelude-ls: 1.2.1
|
|
2472
2476
|
|
|
2473
|
-
typescript@5.9.3: {}
|
|
2474
|
-
|
|
2475
2477
|
typescript@6.0.3: {}
|
|
2476
2478
|
|
|
2477
2479
|
undici-types@7.10.0:
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
} from 'node:fs'
|
|
9
9
|
import { tmpdir } from 'node:os'
|
|
10
10
|
import { dirname, join } from 'node:path'
|
|
11
|
-
import { build as viteBuild, type Plugin } from 'vite'
|
|
11
|
+
import { normalizePath, build as viteBuild, type Plugin } from 'vite'
|
|
12
12
|
import { afterAll, beforeAll, describe, expect, it } from 'vitest'
|
|
13
13
|
import { backendBoundary } from '../build/backend-boundary'
|
|
14
14
|
|
|
@@ -22,7 +22,9 @@ function write(file: string, text: string): void {
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
beforeAll(() => {
|
|
25
|
-
repository = realpathSync(
|
|
25
|
+
repository = realpathSync.native(
|
|
26
|
+
mkdtempSync(join(tmpdir(), 'dms-api-boundary-')),
|
|
27
|
+
)
|
|
26
28
|
const backend = repository
|
|
27
29
|
frontend = join(backend, 'frontend-vue')
|
|
28
30
|
write(
|
|
@@ -99,8 +101,10 @@ describe('the backend boundary of the frontend build', () => {
|
|
|
99
101
|
'import { secret } from "../src/backend.ts"\nexport { secret }\n',
|
|
100
102
|
)
|
|
101
103
|
await expect(failure).rejects.toThrow(/Backend boundary/)
|
|
102
|
-
await expect(failure).rejects.toThrow(
|
|
103
|
-
|
|
104
|
+
await expect(failure).rejects.toThrow(
|
|
105
|
+
normalizePath(join(frontend, 'entry.ts')),
|
|
106
|
+
)
|
|
107
|
+
await expect(failure).rejects.toThrow(normalizePath(backendFile()))
|
|
104
108
|
})
|
|
105
109
|
|
|
106
110
|
it('fails on a file deeper under the backend source', async () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antelopejs/dms-api",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "API console for the AntelopeJS DMS: API health, request logs, per-route statistics, inferred contracts and a request tester.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"antelopejs",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"build": "rimraf dist && tsc",
|
|
35
35
|
"dev": "ajs project dev -w -p playground",
|
|
36
36
|
"lint:fix": "oxlint --fix --max-warnings=1000000 && oxfmt . && pnpm --dir frontend-vue lint:fix",
|
|
37
|
-
"lint": "oxlint && pnpm --dir frontend-vue lint
|
|
37
|
+
"lint": "oxlint && pnpm --dir frontend-vue lint",
|
|
38
38
|
"typecheck": "tsc -p tests",
|
|
39
39
|
"test": "vitest run && pnpm --dir frontend-vue test",
|
|
40
40
|
"format": "oxfmt . && pnpm --dir frontend-vue format",
|
|
@@ -53,20 +53,20 @@
|
|
|
53
53
|
"suppressions:update": "antelopejs-suppressions --update"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@antelopejs/interface-api": ">=0.
|
|
57
|
-
"@antelopejs/interface-api-util": ">=0.3.0 <
|
|
58
|
-
"@antelopejs/interface-core": ">=0.
|
|
59
|
-
"@antelopejs/interface-database": ">=0.
|
|
60
|
-
"@antelopejs/interface-database-decorators": ">=0.2
|
|
61
|
-
"@antelopejs/interface-dms": ">=0.
|
|
56
|
+
"@antelopejs/interface-api": ">=0.3.3 <0.4.0",
|
|
57
|
+
"@antelopejs/interface-api-util": ">=0.3.0 <0.4.0",
|
|
58
|
+
"@antelopejs/interface-core": ">=0.5.1 <0.6.0",
|
|
59
|
+
"@antelopejs/interface-database": ">=0.4.0 <0.5.0",
|
|
60
|
+
"@antelopejs/interface-database-decorators": ">=0.5.2 <0.6.0",
|
|
61
|
+
"@antelopejs/interface-dms": ">=0.14.0 <0.15.0",
|
|
62
62
|
"node-cron": "^4.2.1",
|
|
63
63
|
"zod": "^3.24.2"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
|
-
"@antelopejs/core": "1.
|
|
67
|
-
"@antelopejs/dms": ">=0.
|
|
68
|
-
"@antelopejs/interface-data-api": ">=0.
|
|
69
|
-
"@antelopejs/tooling-configs": "
|
|
66
|
+
"@antelopejs/core": "~1.23.2",
|
|
67
|
+
"@antelopejs/dms": ">=0.20.0 <0.21.0",
|
|
68
|
+
"@antelopejs/interface-data-api": ">=0.8.0 <0.9.0",
|
|
69
|
+
"@antelopejs/tooling-configs": ">=0.7.1 <0.8.0",
|
|
70
70
|
"@types/node": "^24.0.0",
|
|
71
71
|
"knip": "^6.34.0",
|
|
72
72
|
"lefthook": "^2.2.2",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"vitest": "^3.2.4"
|
|
81
81
|
},
|
|
82
82
|
"optionalDependencies": {
|
|
83
|
-
"@antelopejs/interface-dms-automation": ">=0.6.0 <
|
|
83
|
+
"@antelopejs/interface-dms-automation": ">=0.6.0 <0.7.0"
|
|
84
84
|
},
|
|
85
85
|
"packageManager": "pnpm@10.6.5",
|
|
86
86
|
"antelopeJs": {
|