UNPKG

cnabjs

Version:

A library for loading and working with CNAB (Cloud Native Application Bundle) manifests

18 lines 610 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var Claim; (function (Claim) { /** * Parses a claim from JSON. * @param jsonText The JSON formatted text of the claim. * @returns A Claim object representing the claim. */ function parse(jsonText) { const claim = JSON.parse(jsonText); claim.createdTime = new Date(claim.created); claim.modifiedTime = new Date(claim.modified); return claim; } Claim.parse = parse; })(Claim = exports.Claim || (exports.Claim = {})); //# sourceMappingURL=claim.js.map