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.15.0 to 1.16.0

4

dist/fetch/src/submitQuestion.d.ts

@@ -10,5 +10,5 @@ import { Question } from "../../models/src";

* @param host - Optional host to send request to
* @returns
* @returns the ID of the newly created question
*/
export declare const submitQuestion: (key: string | null, question: SubmittableQuestion, host?: string) => Promise<unknown>;
export declare const submitQuestion: (key: string | null, question: SubmittableQuestion, host?: string) => Promise<string>;
export {};

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

* @param host - Optional host to send request to
* @returns
* @returns the ID of the newly created question
*/

@@ -61,0 +61,0 @@ var submitQuestion = function (key, question, host) {

@@ -54,2 +54,7 @@ export declare type Category = "Music" | "Sport & Leisure" | "Film & TV" | "Arts & Literature" | "History" | "Society & Culture" | "Science" | "Geography" | "Food & Drink" | "General Knowledge";

regions?: string[];
/**
* Will be true if the question is a niche question, i.e. if it is considered too difficult to
* return unless the tag is specifically requested.
*/
isNiche: boolean;
}

@@ -56,0 +61,0 @@ export declare const isValidDifficulty: (arg: unknown) => arg is "medium" | "easy" | "hard" | undefined;

{
"name": "@trivia-api/fetch",
"version": "1.15.0",
"version": "1.16.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