Socket
Socket
Sign inDemoInstall

strapi-utils

Package Overview
Dependencies
Maintainers
8
Versions
282
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

strapi-utils - npm Package Compare versions

Comparing version 3.2.3 to 3.2.4

6

lib/convert-rest-query-params.js

@@ -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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc