From b4f83fa8676fe9d370b58e713737cc2178c1bfde Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Mon, 10 Jan 2022 19:30:35 +0000 Subject: [PATCH] Changing directory. --- packages/{auth => backend-core}/.gitignore | 0 packages/{auth => backend-core}/LICENSE | 0 packages/{auth => backend-core}/README.md | 0 packages/{auth => backend-core}/accounts.js | 0 packages/{auth => backend-core}/cache.js | 0 packages/{auth => backend-core}/constants.js | 0 packages/{auth => backend-core}/db.js | 0 packages/{auth => backend-core}/deprovision.js | 0 packages/{auth => backend-core}/package.json | 2 +- packages/{auth => backend-core}/permissions.js | 0 packages/{auth => backend-core}/redis.js | 0 packages/{auth => backend-core}/roles.js | 0 packages/{auth => backend-core}/scripts/jestSetup.js | 0 packages/{auth => backend-core}/sessions.js | 0 packages/{auth => backend-core}/src/cache/appMetadata.js | 0 packages/{auth => backend-core}/src/cache/user.js | 0 packages/{auth => backend-core}/src/cloud/accounts.js | 0 packages/{auth => backend-core}/src/cloud/api.js | 0 packages/{auth => backend-core}/src/constants.js | 0 packages/{auth => backend-core}/src/db/Replication.js | 0 packages/{auth => backend-core}/src/db/constants.js | 0 packages/{auth => backend-core}/src/db/index.js | 0 packages/{auth => backend-core}/src/db/utils.js | 0 packages/{auth => backend-core}/src/db/views.js | 0 packages/{auth => backend-core}/src/environment.js | 0 packages/{auth => backend-core}/src/hashing.js | 0 packages/{auth => backend-core}/src/helpers.js | 0 packages/{auth => backend-core}/src/index.js | 0 packages/{auth => backend-core}/src/middleware/appTenancy.js | 0 packages/{auth => backend-core}/src/middleware/auditLog.js | 0 packages/{auth => backend-core}/src/middleware/authenticated.js | 0 packages/{auth => backend-core}/src/middleware/index.js | 0 packages/{auth => backend-core}/src/middleware/matchers.js | 0 .../{auth => backend-core}/src/middleware/passport/google.js | 0 packages/{auth => backend-core}/src/middleware/passport/jwt.js | 0 .../{auth => backend-core}/src/middleware/passport/local.js | 0 packages/{auth => backend-core}/src/middleware/passport/oidc.js | 0 .../src/middleware/passport/tests/google.spec.js | 0 .../src/middleware/passport/tests/oidc.spec.js | 0 .../src/middleware/passport/tests/third-party-common.spec.js | 0 .../src/middleware/passport/tests/utilities/mock-data.js | 0 .../src/middleware/passport/third-party-common.js | 0 .../{auth => backend-core}/src/middleware/passport/utils.js | 0 packages/{auth => backend-core}/src/middleware/tenancy.js | 0 packages/{auth => backend-core}/src/migrations/index.js | 0 .../src/migrations/tests/__snapshots__/index.spec.js.snap | 0 .../{auth => backend-core}/src/migrations/tests/index.spec.js | 0 packages/{auth => backend-core}/src/objectStore/index.js | 0 packages/{auth => backend-core}/src/objectStore/utils.js | 0 packages/{auth => backend-core}/src/redis/authRedis.js | 0 packages/{auth => backend-core}/src/redis/index.js | 0 packages/{auth => backend-core}/src/redis/utils.js | 0 packages/{auth => backend-core}/src/security/permissions.js | 0 packages/{auth => backend-core}/src/security/roles.js | 0 packages/{auth => backend-core}/src/security/sessions.js | 0 packages/{auth => backend-core}/src/tenancy/FunctionContext.js | 0 packages/{auth => backend-core}/src/tenancy/context.js | 0 packages/{auth => backend-core}/src/tenancy/deprovision.js | 0 packages/{auth => backend-core}/src/tenancy/index.js | 0 packages/{auth => backend-core}/src/tenancy/tenancy.js | 0 packages/{auth => backend-core}/src/tests/utilities/db.js | 0 packages/{auth => backend-core}/src/tests/utilities/dbConfig.js | 0 packages/{auth => backend-core}/src/utils.js | 0 packages/{auth => backend-core}/tenancy.js | 0 packages/{auth => backend-core}/yarn.lock | 0 65 files changed, 1 insertion(+), 1 deletion(-) rename packages/{auth => backend-core}/.gitignore (100%) rename packages/{auth => backend-core}/LICENSE (100%) rename packages/{auth => backend-core}/README.md (100%) rename packages/{auth => backend-core}/accounts.js (100%) rename packages/{auth => backend-core}/cache.js (100%) rename packages/{auth => backend-core}/constants.js (100%) rename packages/{auth => backend-core}/db.js (100%) rename packages/{auth => backend-core}/deprovision.js (100%) rename packages/{auth => backend-core}/package.json (96%) rename packages/{auth => backend-core}/permissions.js (100%) rename packages/{auth => backend-core}/redis.js (100%) rename packages/{auth => backend-core}/roles.js (100%) rename packages/{auth => backend-core}/scripts/jestSetup.js (100%) rename packages/{auth => backend-core}/sessions.js (100%) rename packages/{auth => backend-core}/src/cache/appMetadata.js (100%) rename packages/{auth => backend-core}/src/cache/user.js (100%) rename packages/{auth => backend-core}/src/cloud/accounts.js (100%) rename packages/{auth => backend-core}/src/cloud/api.js (100%) rename packages/{auth => backend-core}/src/constants.js (100%) rename packages/{auth => backend-core}/src/db/Replication.js (100%) rename packages/{auth => backend-core}/src/db/constants.js (100%) rename packages/{auth => backend-core}/src/db/index.js (100%) rename packages/{auth => backend-core}/src/db/utils.js (100%) rename packages/{auth => backend-core}/src/db/views.js (100%) rename packages/{auth => backend-core}/src/environment.js (100%) rename packages/{auth => backend-core}/src/hashing.js (100%) rename packages/{auth => backend-core}/src/helpers.js (100%) rename packages/{auth => backend-core}/src/index.js (100%) rename packages/{auth => backend-core}/src/middleware/appTenancy.js (100%) rename packages/{auth => backend-core}/src/middleware/auditLog.js (100%) rename packages/{auth => backend-core}/src/middleware/authenticated.js (100%) rename packages/{auth => backend-core}/src/middleware/index.js (100%) rename packages/{auth => backend-core}/src/middleware/matchers.js (100%) rename packages/{auth => backend-core}/src/middleware/passport/google.js (100%) rename packages/{auth => backend-core}/src/middleware/passport/jwt.js (100%) rename packages/{auth => backend-core}/src/middleware/passport/local.js (100%) rename packages/{auth => backend-core}/src/middleware/passport/oidc.js (100%) rename packages/{auth => backend-core}/src/middleware/passport/tests/google.spec.js (100%) rename packages/{auth => backend-core}/src/middleware/passport/tests/oidc.spec.js (100%) rename packages/{auth => backend-core}/src/middleware/passport/tests/third-party-common.spec.js (100%) rename packages/{auth => backend-core}/src/middleware/passport/tests/utilities/mock-data.js (100%) rename packages/{auth => backend-core}/src/middleware/passport/third-party-common.js (100%) rename packages/{auth => backend-core}/src/middleware/passport/utils.js (100%) rename packages/{auth => backend-core}/src/middleware/tenancy.js (100%) rename packages/{auth => backend-core}/src/migrations/index.js (100%) rename packages/{auth => backend-core}/src/migrations/tests/__snapshots__/index.spec.js.snap (100%) rename packages/{auth => backend-core}/src/migrations/tests/index.spec.js (100%) rename packages/{auth => backend-core}/src/objectStore/index.js (100%) rename packages/{auth => backend-core}/src/objectStore/utils.js (100%) rename packages/{auth => backend-core}/src/redis/authRedis.js (100%) rename packages/{auth => backend-core}/src/redis/index.js (100%) rename packages/{auth => backend-core}/src/redis/utils.js (100%) rename packages/{auth => backend-core}/src/security/permissions.js (100%) rename packages/{auth => backend-core}/src/security/roles.js (100%) rename packages/{auth => backend-core}/src/security/sessions.js (100%) rename packages/{auth => backend-core}/src/tenancy/FunctionContext.js (100%) rename packages/{auth => backend-core}/src/tenancy/context.js (100%) rename packages/{auth => backend-core}/src/tenancy/deprovision.js (100%) rename packages/{auth => backend-core}/src/tenancy/index.js (100%) rename packages/{auth => backend-core}/src/tenancy/tenancy.js (100%) rename packages/{auth => backend-core}/src/tests/utilities/db.js (100%) rename packages/{auth => backend-core}/src/tests/utilities/dbConfig.js (100%) rename packages/{auth => backend-core}/src/utils.js (100%) rename packages/{auth => backend-core}/tenancy.js (100%) rename packages/{auth => backend-core}/yarn.lock (100%) diff --git a/packages/auth/.gitignore b/packages/backend-core/.gitignore similarity index 100% rename from packages/auth/.gitignore rename to packages/backend-core/.gitignore diff --git a/packages/auth/LICENSE b/packages/backend-core/LICENSE similarity index 100% rename from packages/auth/LICENSE rename to packages/backend-core/LICENSE diff --git a/packages/auth/README.md b/packages/backend-core/README.md similarity index 100% rename from packages/auth/README.md rename to packages/backend-core/README.md diff --git a/packages/auth/accounts.js b/packages/backend-core/accounts.js similarity index 100% rename from packages/auth/accounts.js rename to packages/backend-core/accounts.js diff --git a/packages/auth/cache.js b/packages/backend-core/cache.js similarity index 100% rename from packages/auth/cache.js rename to packages/backend-core/cache.js diff --git a/packages/auth/constants.js b/packages/backend-core/constants.js similarity index 100% rename from packages/auth/constants.js rename to packages/backend-core/constants.js diff --git a/packages/auth/db.js b/packages/backend-core/db.js similarity index 100% rename from packages/auth/db.js rename to packages/backend-core/db.js diff --git a/packages/auth/deprovision.js b/packages/backend-core/deprovision.js similarity index 100% rename from packages/auth/deprovision.js rename to packages/backend-core/deprovision.js diff --git a/packages/auth/package.json b/packages/backend-core/package.json similarity index 96% rename from packages/auth/package.json rename to packages/backend-core/package.json index 67d7ff5786..5fab13d2ac 100644 --- a/packages/auth/package.json +++ b/packages/backend-core/package.json @@ -1,5 +1,5 @@ { - "name": "@budibase/auth", + "name": "@budibase/backend-core", "version": "1.0.27-alpha.7", "description": "Authentication middlewares for budibase builder and apps", "main": "src/index.js", diff --git a/packages/auth/permissions.js b/packages/backend-core/permissions.js similarity index 100% rename from packages/auth/permissions.js rename to packages/backend-core/permissions.js diff --git a/packages/auth/redis.js b/packages/backend-core/redis.js similarity index 100% rename from packages/auth/redis.js rename to packages/backend-core/redis.js diff --git a/packages/auth/roles.js b/packages/backend-core/roles.js similarity index 100% rename from packages/auth/roles.js rename to packages/backend-core/roles.js diff --git a/packages/auth/scripts/jestSetup.js b/packages/backend-core/scripts/jestSetup.js similarity index 100% rename from packages/auth/scripts/jestSetup.js rename to packages/backend-core/scripts/jestSetup.js diff --git a/packages/auth/sessions.js b/packages/backend-core/sessions.js similarity index 100% rename from packages/auth/sessions.js rename to packages/backend-core/sessions.js diff --git a/packages/auth/src/cache/appMetadata.js b/packages/backend-core/src/cache/appMetadata.js similarity index 100% rename from packages/auth/src/cache/appMetadata.js rename to packages/backend-core/src/cache/appMetadata.js diff --git a/packages/auth/src/cache/user.js b/packages/backend-core/src/cache/user.js similarity index 100% rename from packages/auth/src/cache/user.js rename to packages/backend-core/src/cache/user.js diff --git a/packages/auth/src/cloud/accounts.js b/packages/backend-core/src/cloud/accounts.js similarity index 100% rename from packages/auth/src/cloud/accounts.js rename to packages/backend-core/src/cloud/accounts.js diff --git a/packages/auth/src/cloud/api.js b/packages/backend-core/src/cloud/api.js similarity index 100% rename from packages/auth/src/cloud/api.js rename to packages/backend-core/src/cloud/api.js diff --git a/packages/auth/src/constants.js b/packages/backend-core/src/constants.js similarity index 100% rename from packages/auth/src/constants.js rename to packages/backend-core/src/constants.js diff --git a/packages/auth/src/db/Replication.js b/packages/backend-core/src/db/Replication.js similarity index 100% rename from packages/auth/src/db/Replication.js rename to packages/backend-core/src/db/Replication.js diff --git a/packages/auth/src/db/constants.js b/packages/backend-core/src/db/constants.js similarity index 100% rename from packages/auth/src/db/constants.js rename to packages/backend-core/src/db/constants.js diff --git a/packages/auth/src/db/index.js b/packages/backend-core/src/db/index.js similarity index 100% rename from packages/auth/src/db/index.js rename to packages/backend-core/src/db/index.js diff --git a/packages/auth/src/db/utils.js b/packages/backend-core/src/db/utils.js similarity index 100% rename from packages/auth/src/db/utils.js rename to packages/backend-core/src/db/utils.js diff --git a/packages/auth/src/db/views.js b/packages/backend-core/src/db/views.js similarity index 100% rename from packages/auth/src/db/views.js rename to packages/backend-core/src/db/views.js diff --git a/packages/auth/src/environment.js b/packages/backend-core/src/environment.js similarity index 100% rename from packages/auth/src/environment.js rename to packages/backend-core/src/environment.js diff --git a/packages/auth/src/hashing.js b/packages/backend-core/src/hashing.js similarity index 100% rename from packages/auth/src/hashing.js rename to packages/backend-core/src/hashing.js diff --git a/packages/auth/src/helpers.js b/packages/backend-core/src/helpers.js similarity index 100% rename from packages/auth/src/helpers.js rename to packages/backend-core/src/helpers.js diff --git a/packages/auth/src/index.js b/packages/backend-core/src/index.js similarity index 100% rename from packages/auth/src/index.js rename to packages/backend-core/src/index.js diff --git a/packages/auth/src/middleware/appTenancy.js b/packages/backend-core/src/middleware/appTenancy.js similarity index 100% rename from packages/auth/src/middleware/appTenancy.js rename to packages/backend-core/src/middleware/appTenancy.js diff --git a/packages/auth/src/middleware/auditLog.js b/packages/backend-core/src/middleware/auditLog.js similarity index 100% rename from packages/auth/src/middleware/auditLog.js rename to packages/backend-core/src/middleware/auditLog.js diff --git a/packages/auth/src/middleware/authenticated.js b/packages/backend-core/src/middleware/authenticated.js similarity index 100% rename from packages/auth/src/middleware/authenticated.js rename to packages/backend-core/src/middleware/authenticated.js diff --git a/packages/auth/src/middleware/index.js b/packages/backend-core/src/middleware/index.js similarity index 100% rename from packages/auth/src/middleware/index.js rename to packages/backend-core/src/middleware/index.js diff --git a/packages/auth/src/middleware/matchers.js b/packages/backend-core/src/middleware/matchers.js similarity index 100% rename from packages/auth/src/middleware/matchers.js rename to packages/backend-core/src/middleware/matchers.js diff --git a/packages/auth/src/middleware/passport/google.js b/packages/backend-core/src/middleware/passport/google.js similarity index 100% rename from packages/auth/src/middleware/passport/google.js rename to packages/backend-core/src/middleware/passport/google.js diff --git a/packages/auth/src/middleware/passport/jwt.js b/packages/backend-core/src/middleware/passport/jwt.js similarity index 100% rename from packages/auth/src/middleware/passport/jwt.js rename to packages/backend-core/src/middleware/passport/jwt.js diff --git a/packages/auth/src/middleware/passport/local.js b/packages/backend-core/src/middleware/passport/local.js similarity index 100% rename from packages/auth/src/middleware/passport/local.js rename to packages/backend-core/src/middleware/passport/local.js diff --git a/packages/auth/src/middleware/passport/oidc.js b/packages/backend-core/src/middleware/passport/oidc.js similarity index 100% rename from packages/auth/src/middleware/passport/oidc.js rename to packages/backend-core/src/middleware/passport/oidc.js diff --git a/packages/auth/src/middleware/passport/tests/google.spec.js b/packages/backend-core/src/middleware/passport/tests/google.spec.js similarity index 100% rename from packages/auth/src/middleware/passport/tests/google.spec.js rename to packages/backend-core/src/middleware/passport/tests/google.spec.js diff --git a/packages/auth/src/middleware/passport/tests/oidc.spec.js b/packages/backend-core/src/middleware/passport/tests/oidc.spec.js similarity index 100% rename from packages/auth/src/middleware/passport/tests/oidc.spec.js rename to packages/backend-core/src/middleware/passport/tests/oidc.spec.js diff --git a/packages/auth/src/middleware/passport/tests/third-party-common.spec.js b/packages/backend-core/src/middleware/passport/tests/third-party-common.spec.js similarity index 100% rename from packages/auth/src/middleware/passport/tests/third-party-common.spec.js rename to packages/backend-core/src/middleware/passport/tests/third-party-common.spec.js diff --git a/packages/auth/src/middleware/passport/tests/utilities/mock-data.js b/packages/backend-core/src/middleware/passport/tests/utilities/mock-data.js similarity index 100% rename from packages/auth/src/middleware/passport/tests/utilities/mock-data.js rename to packages/backend-core/src/middleware/passport/tests/utilities/mock-data.js diff --git a/packages/auth/src/middleware/passport/third-party-common.js b/packages/backend-core/src/middleware/passport/third-party-common.js similarity index 100% rename from packages/auth/src/middleware/passport/third-party-common.js rename to packages/backend-core/src/middleware/passport/third-party-common.js diff --git a/packages/auth/src/middleware/passport/utils.js b/packages/backend-core/src/middleware/passport/utils.js similarity index 100% rename from packages/auth/src/middleware/passport/utils.js rename to packages/backend-core/src/middleware/passport/utils.js diff --git a/packages/auth/src/middleware/tenancy.js b/packages/backend-core/src/middleware/tenancy.js similarity index 100% rename from packages/auth/src/middleware/tenancy.js rename to packages/backend-core/src/middleware/tenancy.js diff --git a/packages/auth/src/migrations/index.js b/packages/backend-core/src/migrations/index.js similarity index 100% rename from packages/auth/src/migrations/index.js rename to packages/backend-core/src/migrations/index.js diff --git a/packages/auth/src/migrations/tests/__snapshots__/index.spec.js.snap b/packages/backend-core/src/migrations/tests/__snapshots__/index.spec.js.snap similarity index 100% rename from packages/auth/src/migrations/tests/__snapshots__/index.spec.js.snap rename to packages/backend-core/src/migrations/tests/__snapshots__/index.spec.js.snap diff --git a/packages/auth/src/migrations/tests/index.spec.js b/packages/backend-core/src/migrations/tests/index.spec.js similarity index 100% rename from packages/auth/src/migrations/tests/index.spec.js rename to packages/backend-core/src/migrations/tests/index.spec.js diff --git a/packages/auth/src/objectStore/index.js b/packages/backend-core/src/objectStore/index.js similarity index 100% rename from packages/auth/src/objectStore/index.js rename to packages/backend-core/src/objectStore/index.js diff --git a/packages/auth/src/objectStore/utils.js b/packages/backend-core/src/objectStore/utils.js similarity index 100% rename from packages/auth/src/objectStore/utils.js rename to packages/backend-core/src/objectStore/utils.js diff --git a/packages/auth/src/redis/authRedis.js b/packages/backend-core/src/redis/authRedis.js similarity index 100% rename from packages/auth/src/redis/authRedis.js rename to packages/backend-core/src/redis/authRedis.js diff --git a/packages/auth/src/redis/index.js b/packages/backend-core/src/redis/index.js similarity index 100% rename from packages/auth/src/redis/index.js rename to packages/backend-core/src/redis/index.js diff --git a/packages/auth/src/redis/utils.js b/packages/backend-core/src/redis/utils.js similarity index 100% rename from packages/auth/src/redis/utils.js rename to packages/backend-core/src/redis/utils.js diff --git a/packages/auth/src/security/permissions.js b/packages/backend-core/src/security/permissions.js similarity index 100% rename from packages/auth/src/security/permissions.js rename to packages/backend-core/src/security/permissions.js diff --git a/packages/auth/src/security/roles.js b/packages/backend-core/src/security/roles.js similarity index 100% rename from packages/auth/src/security/roles.js rename to packages/backend-core/src/security/roles.js diff --git a/packages/auth/src/security/sessions.js b/packages/backend-core/src/security/sessions.js similarity index 100% rename from packages/auth/src/security/sessions.js rename to packages/backend-core/src/security/sessions.js diff --git a/packages/auth/src/tenancy/FunctionContext.js b/packages/backend-core/src/tenancy/FunctionContext.js similarity index 100% rename from packages/auth/src/tenancy/FunctionContext.js rename to packages/backend-core/src/tenancy/FunctionContext.js diff --git a/packages/auth/src/tenancy/context.js b/packages/backend-core/src/tenancy/context.js similarity index 100% rename from packages/auth/src/tenancy/context.js rename to packages/backend-core/src/tenancy/context.js diff --git a/packages/auth/src/tenancy/deprovision.js b/packages/backend-core/src/tenancy/deprovision.js similarity index 100% rename from packages/auth/src/tenancy/deprovision.js rename to packages/backend-core/src/tenancy/deprovision.js diff --git a/packages/auth/src/tenancy/index.js b/packages/backend-core/src/tenancy/index.js similarity index 100% rename from packages/auth/src/tenancy/index.js rename to packages/backend-core/src/tenancy/index.js diff --git a/packages/auth/src/tenancy/tenancy.js b/packages/backend-core/src/tenancy/tenancy.js similarity index 100% rename from packages/auth/src/tenancy/tenancy.js rename to packages/backend-core/src/tenancy/tenancy.js diff --git a/packages/auth/src/tests/utilities/db.js b/packages/backend-core/src/tests/utilities/db.js similarity index 100% rename from packages/auth/src/tests/utilities/db.js rename to packages/backend-core/src/tests/utilities/db.js diff --git a/packages/auth/src/tests/utilities/dbConfig.js b/packages/backend-core/src/tests/utilities/dbConfig.js similarity index 100% rename from packages/auth/src/tests/utilities/dbConfig.js rename to packages/backend-core/src/tests/utilities/dbConfig.js diff --git a/packages/auth/src/utils.js b/packages/backend-core/src/utils.js similarity index 100% rename from packages/auth/src/utils.js rename to packages/backend-core/src/utils.js diff --git a/packages/auth/tenancy.js b/packages/backend-core/tenancy.js similarity index 100% rename from packages/auth/tenancy.js rename to packages/backend-core/tenancy.js diff --git a/packages/auth/yarn.lock b/packages/backend-core/yarn.lock similarity index 100% rename from packages/auth/yarn.lock rename to packages/backend-core/yarn.lock