We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Notice on https://github.com/whitlockjc/json-refs/blob/master/index.js#L101
function combineURIs (u1, u2) { ... return (remoteUriTypes.indexOf(combinedDetails.reference) === -1 && -> combinedDetails.path.indexOf('../') === 0 ? '../' : '') + URI.serialize(combinedDetails);
combinedDetails.path.indexOf('../') === 0 ? '../' : '' has the effect of changing location values starting with ../../../foobar to ../foobar.
combinedDetails.path.indexOf('../') === 0 ? '../' : ''
../../../foobar
../foobar
My current work around in node is to prepend the result of process.cwd() + '/' to the location.
const jsonRefsOptions = location => { return { filter: ['relative', 'remote'], loaderOptions: { processContent: (res, callback) => { callback(null, YAML.load(res.text)); } }, location: `${process.cwd()}/${location}`, includeInvalid: true }; };
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Notice on https://github.com/whitlockjc/json-refs/blob/master/index.js#L101
combinedDetails.path.indexOf('../') === 0 ? '../' : ''
has the effect of changing location values starting with../../../foobar
to../foobar
.My current work around in node is to prepend the result of process.cwd() + '/' to the location.
The text was updated successfully, but these errors were encountered: