Socket
Socket
Sign inDemoInstall

@pnp/odata

Package Overview
Dependencies
Maintainers
11
Versions
154
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnp/odata - npm Package Compare versions

Comparing version 2.0.8 to 2.0.9

6

package.json
{
"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,

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