MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / safeQuery

Function safeQuery

scripts/integration/js-api.mjs:419–428  ·  view source on GitHub ↗
(selector, options = {})

Source from the content-addressed store, hash-verified

417}
418
419async function safeQuery(selector, options = {}) {
420 try {
421 return await session.query(simulatorUDID, selector, {
422 source: "native-ax",
423 ...options,
424 });
425 } catch {
426 return [];
427 }
428}
429
430function looksLikeKeyboardTipQuery(snapshot) {
431 const text = JSON.stringify(snapshot);

Callers 2

resolveOpenUrlPromptFunction · 0.85
resolveKeyboardTipPromptFunction · 0.85

Calls 1

queryMethod · 0.80

Tested by

no test coverage detected