UNPKG

@stoplight/spectral

Version:

A flexible object linter with out of the box support for OpenAPI v2 and v3.

12 lines 407 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const URL = require('url').URL; const path_1 = require("path"); function resolvePath(from, to) { if (from.startsWith('http')) { return new URL(to, from).href; } return path_1.resolve(path_1.dirname(path_1.resolve(process.cwd(), from)), to); } exports.resolvePath = resolvePath; //# sourceMappingURL=path.js.map