youtubesubs-count-v1
Advanced tools
Comparing version 1.0.4 to 1.0.5
17
index.js
@@ -1,14 +0,3 @@ | ||
const fetch = require("node-fetch") | ||
module.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) | ||
}) | ||
}) | ||
} | ||
exports.printMsg = function() { | ||
console.log("This is a message from the demo package"); | ||
} |
{ | ||
"name": "youtubesubs-count-v1", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "", | ||
@@ -10,6 +10,3 @@ "main": "index.js", | ||
"author": "abhishek", | ||
"license": "ISC", | ||
"dependencies": { | ||
"node-fetch": "^2.6.1" | ||
} | ||
"license": "ISC" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
0
315
2
- Removednode-fetch@^2.6.1
- Removednode-fetch@2.7.0(transitive)
- Removedtr46@0.0.3(transitive)
- Removedwebidl-conversions@3.0.1(transitive)
- Removedwhatwg-url@5.0.0(transitive)