Sha256: ba71dbda672b0d470e9de16245de3fee27bf56f44ee7e3a5c3d7af6009614b4e
Contents?: true
Size: 520 Bytes
Versions: 26
Compression:
Stored size: 520 Bytes
Contents
{"version":3,"sources":["../../../../src/core/utils/internal/jsonParse.ts"],"sourcesContent":["/**\n * Parses a given value into a JSON.\n * Does not throw an exception on an invalid JSON string.\n */\nexport function jsonParse<ValueType extends Record<string, any>>(\n value: any,\n): ValueType | undefined {\n try {\n return JSON.parse(value)\n } catch {\n return undefined\n }\n}\n"],"mappings":"AAIO,SAAS,UACd,OACuB;AACvB,MAAI;AACF,WAAO,KAAK,MAAM,KAAK;AAAA,EACzB,QAAQ;AACN,WAAO;AAAA,EACT;AACF;","names":[]}
Version data entries
26 entries across 26 versions & 1 rubygems