diff --git a/src/classes/Collection.js b/src/classes/Collection.js index 66ea97b43..028219afe 100644 --- a/src/classes/Collection.js +++ b/src/classes/Collection.js @@ -3,6 +3,8 @@ const { sanitizedYamlStringify, } = require("@utils/yaml-utils") +const { Base64 } = require("js-base64") + require("bluebird") require("lodash") const { diff --git a/src/classes/Config.js b/src/classes/Config.js index 9ca380a09..242df6b18 100644 --- a/src/classes/Config.js +++ b/src/classes/Config.js @@ -1,5 +1,6 @@ import { config } from "@config/config" +const { Base64 } = require("js-base64") const _ = require("lodash") const { diff --git a/src/classes/Resource.js b/src/classes/Resource.js index d10f846f1..961d288f2 100644 --- a/src/classes/Resource.js +++ b/src/classes/Resource.js @@ -1,4 +1,5 @@ const Bluebird = require("bluebird") +const { Base64 } = require("js-base64") const _ = require("lodash") // Import classes diff --git a/src/classes/ResourceRoom.js b/src/classes/ResourceRoom.js index 95d5d688c..29eb758f9 100644 --- a/src/classes/ResourceRoom.js +++ b/src/classes/ResourceRoom.js @@ -21,6 +21,8 @@ const { const RESOURCE_ROOM_INDEX_PATH = "index.html" const NAV_FILE_NAME = "navigation.yml" +const { Base64 } = require("js-base64") + class ResourceRoom { constructor(accessToken, siteName) { this.accessToken = accessToken diff --git a/src/routes/v1/authenticatedSites/collectionPages.js b/src/routes/v1/authenticatedSites/collectionPages.js index 02ee45b66..0b1d35aa8 100644 --- a/src/routes/v1/authenticatedSites/collectionPages.js +++ b/src/routes/v1/authenticatedSites/collectionPages.js @@ -4,6 +4,7 @@ import { statsMiddleware } from "@root/middleware/stats" const Bluebird = require("bluebird") const express = require("express") +const { Base64 } = require("js-base64") const _ = require("lodash") // Import errors diff --git a/src/routes/v1/authenticatedSites/collections.js b/src/routes/v1/authenticatedSites/collections.js index c872499ad..5a8125d26 100644 --- a/src/routes/v1/authenticatedSites/collections.js +++ b/src/routes/v1/authenticatedSites/collections.js @@ -3,6 +3,7 @@ import { Versions } from "@constants" import { statsMiddleware } from "@root/middleware/stats" const express = require("express") +const { Base64 } = require("js-base64") // Import middleware const { diff --git a/src/routes/v1/authenticatedSites/folders.js b/src/routes/v1/authenticatedSites/folders.js index 2dc21ccc7..027a7d35a 100644 --- a/src/routes/v1/authenticatedSites/folders.js +++ b/src/routes/v1/authenticatedSites/folders.js @@ -4,6 +4,7 @@ import { statsMiddleware } from "@root/middleware/stats" const Bluebird = require("bluebird") const express = require("express") +const { Base64 } = require("js-base64") const { attachReadRouteHandlerWrapper, diff --git a/src/routes/v1/authenticatedSites/homepage.js b/src/routes/v1/authenticatedSites/homepage.js index a702913b1..170f4be9f 100644 --- a/src/routes/v1/authenticatedSites/homepage.js +++ b/src/routes/v1/authenticatedSites/homepage.js @@ -3,6 +3,7 @@ import { Versions } from "@constants" import { statsMiddleware } from "@root/middleware/stats" const express = require("express") +const { Base64 } = require("js-base64") const router = express.Router({ mergeParams: true }) diff --git a/src/routes/v1/authenticatedSites/navigation.js b/src/routes/v1/authenticatedSites/navigation.js index 877c7c532..2a11561a5 100644 --- a/src/routes/v1/authenticatedSites/navigation.js +++ b/src/routes/v1/authenticatedSites/navigation.js @@ -3,6 +3,7 @@ import { Versions } from "@constants" import { statsMiddleware } from "@root/middleware/stats" const express = require("express") +const { Base64 } = require("js-base64") const { sanitizedYamlParse, diff --git a/src/routes/v1/authenticatedSites/netlifyToml.js b/src/routes/v1/authenticatedSites/netlifyToml.js index bd8b36028..7ddb0b75d 100644 --- a/src/routes/v1/authenticatedSites/netlifyToml.js +++ b/src/routes/v1/authenticatedSites/netlifyToml.js @@ -3,6 +3,7 @@ import { Versions } from "@constants" import { statsMiddleware } from "@root/middleware/stats" const express = require("express") +const { Base64 } = require("js-base64") const toml = require("toml") // Import middleware diff --git a/src/routes/v1/authenticatedSites/pages.js b/src/routes/v1/authenticatedSites/pages.js index e9446da86..8b8e5bdac 100644 --- a/src/routes/v1/authenticatedSites/pages.js +++ b/src/routes/v1/authenticatedSites/pages.js @@ -1,6 +1,7 @@ import { Versions } from "@constants" const express = require("express") +const { Base64 } = require("js-base64") // Import middleware const { diff --git a/src/routes/v1/authenticatedSites/resourcePages.js b/src/routes/v1/authenticatedSites/resourcePages.js index 7837bf642..d20904a70 100644 --- a/src/routes/v1/authenticatedSites/resourcePages.js +++ b/src/routes/v1/authenticatedSites/resourcePages.js @@ -3,6 +3,7 @@ import { Versions } from "@constants" import { statsMiddleware } from "@root/middleware/stats" const express = require("express") +const { Base64 } = require("js-base64") const router = express.Router({ mergeParams: true })