gd-sprest
Advanced tools
Comparing version 0.5.0 to 0.5.1
{ | ||
"name": "gd-sprest", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"description": "An easy way to develop against the SharePoint REST API.", | ||
@@ -5,0 +5,0 @@ "author": "Gunjan Datta <me@dattabase.com> (https://github.com/gunjandatta/sprest)", |
@@ -186,3 +186,3 @@ module $REST { | ||
// See if this is a field | ||
if(/^field/.test(objType) && objType != "fields") { | ||
if((/^field/.test(objType) || /field$/.test(objType)) && objType != "fields") { | ||
// Update the type | ||
@@ -259,3 +259,3 @@ objType = "field" + (isCollection ? "s" : ""); | ||
// See if this is a field | ||
if(/^SP.Field/.test(metadata.type)) { | ||
if(/^SP.Field/.test(metadata.type) || /^SP\..*Field$/.test(metadata.type)) { | ||
// Fix the uri reference | ||
@@ -262,0 +262,0 @@ targetInfo.url = targetInfo.url.replace(/AvailableFields/, "fields"); |
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
1184952