MCPcopy
hub / github.com/nuxt/nuxt / parsePayload

Function parsePayload

test/utils.ts:92–94  ·  view source on GitHub ↗
(payload: string)

Source from the content-addressed store, hash-verified

90 BlinkingText: () => '<revivified-blink>',
91}
92export function parsePayload (payload: string) {
93 return parse(payload || '', revivers)
94}
95export function parseData (html: string) {
96 if (!isRenderingJson) {
97 const { script = '' } = html.match(/<script>(?<script>window.__NUXT__.*?)<\/script>/)?.groups || {}

Callers 2

basic.test.tsFile · 0.90
parseDataFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…