From c366e295ae46ad87daf799cf103078557734a62b Mon Sep 17 00:00:00 2001 From: Benjamin Toby Date: Mon, 9 Dec 2024 21:48:06 +0100 Subject: [PATCH] Bugfix --- .../functions/backend/grabUserSchemaData.d.ts | 15 ++------------- .../functions/backend/grabUserSchemaData.js | 4 ++-- .../functions/backend/setUserSchemaData.d.ts | 16 ++-------------- .../functions/backend/setUserSchemaData.js | 4 ++-- package.json | 2 +- 5 files changed, 9 insertions(+), 32 deletions(-) diff --git a/package-shared/functions/backend/grabUserSchemaData.d.ts b/package-shared/functions/backend/grabUserSchemaData.d.ts index 51258f6..b3d9e3b 100644 --- a/package-shared/functions/backend/grabUserSchemaData.d.ts +++ b/package-shared/functions/backend/grabUserSchemaData.d.ts @@ -1,15 +1,4 @@ -/** ****************************************************************************** */ -/** ****************************************************************************** */ -/** ****************************************************************************** */ -/** ****************************************************************************** */ -/** ****************************************************************************** */ -/** ****************************************************************************** */ -/** - * ============================================================================== - * @param {Object} params - * @param {string | number} params.userId - * @returns {import("../../types").DSQL_DatabaseSchemaType[] | null} - */ -export default function grabUserSchemaData({ userId }: { +declare function _exports({ userId }: { userId: string | number; }): import("../../types").DSQL_DatabaseSchemaType[] | null; +export = _exports; diff --git a/package-shared/functions/backend/grabUserSchemaData.js b/package-shared/functions/backend/grabUserSchemaData.js index 8cdbd0c..417f7bb 100755 --- a/package-shared/functions/backend/grabUserSchemaData.js +++ b/package-shared/functions/backend/grabUserSchemaData.js @@ -17,7 +17,7 @@ const path = require("path"); * @param {string | number} params.userId * @returns {import("../../types").DSQL_DatabaseSchemaType[] | null} */ -export default function grabUserSchemaData({ userId }) { +module.exports = function grabUserSchemaData({ userId }) { try { const userSchemaFilePath = path.resolve( process.cwd(), @@ -36,7 +36,7 @@ export default function grabUserSchemaData({ userId }) { return null; } -} +}; /** ****************************************************************************** */ /** ****************************************************************************** */ diff --git a/package-shared/functions/backend/setUserSchemaData.d.ts b/package-shared/functions/backend/setUserSchemaData.d.ts index ba7aa5e..8ce9742 100644 --- a/package-shared/functions/backend/setUserSchemaData.d.ts +++ b/package-shared/functions/backend/setUserSchemaData.d.ts @@ -1,17 +1,5 @@ -/** ****************************************************************************** */ -/** ****************************************************************************** */ -/** ****************************************************************************** */ -/** ****************************************************************************** */ -/** ****************************************************************************** */ -/** ****************************************************************************** */ -/** - * ============================================================================== - * @param {Object} params - * @param {string | number} params.userId - * @param {import("../../types").DSQL_DatabaseSchemaType[]} params.schemaData - * @returns {boolean} - */ -export default function setUserSchemaData({ userId, schemaData }: { +declare function _exports({ userId, schemaData }: { userId: string | number; schemaData: import("../../types").DSQL_DatabaseSchemaType[]; }): boolean; +export = _exports; diff --git a/package-shared/functions/backend/setUserSchemaData.js b/package-shared/functions/backend/setUserSchemaData.js index 53be2fc..6472dc9 100755 --- a/package-shared/functions/backend/setUserSchemaData.js +++ b/package-shared/functions/backend/setUserSchemaData.js @@ -18,7 +18,7 @@ const path = require("path"); * @param {import("../../types").DSQL_DatabaseSchemaType[]} params.schemaData * @returns {boolean} */ -export default function setUserSchemaData({ userId, schemaData }) { +module.exports = function setUserSchemaData({ userId, schemaData }) { try { const userSchemaFilePath = path.resolve( process.cwd(), @@ -39,7 +39,7 @@ export default function setUserSchemaData({ userId, schemaData }) { return false; } -} +}; /** ****************************************************************************** */ /** ****************************************************************************** */ diff --git a/package.json b/package.json index 586be4d..19befad 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@moduletrace/datasquirel", - "version": "2.7.9", + "version": "2.8.0", "description": "Cloud-based SQL data management tool", "main": "index.js", "bin": {