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.7.0 to 1.8.0

2

dist/searchQuestions.js

@@ -65,3 +65,3 @@ "use strict";

switch (_a.label) {
case 0: return [4 /*yield*/, axios_1["default"].post("".concat(host, "/api/questions/search"), __assign({ perPage: 10, pageNumber: 1, state: "approved", key: key }, body), { headers: constants_1.headers })];
case 0: return [4 /*yield*/, axios_1["default"].post("".concat(host, "/api/questions/search"), __assign({ perPage: 10, pageNumber: 1, state: "approved" }, body), { headers: __assign(__assign({}, constants_1.headers), { "x-api-key": key }) })];
case 1:

@@ -68,0 +68,0 @@ res = _a.sent();

"use strict";
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

@@ -51,5 +62,4 @@ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }

return [4 /*yield*/, axios_1["default"].put("".concat(host, "/api/question/").concat(id), {
question: question,
key: key
}, { headers: constants_1.headers })];
question: question
}, { headers: __assign(__assign({}, constants_1.headers), { "x-api-key": key }) })];
case 1:

@@ -56,0 +66,0 @@ res = _a.sent();

{
"name": "@trivia-api/fetch",
"version": "1.7.0",
"version": "1.8.0",
"description": "Functions to fetch data from The Trivia API.",

@@ -5,0 +5,0 @@ "keywords": [

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