@graphql-inspector/action
Version:
GraphQL Inspector functionality for GitHub Actions
12 lines (11 loc) • 440 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.findFirstChangeByPath = exports.findChangesByPath = void 0;
function findChangesByPath(changes, path) {
return changes.filter(c => c.path === path);
}
exports.findChangesByPath = findChangesByPath;
function findFirstChangeByPath(changes, path) {
return findChangesByPath(changes, path)[0];
}
exports.findFirstChangeByPath = findFirstChangeByPath;