"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.splitNodeId = exports.createNodeId = exports.nodeIdContainsSequence = void 0;
function nodeIdContainsSequence(nodeId, pkgId1, pkgId2) {
    return nodeId.includes(`>${pkgId1}>${pkgId2}>`);
}
exports.nodeIdContainsSequence = nodeIdContainsSequence;
function createNodeId(parentNodeId, pkgId) {
    return `${parentNodeId}${pkgId}>`;
}
exports.createNodeId = createNodeId;
function splitNodeId(nodeId) {
    return nodeId.substr(1, nodeId.length - 2).split('>');
}
exports.splitNodeId = splitNodeId;
//# sourceMappingURL=nodeIdUtils.js.map