graze-client 0.6.1 → 0.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/builder.ts +6 -4
package/package.json
CHANGED
package/src/builder.ts
CHANGED
|
@@ -109,11 +109,11 @@ const embedDoesNotContain = (type: EmbedType["embed_type"][1]): Filter => ({
|
|
|
109
109
|
embed_type: ["!=", type],
|
|
110
110
|
});
|
|
111
111
|
|
|
112
|
-
const postTypeIs = (
|
|
113
|
-
post_type: ["in",
|
|
112
|
+
const postTypeIs = (...types: PostTypeFilter["post_type"][1]): Filter => ({
|
|
113
|
+
post_type: ["in", types],
|
|
114
114
|
});
|
|
115
|
-
const postTypeIsNot = (
|
|
116
|
-
post_type: ["not_in",
|
|
115
|
+
const postTypeIsNot = (...types: PostTypeFilter["post_type"][1]): Filter => ({
|
|
116
|
+
post_type: ["not_in", types],
|
|
117
117
|
});
|
|
118
118
|
|
|
119
119
|
const hasVideo: Filter = embedContains("video");
|
|
@@ -162,6 +162,8 @@ export const F = {
|
|
|
162
162
|
posterDoesNotFollow,
|
|
163
163
|
hasVideo,
|
|
164
164
|
hasNoNSFWLabels,
|
|
165
|
+
postTypeIs,
|
|
166
|
+
postTypeIsNot,
|
|
165
167
|
isPost,
|
|
166
168
|
isReply,
|
|
167
169
|
isQuote,
|