@opengis/fastify-table 1.2.29 → 1.2.31

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/fastify-table",
3
- "version": "1.2.29",
3
+ "version": "1.2.31",
4
4
  "type": "module",
5
5
  "description": "core-plugins",
6
6
  "keywords": [
@@ -8,7 +8,7 @@ function close() {
8
8
  }
9
9
 
10
10
  async function getHeadersPG(req, config) {
11
- if (!req.headers?.token || !req.headers?.referer) return null;
11
+ if (!req.headers?.token) return null;
12
12
  const validToken = (req.ip === '127.0.0.1' || req.ip.startsWith('192.168.') || config.debug) && req.headers?.uid && req.headers?.token && config.auth?.tokens?.includes?.(req.headers.token);
13
13
 
14
14
  if (validToken && req.headers?.db) {
@@ -55,7 +55,7 @@ export default async function getTemplate(type, name) {
55
55
 
56
56
  const key = `${type}:${name}`;
57
57
  if (name === 'cache' && !isProduction) return loadTemplate; // all cache debug
58
- if (loadTemplate[key] && isProduction) return loadTemplate[key]; // from cache
58
+ if (loadTemplate[key] && isProduction && false) return loadTemplate[key]; // from cache
59
59
 
60
60
  // type one or multi
61
61
  const templateList = Array.isArray(type)