@opengis/gis 0.0.20 → 0.0.22

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengis/gis",
3
- "version": "0.0.20",
3
+ "version": "0.0.22",
4
4
  "type": "module",
5
5
  "author": "Softpro",
6
6
  "main": "import-file.js",
@@ -27,7 +27,7 @@
27
27
  "@grpc/grpc-js": "^1.13.4",
28
28
  "@grpc/proto-loader": "^0.7.15",
29
29
  "@mapbox/sphericalmercator": "^1.2.0",
30
- "@opengis/fastify-table": "^1.2.68",
30
+ "@opengis/fastify-table": "1.3.76",
31
31
  "@opengis/v3-core": "^0.3.187",
32
32
  "@opengis/v3-filter": "^0.1.18",
33
33
  "@turf/turf": "^7.2.0",
@@ -47,4 +47,4 @@
47
47
  "eslint": "^8.49.0",
48
48
  "eslint-config-airbnb": "^19.0.4"
49
49
  }
50
- }
50
+ }
package/plugin.js CHANGED
@@ -4,9 +4,14 @@ import { config } from '@opengis/fastify-table/utils.js';
4
4
 
5
5
  config.prefix = config.prefix || '/api';
6
6
 
7
- async function plugin(fastify, opts = config) {
7
+ config.admin = true; // for user-menu
8
+ config.auth = config.auth || {};
9
+ config.auth.disable = true; // if fastify-auth not registered, then auth is disabled
10
+
11
+ async function plugin(app, opts = config) {
8
12
  // API
9
- fastify.register(import('./server/routes/map/index.mjs'), opts);
10
- fastify.register(import('./server/routes/gis/index.mjs'), opts);
13
+ app.register(import('@opengis/fastify-table/index.js'), opts);
14
+ app.register(import('./server/routes/map/index.mjs'), opts);
15
+ app.register(import('./server/routes/gis/index.mjs'), opts);
11
16
  }
12
17
  export default fp(plugin)