Socket
Socket
Sign inDemoInstall

@pnp/sp

Package Overview
Dependencies
Maintainers
10
Versions
1035
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnp/sp - npm Package Compare versions

Comparing version 4.2.0 to 4.3.0

2

behaviors/telemetry.js

@@ -5,3 +5,3 @@ import { stringIsNullOrEmpty } from "@pnp/core";

instance.on.pre(async function (url, init, result) {
let clientTag = "PnPCoreJS:4.2.0:";
let clientTag = "PnPCoreJS:4.3.0:";
// make our best guess based on url to the method called

@@ -8,0 +8,0 @@ const { pathname } = new URL(url);

{
"name": "@pnp/sp",
"version": "4.2.0",
"version": "4.3.0",
"description": "pnp - provides a fluent api for working with SharePoint REST",

@@ -9,4 +9,4 @@ "main": "./index.js",

"tslib": "2.6.3",
"@pnp/core": "4.2.0",
"@pnp/queryable": "4.2.0"
"@pnp/core": "4.3.0",
"@pnp/queryable": "4.3.0"
},

@@ -13,0 +13,0 @@ "type": "module",

@@ -56,13 +56,7 @@ import { combine, isUrlAbsolute, isArray, stringIsNullOrEmpty } from "@pnp/core";

const aliasedParams = new URLSearchParams(this.query);
// this regex is designed to locate aliased parameters within url paths. These may have the form:
// /something(!@p1::value)
// /something(!@p1::value, param=value)
// /something(param=value,!@p1::value)
// /something(param=value,!@p1::value,param=value)
// /something(param=!@p1::value)
// there could be spaces or not around the boundaries
let url = this.toUrl().replace(/([( *| *, *| *= *])'!(@.*?)::(.*?)'([ *)| *, *])/ig, (match, frontBoundary, labelName, value, endBoundary) => {
// this regex is designed to locate aliased parameters within url paths
let url = this.toUrl().replace(/'!(@.+?)::((?:[^']|'')+)'/ig, (match, labelName, value) => {
this.log(`Rewriting aliased parameter from match ${match} to label: ${labelName} value: ${value}`, 0);
aliasedParams.set(labelName, `'${value}'`);
return `${frontBoundary}${labelName}${endBoundary}`;
return labelName;
});

@@ -69,0 +63,0 @@ const query = aliasedParams.toString();

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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