1 2 3 4 5 6 7 8 9 10 11 12 13 14 | 517x 514x 514x 514x | import { getPortByParsedUri } from './utils.js'; import Uri from './Uri.js'; export default class UserUri extends Uri { constructor (rawUri, contextOptions) { super(rawUri); const parsedPort = getPortByParsedUri(this._value.parsedUri, contextOptions); this._value.parsedUri.port = parsedPort; this._value.splittedUri.port = parsedPort.toString() || null; } } |