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.
- package/@types/helper/spCfg.d.ts +1 -1
- package/build/helper/fieldSchemaXML.js +1 -1
- package/build/rest.js +1 -1
- package/dist/gd-sprest.d.ts +1 -1
- package/dist/gd-sprest.js +1 -1
- package/dist/gd-sprest.min.js +1 -1
- package/package.json +45 -45
- package/pnpm-lock.yaml +4 -4
package/@types/helper/spCfg.d.ts
CHANGED
|
@@ -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?:
|
|
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
package/dist/gd-sprest.d.ts
CHANGED
|
@@ -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?:
|
|
3424
|
+
customFormatter?: object;
|
|
3425
3425
|
|
|
3426
3426
|
/** The default value of the field. */
|
|
3427
3427
|
defaultValue?: string;
|