class="message collapsing has-emoji"> 77628cf8bf first comm 3 gadi atpakaļ SL.js 77628cf8bf first comm 3 gadi atpakaļ SM.js 77628cf8bf first comm 3 gadi atpakaļ SN.js 77628cf8bf first comm 3 gadi atpakaļ SO.js 77628cf8bf first comm 3 gadi atpakaļ SR.js 77628cf8bf first comm 3 gadi atpakaļ ST.js 77628cf8bf first comm 3 gadi atpakaļ SV.js 77628cf8bf first comm 3 gadi atpakaļ SY.js 77628cf8bf first comm 3 gadi atpakaļ SZ.js 77628cf8bf first comm 3 gadi atpakaļ TC.js 77628cf8bf first comm 3 gadi atpakaļ TD.js 77628cf8bf first comm 3 gadi atpakaļ TG.js 77628cf8bf first comm 3 gadi atpakaļ TH.js 77628cf8bf first comm 3 gadi atpakaļ TJ.js 77628cf8bf first comm 3 gadi atpakaļ TK.js 77628cf8bf first comm 3 gadi atpakaļ TL.js 77628cf8bf first comm 3 gadi atpakaļ TM.js 77628cf8bf first comm 3 gadi atpakaļ TN.js 77628cf8bf first comm 3 gadi atpakaļ TO.js 77628cf8bf first comm 3 gadi atpakaļ TR.js 77628cf8bf first comm 3 gadi atpakaļ TT.js 77628cf8bf first comm 3 gadi atpakaļ TV.js 77628cf8bf first comm 3 gadi atpakaļ TW.js 77628cf8bf first comm 3 gadi atpakaļ TZ.js 77628cf8bf first comm 3 gadi atpakaļ UA.js 77628cf8bf first comm 3 gadi atpakaļ UG.js 77628cf8bf first comm 3 gadi atpakaļ US.js 77628cf8bf first comm 3 gadi atpakaļ UY.js 77628cf8bf first comm 3 gadi atpakaļ UZ.js 77628cf8bf first comm 3 gadi atpakaļ VA.js 77628cf8bf first comm 3 gadi atpakaļ VC.js 77628cf8bf first comm 3 gadi atpakaļ VE.js 77628cf8bf first comm 3 gadi atpakaļ VG.js 77628cf8bf first comm 3 gadi atpakaļ VI.js 77628cf8bf first comm 3 gadi atpakaļ VN.js 77628cf8bf first comm 3 gadi atpakaļ VU.js 77628cf8bf first comm 3 gadi atpakaļ WF.js 77628cf8bf first comm 3 gadi atpakaļ WS.js 77628cf8bf first comm 3 gadi atpakaļ YE.js 77628cf8bf first comm 3 gadi atpakaļ YT.js 77628cf8bf first comm 3 gadi atpakaļ ZA.js 77628cf8bf first comm 3 gadi atpakaļ ZM.js 77628cf8bf first comm 3 gadi atpakaļ ZW.js 77628cf8bf first comm 3 gadi atpakaļ alt-af.js 77628cf8bf first comm 3 gadi atpakaļ alt-an.js 77628cf8bf first comm 3 gadi atpakaļ alt-as.js 77628cf8bf first comm 3 gadi atpakaļ alt-eu.js 77628cf8bf first comm 3 gadi atpakaļ alt-na.js 77628cf8bf first comm 3 gadi atpakaļ alt-oc.js 77628cf8bf first comm 3 gadi atpakaļ alt-sa.js 77628cf8bf first comm 3 gadi atpakaļ alt-ww.js 77628cf8bf first comm 3 gadi atpakaļ tum/network_report_server - Gogs: Simplico Git Service

暫無描述

tum 30f7226d9a first commit 2 年之前
..
dist 30f7226d9a first commit 2 年之前
LICENSE 30f7226d9a first commit 2 年之前
README.md 30f7226d9a first commit 2 年之前
package.json 30f7226d9a first commit 2 年之前

README.md

@jridgewell/resolve-uri

Resolve a URI relative to an optional base URI

Resolve any combination of absolute URIs, protocol-realtive URIs, absolute paths, or relative paths.

Installation

npm install @jridgewell/resolve-uri

Usage

function resolve(input: string, base?: string): string;
import resolve from '@jridgewell/resolve-uri';

resolve('foo', 'https://example.com'); // => 'https://example.com/foo'
Input Base Resolution Explanation
https://example.com any https://example.com/ Input is normalized only
//example.com https://base.com/ https://example.com/ Input inherits the base's protocol
//example.com rest //example.com/ Input is normalized only
/example https://base.com/ https://base.com/example Input inherits the base's origin
/example //base.com/ //base.com/example Input inherits the base's host and remains protocol relative
/example rest /example Input is normalized only
example https://base.com/dir/ https://base.com/dir/example Input is joined with the base
example https://base.com/file https://base.com/example Input is joined with the base without its file
example //base.com/dir/ //base.com/dir/example Input is joined with the base's last directory
example //base.com/file //base.com/example Input is joined with the base without its file
example /base/dir/ /base/dir/example Input is joined with the base's last directory
example /base/file /base/example Input is joined with the base without its file
example base/dir/ base/dir/example Input is joined with the base's last directory
example base/file base/example Input is joined with the base without its file