@platformatic/db-core 2.0.0-alpha.2 → 2.0.0-alpha.20
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/eslint.config.js +7 -0
- package/index.js +5 -5
- package/package.json +12 -11
package/eslint.config.js
ADDED
package/index.js
CHANGED
|
@@ -5,18 +5,18 @@ const sqlMapper = require('@platformatic/sql-mapper')
|
|
|
5
5
|
|
|
6
6
|
const defaults = [{
|
|
7
7
|
module: '@platformatic/sql-events',
|
|
8
|
-
configKey: 'events'
|
|
8
|
+
configKey: 'events',
|
|
9
9
|
}, {
|
|
10
10
|
module: '@platformatic/sql-graphql',
|
|
11
|
-
configKey: 'graphql'
|
|
11
|
+
configKey: 'graphql',
|
|
12
12
|
}, {
|
|
13
13
|
module: '@platformatic/sql-openapi',
|
|
14
|
-
configKey: 'openapi'
|
|
14
|
+
configKey: 'openapi',
|
|
15
15
|
}]
|
|
16
16
|
|
|
17
17
|
module.exports = fp(async function (app, opts) {
|
|
18
18
|
app.register(sqlMapper, {
|
|
19
|
-
...opts
|
|
19
|
+
...opts,
|
|
20
20
|
})
|
|
21
21
|
|
|
22
22
|
for (const obj of defaults) {
|
|
@@ -28,7 +28,7 @@ module.exports = fp(async function (app, opts) {
|
|
|
28
28
|
const sqlModule = require(module)
|
|
29
29
|
const config = typeof opts[configKey] === 'object' ? opts[configKey] : {}
|
|
30
30
|
return app.register(sqlModule, {
|
|
31
|
-
...config
|
|
31
|
+
...config,
|
|
32
32
|
})
|
|
33
33
|
}
|
|
34
34
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/db-core",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.20",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
@@ -14,21 +14,22 @@
|
|
|
14
14
|
},
|
|
15
15
|
"homepage": "https://github.com/platformatic/platformatic#readme",
|
|
16
16
|
"devDependencies": {
|
|
17
|
-
"borp": "^0.
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
17
|
+
"borp": "^0.17.0",
|
|
18
|
+
"eslint": "9",
|
|
19
|
+
"fastify": "^5.0.0",
|
|
20
|
+
"neostandard": "^0.11.1",
|
|
21
|
+
"typescript": "^5.5.4",
|
|
21
22
|
"why-is-node-running": "^2.2.2"
|
|
22
23
|
},
|
|
23
24
|
"dependencies": {
|
|
24
|
-
"fastify-plugin": "^
|
|
25
|
-
"@platformatic/sql-
|
|
26
|
-
"@platformatic/sql-
|
|
27
|
-
"@platformatic/sql-openapi": "2.0.0-alpha.
|
|
28
|
-
"@platformatic/sql-mapper": "2.0.0-alpha.
|
|
25
|
+
"fastify-plugin": "^5.0.0",
|
|
26
|
+
"@platformatic/sql-graphql": "2.0.0-alpha.20",
|
|
27
|
+
"@platformatic/sql-events": "2.0.0-alpha.20",
|
|
28
|
+
"@platformatic/sql-openapi": "2.0.0-alpha.20",
|
|
29
|
+
"@platformatic/sql-mapper": "2.0.0-alpha.20"
|
|
29
30
|
},
|
|
30
31
|
"scripts": {
|
|
31
32
|
"test": "pnpm run lint && borp",
|
|
32
|
-
"lint": "
|
|
33
|
+
"lint": "eslint"
|
|
33
34
|
}
|
|
34
35
|
}
|