@nfteyez/test-npm-package-andy
Advanced tools
Comparing version 0.0.9 to 0.0.10
14
index.js
@@ -1,12 +0,12 @@ | ||
// import fetch from "node-fetch"; | ||
import fetch from "node-fetch"; | ||
export const giveMeSomeResult = async () => { | ||
const index = getRandomInt(0, 100); | ||
// const result = await fetch( | ||
// `https://jsonplaceholder.typicode.com/todos/${index}` | ||
// ) | ||
// .then((response) => response.json()) | ||
// .then((json) => console.log(json)); | ||
const result = await fetch( | ||
`https://jsonplaceholder.typicode.com/todos/${index}` | ||
) | ||
.then((response) => response.json()) | ||
.then((json) => console.log(json)); | ||
return Promise.resolve(index); | ||
return result; | ||
}; | ||
@@ -13,0 +13,0 @@ |
{ | ||
"name": "@nfteyez/test-npm-package-andy", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"description": "Test Package", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
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
2101
1