Skip to content

@pumpkin-plugins/static-hermes-runtime API / hermes/source / parseHermesSourcePin

Function: parseHermesSourcePin() ​

parseHermesSourcePin(value): HermesSourcePin

Defined in: hermes/source.ts:38

Validate the JSON source pin before its repository or revision reaches a command invocation.

Parameters ​

value ​

unknown

Parsed JSON value from the source pin file.

Returns ​

HermesSourcePin

A normalized pin with a lowercase commit SHA.

Throws ​

If the repository is not a public HTTPS URL or the branch or commit is invalid.

pumpkin-plugins documentation