url-parse/000755 001751 000177 0000000000 14522451650014457 5ustar00runner000000 000000 1452245165014522451650url-parse/LICENSE000644 001751 000177 0000002165 14522451650015470 0ustar00runner000000 000000 1452245165014522451650 MIT License Copyright (c) Microsoft Corporation. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE url-parse/README.md000644 001751 000177 0000001166 14522451650015736 0ustar00runner000000 000000 1452250113714522451650# Installation > `npm install --save @types/url-parse` # Summary This package contains type definitions for url-parse (https://github.com/unshiftio/url-parse). # Details Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/url-parse. ### Additional Details * Last updated: Tue, 07 Nov 2023 15:11:36 GMT * Dependencies: none # Credits These definitions were written by [Hari Sivaramakrishnan](https://github.com/harisiva), [Dmitry Dushkin](https://github.com/DimitryDushkin), [David Golightly](https://github.com/davidgoli), and [Kit Song](https://github.com/kitsong). url-parse/index.d.ts000644 001751 000177 0000005217 14522451650016365 0ustar00runner000000 000000 1452245165014522451650declare namespace URLParse { type URLPart = | "auth" | "hash" | "host" | "hostname" | "href" | "origin" | "password" | "pathname" | "port" | "protocol" | "query" | "slashes" | "username"; type QueryParser> = (query: string) => T; type StringifyQuery = (query: object) => string; } interface URLParse { readonly auth: string; readonly hash: string; readonly host: string; readonly hostname: string; readonly href: string; readonly origin: string; readonly password: string; readonly pathname: string; readonly port: string; readonly protocol: string; readonly query: Query; readonly slashes: boolean; readonly username: string; set( part: Part, value: URLParse[Part] | undefined, fn?: false, ): URLParse; set( part: Part, value: URLParse[Part] | undefined, fn?: URLParse.QueryParser, ): URLParse; toString(stringify?: URLParse.StringifyQuery): string; } declare const URLParse: { new(address: string, parser?: false): URLParse; new(address: string, parser: true): URLParse>; new(address: string, parser?: URLParse.QueryParser): URLParse; new(address: string, location?: string | object, parser?: false): URLParse; new( address: string, location: string | object | undefined, parser: true, ): URLParse>; new(address: string, location: string | object | undefined, parser: URLParse.QueryParser): URLParse; (address: string, parser?: false): URLParse; (address: string, parser: true): URLParse>; (address: string, parser: URLParse.QueryParser): URLParse; (address: string, location?: string | object, parser?: false): URLParse; ( address: string, location: string | object | undefined, parser: true, ): URLParse>; (address: string, location: string | object | undefined, parser: URLParse.QueryParser): URLParse; extractProtocol(url: string): { slashes: boolean; protocol: string; rest: string; }; location(url: string): object; qs: { parse: URLParse.QueryParser; stringify: URLParse.StringifyQuery; }; trimLeft(url: string): string; }; export = URLParse; url-parse/package.json000644 001751 000177 0000002355 14522451650016746 0ustar00runner000000 000000 1452250113714522451650{ "name": "@types/url-parse", "version": "1.4.11", "description": "TypeScript definitions for url-parse", "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/url-parse", "license": "MIT", "contributors": [ { "name": "Hari Sivaramakrishnan", "githubUsername": "harisiva", "url": "https://github.com/harisiva" }, { "name": "Dmitry Dushkin", "githubUsername": "DimitryDushkin", "url": "https://github.com/DimitryDushkin" }, { "name": "David Golightly", "githubUsername": "davidgoli", "url": "https://github.com/davidgoli" }, { "name": "Kit Song", "githubUsername": "kitsong", "url": "https://github.com/kitsong" } ], "main": "", "types": "index.d.ts", "repository": { "type": "git", "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", "directory": "types/url-parse" }, "scripts": {}, "dependencies": {}, "typesPublisherContentHash": "12741d5a86246bd0ad2f18486674a5e86a0ca6a6c828257228fe6905643fcef7", "typeScriptVersion": "4.5" }