@platformatic/db-core 2.0.0-alpha.2 → 2.0.0-alpha.21

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.
@@ -0,0 +1,7 @@
1
+ 'use strict'
2
+
3
+ const neostandard = require('neostandard')
4
+
5
+ module.exports = neostandard({
6
+ ts: true,
7
+ })
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.2",
3
+ "version": "2.0.0-alpha.21",
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.16.0",
18
- "fastify": "^4.26.2",
19
- "snazzy": "^9.0.0",
20
- "standard": "^17.1.0",
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": "^4.5.1",
25
- "@platformatic/sql-events": "2.0.0-alpha.2",
26
- "@platformatic/sql-graphql": "2.0.0-alpha.2",
27
- "@platformatic/sql-openapi": "2.0.0-alpha.2",
28
- "@platformatic/sql-mapper": "2.0.0-alpha.2"
25
+ "fastify-plugin": "^5.0.0",
26
+ "@platformatic/sql-events": "2.0.0-alpha.21",
27
+ "@platformatic/sql-mapper": "2.0.0-alpha.21",
28
+ "@platformatic/sql-openapi": "2.0.0-alpha.21",
29
+ "@platformatic/sql-graphql": "2.0.0-alpha.21"
29
30
  },
30
31
  "scripts": {
31
32
  "test": "pnpm run lint && borp",
32
- "lint": "standard | snazzy"
33
+ "lint": "eslint"
33
34
  }
34
35
  }