omgdotlol
Advanced tools
Comparing version 0.0.1 to 0.0.2
20
index.js
@@ -1,3 +0,17 @@ | ||
exports.printMsg = function() { | ||
console.log("Just making sure this works, soon you'll actually be able to use this."); | ||
} | ||
const fetch = require('node-fetch'); | ||
class Client { | ||
constructor(token) { | ||
this.token = token; | ||
} | ||
async get(url) { | ||
const response = await fetch(url, { | ||
headers: { | ||
Authorization: `Bearer ${this.token}`, | ||
}, | ||
}); | ||
return response.json(); | ||
} | ||
} |
{ | ||
"name": "omgdotlol", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "API wrapper for omg.lol", | ||
@@ -13,3 +13,3 @@ "main": "index.js", | ||
}, | ||
"author": "Bye", | ||
"author": "Bye <bye@omg.lol> (https://bye.omg.lol)", | ||
"license": "MIT", | ||
@@ -19,3 +19,6 @@ "bugs": { | ||
}, | ||
"homepage": "https://github.com/byemc/omgdotlol#readme" | ||
"homepage": "https://github.com/byemc/omgdotlol#readme", | ||
"dependencies": { | ||
"node-fetch": "^2.6.7" | ||
} | ||
} |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
828
14
1
+ Addednode-fetch@^2.6.7
+ Addednode-fetch@2.7.0(transitive)
+ Addedtr46@0.0.3(transitive)
+ Addedwebidl-conversions@3.0.1(transitive)
+ Addedwhatwg-url@5.0.0(transitive)