This mapping has 2 multi-map groups: several pairings are equally correct there. The code view shows one arbitrary valid pairing, not the only one.

Before

…lines 1–174 unchanged (174 lines)
175 update(tagDefinitions, activeTagDefinition, tagData, false);
176 }
177
178 function handleChange(event: React.SyntheticEvent<HTMLInputElement | HTMLSelectElement>) {
179 let argIndex = -1;
180 if (event.currentTarget.parentNode instanceof HTMLElement) {
181 const index = event.currentTarget.parentNode?.getAttribute('data-arg-index');
182 argIndex = typeof index === 'string' ? parseInt(index, 10) : -1;
183 }
184 // Handle special types
185 if (event.currentTarget.getAttribute('data-encoding') === 'base64') {
186 return updateArg(templateUtils.encodeEncoding(event.currentTarget.value, 'base64'), argIndex);
187 }
188 // Handle normal types
189 if (event.currentTarget.type === 'number') {
190 return updateArg(parseFloat(event.currentTarget.value), argIndex);
191 } else if (event.currentTarget.type === 'checkbox') {
192 return updateArg((event.currentTarget as HTMLInputElement).checked, argIndex);
193 }
194 return updateArg(event.currentTarget.value, argIndex);
195 }
196 async function update(
…lines 197–252 unchanged (56 lines)
253 finalPreview = preview.replace(/./g, '*');
254 }
255 let previewElement;
256 if (error) {
257 // detects a string to replace with a link to settings
258 const linkText = 'Insomnia Preferences → Security';
259 if (error.endsWith(linkText)) {
260 previewElement = (
261 <div className="danger min-h-[115px] rounded-md border border-solid border-(--hl-md) bg-(--hl-xxs) p-(--padding-sm)">
262 {error.slice(0, error.length - linkText.length)}
263 <Link
264 className="cursor-pointer text-(--color-surprise)"
265 onPress={() => {
266 props.close();
267 showSettingsModal({ tab: 'general' });
268 }}
269 >
270 {linkText}
271 </Link>
272 </div>
273 );
274 } else {
275 previewElement = <textarea className="danger" value={error || 'Error'} readOnly rows={5} />;
276 }
277 } else if (rendering) {
278 previewElement = <textarea value="rendering..." readOnly rows={5} />;
279 } else {
280 previewElement = <textarea value={finalPreview || 'error'} readOnly rows={5} />;
281 }
282
…lines 283–640 unchanged (358 lines)

After

…lines 1–174 unchanged (174 lines)
175 update(tagDefinitions, activeTagDefinition, tagData, false);
176 }
177
178 function handleChange(event: React.SyntheticEvent<HTMLInputElement | HTMLSelectElement>) {
179 let argIndex = -1;
180 if (event.currentTarget.parentNode instanceof HTMLElement) {
181 const index = event.currentTarget.parentNode?.dataset.argIndex;
182 argIndex = typeof index === 'string' ? Number.parseInt(index, 10) : -1;
183 }
184 // Handle special types
185 if (event.currentTarget.dataset.encoding === 'base64') {
186 return updateArg(templateUtils.encodeEncoding(event.currentTarget.value, 'base64'), argIndex);
187 }
188 // Handle normal types
189 if (event.currentTarget.type === 'number') {
190 return updateArg(Number.parseFloat(event.currentTarget.value), argIndex);
191 } else if (event.currentTarget.type === 'checkbox') {
192 return updateArg((event.currentTarget as HTMLInputElement).checked, argIndex);
193 }
194 return updateArg(event.currentTarget.value, argIndex);
195 }
196 async function update(
…lines 197–252 unchanged (56 lines)
253 finalPreview = preview.replace(/./g, '*');
254 }
255 let previewElement;
256 if (error) {
257 // detects a string to replace with a link to settings
258 const linkText = 'Insomnia Preferences → Security';
259 previewElement = error.endsWith(linkText) ? (
260 <div className="danger min-h-[115px] rounded-md border border-solid border-(--hl-md) bg-(--hl-xxs) p-(--padding-sm)">
261 {error.slice(0, error.length - linkText.length)}
262 <Link
263 className="cursor-pointer text-(--color-surprise)"
264 onPress={() => {
265 props.close();
266 showSettingsModal({ tab: 'general' });
267 }}
268 >
269 {linkText}
270 </Link>
271 </div>
272 ) : (
273 <textarea className="danger" value={error || 'Error'} readOnly rows={5} />
274 );
275 } else if (rendering) {
276 previewElement = <textarea value="rendering..." readOnly rows={5} />;
277 } else {
278 previewElement = <textarea value={finalPreview || 'error'} readOnly rows={5} />;
279 }
280
…lines 281–638 unchanged (358 lines)

