gd-sprest 8.0.7 → 8.0.8

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.
@@ -520,7 +520,7 @@ export interface ISPConfigProps {
520
520
  ListCfg?: Array<ISPCfgListInfo>;
521
521
 
522
522
  /** Event for the logging of the configuration. */
523
- onLogMessage?: (msg: string) => void;
523
+ onLogMessage?: (msg: string, isError?: boolean) => void;
524
524
 
525
525
  /** The web part configuration. */
526
526
  WebPartCfg?: Array<ISPCfgWebPartInfo>;
@@ -39,7 +39,7 @@ exports.SPConfig = function (cfg, webUrl) {
39
39
  console.log(message);
40
40
  }
41
41
  // Call the event
42
- cfg.onLogMessage ? cfg.onLogMessage(message) : null;
42
+ cfg.onLogMessage ? cfg.onLogMessage(message, isError) : null;
43
43
  };
44
44
  /**
45
45
  * Methods
package/build/rest.js CHANGED
@@ -9,7 +9,7 @@ var sptypes_1 = require("./sptypes");
9
9
  * SharePoint REST Library
10
10
  */
11
11
  exports.$REST = {
12
- __ver: 8.07,
12
+ __ver: 8.08,
13
13
  AppContext: function (siteUrl) { return Lib.Site.getAppContext(siteUrl); },
14
14
  Apps: Lib.Apps,
15
15
  ContextInfo: Lib.ContextInfo,
@@ -3997,7 +3997,7 @@ declare module 'gd-sprest/helper/spCfg' {
3997
3997
  ListCfg?: Array<ISPCfgListInfo>;
3998
3998
 
3999
3999
  /** Event for the logging of the configuration. */
4000
- onLogMessage?: (msg: string) => void;
4000
+ onLogMessage?: (msg: string, isError?: boolean) => void;
4001
4001
 
4002
4002
  /** The web part configuration. */
4003
4003
  WebPartCfg?: Array<ISPCfgWebPartInfo>;