Skip to content

Commit

Permalink
Additional refactoring whoa
Browse files Browse the repository at this point in the history
  • Loading branch information
johnholdun committed Nov 15, 2023
1 parent 09a4bc7 commit 3aa54a9
Show file tree
Hide file tree
Showing 17 changed files with 732 additions and 1,418 deletions.
823 changes: 111 additions & 712 deletions package-lock.json

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"csv-stringify": "^6.4.2",
"dotenv": "^16.0.3",
"es6-promisify": "^7.0.0",
"escape-html": "^1.0.3",
"express": "^4.18.2",
"express-basic-auth": "^1.2.1",
"express-handlebars": "^6.0.7",
Expand All @@ -26,8 +27,7 @@
"open-graph-scraper": "^5.2.3",
"sqlite": "^5.0.1",
"sqlite3": "^5.1.5",
"string-strip-html": "^13.4.2",
"escape-html": "^1.0.3"
"string-strip-html": "^13.4.2"
},
"engines": {
"node": ">=16.x"
Expand All @@ -49,6 +49,7 @@
"eslint": "^8.43.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^5.0.0",
"nodemon": "^2.0.20",
Expand Down
3 changes: 1 addition & 2 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import escapeHTML from 'escape-html';
import { domain, simpleLogger, getActorInfo, replaceEmptyText } from './src/util.js';
import session, { isAuthenticated } from './src/session-auth.js';
import * as bookmarksDb from './src/bookmarks-db.js';
import * as apDb from './src/activity-pub-db.js';
import * as db from './src/database.js';
import './src/boot.js';

import routes from './src/routes/index.js';

Expand All @@ -31,7 +31,6 @@ app.use(async (req, res, next) => {
});

app.set('bookmarksDb', bookmarksDb);
app.set('apDb', apDb);
app.set('db', db);
app.set('domain', domain);

Expand Down
251 changes: 0 additions & 251 deletions src/activity-pub-db.js

This file was deleted.

Loading

0 comments on commit 3aa54a9

Please sign in to comment.