From 97c6f3298a9c3ed17123e9c5a44333fce9baec39 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Wed, 12 Jan 2022 12:54:25 +0000 Subject: [PATCH] Removing use of direct package access. --- packages/backend-core/middleware.js | 1 + packages/server/src/utilities/index.js | 2 +- packages/worker/src/api/controllers/global/auth.js | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 packages/backend-core/middleware.js diff --git a/packages/backend-core/middleware.js b/packages/backend-core/middleware.js new file mode 100644 index 0000000000..30fec96239 --- /dev/null +++ b/packages/backend-core/middleware.js @@ -0,0 +1 @@ +module.exports = require("./src/middleware") diff --git a/packages/server/src/utilities/index.js b/packages/server/src/utilities/index.js index 8b51640c97..77d3d46282 100644 --- a/packages/server/src/utilities/index.js +++ b/packages/server/src/utilities/index.js @@ -1,6 +1,6 @@ const env = require("../environment") const { OBJ_STORE_DIRECTORY } = require("../constants") -const { sanitizeKey } = require("@budibase/backend-core/src/objectStore") +const { sanitizeKey } = require("@budibase/backend-core/objectStore") const CouchDB = require("../db") const { generateMetadataID } = require("../db/utils") const Readable = require("stream").Readable diff --git a/packages/worker/src/api/controllers/global/auth.js b/packages/worker/src/api/controllers/global/auth.js index ef7f6fdfdc..2ba12194ca 100644 --- a/packages/worker/src/api/controllers/global/auth.js +++ b/packages/worker/src/api/controllers/global/auth.js @@ -1,7 +1,7 @@ const core = require("@budibase/backend-core") const { getScopedConfig } = require("@budibase/backend-core/db") -const { google } = require("@budibase/backend-core/src/middleware") -const { oidc } = require("@budibase/backend-core/src/middleware") +const { google } = require("@budibase/backend-core/middleware") +const { oidc } = require("@budibase/backend-core/middleware") const { Configs, EmailTemplatePurpose } = require("../../../constants") const { sendEmail, isEmailConfigured } = require("../../../utilities/email") const {