Skip to content

Commit

Permalink
Merge pull request #28 from bolorundurovj/dev
Browse files Browse the repository at this point in the history
Add Semantic Release
  • Loading branch information
bolorundurovj authored Dec 8, 2022
2 parents c6a3776 + 6739cc8 commit d5ad877
Show file tree
Hide file tree
Showing 5 changed files with 2,515 additions and 67 deletions.
11 changes: 11 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
branches:
- master
- name: alpha
prerelease: true
debug: true
ci: true
dryRun: false
plugins:
- "@semantic-release/commit-analyzer"
- "@semantic-release/release-notes-generator"
- "@semantic-release/github"
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"benchmarkify": "^3.0.0",
"jest": "27.4.5",
"nodemark": "^0.3.0",
"semantic-release": "^19.0.5",
"standard": "^16.0.4",
"typescript": "^4.5.5"
},
Expand Down
20 changes: 0 additions & 20 deletions pages/login.html

This file was deleted.

20 changes: 0 additions & 20 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -643,23 +643,3 @@ export default class AkivaDB<T extends object> extends EventEmitter {
}
}

export const mid = (req, res, next) => {
if (
/^\/akivadb/i.test(String(req.path)) &&
/^\/akivadb/i.test(String(req.originalUrl))
) {
if (
req.method == "GET" &&
/^\/akivadb\/login/i.test(String(req.path)) &&
/^\/akivadb\/login/i.test(String(req.originalUrl))
) {
res.send("post login");
} else {
const file = path.join(__dirname, "..", "pages", "login.html");
const content = fs.readFileSync(file, { encoding: "utf8", flag: "r" });
res.send(content);
}
}

next();
};
Loading

0 comments on commit d5ad877

Please sign in to comment.