Before

program
import_statement
import "import"
import_clause
identifier "classnames"
from "from"
string
' "'"
string_fragment "classnames"
' "'"
; ";"
import_statement
import "import"
import_clause
identifier "clone"
from "from"
string
' "'"
string_fragment "clone"
' "'"
; ";"
import_statement
import "import"
import_clause
named_imports
{ "{"
import_specifier
identifier "localTemplateTags"
} "}"
from "from"
string
' "'"
string_fragment "insomnia/src/templating/local-template-tags"
' "'"
; ";"
import_statement (+26 nodes collapsed)
import_statement
import "import"
import_clause
named_imports
{ "{"
import_specifier
identifier "Button"
, ","
import_specifier
identifier "Link"
} "}"
from "from"
string
' "'"
string_fragment "react-aria-components"
' "'"
; ";"
import_statement
import "import"
import_clause
namespace_import
* "*"
as "as"
identifier "reactUse"
from "from"
string
' "'"
string_fragment "react-use"
' "'"
; ";"
import_statement
import "import"
import_clause
named_imports
{ "{"
import_specifier
identifier "showSettingsModal"
} "}"
from "from"
string
' "'"
string_fragment "~/ui/components/modals/settings-modal"
' "'"
; ";"
import_statement
import "import"
import_clause
named_imports
{ "{"
import_specifier
identifier "database"
as "as"
identifier "db"
} "}"
from "from"
string
' "'"
string_fragment "../../../common/database"
' "'"
; ";"
import_statement
import "import"
import_clause
named_imports
{ "{"
import_specifier
identifier "docsAfterResponseScript"
} "}"
from "from"
string
' "'"
string_fragment "../../../common/documentation"
' "'"
; ";"
import_statement
import "import"
import_clause
named_imports
{ "{"
import_specifier
identifier "delay"
, ","
import_specifier
identifier "fnOrString"
} "}"
from "from"
string
' "'"
string_fragment "../../../common/misc"
' "'"
; ";"
import_statement
import "import"
import_clause
named_imports
{ "{"
import_specifier
identifier "metaSortKeySort"
} "}"
from "from"
string
' "'"
string_fragment "../../../common/sorting"
' "'"
; ";"
import_statement
import "import"
import_clause
namespace_import
* "*"
as "as"
identifier "models"
from "from"
string
' "'"
string_fragment "../../../models"
' "'"
; ";"
import_statement
import "import"
import_clause
named_imports
{ "{"
import_specifier
type "type"
identifier "CloudProviderCredential"
, ","
import_specifier
identifier "type"
as "as"
identifier "cloudCredentialModelType"
} "}"
from "from"
string
' "'"
string_fragment "../../../models/cloud-credential"
' "'"
; ";"
import_statement
import "import"
type "type"
import_clause
named_imports
{ "{"
import_specifier
identifier "BaseModel"
} "}"
from "from"
string
' "'"
string_fragment "../../../models/index"
' "'"
; ";"
import_statement
import "import"
import_clause
named_imports
{ "{"
import_specifier
identifier "isRequest"
, ","
import_specifier
type "type"
identifier "Request"
} "}"
from "from"
string
' "'"
string_fragment "../../../models/request"
' "'"
; ";"
import_statement
import "import"
import_clause
named_imports
{ "{"
import_specifier
identifier "isRequestGroup"
, ","
import_specifier
type "type"
identifier "RequestGroup"
} "}"
from "from"
string
' "'"
string_fragment "../../../models/request-group"
' "'"
; ";"
import_statement
import "import"
type "type"
import_clause
named_imports
{ "{"
import_specifier
identifier "Workspace"
} "}"
from "from"
string
' "'"
string_fragment "../../../models/workspace"
' "'"
; ";"
import_statement
import "import"
import_clause
namespace_import
* "*"
as "as"
identifier "plugins"
from "from"
string
' "'"
string_fragment "../../../plugins"
' "'"
; ";"
import_statement
import "import"
import_clause
namespace_import
* "*"
as "as"
identifier "pluginStore"
from "from"
string
' "'"
string_fragment "../../../plugins/context/store"
' "'"
; ";"
import_statement
import "import"
import_clause
namespace_import
* "*"
as "as"
identifier "templating"
from "from"
string
' "'"
string_fragment "../../../templating"
' "'"
; ";"
import_statement
import "import"
type "type"
import_clause
named_imports
{ "{"
import_specifier
identifier "NunjucksParsedTag"
, ","
import_specifier
identifier "NunjucksParsedTagArg"
} "}"
from "from"
string
' "'"
string_fragment "../../../templating/types"
' "'"
; ";"
import_statement
import "import"
import_clause
named_imports
{ "{"
import_specifier
identifier "sanitizeStrForWin32"
} "}"
from "from"
string
' "'"
string_fragment "../../../templating/utils"
' "'"
; ";"
import_statement
import "import"
import_clause
namespace_import
* "*"
as "as"
identifier "templateUtils"
from "from"
string
' "'"
string_fragment "../../../templating/utils"
' "'"
; ";"
import_statement
import "import"
import_clause
named_imports
{ "{"
import_specifier
identifier "useNunjucks"
} "}"
from "from"
string
' "'"
string_fragment "../../context/nunjucks/use-nunjucks"
' "'"
; ";"
import_statement (+23 nodes collapsed)
import_statement
import "import"
import_clause
named_imports
{ "{"
import_specifier
identifier "FileInputButton"
} "}"
from "from"
string
' "'"
string_fragment "../base/file-input-button"
' "'"
; ";"
import_statement
import "import"
import_clause
named_imports
{ "{"
import_specifier
identifier "HelpTooltip"
} "}"
from "from"
string
' "'"
string_fragment "../help-tooltip"
' "'"
; ";"
import_statement
import "import"
import_clause
named_imports
{ "{"
import_specifier
identifier "Icon"
} "}"
from "from"
string
' "'"
string_fragment "../icon"
' "'"
; ";"
import_statement
import "import"
import_clause
named_imports
{ "{"
import_specifier
identifier "ArgConfigSubForm"
, ","
import_specifier
identifier "couldRenderForm"
} "}"
from "from"
string
' "'"
string_fragment "./tag-editor-arg-sub-form"
' "'"
; ";"
interface_declaration (+62 nodes collapsed)
interface_declaration (+105 nodes collapsed)
lexical_declaration (+164 nodes collapsed)
export_statement
export "export"
lexical_declaration
const "const"
variable_declarator
identifier "TagEditor"
type_annotation
: ":"
generic_type
type_identifier "FC"
type_arguments
< "<"
type_identifier "Props"
> ">"
= "="
arrow_function
identifier "props"
=> "=>"
statement_block
{ "{"
lexical_declaration (+78 nodes collapsed)
lexical_declaration (+32 nodes collapsed)
lexical_declaration (+289 nodes collapsed)
expression_statement (+243 nodes collapsed)
expression_statement (+27 nodes collapsed)
function_declaration (+390 nodes collapsed)
function_declaration
function "function"
identifier "handleChange"
formal_parameters
( "("
required_parameter
identifier "event"
type_annotation
: ":"
generic_type
nested_type_identifier
identifier "React"
. "."
type_identifier "SyntheticEvent"
type_arguments
< "<"
union_type
type_identifier "HTMLInputElement"
| "|"
type_identifier "HTMLSelectElement"
> ">"
) ")"
statement_block
{ "{"
lexical_declaration
let "let"
variable_declarator
identifier "argIndex"
= "="
unary_expression
- "-"
number "1"
; ";"
if_statement
if "if"
parenthesized_expression
( "("
binary_expression
member_expression
member_expression
identifier "event"
. "."
property_identifier "currentTarget"
. "."
property_identifier "parentNode"
instanceof "instanceof"
identifier "HTMLElement"
) ")"
statement_block
{ "{"
lexical_declaration
const "const"
variable_declarator
identifier "index"
= "="
call_expression
member_expression any 3:4
member_expression any 3:4
member_expression any 3:4
identifier "event"
. "."
property_identifier "currentTarget"
. "."
property_identifier "parentNode"
optional_chain
?. "?."
property_identifier "getAttribute"
arguments
( "("
string
' "'"
string_fragment "data-arg-index"
' "'"
) ")"
; ";"
expression_statement
assignment_expression
identifier "argIndex"
= "="
ternary_expression
binary_expression
unary_expression
typeof "typeof"
identifier "index"
=== "==="
string
' "'"
string_fragment "string"
' "'"
? "?"
call_expression
identifier "parseInt"
arguments
( "("
identifier "index"
, ","
number "10"
) ")"
: ":"
unary_expression
- "-"
number "1"
; ";"
} "}"
comment "// Handle special types"
if_statement
if "if"
parenthesized_expression
( "("
binary_expression
call_expression
member_expression any 2:3
member_expression any 2:3
identifier "event"
. "."
property_identifier "currentTarget"
. "."
property_identifier "getAttribute"
arguments
( "("
string
' "'"
string_fragment "data-encoding"
' "'"
) ")"
=== "==="
string
' "'"
string_fragment "base64"
' "'"
) ")"
statement_block (+33 nodes collapsed)
comment "// Handle normal types"
if_statement
if "if"
parenthesized_expression
( "("
binary_expression
member_expression
member_expression
identifier "event"
. "."
property_identifier "currentTarget"
. "."
property_identifier "type"
=== "==="
string
' "'"
string_fragment "number"
' "'"
) ")"
statement_block
{ "{"
return_statement
return "return"
call_expression
identifier "updateArg"
arguments
( "("
call_expression
identifier "parseFloat"
arguments
( "("
member_expression
member_expression
identifier "event"
. "."
property_identifier "currentTarget"
. "."
property_identifier "value"
) ")"
, ","
identifier "argIndex"
) ")"
; ";"
} "}"
else_clause (+46 nodes collapsed)
return_statement
return "return"
call_expression
identifier "updateArg"
arguments
( "("
member_expression
member_expression
identifier "event"
. "."
property_identifier "currentTarget"
. "."
property_identifier "value"
, ","
identifier "argIndex"
) ")"
; ";"
} "}"
function_declaration (+418 nodes collapsed)
lexical_declaration
const "const"
variable_declarator
object_pattern
{ "{"
shorthand_property_identifier_pattern "error"
, ","
shorthand_property_identifier_pattern "preview"
, ","
shorthand_property_identifier_pattern "activeTagDefinition"
, ","
shorthand_property_identifier_pattern "activeTagData"
, ","
shorthand_property_identifier_pattern "rendering"
} "}"
= "="
identifier "state"
; ";"
if_statement
if "if"
parenthesized_expression
( "("
unary_expression
! "!"
identifier "activeTagData"
) ")"
statement_block
{ "{"
return_statement
return "return"
null "null"
; ";"
} "}"
lexical_declaration
let "let"
variable_declarator
identifier "finalPreview"
= "="
identifier "preview"
; ";"
if_statement (+50 nodes collapsed)
lexical_declaration
let "let"
variable_declarator
identifier "previewElement"
; ";"
if_statement
if "if"
parenthesized_expression
( "("
identifier "error"
) ")"
statement_block
{ "{"
comment "// detects a string to replace with a link to settings"
lexical_declaration
const "const"
variable_declarator
identifier "linkText"
= "="
string
' "'"
string_fragment "Insomnia Preferences → Security"
' "'"
; ";"
if_statement
if "if"
parenthesized_expression
( "("
call_expression
member_expression
identifier "error"
. "."
property_identifier "endsWith"
arguments
( "("
identifier "linkText"
) ")"
) ")"
statement_block
{ "{"
expression_statement
assignment_expression
identifier "previewElement"
= "="
parenthesized_expression (+103 nodes collapsed)
; ";"
} "}"
else_clause
else "else"
statement_block
{ "{"
expression_statement
assignment_expression
identifier "previewElement"
= "="
jsx_self_closing_element (+33 nodes collapsed)
; ";"
} "}"
} "}"
else_clause (+72 nodes collapsed)
return_statement (+3741 nodes collapsed)
} "}"
; ";"

