Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function resolve(dataOrUri, opts) {
return jr.parse(dataOrUri, _.defaults(opts, {
store: _store,
retriever: defaultRetriever
}));
}
export function create(dataOrUri, opts) {
for (let j in s.flows) {
const f = s.flows[j];
['authorizationUrl', 'tokenUrl', 'refreshUrl'].forEach(k => {
if (f[k]) {
f[k] = new URL(f[k], baseUrl).toString();
}
});
}
}
}
}
res.json(out);
}
});
this.document = await refs.parse(this.document, this.parseOptions);
for (let resource of this.resources) {
await resource.router(router, options);
}
router.use(this.handleError);
return router;
})();
}