graze-client 0.6.1 → 0.6.2

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/builder.ts +4 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graze-client",
3
- "version": "0.6.1",
3
+ "version": "0.6.2",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "A Typescript Graze API client.",
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 = (type: PostTypeFilter["post_type"][1]): Filter => ({
113
- post_type: ["in", type],
112
+ const postTypeIs = (...types: PostTypeFilter["post_type"][1]): Filter => ({
113
+ post_type: ["in", types],
114
114
  });
115
- const postTypeIsNot = (type: PostTypeFilter["post_type"][1]): Filter => ({
116
- post_type: ["not_in", type],
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");