@balena/odata-to-abstract-sql
Advanced tools
Comparing version 6.2.2 to 6.2.3-build-patch-require-updated-field-ad819432657598898a4811d9628c9ca0a0e428c6-1
@@ -7,2 +7,6 @@ # Change Log | ||
## 6.2.3 - 2024-01-15 | ||
* Require at least one field to be updated for PATCH requests [Pagan Gazzard] | ||
## 6.2.2 - 2024-01-15 | ||
@@ -9,0 +13,0 @@ |
@@ -310,2 +310,5 @@ "use strict"; | ||
bindVars = this.BindVars(method, bodyKeys, resource.resourceName, Object.entries(resourceMapping)); | ||
if (bindVars.length === 0 && method === 'PATCH') { | ||
throw new SyntaxError('PATCH requests must update at least one field'); | ||
} | ||
query.extras.push(['Fields', bindVars.map((b) => b[0])]); | ||
@@ -312,0 +315,0 @@ if ((hasQueryOpts || |
{ | ||
"name": "@balena/odata-to-abstract-sql", | ||
"version": "6.2.2", | ||
"version": "6.2.3-build-patch-require-updated-field-ad819432657598898a4811d9628c9ca0a0e428c6-1", | ||
"description": "A consumer of the OData parser, written in OMeta", | ||
@@ -56,4 +56,4 @@ "main": "out/odata-to-abstract-sql.js", | ||
"versionist": { | ||
"publishedAt": "2024-01-15T15:04:49.193Z" | ||
"publishedAt": "2024-01-15T16:38:06.399Z" | ||
} | ||
} |
@@ -558,2 +558,5 @@ import * as _ from 'lodash'; | ||
); | ||
if (bindVars.length === 0 && method === 'PATCH') { | ||
throw new SyntaxError('PATCH requests must update at least one field'); | ||
} | ||
query.extras.push(['Fields', bindVars.map((b) => b[0])]); | ||
@@ -560,0 +563,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
582803
6922
2