@platformatic/service 0.46.1 → 0.46.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.
Files changed (119) hide show
  1. package/package.json +6 -6
  2. package/fixtures/hello/no-server-logger.json +0 -13
  3. package/fixtures/hello/platformatic.service.json +0 -18
  4. package/fixtures/hello/plugin.js +0 -7
  5. package/fixtures/hello/warn-log.service.json +0 -18
  6. package/fixtures/hello-client/hello/hello.cjs +0 -21
  7. package/fixtures/hello-client/hello/hello.d.ts +0 -34
  8. package/fixtures/hello-client/hello/hello.openapi.json +0 -22
  9. package/fixtures/hello-client/hello/package.json +0 -5
  10. package/fixtures/hello-client/platformatic.service.json +0 -19
  11. package/fixtures/hello-client/plugin.js +0 -8
  12. package/fixtures/hello-client-ts/hello/hello.cjs +0 -21
  13. package/fixtures/hello-client-ts/hello/hello.d.ts +0 -34
  14. package/fixtures/hello-client-ts/hello/hello.openapi.json +0 -22
  15. package/fixtures/hello-client-ts/hello/package.json +0 -5
  16. package/fixtures/hello-client-ts/platformatic.service.json +0 -21
  17. package/fixtures/hello-client-ts/plugin.ts +0 -8
  18. package/fixtures/hello-client-ts/tsconfig.json +0 -23
  19. package/fixtures/hello-client-ts-without-deps/hello.d.ts +0 -34
  20. package/fixtures/hello-client-ts-without-deps/hello.openapi.json +0 -22
  21. package/fixtures/hello-client-ts-without-deps/platformatic.service.json +0 -23
  22. package/fixtures/hello-client-ts-without-deps/plugin.ts +0 -8
  23. package/fixtures/hello-client-ts-without-deps/tsconfig.json +0 -22
  24. package/fixtures/hello-client-without-deps/hello.d.ts +0 -34
  25. package/fixtures/hello-client-without-deps/hello.openapi.json +0 -22
  26. package/fixtures/hello-client-without-deps/platformatic.service.json +0 -21
  27. package/fixtures/hello-client-without-deps/plugin.js +0 -8
  28. package/fixtures/https/embedded-pem.json +0 -20
  29. package/fixtures/https/https.crt +0 -25
  30. package/fixtures/https/https.key +0 -27
  31. package/fixtures/https/pem-path.json +0 -20
  32. package/fixtures/https/plugin.js +0 -7
  33. package/fixtures/options/platformatic.service.yml +0 -9
  34. package/fixtures/options/plugin.js +0 -7
  35. package/test/autoload.test.js +0 -486
  36. package/test/cli/compile-1.test.mjs +0 -352
  37. package/test/cli/compile-2.test.mjs +0 -310
  38. package/test/cli/gen-schema.test.mjs +0 -44
  39. package/test/cli/gen-types.test.mjs +0 -30
  40. package/test/cli/helper.mjs +0 -67
  41. package/test/cli/start.test.mjs +0 -126
  42. package/test/cli/tap-parallel-not-ok +0 -0
  43. package/test/cli/validations.test.mjs +0 -33
  44. package/test/clients.test.js +0 -87
  45. package/test/config.test.js +0 -316
  46. package/test/cors.test.js +0 -291
  47. package/test/fixtures/bad-typescript-plugin/platformatic.service.json +0 -16
  48. package/test/fixtures/bad-typescript-plugin/plugin.ts +0 -5
  49. package/test/fixtures/bad-typescript-plugin/tsconfig.json +0 -22
  50. package/test/fixtures/custom-port-placeholder.json +0 -10
  51. package/test/fixtures/default-env-var-names.json +0 -7
  52. package/test/fixtures/directories/platformatic.service.json +0 -13
  53. package/test/fixtures/directories/plugins/decorator.js +0 -7
  54. package/test/fixtures/directories/routes/foo/bar.js +0 -11
  55. package/test/fixtures/directories/routes/foo/baz/index.js +0 -7
  56. package/test/fixtures/directories/routes/foo/baz/index2.js +0 -11
  57. package/test/fixtures/directories/routes/oof/auto.hooks.js +0 -5
  58. package/test/fixtures/directories/routes/oof/index.js +0 -7
  59. package/test/fixtures/directories/routes/root.js +0 -7
  60. package/test/fixtures/hello-ts-with-config/global.d.ts +0 -8
  61. package/test/fixtures/hello-ts-with-config/platformatic.service.json +0 -16
  62. package/test/fixtures/hello-ts-with-config/plugin.ts +0 -8
  63. package/test/fixtures/hello-ts-with-config/tsconfig.json +0 -23
  64. package/test/fixtures/hello-world-resolver.js +0 -16
  65. package/test/fixtures/missing-property.config.json +0 -1
  66. package/test/fixtures/nested-directories/modules/catalogue/index.js +0 -11
  67. package/test/fixtures/nested-directories/modules/catalogue/routes/products.js +0 -14
  68. package/test/fixtures/nested-directories/modules/inventory/index.js +0 -33
  69. package/test/fixtures/nested-directories/modules/inventory/routes/product.js +0 -15
  70. package/test/fixtures/nested-directories/package.json +0 -3
  71. package/test/fixtures/nested-directories/platformatic.service.json +0 -23
  72. package/test/fixtures/nested-directories/plugins/decorator.js +0 -3
  73. package/test/fixtures/nested-directories/plugins/handlers.js +0 -17
  74. package/test/fixtures/not-load.js +0 -8
  75. package/test/fixtures/not-load.service.json +0 -13
  76. package/test/fixtures/other-side.js +0 -9
  77. package/test/fixtures/request-id.js +0 -9
  78. package/test/fixtures/root-endpoint-plugin.js +0 -8
  79. package/test/fixtures/throw-resolver.js +0 -16
  80. package/test/fixtures/typescript-autoload/platformatic.service.json +0 -16
  81. package/test/fixtures/typescript-autoload/routes/plugin.ts +0 -5
  82. package/test/fixtures/typescript-autoload/tsconfig.json +0 -22
  83. package/test/fixtures/typescript-compiled/compiled/plugin.js +0 -6
  84. package/test/fixtures/typescript-compiled/platformatic.service.json +0 -18
  85. package/test/fixtures/typescript-plugin/platformatic.service.json +0 -16
  86. package/test/fixtures/typescript-plugin/plugin.ts +0 -5
  87. package/test/fixtures/typescript-plugin/tsconfig.json +0 -22
  88. package/test/fixtures/typescript-plugin-custom-flags/platformatic.service.json +0 -18
  89. package/test/fixtures/typescript-plugin-custom-flags/plugin.ts +0 -5
  90. package/test/fixtures/typescript-plugin-custom-flags/tsconfig.json +0 -22
  91. package/test/fixtures/typescript-plugin-custom-tsconfig/a-config-for-ts.json +0 -22
  92. package/test/fixtures/typescript-plugin-custom-tsconfig/platformatic.service.json +0 -18
  93. package/test/fixtures/typescript-plugin-custom-tsconfig/plugin.ts +0 -5
  94. package/test/fixtures/typescript-plugin-nocompile/platformatic.service.json +0 -16
  95. package/test/fixtures/typescript-plugin-nocompile/plugin.ts +0 -5
  96. package/test/fixtures/typescript-plugin-nocompile/tsconfig.json +0 -22
  97. package/test/fixtures/typescript-plugin-nocompile-enabled/platformatic.service.json +0 -18
  98. package/test/fixtures/typescript-plugin-nocompile-enabled/plugin.ts +0 -5
  99. package/test/fixtures/typescript-plugin-nocompile-enabled/tsconfig.json +0 -22
  100. package/test/fixtures/typescript-plugin-nocompile-string/platformatic.service.json +0 -16
  101. package/test/fixtures/typescript-plugin-nocompile-string/plugin.ts +0 -5
  102. package/test/fixtures/typescript-plugin-nocompile-string/tsconfig.json +0 -22
  103. package/test/fixtures/typescript-plugin-string/platformatic.service.json +0 -16
  104. package/test/fixtures/typescript-plugin-string/plugin.ts +0 -5
  105. package/test/fixtures/typescript-plugin-string/tsconfig.json +0 -22
  106. package/test/fixtures/undici-plugin.js +0 -15
  107. package/test/graphql.test.js +0 -219
  108. package/test/healthcheck.test.js +0 -92
  109. package/test/helper.js +0 -30
  110. package/test/https.test.js +0 -64
  111. package/test/lambda.test.js +0 -103
  112. package/test/load-and-reload-files.test.js +0 -180
  113. package/test/load-plugin.test.js +0 -67
  114. package/test/metrics.test.js +0 -220
  115. package/test/routes.test.js +0 -230
  116. package/test/schema.test.js +0 -12
  117. package/test/tap-parallel-ok +0 -0
  118. package/test/telemetry.test.js +0 -87
  119. package/test/utils.test.js +0 -37
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/service",
3
- "version": "0.46.1",
3
+ "version": "0.46.2",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -65,11 +65,11 @@
65
65
  "pino-pretty": "^10.0.0",
