strapi-utils
Advanced tools
Comparing version 3.2.3 to 3.2.4
@@ -11,2 +11,5 @@ /** | ||
const BOOLEAN_OPERATORS = ['or']; | ||
const QUERY_OPERATORS = ['_where', '_or']; | ||
/** | ||
@@ -158,4 +161,2 @@ * Global converter | ||
const BOOLEAN_OPERATORS = ['or']; | ||
/** | ||
@@ -221,2 +222,3 @@ * Parse where params | ||
VALID_REST_OPERATORS, | ||
QUERY_OPERATORS, | ||
}; |
@@ -7,3 +7,7 @@ 'use strict'; | ||
const { buildQuery, hasDeepFilters } = require('./build-query'); | ||
const { convertRestQueryParams, VALID_REST_OPERATORS } = require('./convert-rest-query-params'); | ||
const { | ||
convertRestQueryParams, | ||
VALID_REST_OPERATORS, | ||
QUERY_OPERATORS, | ||
} = require('./convert-rest-query-params'); | ||
const parseMultipartData = require('./parse-multipart'); | ||
@@ -42,2 +46,3 @@ const sanitizeEntity = require('./sanitize-entity'); | ||
VALID_REST_OPERATORS, | ||
QUERY_OPERATORS, | ||
buildQuery, | ||
@@ -44,0 +49,0 @@ hasDeepFilters, |
@@ -78,2 +78,9 @@ 'use strict'; | ||
} else if (_.has(attribute, 'via') && _.has(attribute, 'collection')) { | ||
if (!_.has(models, attribute.collection)) { | ||
throw new Error( | ||
`The collection \`${_.upperFirst( | ||
attribute.collection | ||
)}\` is missing from the ${attribute.plugin ? '(plugin - ' + attribute.plugin + ')' : ''} models` | ||
); | ||
} | ||
const relatedAttribute = models[attribute.collection].attributes[attribute.via]; | ||
@@ -80,0 +87,0 @@ |
{ | ||
"name": "strapi-utils", | ||
"version": "3.2.3", | ||
"version": "3.2.4", | ||
"description": "Shared utilities for the Strapi packages", | ||
@@ -44,7 +44,7 @@ "homepage": "http://strapi.io", | ||
"engines": { | ||
"node": ">=10.16.0 <13", | ||
"node": ">=10.16.0 <=14.x.x", | ||
"npm": ">=6.0.0" | ||
}, | ||
"license": "SEE LICENSE IN LICENSE", | ||
"gitHead": "7485de2fdfba09e80cec109f06a9bc3ed814c0bb" | ||
"gitHead": "e8153d99c06ad3fb375e750a3d869d9d9441b5c3" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
91858
2720