1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-01-07 04:20:05 +00:00

fix: replace isValidJson with getValidJson

This commit is contained in:
2021-07-18 23:24:22 +05:00
parent 7ac7c5e52b
commit 5347aeba09
6 changed files with 14 additions and 14 deletions

View File

@@ -2,7 +2,7 @@
* Checks if string is in valid JSON format else throw error.
* @param str - string to check.
*/
export const isValidJson = (str: string | object) => {
export const getValidJson = (str: string | object) => {
try {
if (typeof str === 'object') return str

View File

@@ -12,5 +12,5 @@ export * from './serialize'
export * from './splitChunks'
export * from './parseWeboutResponse'
export * from './fetchLogByChunks'
export * from './isValidJson'
export * from './getValidJson'
export * from './parseViyaDebugResponse'