@pnp/odata
Advanced tools
Comparing version 2.0.8 to 2.0.9
{ | ||
"name": "@pnp/odata", | ||
"version": "2.0.8", | ||
"version": "2.0.9", | ||
"description": "pnp - provides shared odata functionality and base classes", | ||
@@ -9,4 +9,4 @@ "main": "./index.js", | ||
"tslib": "2.0.0", | ||
"@pnp/logging": "2.0.8", | ||
"@pnp/common": "2.0.8" | ||
"@pnp/logging": "2.0.9", | ||
"@pnp/common": "2.0.9" | ||
}, | ||
@@ -13,0 +13,0 @@ "author": { |
@@ -5,2 +5,9 @@ import { __read, __spread } from "tslib"; | ||
export function cloneQueryableData(source) { | ||
var body; | ||
// this handles bodies that cannot be JSON encoded (Blob, etc) | ||
// Note however, even bodies that can be serialized will not be cloned. | ||
if (source.options && source.options.body) { | ||
body = source.options.body; | ||
source.options.body = "-"; | ||
} | ||
var s = JSON.stringify(source, function (key, value) { | ||
@@ -42,5 +49,5 @@ switch (key) { | ||
}); | ||
// this handles bodies that cannot be JSON encoded (Blob, etc) | ||
if (source.options && source.options.body) { | ||
parsed.options.body = source.options.body; | ||
if (body) { | ||
parsed.options.body = body; | ||
source.options.body = body; | ||
} | ||
@@ -67,3 +74,3 @@ return parsed; | ||
set: function (value) { | ||
this._data = Object.assign({}, cloneQueryableData(this.data), cloneQueryableData(value)); | ||
this._data = Object.assign({}, this.data, cloneQueryableData(value)); | ||
}, | ||
@@ -70,0 +77,0 @@ enumerable: false, |
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
61448
1511
+ Added@pnp/common@2.0.9(transitive)
+ Added@pnp/logging@2.0.9(transitive)
- Removed@pnp/common@2.0.8(transitive)
- Removed@pnp/logging@2.0.8(transitive)
Updated@pnp/common@2.0.9
Updated@pnp/logging@2.0.9