sparsejs
Advanced tools
Comparing version 1.0.1 to 1.0.2-1
{ | ||
"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"} |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
5794
3