UNPKG

@featurevisor/core

Version:

Core package of Featurevisor for Node.js usage

18 lines 634 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getLastModifiedFromHistory = getLastModifiedFromHistory; function getLastModifiedFromHistory(fullHistory, type, key) { const lastModified = fullHistory.find((entry) => { return entry.entities.find((entity) => { return entity.type === type && entity.key === key; }); }); if (lastModified) { return { commit: lastModified.commit, timestamp: lastModified.timestamp, author: lastModified.author, }; } } //# sourceMappingURL=getLastModifiedFromHistory.js.map