strapi-utils
Advanced tools
Comparing version 3.4.5 to 3.5.0-beta.0
@@ -114,4 +114,12 @@ 'use strict'; | ||
return whereClauses | ||
.filter(({ value }) => !_.isNil(value)) | ||
.filter(({ value }) => !_.isNull(value)) | ||
.map(({ field, operator, value }) => { | ||
if (_.isUndefined(value)) { | ||
const err = new Error( | ||
`The value of field: '${field}', in your where filter, is undefined.` | ||
); | ||
err.status = 400; | ||
throw err; | ||
} | ||
if (BOOLEAN_OPERATORS.includes(operator)) { | ||
@@ -118,0 +126,0 @@ return { |
{ | ||
"name": "strapi-utils", | ||
"version": "3.4.5", | ||
"version": "3.5.0-beta.0", | ||
"description": "Shared utilities for the Strapi packages", | ||
"homepage": "http://strapi.io", | ||
"homepage": "https://strapi.io", | ||
"keywords": [ | ||
@@ -27,3 +27,3 @@ "strapi", | ||
"name": "Strapi team", | ||
"url": "http://strapi.io" | ||
"url": "https://strapi.io" | ||
}, | ||
@@ -34,3 +34,3 @@ "maintainers": [ | ||
"email": "hi@strapi.io", | ||
"url": "http://strapi.io" | ||
"url": "https://strapi.io" | ||
} | ||
@@ -50,3 +50,3 @@ ], | ||
"license": "SEE LICENSE IN LICENSE", | ||
"gitHead": "4f9cc8a22cb1f48e4da7617a99984dc45d0b4a43" | ||
"gitHead": "8287e2ea21287334b797a0523a6195a912139ce6" | ||
} |
@@ -7,3 +7,3 @@ # strapi-utils | ||
[![Build status](https://travis-ci.org/strapi/strapi-utils.svg?branch=master)](https://travis-ci.org/strapi/strapi-utils) | ||
[![Slack status](https://slack.strapi.io/badge.svg)](http://slack.strapi.io) | ||
[![Slack status](https://slack.strapi.io/badge.svg)](https://slack.strapi.io) | ||
@@ -18,4 +18,4 @@ Shared utilities between Strapi packages. | ||
- [Strapi website](http://strapi.io/) | ||
- [Strapi community on Slack](http://slack.strapi.io) | ||
- [Strapi website](https://strapi.io/) | ||
- [Strapi community on Slack](https://slack.strapi.io) | ||
- [Strapi news on Twitter](https://twitter.com/strapijs) |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 12 instances in 1 package
0
19
58519
23
1683
1