@resconet/jsbridge 17.2.1 → 17.2.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/JSBridge.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@resconet/jsbridge",
3
- "version": "17.2.1",
3
+ "version": "17.2.8",
4
4
  "main": "./src/JSBridge.js",
5
5
  "types": "./src/JSBridge.d.ts",
6
6
  "description": "Install npm JSBridge module",
package/src/JSBridge.js CHANGED
@@ -2824,13 +2824,13 @@
2824
2824
  /// <param name="success" type="function(String)">A callback function for successful asynchronous result. The <b>result</b> argument will carry the XML representation of the Fetch object.</param>
2825
2825
  /// <param name="failed" type="function(error)">A callback function for command failure. The <b>error</b> argument will carry the error message.</param>
2826
2826
  /// <param name="scope" type="">A scope for calling the callbacks; set &quot;null&quot; to call the callbacks in global scope.</param>
2827
- var reqParams = this._constructFetchParams();
2827
+ var reqParams = JSON.stringify(this._constructFetchParams());
2828
2828
  MobileCRM.bridge.command("fetchToXml", reqParams, success, failed, scope);
2829
2829
  };
2830
2830
  MobileCRM.FetchXml.Fetch.prototype.serializeToXmlAsync = function () {
2831
2831
  /// <summary>[v10.0] Serializes the Fetch object to XML.</summary>
2832
2832
  /// <returns type="Promise&lt;string&gt;">A Promise object which will be resolved with the XML representation of this Fetch object.</returns>
2833
- var reqParams = this._constructFetchParams();
2833
+ var reqParams = JSON.stringify(this._constructFetchParams());
2834
2834
  return MobileCRM.bridge.invokeCommandPromise("fetchToXml", reqParams);
2835
2835
  };
2836
2836
  // MobileCRM.FetchXml.Entity