MCPcopy Create free account
hub / github.com/mailvelope/mailvelope / fetch

Function fetch

src/modules/mveloKeyServer.js:78–85  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

76 * @yield {Object} The public key json object
77 */
78export async function fetch(options) {
79 let jsonKey;
80 const response = await self.fetch(url(options));
81 if (response.status === 200) {
82 jsonKey = await response.json();
83 }
84 return jsonKey;
85}
86
87/**
88 * Upload a public key to the server for verification by the user. Normally

Callers 7

retrievePubKeyViaWKDFunction · 0.85
requestLicenseFunction · 0.85
getAuthTokensFunction · 0.85
getRefreshedAccessTokenFunction · 0.85
revokeTokenFunction · 0.85
fetchJSONFunction · 0.85
loadFileFunction · 0.85

Calls 1

urlFunction · 0.70

Tested by

no test coverage detected