New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gd-sprest-react

Package Overview
Dependencies
Maintainers
1
Versions
309
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gd-sprest-react - npm Package Compare versions

Comparing version 2.4.5 to 2.4.6

52

build/webparts/wpSearch.js

@@ -55,20 +55,27 @@ "use strict";

var fldLookup = null;
var fldUser = null;
fieldValue = fieldValues[k];
// Update the field value based on the type
switch (field.FieldTypeKind) {
case gd_sprest_1.SPTypes.FieldType.Choice:
case gd_sprest_1.SPTypes.FieldType.MultiChoice:
break;
case gd_sprest_1.SPTypes.FieldType.Lookup:
// Update the field
fldLookup = field;
break;
case gd_sprest_1.SPTypes.FieldType.URL:
// Update the field value
fieldValue = item[field.InternalName].Description;
break;
default:
// This is a managed metadata field
fieldValue = fieldValue.split("|")[0];
break;
if (fieldValue) {
switch (field.FieldTypeKind) {
case gd_sprest_1.SPTypes.FieldType.Choice:
case gd_sprest_1.SPTypes.FieldType.MultiChoice:
break;
case gd_sprest_1.SPTypes.FieldType.Lookup:
// Set the field
fldLookup = field;
break;
case gd_sprest_1.SPTypes.FieldType.URL:
// Update the field value
fieldValue = item[field.InternalName].Description;
break;
case gd_sprest_1.SPTypes.FieldType.User:
// Set the field
fldUser = field;
break;
default:
// This is a managed metadata field
fieldValue = fieldValue.split("|")[0];
break;
}
}

@@ -84,2 +91,7 @@ // Parse the results

}
// See if this is a user field
if (fldUser) {
// Update the value
result = result ? result["Title"] : result;
}
// Ensure a value exists

@@ -244,6 +256,12 @@ if (result == null || result == "") {

case gd_sprest_1.SPTypes.FieldType.Lookup:
// Select the lookup field value
// Expand the lookup information
_this._query.Expand.push(field.InternalName);
_this._query.Select.push(field.InternalName + "/" + field.LookupField);
break;
case gd_sprest_1.SPTypes.FieldType.User:
// Expand the user information
_this._query.Expand.push(field.InternalName);
_this._query.Select.push(field.InternalName + "/ID");
_this._query.Select.push(field.InternalName + "/Title");
break;
default:

@@ -250,0 +268,0 @@ // Select the field

@@ -53,2 +53,3 @@ "use strict";

case gd_sprest_1.SPTypes.FieldType.URL:
case gd_sprest_1.SPTypes.FieldType.User:
addField = true;

@@ -55,0 +56,0 @@ break;

{
"name": "gd-sprest-react",
"version": "2.4.5",
"version": "2.4.6",
"description": "SharePoint react components.",

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

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