UNPKG

jsonld-signatures-merkleproof2019

Version:

A jsonld signature implementation to support MerkleProof2019 verification in Verifiable Credential context

8 lines (7 loc) 330 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.safelyAppendUrlParameter = safelyAppendUrlParameter; function safelyAppendUrlParameter(url, parameterKey, parameterValue) { const separator = url.includes('?') ? '&' : '?'; return `${url}${separator}${parameterKey}=${parameterValue}`; }