@platformatic/service 1.14.0 → 1.14.2

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/lib/compile.js CHANGED
@@ -78,7 +78,7 @@ async function compile (cwd, config, originalLogger, options) {
78
78
  delete env.NODE_V8_COVERAGE
79
79
  // somehow c8 does not pick up these lines even if there is a specific test
80
80
  /* c8 ignore start */
81
- if (options.clean) {
81
+ if (options && options.clean) {
82
82
  // delete outdir directory
83
83
  const tsConfigContents = JSON.parse(await readFile(tsConfigPath, 'utf8'))
84
84
  const outDir = tsConfigContents.compilerOptions.outDir
@@ -51,6 +51,7 @@ async function setupOpenAPI (app, opts) {
51
51
  path: openapi.path
52
52
  }
53
53
  }
54
+
54
55
  await app.register(Swagger, swaggerOptions)
55
56
 
56
57
  const { default: theme } = await import('@platformatic/swagger-ui-theme')
@@ -58,7 +59,7 @@ async function setupOpenAPI (app, opts) {
58
59
  ...theme,
59
60
  ...openapi,
60
61
  logLevel: 'warn',
61
- prefix: '/documentation'
62
+ prefix: openapi.prefix || '/documentation'
62
63
  })
63
64
  }
64
65
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/service",
3
- "version": "1.14.0",
3
+ "version": "1.14.2",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -76,14 +76,14 @@
76
76
  "rfdc": "^1.3.0",
77
77
  "undici": "^6.0.0",
78
78
  "ua-parser-js": "^1.0.36",
79
- "@platformatic/authenticate": "1.14.0",
80
- "@platformatic/client": "1.14.0",
81
- "@platformatic/generators": "1.14.0",
82
- "@platformatic/config": "1.14.0",
83
- "@platformatic/swagger-ui-theme": "1.14.0",
84
- "@platformatic/telemetry": "1.14.0",
85
- "@platformatic/utils": "1.14.0",
86
- "@platformatic/metaconfig": "1.14.0"
79
+ "@platformatic/authenticate": "1.14.2",
80
+ "@platformatic/client": "1.14.2",
81
+ "@platformatic/config": "1.14.2",
82
+ "@platformatic/telemetry": "1.14.2",
83
+ "@platformatic/swagger-ui-theme": "1.14.2",
84
+ "@platformatic/generators": "1.14.2",
85
+ "@platformatic/metaconfig": "1.14.2",
86
+ "@platformatic/utils": "1.14.2"
87
87
  },
88
88
  "standard": {
89
89
  "ignore": [