Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@pnp/sp

Package Overview
Dependencies
Maintainers
7
Versions
1074
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 2.0.0-12 to 2.0.0-13

2

batch.js

@@ -150,3 +150,3 @@ import { __extends } from "tslib";

if (!headers.has("X-ClientService-ClientTag")) {
headers.append("X-ClientService-ClientTag", "PnPCoreJS:@pnp-2.0.0-12");
headers.append("X-ClientService-ClientTag", "PnPCoreJS:@pnp-2.0.0-13");
}

@@ -153,0 +153,0 @@ // write headers into batch body

@@ -549,2 +549,3 @@ import { __awaiter, __decorate, __extends, __generator } from "tslib";

return __awaiter(this, void 0, void 0, function () {
var lastPubData;
return __generator(this, function (_a) {

@@ -556,4 +557,11 @@ switch (_a.label) {

}
return [4 /*yield*/, spPost(initFrom(this, "_api/sitepages/pages(" + this.json.Id + ")/" + method), body(metadata("SP.Publishing.SitePage")))];
case 1: return [2 /*return*/, _a.sent()];
if (!stringIsNullOrEmpty(this.json.VersionInfo.LastVersionCreatedBy)) return [3 /*break*/, 2];
lastPubData = new Date(this.json.VersionInfo.LastVersionCreated);
if (!(lastPubData.getFullYear() < 2000)) return [3 /*break*/, 2];
return [4 /*yield*/, this.save(true)];
case 1:
_a.sent();
_a.label = 2;
case 2: return [4 /*yield*/, spPost(initFrom(this, "_api/sitepages/pages(" + this.json.Id + ")/" + method), body(metadata("SP.Publishing.SitePage")))];
case 3: return [2 /*return*/, _a.sent()];
}

@@ -560,0 +568,0 @@ });

@@ -108,4 +108,5 @@ import { TypedHash } from "@pnp/common";

* @param overrideParameters The parameters that are used to override and extend the regular SPRenderListDataParameters.
* @param queryParams Allows setting of query parameters
*/
renderListDataAsStream(parameters: IRenderListDataParameters, overrideParameters?: any): Promise<any>;
renderListDataAsStream(parameters: IRenderListDataParameters, overrideParameters?: any, queryParams?: Map<string, string>): Promise<any>;
/**

@@ -112,0 +113,0 @@ * Gets the field values and field schema attributes for a list item.

import { __awaiter, __decorate, __extends, __generator } from "tslib";
import { assign, hOP } from "@pnp/common";
import { assign, hOP, jsS } from "@pnp/common";
import { body, headers } from "@pnp/odata";

@@ -319,5 +319,7 @@ import { SharePointQueryable, SharePointQueryableCollection, _SharePointQueryableInstance, _SharePointQueryableCollection, spInvokableFactory, deleteableWithETag, } from "../sharepointqueryable";

* @param overrideParameters The parameters that are used to override and extend the regular SPRenderListDataParameters.
* @param queryParams Allows setting of query parameters
*/
_List.prototype.renderListDataAsStream = function (parameters, overrideParameters) {
_List.prototype.renderListDataAsStream = function (parameters, overrideParameters, queryParams) {
if (overrideParameters === void 0) { overrideParameters = null; }
if (queryParams === void 0) { queryParams = new Map(); }
var postBody = body({

@@ -327,3 +329,9 @@ overrideParameters: assign(metadata("SP.RenderListDataOverrideParameters"), overrideParameters),

});
return spPost(this.clone(List, "RenderListDataAsStream", true), postBody);
var clone = this.clone(List, "RenderListDataAsStream", true);
if (queryParams && queryParams.size > 0) {
queryParams.forEach(function (v, k) { return clone.query.set(k, v); });
}
return spPost(clone, {
body: jsS(postBody),
});
};

@@ -330,0 +338,0 @@ /**

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

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

"tslib": "1.10.0",
"@pnp/common": "2.0.0-12",
"@pnp/logging": "2.0.0-12",
"@pnp/odata": "2.0.0-12"
"@pnp/common": "2.0.0-13",
"@pnp/logging": "2.0.0-13",
"@pnp/odata": "2.0.0-13"
},

@@ -14,0 +14,0 @@ "author": {

@@ -35,3 +35,3 @@ import { __awaiter, __generator } from "tslib";

methodName = tag.getClientTag(headers);
clientTag = "PnPCoreJS:2.0.0-12:" + methodName;
clientTag = "PnPCoreJS:2.0.0-13:" + methodName;
if (clientTag.length > 32) {

@@ -45,3 +45,3 @@ clientTag = clientTag.substr(0, 32);

// does not work in browsers
headers.append("User-Agent", "NONISV|SharePointPnP|PnPjs/2.0.0-12");
headers.append("User-Agent", "NONISV|SharePointPnP|PnPjs/2.0.0-13");
}

@@ -48,0 +48,0 @@ opts = assign(opts, { headers: headers });

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