gd-sprest 7.6.0 → 7.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -43,7 +43,7 @@ export interface IFieldInfo {
43
43
  allowDeletion?: boolean;
44
44
 
45
45
  /** The JSON property for applying a custom format to the field. */
46
- customFormatter?: string;
46
+ customFormatter?: object;
47
47
 
48
48
  /** The default value of the field. */
49
49
  defaultValue?: string;
@@ -427,7 +427,7 @@ exports.FieldSchemaXML = function (fieldInfo, targetWebUrl) {
427
427
  props["AllowDeletion"] = fieldInfo.allowDeletion ? "TRUE" : "FALSE";
428
428
  }
429
429
  if (typeof (fieldInfo.customFormatter) !== "undefined") {
430
- props["CustomFormatter"] = fieldInfo.customFormatter;
430
+ props["CustomFormatter"] = JSON.stringify(fieldInfo.customFormatter).replace(/"/g, """);
431
431
  }
432
432
  if (typeof (fieldInfo.description) !== "undefined") {
433
433
  props["Description"] = fieldInfo.description;
package/build/rest.js CHANGED
@@ -8,7 +8,7 @@ var sptypes_1 = require("./sptypes");
8
8
  * SharePoint REST Library
9
9
  */
10
10
  exports.$REST = {
11
- __ver: 7.60,
11
+ __ver: 7.62,
12
12
  AppContext: function (siteUrl) { return Lib.Site.getAppContext(siteUrl); },
13
13
  Apps: Lib.Apps,
14
14
  ContextInfo: Lib.ContextInfo,
@@ -3421,7 +3421,7 @@ declare module 'gd-sprest/helper/spCfg' {
3421
3421
  allowDeletion?: boolean;
3422
3422
 
3423
3423
  /** The JSON property for applying a custom format to the field. */
3424
- customFormatter?: string;
3424
+ customFormatter?: object;
3425
3425
 
3426
3426
  /** The default value of the field. */
3427
3427
  defaultValue?: string;