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.

23 lines (17 loc) 596 B
"use strict"; var Event = require("./event"); function ProgressEvent(type, progressEventRaw, target) { this.initEvent(type, false, false, target); this.loaded = typeof progressEventRaw.loaded === "number" ? progressEventRaw.loaded : null; this.total = typeof progressEventRaw.total === "number" ? progressEventRaw.total : null; this.lengthComputable = Boolean(progressEventRaw.total); } ProgressEvent.prototype = new Event(); ProgressEvent.prototype.constructor = ProgressEvent; module.exports = ProgressEvent;