@trivia-api/fetch
Advanced tools
Comparing version 1.7.0 to 1.8.0
@@ -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": [ |
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
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
30970
546
0