Comparing version 1.14.2 to 1.15.0
{ | ||
"name": "groq-js", | ||
"version": "1.14.2", | ||
"version": "1.15.0", | ||
"keywords": [ | ||
@@ -5,0 +5,0 @@ "sanity", |
@@ -456,3 +456,3 @@ import type {ExprNode} from '../nodeTypes' | ||
// eslint-disable-next-line require-await | ||
sanity['versionOf'] = async function (args, scope, execute) { | ||
sanity['versionsOf'] = async function (args, scope, execute) { | ||
if (!scope.source.isArray()) return NULL_VALUE | ||
@@ -486,6 +486,6 @@ | ||
} | ||
sanity['versionOf'].arity = 1 | ||
sanity['versionsOf'].arity = 1 | ||
// eslint-disable-next-line require-await | ||
sanity['documentsOf'] = async function (args, scope, execute) { | ||
sanity['partOfRelease'] = async function (args, scope, execute) { | ||
if (!scope.source.isArray()) return NULL_VALUE | ||
@@ -519,3 +519,3 @@ | ||
} | ||
sanity['documentsOf'].arity = 1 | ||
sanity['partOfRelease'].arity = 1 | ||
@@ -522,0 +522,0 @@ export type GroqPipeFunction = ( |
@@ -447,3 +447,3 @@ /* eslint-disable max-statements */ | ||
} | ||
case 'sanity.versionOf': { | ||
case 'sanity.versionsOf': { | ||
const typeNode = walk({node: node.args[0], scope}) | ||
@@ -460,3 +460,3 @@ return mapNode(typeNode, scope, (typeNode) => { | ||
} | ||
case 'sanity.documentsOf': { | ||
case 'sanity.partOfRelease': { | ||
const typeNode = walk({node: node.args[0], scope}) | ||
@@ -463,0 +463,0 @@ return mapNode(typeNode, scope, (typeNode) => { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1030123