UNPKG

@signalapp/mock-server

Version:
29 lines (28 loc) 787 B
"use strict"; // Copyright 2022 Signal Messenger, LLC // SPDX-License-Identifier: AGPL-3.0-only Object.defineProperty(exports, "__esModule", { value: true }); exports.attachmentToPointer = attachmentToPointer; function attachmentToPointer(cdnKey, attachment) { return { contentType: 'application/octet-stream', attachmentIdentifier: { cdnKey, }, key: attachment.key, size: attachment.size, digest: attachment.digest, clientUuid: null, thumbnail: null, incrementalMac: null, chunkSize: null, fileName: null, flags: null, width: null, height: null, caption: null, blurHash: null, uploadTimestamp: null, cdnNumber: null, }; }