Removing use of direct package access.

This commit is contained in:
mike12345567 2022-01-12 12:54:25 +00:00
parent 6817d6cf46
commit 60a1efeade
3 changed files with 4 additions and 3 deletions

View File

@ -0,0 +1 @@
module.exports = require("./src/middleware")

View File

@ -1,6 +1,6 @@
const env = require("../environment") const env = require("../environment")
const { OBJ_STORE_DIRECTORY } = require("../constants") 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 CouchDB = require("../db")
const { generateMetadataID } = require("../db/utils") const { generateMetadataID } = require("../db/utils")
const Readable = require("stream").Readable const Readable = require("stream").Readable

View File

@ -1,7 +1,7 @@
const core = require("@budibase/backend-core") const core = require("@budibase/backend-core")
const { getScopedConfig } = require("@budibase/backend-core/db") const { getScopedConfig } = require("@budibase/backend-core/db")
const { google } = require("@budibase/backend-core/src/middleware") const { google } = require("@budibase/backend-core/middleware")
const { oidc } = require("@budibase/backend-core/src/middleware") const { oidc } = require("@budibase/backend-core/middleware")
const { Configs, EmailTemplatePurpose } = require("../../../constants") const { Configs, EmailTemplatePurpose } = require("../../../constants")
const { sendEmail, isEmailConfigured } = require("../../../utilities/email") const { sendEmail, isEmailConfigured } = require("../../../utilities/email")
const { const {