@trivia-api/fetch
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -40,4 +40,2 @@ "use strict"; | ||
exports.getQuestions = void 0; | ||
var dotenv_1 = require("dotenv"); | ||
(0, dotenv_1.config)(); | ||
var getQuestions = function (params) { return __awaiter(void 0, void 0, void 0, function () { | ||
@@ -57,3 +55,3 @@ var queryString, res, questions; | ||
: ""; | ||
return [4 /*yield*/, fetch("https://".concat(process.env.TRIVIA_API_HOST, "/questions").concat(queryString))]; | ||
return [4 /*yield*/, fetch("https://the-trivia-api.com/questions".concat(queryString))]; | ||
case 1: | ||
@@ -60,0 +58,0 @@ res = _a.sent(); |
{ | ||
"name": "@trivia-api/fetch", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Functions to fetch data from The Trivia API.", | ||
@@ -22,2 +22,3 @@ "main": "dist/index.js", | ||
"ts-jest": "^27.1.4", | ||
"ts-loader": "^9.2.8", | ||
"typescript": "^4.6.3" | ||
@@ -24,0 +25,0 @@ }, |
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
6847
6
1
35
0
8
96