UNPKG

@softchef/cdk-iot-device-management

Version:

IoT device management is composed of things, thing types, thing groups, jobs, files API services. The constructs can be used independently, that are based on full-managed service to create an API Gateway & Lambda function.

13 lines (12 loc) 433 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.blobHasher = void 0; const chunked_blob_reader_1 = require("@aws-sdk/chunked-blob-reader"); const blobHasher = async function blobHasher(hashCtor, blob) { const hash = new hashCtor(); await chunked_blob_reader_1.blobReader(blob, (chunk) => { hash.update(chunk); }); return hash.digest(); }; exports.blobHasher = blobHasher;