DaInfLoop / replace-replit

https://npm.im/repl-auth
MIT License
4 stars 1 forks source link

A ton of issues #7

Open codingMASTER398 opened 11 months ago

codingMASTER398 commented 11 months ago

When you don't pass auth to socket.io, it throws an exception that would normally crash the process, TypeError: Cannot read properties of undefined (reading 'split').

The README.md file for DB doesn't work, here's a fixed one:

const db = require(`replace-replit`).db
const express  = require(`express`)

;(async()=>{
  const app = express();
  app.use(await db.express({
    file: "./database.json",
    fileType: "json"
  }));

  app.listen(7007, () => {
    console.log("DB is running on port 7007");
  });
})()

DB can't handle numbers/objects/arrays (for numbers it assumes it's a status code smh)

In README.md, it should be http://localhost:8000 not localhost:8000

DaInfLoop commented 11 months ago

i made most of this on 2-3 hours of sleep and also at midnight, thanks for the info 👍

merged your pr already, but i'll work on everything else