persona-community-5/.pnpm-store/v3/files/1b/6ef3f6e0699a1f6e18e90b312ea3b64b112582da60c2edecd8cf3ca7a78981bf62cfa91d7380d5b70799b47da4b73b26b44462913e856c0edaacc8f6d43488
rdev-worker a1d0d1bf1c
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
build: /implement-feature community-ui --requirements 'Build the React commu...
2026-02-24 08:22:30 +00:00

25 lines
922 B
Plaintext

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.NoIdenticalPaths = void 0;
const NoIdenticalPaths = () => {
return {
Paths(pathMap, { report, location }) {
const Paths = new Map();
for (const pathName of Object.keys(pathMap)) {
const id = pathName.replace(/{.+?}/g, '{VARIABLE}');
const existingSamePath = Paths.get(id);
if (existingSamePath) {
report({
message: `The path already exists which differs only by path parameter name(s): \`${existingSamePath}\` and \`${pathName}\`.`,
location: location.child([pathName]).key(),
});
}
else {
Paths.set(id, pathName);
}
}
},
};
};
exports.NoIdenticalPaths = NoIdenticalPaths;