UNPKG

@villedemontreal/workit-stepfunction-client

Version:

Camunda BPM client for WorkIt that works with Camunda platform powered by TypeScript

20 lines 634 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.dateTimeReviver = void 0; /* * Copyright (c) 2025 Ville de Montreal. All rights reserved. * Licensed under the MIT license. * See LICENSE file in the project root for full license information. */ const dateTimeReviver = (key, value) => { let a; if (typeof value === 'string' && value[0] === '2' && value[value.length - 1] === 'Z') { a = Date.parse(value); if (!isNaN(a)) { return new Date(a); } } return value; }; exports.dateTimeReviver = dateTimeReviver; //# sourceMappingURL=datetime.js.map