angular-odata 0.158.0 → 0.159.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/angular-odata.mjs +2 -3
- package/fesm2022/angular-odata.mjs.map +1 -1
- package/package.json +1 -1
- package/schematics/apigen/angular/base.js +7 -7
- package/schematics/apigen/angular/base.js.map +1 -1
- package/schematics/apigen/angular/entity.js.map +1 -1
- package/schematics/apigen/angular/model.js.map +1 -1
- package/schematics/apigen/angular/package.js.map +1 -1
- package/schematics/metadata/index.js +4 -2
- package/schematics/metadata/index.js.map +1 -1
|
@@ -5987,8 +5987,7 @@ class ODataRequest {
|
|
|
5987
5987
|
if (apiOptions.prefer?.maxPageSize !== undefined && ['GET'].indexOf(this._method) !== -1)
|
|
5988
5988
|
prefer.push(`odata.maxpagesize=${apiOptions.prefer?.maxPageSize}`);
|
|
5989
5989
|
// Annotations
|
|
5990
|
-
if (apiOptions.prefer?.includeAnnotations !== undefined &&
|
|
5991
|
-
['GET'].indexOf(this._method) !== -1)
|
|
5990
|
+
if (apiOptions.prefer?.includeAnnotations !== undefined && ['GET'].indexOf(this._method) !== -1)
|
|
5992
5991
|
prefer.push(`odata.include-annotations=${apiOptions.prefer?.includeAnnotations}`);
|
|
5993
5992
|
// Omit Null Values
|
|
5994
5993
|
if (apiOptions.prefer?.omitNullValues === true && ['GET'].indexOf(this._method) !== -1)
|
|
@@ -12978,7 +12977,7 @@ class ODataApi {
|
|
|
12978
12977
|
});
|
|
12979
12978
|
return true;
|
|
12980
12979
|
}
|
|
12981
|
-
populate({ schemas, references, models, collections }) {
|
|
12980
|
+
populate({ schemas, references, models, collections, }) {
|
|
12982
12981
|
const odataSchemas = (schemas ?? []).map((schema) => new ODataSchema(schema, this));
|
|
12983
12982
|
//TODO: Merge duplicates
|
|
12984
12983
|
this.schemas = [...this.schemas, ...odataSchemas];
|