@travetto/doc 5.1.0 → 6.0.0-rc.1
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 +3 -3
- package/src/mapping/lib-mapping.ts +1 -1
- package/src/mapping/mod-mapping.ts +7 -11
- package/src/util/file.ts +4 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@travetto/doc",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0-rc.1",
|
|
4
4
|
"description": "Documentation support for the Travetto framework",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"docs",
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
"directory": "module/doc"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@travetto/runtime": "^
|
|
27
|
+
"@travetto/runtime": "^6.0.0-rc.0",
|
|
28
28
|
"@types/prismjs": "^1.26.5",
|
|
29
29
|
"prismjs": "^1.29.0"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
|
-
"@travetto/cli": "^
|
|
32
|
+
"@travetto/cli": "^6.0.0-rc.0"
|
|
33
33
|
},
|
|
34
34
|
"peerDependenciesMeta": {
|
|
35
35
|
"@travetto/cli": {
|
|
@@ -70,7 +70,7 @@ export const LIB_MAPPING = {
|
|
|
70
70
|
|
|
71
71
|
// JWT
|
|
72
72
|
JWT: { title: 'JWT', href: 'https://jwt.io/' },
|
|
73
|
-
|
|
73
|
+
NJWT: { title: 'njwt', href: 'https://github.com/jwtk/njwt' },
|
|
74
74
|
|
|
75
75
|
// Email
|
|
76
76
|
NodeMailer: { title: 'nodemailer', href: 'https://nodemailer.com/about/' },
|
|
@@ -11,10 +11,6 @@ export const MOD_MAPPING = {
|
|
|
11
11
|
name: '@travetto/auth-rest', folder: '@travetto/auth-rest', displayName: 'Rest Auth',
|
|
12
12
|
description: 'Rest authentication integration support for the Travetto framework'
|
|
13
13
|
},
|
|
14
|
-
AuthRestJwt: {
|
|
15
|
-
name: '@travetto/auth-rest-jwt', folder: '@travetto/auth-rest-jwt', displayName: 'Rest Auth JWT',
|
|
16
|
-
description: 'Rest authentication JWT integration support for the Travetto framework'
|
|
17
|
-
},
|
|
18
14
|
AuthRestPassport: {
|
|
19
15
|
name: '@travetto/auth-rest-passport', folder: '@travetto/auth-rest-passport', displayName: 'Rest Auth Passport',
|
|
20
16
|
description: 'Rest authentication integration support for the Travetto framework'
|
|
@@ -23,6 +19,10 @@ export const MOD_MAPPING = {
|
|
|
23
19
|
name: '@travetto/auth-rest-session', folder: '@travetto/auth-rest-session', displayName: 'Rest Auth Session',
|
|
24
20
|
description: 'Rest authentication session integration support for the Travetto framework'
|
|
25
21
|
},
|
|
22
|
+
AuthSession: {
|
|
23
|
+
name: '@travetto/auth-session', folder: '@travetto/auth-session', displayName: 'Auth Session',
|
|
24
|
+
description: 'Session provider for the travetto auth module.'
|
|
25
|
+
},
|
|
26
26
|
Cache: {
|
|
27
27
|
name: '@travetto/cache', folder: '@travetto/cache', displayName: 'Caching',
|
|
28
28
|
description: 'Caching functionality with decorators for declarative use.'
|
|
@@ -75,10 +75,6 @@ export const MOD_MAPPING = {
|
|
|
75
75
|
name: '@travetto/image', folder: '@travetto/image', displayName: 'Image',
|
|
76
76
|
description: 'Image support, resizing, and optimization'
|
|
77
77
|
},
|
|
78
|
-
Jwt: {
|
|
79
|
-
name: '@travetto/jwt', folder: '@travetto/jwt', displayName: 'JWT',
|
|
80
|
-
description: 'JSON Web Token implementation'
|
|
81
|
-
},
|
|
82
78
|
Log: {
|
|
83
79
|
name: '@travetto/log', folder: '@travetto/log', displayName: 'Logging',
|
|
84
80
|
description: 'Logging framework that integrates at the console.log level.'
|
|
@@ -199,9 +195,9 @@ export const MOD_MAPPING = {
|
|
|
199
195
|
name: '@travetto/rest-koa-lambda', folder: '@travetto/rest-koa-lambda', displayName: 'Koa REST AWS Lambda Source',
|
|
200
196
|
description: 'Koa provider for the travetto rest module.'
|
|
201
197
|
},
|
|
202
|
-
|
|
203
|
-
name: '@travetto/rest-
|
|
204
|
-
description: '
|
|
198
|
+
RestRpc: {
|
|
199
|
+
name: '@travetto/rest-rpc', folder: '@travetto/rest-rpc', displayName: 'RESTful RPC Support',
|
|
200
|
+
description: 'RESTful RPC support for a module'
|
|
205
201
|
},
|
|
206
202
|
RestUpload: {
|
|
207
203
|
name: '@travetto/rest-upload', folder: '@travetto/rest-upload', displayName: 'Rest Upload Support',
|
package/src/util/file.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { readFileSync, existsSync } from 'node:fs';
|
|
2
2
|
import path from 'node:path';
|
|
3
3
|
|
|
4
|
-
import { Runtime, RuntimeIndex } from '@travetto/runtime';
|
|
4
|
+
import { AppError, Runtime, RuntimeIndex } from '@travetto/runtime';
|
|
5
5
|
|
|
6
6
|
const ESLINT_PATTERN = /\s{0,10}\/\/ eslint.{0,300}$/g;
|
|
7
7
|
const ENV_KEY = /Env.([^.]{1,100})[.]key/g;
|
|
@@ -43,6 +43,9 @@ export class DocFileUtil {
|
|
|
43
43
|
}
|
|
44
44
|
} else {
|
|
45
45
|
file = Runtime.getSourceFile(src);
|
|
46
|
+
if (!existsSync(file)) {
|
|
47
|
+
throw new AppError(`Unknown file: ${typeof src === 'string' ? src : src.name} => ${file}`);
|
|
48
|
+
}
|
|
46
49
|
content = readFileSync(file, 'utf8');
|
|
47
50
|
}
|
|
48
51
|
|