66
66
  "rfdc": "^1.3.0",
67
67
  "ua-parser-js": "^1.0.35",
68
- "@platformatic/client": "0.46.1",
69
- "@platformatic/config": "0.46.1",
70
- "@platformatic/swagger-ui-theme": "0.46.1",
71
- "@platformatic/utils": "0.46.1",
72
- "@platformatic/telemetry": "0.46.1"
68
+ "@platformatic/client": "0.46.2",
69
+ "@platformatic/config": "0.46.2",
70
+ "@platformatic/swagger-ui-theme": "0.46.2",
71
+ "@platformatic/utils": "0.46.2",
72
+ "@platformatic/telemetry": "0.46.2"
73
73
  },
74
74
  "standard": {
75
75
  "ignore": [
@@ -1,13 +0,0 @@
1
- {
2
- "server": {
3
- "hostname": "127.0.0.1",
4
- "port": 0,
5
- "logger": {
6
- "level": "info"
7
- }
8
- },
9
- "plugins": {
10
- "paths": ["./plugin.js"]
11
- },
12
- "metrics": false
13
- }
@@ -1,18 +0,0 @@
1
- {
2
- "server": {
3
- "hostname": "127.0.0.1",
4
- "port": 0,
5
- "logger": {
6
- "level": "info",
7
- "name": "hello server"
8
- }
9
- },
10
- "plugins": {
11
- "paths": ["./plugin.js"]
12
- },
13
- "service": {
14
- "openapi": true
15
- },
16
- "metrics": false,
17
- "watch": false
18
- }
@@ -1,7 +0,0 @@
1
- 'use default'
2
-
3
- module.exports = async function (app) {
4
- app.get('/', async () => {
5
- return { hello: 'world' }
6
- })
7
- }
@@ -1,18 +0,0 @@
1
- {
2
- "server": {
3
- "hostname": "127.0.0.1",
4
- "port": 0,
5
- "logger": {
6
- "level": "warn",
7
- "name": "hello server"
8
- }
9
- },
10
- "plugins": {
11
- "paths": ["./plugin.js"]
12
- },
13
- "service": {
14
- "openapi": true
15
- },
16
- "metrics": false,
17
- "watch": false
18
- }
@@ -1,21 +0,0 @@
1
- 'use strict'
2
-
3
- const pltClient = require('@platformatic/client')
4
- const { join } = require('path')
5
-
6
- async function generateHelloClientPlugin (app, opts) {
7
- app.register(pltClient, {
8
- type: 'openapi',
9
- name: 'hello',
10
- path: join(__dirname, 'hello.openapi.json'),
11
- url: opts.url
12
- })
13
- }
14
-
15
- generateHelloClientPlugin[Symbol.for('plugin-meta')] = {
16
- name: 'hello OpenAPI Client'
17
- }
18
- generateHelloClientPlugin[Symbol.for('skip-override')] = true
19
-
20
- module.exports = generateHelloClientPlugin
21
- module.exports.default = generateHelloClientPlugin
@@ -1,34 +0,0 @@
1
- import { FastifyPluginAsync } from 'fastify'
2
-
3
- interface GetRequest {
4
- }
5
-
6
- interface GetResponse {
7
- }
8
-
9
- interface Hello {
10
- get(req: GetRequest): Promise<GetResponse>;
11
- }
12
-
13
- type HelloPlugin = FastifyPluginAsync<NonNullable<hello.HelloOptions>>
14
-
15
- declare module 'fastify' {
16
- interface FastifyInstance {
17
- 'hello': Hello;
18
- }
19
-
20
- interface FastifyRequest {
21
- 'hello': Hello;
22
- }
23
- }
24
-
25
- declare namespace hello {
26
- export interface HelloOptions {
27
- url: string
28
- }
29
- export const hello: HelloPlugin;
30
- export { hello as default };
31
- }
32
-
33
- declare function hello(...params: Parameters<HelloPlugin>): ReturnType<HelloPlugin>;
34
- export = hello;
@@ -1,22 +0,0 @@
1
- {
2
- "openapi": "3.0.3",
3
- "info": {
4
- "title": "Platformatic",
5
- "description": "This is a service built on top of Platformatic",
6
- "version": "1.0.0"
7
- },
8
- "components": {
9
- "schemas": {}
10
- },
11
- "paths": {
12
- "/": {
13
- "get": {
14
- "responses": {
15
- "200": {
16
- "description": "Default Response"
17
- }
18
- }
19
- }
20
- }
21
- }
22
- }
@@ -1,5 +0,0 @@
1
- {
2
- "name": "hello",
3
- "main": "./hello.cjs",
4
- "types": "./hello.d.ts"
5
- }
@@ -1,19 +0,0 @@
1
- {
2
- "server": {
3
- "hostname": "127.0.0.1",
4
- "port": 0,
5
- "logger": {
6
- "level": "warn",
7
- "name": "hello client"
8
- }
9
- },
10
- "plugins": {
11
- "paths": ["./plugin.js"]
12
- },
13
- "clients": [{
14
- "path": "hello",
15
- "url": "{PLT_CLIENT_URL}"
16
- }],
17
- "metrics": false,
18
- "watch": false
19
- }
@@ -1,8 +0,0 @@
1
- 'use default'
2
-
3
- /** @type {import('fastify').FastifyPluginAsync<{ optionA: boolean, optionB: string }>} */
4
- module.exports = async function (app) {
5
- app.get('/', async () => {
6
- return app.hello.get()
7
- })
8
- }
@@ -1,21 +0,0 @@
1
- 'use strict'
2
-
3
- const pltClient = require('@platformatic/client')
4
- const { join } = require('path')
5
-
6
- async function generateHelloClientPlugin (app, opts) {
7
- app.register(pltClient, {
8
- type: 'openapi',
9
- name: 'hello',
10
- path: join(__dirname, 'hello.openapi.json'),
11
- url: opts.url
12
- })
13
- }
14
-
15
- generateHelloClientPlugin[Symbol.for('plugin-meta')] = {
16
- name: 'hello OpenAPI Client'
17
- }
18
- generateHelloClientPlugin[Symbol.for('skip-override')] = true
19
-
20
- module.exports = generateHelloClientPlugin
21
- module.exports.default = generateHelloClientPlugin
@@ -1,34 +0,0 @@
1
- import { FastifyPluginAsync } from 'fastify'
2
-
3
- interface GetRequest {
4
- }
5
-
6
- interface GetResponse {
7
- }
8
-
9
- interface Hello {
10
- get(req: GetRequest): Promise<GetResponse>;
11
- }
12
-
13
- type HelloPlugin = FastifyPluginAsync<NonNullable<hello.HelloOptions>>
14
-
15
- declare module 'fastify' {
16
- interface FastifyInstance {
17
- 'hello': Hello;
18
- }
19
-
20
- interface FastifyRequest {
21
- 'hello': Hello;
22
- }
23
- }
24
-
25
- declare namespace hello {
26
- export interface HelloOptions {
27
- url: string
28
- }
29
- export const hello: HelloPlugin;
30
- export { hello as default };
31
- }
32
-
33
- declare function hello(...params: Parameters<HelloPlugin>): ReturnType<HelloPlugin>;
34
- export = hello;
@@ -1,22 +0,0 @@
1
- {
2
- "openapi": "3.0.3",
3
- "info": {
4
- "title": "Platformatic",
5
- "description": "This is a service built on top of Platformatic",
6
- "version": "1.0.0"
7
- },
8
- "components": {
9
- "schemas": {}
10
- },
11
- "paths": {
12
- "/": {
13
- "get": {
14
- "responses": {
15
- "200": {
16
- "description": "Default Response"
17
- }
18
- }
19
- }
20
- }
21
- }
22
- }
@@ -1,5 +0,0 @@
1
- {
2
- "name": "hello",
3
- "main": "./hello.cjs",
4
- "types": "./hello.d.ts"
5
- }
@@ -1,21 +0,0 @@
1
- {
2
- "server": {
3
- "hostname": "127.0.0.1",
4
- "port": 0,
5
- "logger": {
6
- "level": "warn",
7
- "name": "hello client ts"
8
- },
9
- "pluginTimeout": 30000
10
- },
11
- "plugins": {
12
- "paths": ["./plugin.ts"],
13
- "typescript": true
14
- },
15
- "clients": [{
16
- "path": "hello",
17
- "url": "{PLT_CLIENT_URL}"
18
- }],
19
- "metrics": false,
20
- "watch": false
21
- }
@@ -1,8 +0,0 @@
1
- import { FastifyInstance } from 'fastify'
2
- /// <reference path="./hello" />
3
-
4
- export default async function (app: FastifyInstance) {
5
- app.get('/', async () => {
6
- return app.hello.get({})
7
- })
8
- }
@@ -1,23 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "module": "commonjs",
4
- "esModuleInterop": true,
5
- "target": "es2020",
6
- "moduleResolution": "node",
7
- "sourceMap": false,
8
- "incremental": true,
9
- "pretty": true,
10
- "noEmitOnError": true,
11
- "outDir": "dist"
12
- },
13
- "watchOptions": {
14
- "watchFile": "fixedPollingInterval",
15
- "watchDirectory": "fixedPollingInterval",
16
- "fallbackPolling": "dynamicPriority",
17
- "synchronousWatchDirectory": true,
18
- "excludeDirectories": [
19
- "**/node_modules",
20
- "dist"
21
- ]
22
- }
23
- }
@@ -1,34 +0,0 @@
1
- import { FastifyPluginAsync } from 'fastify'
2
-
3
- interface GetRequest {
4
- }
5
-
6
- interface GetResponse {
7
- }
8
-
9
- interface Hello {
10
- get(req: GetRequest): Promise<GetResponse>;
11
- }
12
-
13
- type HelloPlugin = FastifyPluginAsync<NonNullable<hello.HelloOptions>>
14
-
15
- declare module 'fastify' {
16
- interface FastifyInstance {
17
- 'hello': Hello;
18
- }
19
-
20
- interface FastifyRequest {
21
- 'hello': Hello;
22
- }
23
- }
24
-
25
- declare namespace hello {
26
- export interface HelloOptions {
27
- url: string
28
- }
29
- export const hello: HelloPlugin;
30
- export { hello as default };
31
- }
32
-
33
- declare function hello(...params: Parameters<HelloPlugin>): ReturnType<HelloPlugin>;
34
- export = hello;
@@ -1,22 +0,0 @@
1
- {
2
- "openapi": "3.0.3",
3
- "info": {
4
- "title": "Platformatic",
5
- "description": "This is a service built on top of Platformatic",
6
- "version": "1.0.0"
7
- },
8
- "components": {
9
- "schemas": {}
10
- },
11
- "paths": {
12
- "/": {
13
- "get": {
14
- "responses": {
15
- "200": {
16
- "description": "Default Response"
17
- }
18
- }
19
- }
20
- }
21
- }
22
- }
@@ -1,23 +0,0 @@
1
- {
2
- "server": {
3
- "hostname": "127.0.0.1",
4
- "port": 0,
5
- "logger": {
6
- "level": "warn",
7
- "name": "hello client ts"
8
- },
9
- "pluginTimeout": 30000
10
- },
11
- "plugins": {
12
- "paths": ["./plugin.ts"],
13
- "typescript": true
14
- },
15
- "clients": [{
16
- "schema": "./hello.openapi.json",
17
- "name": "hello",
18
- "type": "openapi",
19
- "url": "{PLT_CLIENT_URL}"
20
- }],
21
- "metrics": false,
22
- "watch": false
23
- }
@@ -1,8 +0,0 @@
1
- import { FastifyInstance } from 'fastify'
2
- /// <reference path="./hello" />
3
-
4
- export default async function (app: FastifyInstance) {
5
- app.get('/', async () => {
6
- return app.hello.get({})
7
- })
8
- }
@@ -1,22 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "module": "commonjs",
4
- "esModuleInterop": true,
5
- "target": "es6",
6
- "moduleResolution": "node",
7
- "sourceMap": true,
8
- "pretty": true,
9
- "noEmitOnError": true,
10
- "outDir": "dist"
11
- },
12
- "watchOptions": {
13
- "watchFile": "fixedPollingInterval",
14
- "watchDirectory": "fixedPollingInterval",
15
- "fallbackPolling": "dynamicPriority",
16
- "synchronousWatchDirectory": true,
17
- "excludeDirectories": [
18
- "**/node_modules",
19
- "dist"
20
- ]
21
- }
22
- }
@@ -1,34 +0,0 @@
1
- import { FastifyPluginAsync } from 'fastify'
2
-
3
- interface GetRequest {
4
- }
5
-
6
- interface GetResponse {
7
- }
8
-
9
- interface Hello {
10
- get(req: GetRequest): Promise<GetResponse>;
11
- }
12
-
13
- type HelloPlugin = FastifyPluginAsync<NonNullable<hello.HelloOptions>>
14
-
15
- declare module 'fastify' {
16
- interface FastifyInstance {
17
- 'hello': Hello;
18
- }
19
-
20
- interface FastifyRequest {
21
- 'hello': Hello;
22
- }
23
- }
24
-
25
- declare namespace hello {
26
- export interface HelloOptions {
27
- url: string
28
- }
29
- export const hello: HelloPlugin;
30
- export { hello as default };
31
- }
32
-
33
- declare function hello(...params: Parameters<HelloPlugin>): ReturnType<HelloPlugin>;
34
- export = hello;
@@ -1,22 +0,0 @@
1
- {
2
- "openapi": "3.0.3",
3
- "info": {
4
- "title": "Platformatic",
5
- "description": "This is a service built on top of Platformatic",
6
- "version": "1.0.0"
7
- },
8
- "components": {
9
- "schemas": {}
10
- },
11
- "paths": {
12
- "/": {
13
- "get": {
14
- "responses": {
15
- "200": {
16
- "description": "Default Response"
17
- }
18
- }
19
- }
20
- }
21
- }
22
- }
@@ -1,21 +0,0 @@
1
- {
2
- "server": {
3
- "hostname": "127.0.0.1",
4
- "port": 0,
5
- "logger": {
6
- "level": "warn",
7
- "name": "hello client"
8
- }
9
- },
10
- "plugins": {
11
- "paths": ["./plugin.js"]
12
- },
13
- "clients": [{
14
- "schema": "./hello.openapi.json",
15
- "name": "hello",
16
- "type": "openapi",
17
- "url": "{PLT_CLIENT_URL}"
18
- }],
19
- "metrics": false,
20
- "watch": false
21
- }
@@ -1,8 +0,0 @@
1
- 'use default'
2
-
3
- /** @type {import('fastify').FastifyPluginAsync<{ optionA: boolean, optionB: string }>} */
4
- module.exports = async function (app) {
5
- app.get('/', async () => {
6
- return app.hello.get()
7
- })
8
- }
@@ -1,20 +0,0 @@
1
- {
2
- "server": {
3
- "hostname": "127.0.0.1",
4
- "port": 0,
5
- "logger": {
6
- "level": "info"
7
- },
8
- "https": {
9
- "cert": "-----BEGIN CERTIFICATE-----\nMIIERDCCAyygAwIBAgIBATANBgkqhkiG9w0BAQUFADBsMRgwFgYDVQQDEw9iYXNl\nLXZpcnR1YWxib3gxCzAJBgNVBAYTAlVTMRAwDgYDVQQIEwdHZW9yZ2lhMRAwDgYD\nVQQHEwdBdGxhbnRhMQ0wCwYDVQQKEwROb25lMRAwDgYDVQQLEwdleGFtcGxlMB4X\nDTIzMDQwNzE0MTg0NVoXDTI4MDUwNzA3MDAwMFowb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gz6yS+FrbvW+Qy1c\n2L1DpbvKMKq+yklvHMCjJhDC6xuQc+xqPZxMokgUy55Z+q8lA5KRamECgYEAtkv3\n1Q36Ue1TdNNZfOKdYN5DVF2zHgSSrQ3vp3ZtRw2d1RTKoT5HrrNtPEn+1xhT0kwf\nPTZn/86xSd9LDeRTJU46jHyH3Yowh9YbmzxFlqXSnGWY0CEIZ0mcZyiUJ1lI/+tr\nTK/9h0yJmTz23qNX1kX9LuYw1y92wz27rsA2JOcCgYEAxi6jw5ajAbNspT6WbkCW\nTAEtYU5l4Mvcr0A7ekEaRyobR7BR3E9+QvXlr7VdUTUu2O6gk027lWymkS5I7FQu\nioz56k6NQuN2erbRvb2RsdCNowgGqqeM+IuTo3NoEggaKDjYrshtRm/ByMUvekCY\nIR0+/O6WbNVss4JdUEcGpwECgYB1HxXZgqODI5FtC6UBAa/PXr2vZIwCCzoZiUyi\nMQpAjlULY9JUCmmPqqPSClB67ZxdDp87essSpT9ukNHt2PY6j6o6PIAmK/TGMR+H\new/SnDNWXEfz4GU/xyF/fajCJzEpi51ipeejl98H3w1VOWjjuA/Uo/xZJJuPEQiW\nW9PtnQKBgQDFJYAQNUqiQ8/o3r5qrQ1m+WwDcSjJo0K+y53WQWWOLQvyaitpxBIV\n6HN6YOqB7D1jjceQisSoGITZklKv5d2szsUwk4OrIDgVjTnbffUPjs18r4sttARV\ni11eYjenblw76OAc5shwCKCGXhKDcpq/23VxjghFqbJw25Ou3A1iMA==\n-----END RSA PRIVATE KEY-----"
11
- }
12
- },
13
- "plugins": {
14
- "paths": ["./plugin.js"]
15
- },
16
- "service": {
17
- "openapi": true
18
- },
19
- "metrics": false
20
- }
@@ -1,25 +0,0 @@
1
- -----BEGIN CERTIFICATE-----
2
- MIIERDCCAyygAwIBAgIBATANBgkqhkiG9w0BAQUFADBsMRgwFgYDVQQDEw9iYXNl
3
- LXZpcnR1YWxib3gxCzAJBgNVBAYTAlVTMRAwDgYDVQQIEwdHZW9yZ2lhMRAwDgY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2
- "server": {
3
- "hostname": "127.0.0.1",
4
- "port": 0,
5
- "logger": {
6
- "level": "info"
7
- },
8
- "https": {
9
- "cert": { "path": "./https.crt" },
10
- "key": [{ "path": "./https.key" }]
11
- }
12
- },
13
- "plugins": {
14
- "paths": ["./plugin.js"]
15
- },
16
- "service": {
17
- "openapi": true
18
- },
19
- "metrics": false
20
- }
@@ -1,7 +0,0 @@
1
- 'use default'
2
-
3
- module.exports = async function (app) {
4
- app.get('/', async () => {
5
- return { hello: 'world' }
6
- })
7
- }