Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: require base64 #904

Merged
merged 1 commit into from
Aug 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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