@travetto/doc 5.0.17 → 6.0.0-rc.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/package.json +3 -3
- package/src/mapping/mod-mapping.ts +7 -7
- package/src/util/file.ts +4 -1
- package/LICENSE +0 -21
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@travetto/doc",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0-rc.0",
|
|
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": {
|
|
@@ -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.'
|
|
@@ -199,9 +199,9 @@ export const MOD_MAPPING = {
|
|
|
199
199
|
name: '@travetto/rest-koa-lambda', folder: '@travetto/rest-koa-lambda', displayName: 'Koa REST AWS Lambda Source',
|
|
200
200
|
description: 'Koa provider for the travetto rest module.'
|
|
201
201
|
},
|
|
202
|
-
|
|
203
|
-
name: '@travetto/rest-
|
|
204
|
-
description: '
|
|
202
|
+
RestRpc: {
|
|
203
|
+
name: '@travetto/rest-rpc', folder: '@travetto/rest-rpc', displayName: 'RESTful RPC Support',
|
|
204
|
+
description: 'RESTful RPC support for a module'
|
|
205
205
|
},
|
|
206
206
|
RestUpload: {
|
|
207
207
|
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
|
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2020 ArcSine Technologies
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|