@opengis/fastify-table 1.5.6 → 1.5.8

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.
@@ -80,6 +80,7 @@ handlebars.registerHelper("formatNumber", formatNumber);
80
80
  handlebars.registerHelper("formatRelative", formatRelative);
81
81
  handlebars.registerHelper("formatUnit", formatUnit);
82
82
  handlebars.registerHelper("num_format", numFormat);
83
+ handlebarsSync.registerHelper("num_format", numFormat);
83
84
  handlebars.registerHelper("set", set);
84
85
  // string
85
86
  handlebars.registerHelper("str_replace", strReplace);
@@ -1,7 +1,7 @@
1
- /* eslint-disable no-console */
2
1
  import path from "node:path";
3
2
  import { imageSize } from "image-size";
4
- import { config, downloadFile, uploadFile, grpc, isFileExists, } from "../../../../utils.js";
3
+ import { config, downloadFile, uploadFile, isFileExists, } from "../../../../utils.js";
4
+ import grpc from "../../../plugins/grpc/grpc.js";
5
5
  import getMimeType from "../../../plugins/file/providers/mime/index.js";
6
6
  const defaultWidth = 400;
7
7
  const defaultHeight = 240;
@@ -1,6 +1,7 @@
1
1
  /* eslint-disable no-console */
2
2
  import { imageSize } from "image-size";
3
- import { pgClients, eventStream, logger, isFileExists, downloadFile, uploadFile, grpc, } from "../../../../utils.js";
3
+ import { pgClients, eventStream, logger, isFileExists, downloadFile, uploadFile, } from "../../../../utils.js";
4
+ import grpc from "../../../plugins/grpc/grpc.js";
4
5
  import { images } from "../../../plugins/file/utils/allowedExtensions.js";
5
6
  const { resizeImage } = grpc();
6
7
  async function resizeOne({ relpath: relpath1, resizeQuality = 80, maxWidth = 2048, errors = [], success = [], notfound = [], equalwidth = [], send = () => { }, unittest, }) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengis/fastify-table",
3
- "version": "1.5.6",
3
+ "version": "1.5.8",
4
4
  "type": "module",
5
5
  "description": "core-plugins",
6
6
  "keywords": [