Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@trivia-api/fetch

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@trivia-api/fetch - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

README.md

4

dist/getQuestions.js

@@ -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 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc