@travetto/doc 5.1.0 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/doc",
3
- "version": "5.1.0",
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": "^5.1.0",
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": "^5.1.0"
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
- RestSession: {
203
- name: '@travetto/rest-session', folder: '@travetto/rest-session', displayName: 'REST Session',
204
- description: 'Session provider for the travetto rest module.'
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