Skip to content

Commit

Permalink
fix: require base64 (#904)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderleegs authored Aug 16, 2023
1 parent 8939c5b commit fbd7b09
Show file tree
Hide file tree
Showing 12 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/classes/Collection.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ const {
sanitizedYamlStringify,
} = require("@utils/yaml-utils")

const { Base64 } = require("js-base64")

require("bluebird")
require("lodash")
const {
Expand Down
1 change: 1 addition & 0 deletions src/classes/Config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { config } from "@config/config"

const { Base64 } = require("js-base64")
const _ = require("lodash")

const {
Expand Down
1 change: 1 addition & 0 deletions src/classes/Resource.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const Bluebird = require("bluebird")
const { Base64 } = require("js-base64")
const _ = require("lodash")

// Import classes
Expand Down
2 changes: 2 additions & 0 deletions src/classes/ResourceRoom.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions src/routes/v1/authenticatedSites/collectionPages.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions src/routes/v1/authenticatedSites/collections.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions src/routes/v1/authenticatedSites/folders.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions src/routes/v1/authenticatedSites/homepage.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 })

Expand Down
1 change: 1 addition & 0 deletions src/routes/v1/authenticatedSites/navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions src/routes/v1/authenticatedSites/netlifyToml.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions src/routes/v1/authenticatedSites/pages.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Versions } from "@constants"

const express = require("express")
const { Base64 } = require("js-base64")

// Import middleware
const {
Expand Down
1 change: 1 addition & 0 deletions src/routes/v1/authenticatedSites/resourcePages.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 })

Expand Down

0 comments on commit fbd7b09

Please sign in to comment.