MCPcopy Index your code
hub / github.com/deepstreamIO/deepstream.io / isValidPath

Function isValidPath

src/utils/json-path.ts:58–65  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

56 * that would otherwise allow prototype-chain traversal.
57 */
58export function isValidPath (path: string): boolean {
59 try {
60 tokenize(path)
61 return true
62 } catch {
63 return false
64 }
65}
66
67/**
68 * Parses the path. Splits it into

Callers 1

addMethod · 0.90

Calls 1

tokenizeFunction · 0.85

Tested by

no test coverage detected