Socket
Socket
Sign inDemoInstall

sparsejs

Package Overview
Dependencies
7
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.1 to 1.0.2-1

2

package.json
{
"name": "sparsejs",
"version": "1.0.1",
"version": "1.0.2-1",
"description": "Package that allows you to easily use the sparse api within js.",

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

@@ -7,4 +7,4 @@ # Sparse JS

// Use the public avaible key: testke123456
sparse.auth({key:"testke123456"})
// Join our discord to request a key! (https://sparse.pw/discord)
sparse.auth({key:"yourkeyhere"})

@@ -11,0 +11,0 @@ // Calling an API

@@ -14,3 +14,3 @@ let sparse = {}

if (limitUser) {return "Slow Down! Please do not create more then " + reqPerMin + " request per seccond!"}
await fetch('https://sparse.pw/api/song')
await fetch('https://sparse.pw/api/song?key=' + apiKey)
.then(res => res.json()).then(body => {

@@ -29,3 +29,3 @@ if (!body) {return "No output received from API!"}

if (limitUser) {return "Slow Down! Please do not create more then " + reqPerMin + " request per seccond!"}
await fetch('https://sparse.pw/api/cat')
await fetch('https://sparse.pw/api/cat?key=' + apiKey)
.then(res => res.json()).then(body => {

@@ -44,3 +44,3 @@ if (!body) {return "No output received from API!"}

if (limitUser) {return "Slow Down! Please do not create more then " + reqPerMin + " request per seccond!"}
await fetch('https://sparse.pw/api/insult')
await fetch('https://sparse.pw/api/insult?key=' + apiKey)
.then(res => res.json()).then(body => {

@@ -59,3 +59,3 @@ if (!body) {return "No output received from API!"}

if (limitUser) {return "Slow Down! Please do not create more then " + reqPerMin + " request per seccond!"}
await fetch('https://sparse.pw/api/dog')
await fetch('https://sparse.pw/api/dog?key=' + apiKey)
.then(res => res.json()).then(body => {

@@ -74,3 +74,3 @@ if (!body) {return "No output received from API!"}

if (limitUser) {return "Slow Down! Please do not create more then " + reqPerMin + " request per seccond!"}
await fetch('https://sparse.pw/api/fact')
await fetch('https://sparse.pw/api/fact?key=' + apiKey)
.then(res => res.json()).then(body => {

@@ -94,3 +94,3 @@ if (!body) {return "No output received from API!"}

await fetch('https://sparse.pw/api/password?length=' + maxChars)
await fetch('https://sparse.pw/api/password?length=' + maxChars '&key=' + apiKey)
.then(res => res.json()).then(body => {

@@ -110,3 +110,3 @@ if (!body) {return "No output recieved from API"}

await fetch(`https://sparse.pw/api/nslookup?url=${url}`)
await fetch(`https://sparse.pw/api/nslookup?url=${url}&key=${apiKey}`)
.then(res => res.json()).then(body => {

@@ -127,3 +127,3 @@ if (!body) return "No data received from the API!"

await fetch(`https://sparse.pw/api/host2ip?url=${url}`)
await fetch(`https://sparse.pw/api/host2ip?url=${url}&key=${apiKey}`)
.then(res => res.json()).then(body => {

@@ -157,3 +157,3 @@ if (!body) {return "invalid response from API"}

let key = apiAuth.apiKey
await fetch(`http://cybersucks.glitch.me/api/validate?key=${key}`)
await fetch(`https://sparse.pw/api/validate?key=${apiKey}`)
.then(res => res.json()).then(body => {

@@ -160,0 +160,0 @@ if (!body) {return "Nothing recieved from API"}

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc