youtubesubs-count-v1
Advanced tools
Comparing version 1.0.5 to 1.0.6
17
index.js
@@ -1,3 +0,14 @@ | ||
exports.printMsg = function() { | ||
console.log("This is a message from the demo package"); | ||
} | ||
const fetch = require("node-fetch") | ||
exports.youtubeSubsFn = function(youtube_channel_id, google_youtube_api_key ) { | ||
return new Promise((resolve, reject) => { | ||
fetch(`https://www.googleapis.com/youtube/v3/channels?part=statistics&id=${youtube_channel_id}&key=${google_youtube_api_key}`) | ||
.then((res) => res.json()) | ||
.then((response) => { | ||
resolve(response) | ||
}).catch((error) => { | ||
reject(error) | ||
}) | ||
}) | ||
} | ||
{ | ||
"name": "youtubesubs-count-v1", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "", | ||
@@ -10,3 +10,6 @@ "main": "index.js", | ||
"author": "abhishek", | ||
"license": "ISC" | ||
"license": "ISC", | ||
"dependencies": { | ||
"node-fetch": "^2.6.1" | ||
} | ||
} |
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
740
12
1
+ Addednode-fetch@^2.6.1
+ Addednode-fetch@2.7.0(transitive)
+ Addedtr46@0.0.3(transitive)
+ Addedwebidl-conversions@3.0.1(transitive)
+ Addedwhatwg-url@5.0.0(transitive)