@opengis/fastify-table 2.0.6 → 2.0.7

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.
@@ -29,7 +29,7 @@ const downloadFile = () => async (fp, options = {}) => {
29
29
  if (options.debug) {
30
30
  return { original: fp, full: filepath };
31
31
  }
32
- if (!filepath || !(await isFileExists(filepath, options))) {
32
+ if (!filepath || !(await isFileExists(filepath))) {
33
33
  return null;
34
34
  }
35
35
  if (options.buffer) {
@@ -38,7 +38,7 @@ const downloadFile = () => async (fp, options = {}) => {
38
38
  const fileStream = fs.createReadStream(filepath);
39
39
  return fileStream;
40
40
  };
41
- const fileExists = () => async (filepath, opt = {}) => isFileExists(getPath(filepath, opt), opt);
41
+ const fileExists = () => async (filepath, opt = {}) => isFileExists(getPath(filepath, opt));
42
42
  const uploadFile = () => async (fp, data, opt = {}) => {
43
43
  const filepath = getPath(fp, opt);
44
44
  const validData = await getValidData({
@@ -1,3 +1,3 @@
1
1
  import fileExists from "../../../utils/isFileExists.js";
2
- const isPath = async (path) => fileExists(path, { check: true });
2
+ const isPath = async (path) => fileExists(path);
3
3
  export default isPath;
@@ -1,7 +1,7 @@
1
1
  import { access } from "node:fs/promises";
2
2
  import getPath from "./getPath.js";
3
- const isFileExists = async (filepath, options = {}) => {
4
- const fullPath = getPath(filepath, options);
3
+ const isFileExists = async (filepath) => {
4
+ const fullPath = getPath(filepath, { check: true });
5
5
  if (!fullPath)
6
6
  return false;
7
7
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengis/fastify-table",
3
- "version": "2.0.6",
3
+ "version": "2.0.7",
4
4
  "type": "module",
5
5
  "description": "core-plugins",
6
6
  "keywords": [