@8base/utils
Advanced tools
Comparing version 1.2.3 to 1.2.4
@@ -18,3 +18,9 @@ "use strict"; | ||
} | ||
return JSON.parse(data); | ||
let formattedData = data; | ||
try { | ||
formattedData = JSON.parse(data); | ||
// tslint:disable-next-line | ||
} | ||
catch (e) { } | ||
return formattedData; | ||
}; | ||
@@ -21,0 +27,0 @@ const formatFieldDataForMutation = (type, data, { fieldSchema, schema, initialData }, options) => { |
{ | ||
"name": "@8base/utils", | ||
"version": "1.2.3", | ||
"version": "1.2.4", | ||
"repository": "https://github.com/8base/sdk", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/8base/sdk/tree/master/packages/utils#readme", |
@@ -13,3 +13,10 @@ import * as R from 'ramda'; | ||
return JSON.parse(data); | ||
let formattedData = data; | ||
try { | ||
formattedData = JSON.parse(data); | ||
// tslint:disable-next-line | ||
} catch (e) {} | ||
return formattedData; | ||
}; | ||
@@ -16,0 +23,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
291370
4765