@pnp/sp
Advanced tools
Comparing version 4.2.0 to 4.3.0
@@ -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
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
24
48
362
1127914
18408
+ Added@pnp/core@4.3.0(transitive)
+ Added@pnp/queryable@4.3.0(transitive)
- Removed@pnp/core@4.2.0(transitive)
- Removed@pnp/queryable@4.2.0(transitive)
Updated@pnp/core@4.3.0
Updated@pnp/queryable@4.3.0