snoots-revived
Advanced tools
Comparing version 1.0.0-dev.2 to 1.0.0-dev.3
@@ -669,2 +669,4 @@ "use strict"; | ||
spoiler: options.spoiler ?? false, | ||
flairId: options.flairId ?? undefined, | ||
flairText: options.flairText ?? undefined, | ||
}); | ||
@@ -692,2 +694,4 @@ } | ||
spoiler: options.spoiler ?? false, | ||
flairId: options.flairId ?? undefined, | ||
flairText: options.flairText ?? undefined, | ||
}); | ||
@@ -735,2 +739,4 @@ } | ||
spoiler: options.spoiler ?? false, | ||
flairId: options.flairId ?? undefined, | ||
flairText: options.flairText ?? undefined, | ||
}); | ||
@@ -802,2 +808,4 @@ } | ||
spoiler: options.spoiler ?? false, | ||
flairId: options.flairId ?? undefined, | ||
flairText: options.flairText ?? undefined, | ||
}); | ||
@@ -846,2 +854,4 @@ } | ||
spoiler: options.spoiler ?? false, | ||
flairId: options.flairId ?? undefined, | ||
flairText: options.flairText ?? undefined, | ||
}); | ||
@@ -952,2 +962,4 @@ } | ||
spoiler: options.spoiler ?? false, | ||
flairId: options.flairId ?? undefined, | ||
flairText: options.flairText ?? undefined, | ||
}); | ||
@@ -1012,2 +1024,8 @@ } | ||
} | ||
if (options.flairId != undefined) { | ||
request.flair_id = options.flairId; | ||
if (options.flairText != undefined) { | ||
request.flair_text = options.flairText; | ||
} | ||
} | ||
if (options.kind === "gallery" && options.items) { | ||
@@ -1014,0 +1032,0 @@ request.items = options.items.map(item => { |
{ | ||
"name": "snoots-revived", | ||
"version": "1.0.0-dev.2", | ||
"version": "1.0.0-dev.3", | ||
"description": "A modern, fully-featured, strongly-typed reddit api.", | ||
@@ -5,0 +5,0 @@ "module": "dist/index.mjs", |
@@ -58,2 +58,6 @@ /// <reference types="node" /> | ||
spoiler?: boolean; | ||
/** The flair ID to apply to the post. */ | ||
flairId?: string; | ||
/** The flair text to apply to the post. */ | ||
flairText?: string; | ||
} | ||
@@ -162,2 +166,4 @@ /** Extra options for submitting a link post. */ | ||
nsfw: boolean; | ||
flairId?: string; | ||
flairText?: string; | ||
spoiler: boolean; | ||
@@ -164,0 +170,0 @@ resubmit: boolean; |
Sorry, the diff of this file is not supported yet
410816
8576