New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

quickonline

Package Overview
Dependencies
Maintainers
2
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

quickonline - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

2

package.json
{
"name": "quickonline",
"version": "1.1.0",
"version": "1.1.1",
"description": "Simple package makes quick.db, online data (it's simple)!",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -134,3 +134,3 @@ const { json } = require("express");

async check() {
let data = superagent.get(`${this.url}/quickonline/check&username=${this.username}&password=${this.password}`)
let data = superagent.get(`${this.url}/quickonline/check?username=${this.username}&password=${this.password}`)
if (!data) throw new Error('Invaild URL\n need help? http://discord.gg/devs ')

@@ -141,3 +141,18 @@ if ((await data).body === "invaild username") throw new Error("Invaild Username , need help? http://discord.gg/devs")

}
/**
* Check if the data key has value or no
* @param key
* @readonly ALPHA
*/
async has(key) {
if(!key) throw new Error("[Missing Key] Missing data key of the value Need help http://discord.gg/devs")
let data = superagent.get(`${this.url}/quickonline/has?key=${key}&username=${this.username}&password=${this.password}`)
if (!data) throw new Error('Invaild URL\n need help? http://discord.gg/devs ')
if ((await data).body === "invaild username") throw new Error("Invaild Username , need help? http://discord.gg/devs")
if ((await data).body === "invaild password") throw new Error("Invaild Password , need help? http://discord.gg/devs")
return (await data).body;
}
/**
* fetch all the data from the database

@@ -148,3 +163,3 @@ * @param

async all() {
let data = superagent.get(`${this.url}/quickonline/all&username=${this.username}&password=${this.password}`)
let data = superagent.get(`${this.url}/quickonline/all?username=${this.username}&password=${this.password}`)
if (!data) throw new Error('Invaild URL\n need help? http://discord.gg/devs ')

@@ -151,0 +166,0 @@ if ((await data).body === "invaild username") throw new Error("Invaild Username , need help? http://discord.gg/devs")

@@ -194,3 +194,19 @@ class host {

})
app.get('/quickonline/check', async(req, res) => {
app.get('/quickonline/has', async(req, res) => {
let key = req.query.key
let username = req.query.username
let password = req.query.password
if (username === this.username) {} else {
return res.send(`invaild username`)
}
if (password === this.password) {} else {
return res.send(`invaild password`)
}
let data = db.get(key)
if(!data) return res.send(false)
if(data) return res.send(true)
})
app.get('/quickonline/check', async(req, res) => {
let username = req.query.username

@@ -197,0 +213,0 @@ let password = req.query.password

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc