@travetto/doc 2.2.5 → 3.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/README.md CHANGED
@@ -157,8 +157,8 @@ Sample documentation for fictional module. This module fictitiously relies upon
157
157
  Usage: <span class="token punctuation">[</span>options<span class="token punctuation">]</span> <span class="token punctuation">[</span>command<span class="token punctuation">]</span>
158
158
 
159
159
  Options:
160
- -V, --version output the version number
161
- -h, --help display <span class="token builtin class-name">help</span> <span class="token keyword">for</span> <span class="token builtin class-name">command</span>
160
+ -V, <span class="token parameter variable">--version</span> output the version number
161
+ -h, <span class="token parameter variable">--help</span> display <span class="token builtin class-name">help</span> <span class="token keyword">for</span> <span class="token builtin class-name">command</span>
162
162
 
163
163
  Commands:
164
164
  build <span class="token punctuation">[</span>options<span class="token punctuation">]</span>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@travetto/doc",
3
3
  "displayName": "Documentation",
4
- "version": "2.2.5",
4
+ "version": "3.0.0-rc.1",
5
5
  "description": "Documentation support for the travetto framework",
6
6
  "keywords": [
7
7
  "docs",
@@ -25,11 +25,16 @@
25
25
  "directory": "module/doc"
26
26
  },
27
27
  "dependencies": {
28
- "@travetto/base": "^2.2.4",
29
- "prismjs": "^1.28.0"
28
+ "@travetto/base": "^3.0.0-rc.1",
29
+ "prismjs": "^1.29.0"
30
30
  },
31
- "optionalPeerDependencies": {
32
- "@travetto/cli": "^2.2.4"
31
+ "peerDependencies": {
32
+ "@travetto/cli": "^3.0.0-rc.1"
33
+ },
34
+ "peerDependenciesMeta": {
35
+ "@travetto/cli": {
36
+ "optional": true
37
+ }
33
38
  },
34
39
  "private": false,
35
40
  "publishConfig": {
package/src/lib.ts CHANGED
@@ -81,6 +81,8 @@ export const lib = {
81
81
  Postgres: Library('Postgres', 'https://postgresql.org'),
82
82
  DynamoDB: Library('DynamoDB', 'https://aws.amazon.com/dynamodb/'),
83
83
  Firestore: Library('Firestore', 'https://firebase.google.com/docs/firestore'),
84
+ SQLite: Library('SQLite', 'https://www.sqlite.org/'),
85
+
84
86
 
85
87
  // Rest
86
88
  Express: Library('express', 'https://expressjs.com'),
package/src/mod.ts CHANGED
@@ -6,6 +6,10 @@ const MAPPING = {
6
6
  AssetRest: '@travetto/asset-rest',
7
7
  Auth: '@travetto/auth',
8
8
  AuthRest: '@travetto/auth-rest',
9
+ AuthRestContext: '@travetto/auth-rest-context',
10
+ AuthRestJwt: '@travetto/auth-rest-jwt',
11
+ AuthRestSession: '@travetto/auth-rest-session',
12
+ AuthRestPassport: '@travetto/auth-rest-passport',
9
13
  Base: '@travetto/base',
10
14
  Boot: '@travetto/boot',
11
15
  Cache: '@travetto/cache',
@@ -17,6 +21,7 @@ const MAPPING = {
17
21
  Di: '@travetto/di',
18
22
  Doc: '@travetto/doc',
19
23
  Email: '@travetto/email',
24
+ EmailNodemailer: '@travetto/email-nodemailer',
20
25
  EmailTemplate: '@travetto/email-template',
21
26
  Image: '@travetto/image',
22
27
  Jwt: '@travetto/jwt',
@@ -29,17 +34,27 @@ const MAPPING = {
29
34
  ModelQuery: '@travetto/model-query',
30
35
  ModelRedis: '@travetto/model-redis',
31
36
  ModelS3: '@travetto/model-s3',
37
+ ModelSQLite: '@travetto/model-sqlite',
38
+ ModelPostgres: '@travetto/model-postgres',
39
+ ModelMysql: '@travetto/model-mysql',
32
40
  ModelSql: '@travetto/model-sql',
33
41
  Openapi: '@travetto/openapi',
34
42
  Pack: '@travetto/pack',
35
43
  Registry: '@travetto/registry',
36
44
  Rest: '@travetto/rest',
45
+ RestAwsLambda: '@travetto/rest-aws-lambda',
37
46
  RestExpress: '@travetto/rest-express',
47
+ RestExpressLambda: '@travetto/rest-express-lambda',
38
48
  RestFastify: '@travetto/rest-fastify',
49
+ RestFastifyLambda: '@travetto/rest-fastify-lambda',
39
50
  RestKoa: '@travetto/rest-koa',
51
+ RestKoaLambda: '@travetto/rest-koa-lambda',
52
+ RestModel: '@travetto/rest-model',
53
+ RestModelQuery: '@travetto/rest-model-query',
40
54
  RestSession: '@travetto/rest-session',
41
55
  Scaffold: '@travetto/scaffold',
42
56
  Schema: '@travetto/schema',
57
+ SchemaFaker: '@travetto/schema-faker',
43
58
  Test: '@travetto/test',
44
59
  Transformer: '@travetto/transformer',
45
60
  Watch: '@travetto/watch',
package/src/util/file.ts CHANGED
@@ -46,7 +46,7 @@ export class FileUtil {
46
46
  let text: string | undefined;
47
47
  if (language) {
48
48
  text = readFileSync(resolved, 'utf8')
49
- .replace(/^\/\/\s*@file-if.*/, '');
49
+ .replace(/^\/\/\s*@with-module.*/, '');
50
50
 
51
51
  text = text.split(/\n/)
52
52
  .map(x => {