After

program
import_statement
import "import"
import_clause
identifier "classnames"
from "from"
string
' "'"
string_fragment "classnames"
' "'"
; ";"
import_statement
import "import"
import_clause
identifier "clone"
from "from"
string
' "'"
string_fragment "clone"
' "'"
; ";"
import_statement
import "import"
import_clause
named_imports
{ "{"
import_specifier
identifier "localTemplateTags"
} "}"
from "from"
string
' "'"
string_fragment "insomnia/src/templating/local-template-tags"
' "'"
; ";"
import_statement (+26 nodes collapsed)
import_statement
import "import"
import_clause
named_imports
{ "{"
import_specifier
identifier "Button"
, ","
import_specifier
identifier "Link"
} "}"
from "from"
string
' "'"
string_fragment "react-aria-components"
' "'"
; ";"
import_statement
import "import"
import_clause
namespace_import
* "*"
as "as"
identifier "reactUse"
from "from"
string
' "'"
string_fragment "react-use"
' "'"
; ";"
import_statement
import "import"
import_clause
named_imports
{ "{"
import_specifier
identifier "showSettingsModal"
} "}"
from "from"
string
' "'"
string_fragment "~/ui/components/modals/settings-modal"
' "'"
; ";"
import_statement
import "import"
import_clause
named_imports
{ "{"
import_specifier
identifier "database"
as "as"
identifier "db"
} "}"
from "from"
string
' "'"
string_fragment "../../../common/database"
' "'"
; ";"
import_statement
import "import"
import_clause
named_imports
{ "{"
import_specifier
identifier "docsAfterResponseScript"
} "}"
from "from"
string
' "'"
string_fragment "../../../common/documentation"
' "'"
; ";"
import_statement
import "import"
import_clause
named_imports
{ "{"
import_specifier
identifier "delay"
, ","
import_specifier
identifier "fnOrString"
} "}"
from "from"
string
' "'"
string_fragment "../../../common/misc"
' "'"
; ";"
import_statement
import "import"
import_clause
named_imports
{ "{"
import_specifier
identifier "metaSortKeySort"
} "}"
from "from"
string
' "'"
string_fragment "../../../common/sorting"
' "'"
; ";"
import_statement
import "import"
import_clause
namespace_import
* "*"
as "as"
identifier "models"
from "from"
string
' "'"
string_fragment "../../../models"
' "'"
; ";"
import_statement
import "import"
import_clause
named_imports
{ "{"
import_specifier
type "type"
identifier "CloudProviderCredential"
, ","
import_specifier
identifier "type"
as "as"
identifier "cloudCredentialModelType"
} "}"
from "from"
string
' "'"
string_fragment "../../../models/cloud-credential"
' "'"
; ";"
import_statement
import "import"
type "type"
import_clause
named_imports
{ "{"
import_specifier
identifier "BaseModel"
} "}"
from "from"
string
' "'"
string_fragment "../../../models/index"
' "'"
; ";"
import_statement
import "import"
import_clause
named_imports
{ "{"
import_specifier
identifier "isRequest"
, ","
import_specifier
type "type"
identifier "Request"
} "}"
from "from"
string
' "'"
string_fragment "../../../models/request"
' "'"
; ";"
import_statement
import "import"
import_clause
named_imports
{ "{"
import_specifier
identifier "isRequestGroup"
, ","
import_specifier
type "type"
identifier "RequestGroup"
} "}"
from "from"
string
' "'"
string_fragment "../../../models/request-group"
' "'"
; ";"
import_statement
import "import"
type "type"
import_clause
named_imports
{ "{"
import_specifier
identifier "Workspace"
} "}"
from "from"
string
' "'"
string_fragment "../../../models/workspace"
' "'"
; ";"
import_statement
import "import"
import_clause
namespace_import
* "*"
as "as"
identifier "plugins"
from "from"
string
' "'"
string_fragment "../../../plugins"
' "'"
; ";"
import_statement
import "import"
import_clause
namespace_import
* "*"
as "as"
identifier "pluginStore"
from "from"
string
' "'"
string_fragment "../../../plugins/context/store"
' "'"
; ";"
import_statement
import "import"
import_clause
namespace_import
* "*"
as "as"
identifier "templating"
from "from"
string
' "'"
string_fragment "../../../templating"
' "'"
; ";"
import_statement
import "import"
type "type"
import_clause
named_imports
{ "{"
import_specifier
identifier "NunjucksParsedTag"
, ","
import_specifier
identifier "NunjucksParsedTagArg"
} "}"
from "from"
string
' "'"
string_fragment "../../../templating/types"
' "'"
; ";"
import_statement
import "import"
import_clause
named_imports
{ "{"
import_specifier
identifier "sanitizeStrForWin32"
} "}"
from "from"
string
' "'"
string_fragment "../../../templating/utils"
' "'"
; ";"
import_statement
import "import"
import_clause
namespace_import
* "*"
as "as"
identifier "templateUtils"
from "from"
string
' "'"
string_fragment "../../../templating/utils"
' "'"
; ";"
import_statement
import "import"
import_clause
named_imports
{ "{"
import_specifier
identifier "useNunjucks"
} "}"
from "from"
string
' "'"
string_fragment "../../context/nunjucks/use-nunjucks"
' "'"
; ";"
import_statement (+23 nodes collapsed)
import_statement
import "import"
import_clause
named_imports
{ "{"
import_specifier
identifier "FileInputButton"
} "}"
from "from"
string
' "'"
string_fragment "../base/file-input-button"
' "'"
; ";"
import_statement
import "import"
import_clause
named_imports
{ "{"
import_specifier
identifier "HelpTooltip"
} "}"
from "from"
string
' "'"
string_fragment "../help-tooltip"
' "'"
; ";"
import_statement
import "import"
import_clause
named_imports
{ "{"
import_specifier
identifier "Icon"
} "}"
from "from"
string
' "'"
string_fragment "../icon"
' "'"
; ";"
import_statement
import "import"
import_clause
named_imports
{ "{"
import_specifier
identifier "ArgConfigSubForm"
, ","
import_specifier
identifier "couldRenderForm"
} "}"
from "from"
string
' "'"
string_fragment "./tag-editor-arg-sub-form"
' "'"
; ";"
interface_declaration (+62 nodes collapsed)
interface_declaration (+105 nodes collapsed)
lexical_declaration (+164 nodes collapsed)
export_statement
export "export"
lexical_declaration
const "const"
variable_declarator
identifier "TagEditor"
type_annotation
: ":"
generic_type
type_identifier "FC"
type_arguments
< "<"
type_identifier "Props"
> ">"
= "="
arrow_function
identifier "props"
=> "=>"
statement_block
{ "{"
lexical_declaration (+78 nodes collapsed)
lexical_declaration (+32 nodes collapsed)
lexical_declaration (+289 nodes collapsed)
expression_statement (+243 nodes collapsed)
expression_statement (+27 nodes collapsed)
function_declaration (+390 nodes collapsed)
function_declaration
function "function"
identifier "handleChange"
formal_parameters
( "("
required_parameter
identifier "event"
type_annotation
: ":"
generic_type
nested_type_identifier
identifier "React"
. "."
type_identifier "SyntheticEvent"
type_arguments
< "<"
union_type
type_identifier "HTMLInputElement"
| "|"
type_identifier "HTMLSelectElement"
> ">"
) ")"
statement_block
{ "{"
lexical_declaration
let "let"
variable_declarator
identifier "argIndex"
= "="
unary_expression
- "-"
number "1"
; ";"
if_statement
if "if"
parenthesized_expression
( "("
binary_expression
member_expression
member_expression
identifier "event"
. "."
property_identifier "currentTarget"
. "."
property_identifier "parentNode"
instanceof "instanceof"
identifier "HTMLElement"
) ")"
statement_block
{ "{"
lexical_declaration
const "const"
variable_declarator
identifier "index"
= "="
member_expression any 3:4
member_expression any 3:4
member_expression any 3:4
member_expression any 3:4
identifier "event"
. "."
property_identifier "currentTarget"
. "."
property_identifier "parentNode"
optional_chain
?. "?."
property_identifier "dataset"
. "."
property_identifier "argIndex"
; ";"
expression_statement
assignment_expression
identifier "argIndex"
= "="
ternary_expression
binary_expression
unary_expression
typeof "typeof"
identifier "index"
=== "==="
string
' "'"
string_fragment "string"
' "'"
? "?"
call_expression
member_expression
identifier "Number"
. "."
property_identifier "parseInt"
arguments
( "("
identifier "index"
, ","
number "10"
) ")"
: ":"
unary_expression
- "-"
number "1"
; ";"
} "}"
comment "// Handle special types"
if_statement
if "if"
parenthesized_expression
( "("
binary_expression
member_expression any 2:3
member_expression any 2:3
member_expression any 2:3
identifier "event"
. "."
property_identifier "currentTarget"
. "."
property_identifier "dataset"
. "."
property_identifier "encoding"
=== "==="
string
' "'"
string_fragment "base64"
' "'"
) ")"
statement_block (+33 nodes collapsed)
comment "// Handle normal types"
if_statement
if "if"
parenthesized_expression
( "("
binary_expression
member_expression
member_expression
identifier "event"
. "."
property_identifier "currentTarget"
. "."
property_identifier "type"
=== "==="
string
' "'"
string_fragment "number"
' "'"
) ")"
statement_block
{ "{"
return_statement
return "return"
call_expression
identifier "updateArg"
arguments
( "("
call_expression
member_expression
identifier "Number"
. "."
property_identifier "parseFloat"
arguments
( "("
member_expression
member_expression
identifier "event"
. "."
property_identifier "currentTarget"
. "."
property_identifier "value"
) ")"
, ","
identifier "argIndex"
) ")"
; ";"
} "}"
else_clause (+46 nodes collapsed)
return_statement
return "return"
call_expression
identifier "updateArg"
arguments
( "("
member_expression
member_expression
identifier "event"
. "."
property_identifier "currentTarget"
. "."
property_identifier "value"
, ","
identifier "argIndex"
) ")"
; ";"
} "}"
function_declaration (+418 nodes collapsed)
lexical_declaration
const "const"
variable_declarator
object_pattern
{ "{"
shorthand_property_identifier_pattern "error"
, ","
shorthand_property_identifier_pattern "preview"
, ","
shorthand_property_identifier_pattern "activeTagDefinition"
, ","
shorthand_property_identifier_pattern "activeTagData"
, ","
shorthand_property_identifier_pattern "rendering"
} "}"
= "="
identifier "state"
; ";"
if_statement
if "if"
parenthesized_expression
( "("
unary_expression
! "!"
identifier "activeTagData"
) ")"
statement_block
{ "{"
return_statement
return "return"
null "null"
; ";"
} "}"
lexical_declaration
let "let"
variable_declarator
identifier "finalPreview"
= "="
identifier "preview"
; ";"
if_statement (+50 nodes collapsed)
lexical_declaration
let "let"
variable_declarator
identifier "previewElement"
; ";"
if_statement
if "if"
parenthesized_expression
( "("
identifier "error"
) ")"
statement_block
{ "{"
comment "// detects a string to replace with a link to settings"
lexical_declaration
const "const"
variable_declarator
identifier "linkText"
= "="
string
' "'"
string_fragment "Insomnia Preferences → Security"
' "'"
; ";"
expression_statement
assignment_expression
identifier "previewElement"
= "="
ternary_expression
call_expression
member_expression
identifier "error"
. "."
property_identifier "endsWith"
arguments
( "("
identifier "linkText"
) ")"
? "?"
parenthesized_expression (+103 nodes collapsed)
: ":"
parenthesized_expression
( "("
jsx_self_closing_element (+33 nodes collapsed)
) ")"
; ";"
} "}"
else_clause (+72 nodes collapsed)
return_statement (+3741 nodes collapsed)
} "}"
; ";"