Skip to content

Commit 48da4b4

Browse files
Release v1.5.7
1 parent 59789e3 commit 48da4b4

6 files changed

+10
-10
lines changed

dist/dynamics-web-api-callbacks.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! dynamics-web-api-callbacks v1.5.6 (c) 2019 Aleksandr Rogov */
1+
/*! dynamics-web-api-callbacks v1.5.7 (c) 2019 Aleksandr Rogov */
22
(function webpackUniversalModuleDefinition(root, factory) {
33
if(typeof exports === 'object' && typeof module === 'object')
44
module.exports = factory();
@@ -810,7 +810,7 @@ function stringifyData(data, config) {
810810
stringifiedData = JSON.stringify(data, function (key, value) {
811811
/// <param name="key" type="String">Description</param>
812812
if (key.endsWith('@odata.bind') || key.endsWith('@odata.id')) {
813-
if (typeof value === 'string') {
813+
if (typeof value === 'string' && !value.startsWith('$')) {
814814
//remove brackets in guid
815815
if (/\(\{[\w\d-]+\}\)/g.test(value)) {
816816
value = value.replace(/(.+)\(\{([\w\d-]+)\}\)/g, '$1($2)');

dist/dynamics-web-api-callbacks.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/dynamics-web-api.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! dynamics-web-api v1.5.6 (c) 2019 Aleksandr Rogov */
1+
/*! dynamics-web-api v1.5.7 (c) 2019 Aleksandr Rogov */
22
(function webpackUniversalModuleDefinition(root, factory) {
33
if(typeof exports === 'object' && typeof module === 'object')
44
module.exports = factory();
@@ -520,7 +520,7 @@ function stringifyData(data, config) {
520520
stringifiedData = JSON.stringify(data, function (key, value) {
521521
/// <param name="key" type="String">Description</param>
522522
if (key.endsWith('@odata.bind') || key.endsWith('@odata.id')) {
523-
if (typeof value === 'string') {
523+
if (typeof value === 'string' && !value.startsWith('$')) {
524524
//remove brackets in guid
525525
if (/\(\{[\w\d-]+\}\)/g.test(value)) {
526526
value = value.replace(/(.+)\(\{([\w\d-]+)\}\)/g, '$1($2)');

dist/dynamics-web-api.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dynamics-web-api",
3-
"version": "1.5.6",
3+
"version": "1.5.7",
44
"description": "DynamicsWebApi is a Microsoft Dynamics CRM Web API helper library",
55
"keywords": [
66
"crm",

0 commit comments

Comments
 (0)