-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
Removing deprecated insomnia-url dependency
- Loading branch information
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export { setDefaultProtocol } from './protocol'; | ||
export { joinUrlAndQueryString, extractQueryStringFromUrl, buildQueryParameter, buildQueryStringFromParams, deconstructQueryStringToParams, smartEncodeUrl, flexibleEncodeComponent, } from './querystring'; | ||
//# sourceMappingURL=index.d.ts.map |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/** | ||
* Set a default protocol for a URL | ||
* @param url URL to set protocol on | ||
* @param [defaultProto='http:'] default protocol | ||
*/ | ||
export declare const setDefaultProtocol: (url: string, defaultProto?: string | undefined) => string; | ||
//# sourceMappingURL=protocol.d.ts.map |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
export declare const getJoiner: (url: string) => "?" | "&"; | ||
/** | ||
* Join querystring to URL | ||
*/ | ||
export declare const joinUrlAndQueryString: (url: string, qs: string) => string; | ||
/** | ||
* Extract querystring from URL | ||
*/ | ||
export declare const extractQueryStringFromUrl: (url: string) => string; | ||
/** | ||
* Build a querystring parameter from a param object | ||
*/ | ||
export declare const buildQueryParameter: (param: { | ||
name?: string; | ||
value?: string | number; | ||
}, strict?: boolean | undefined) => string; | ||
/** | ||
* Build a querystring from a list of name/value pairs | ||
*/ | ||
export declare const buildQueryStringFromParams: (parameters: { | ||
name: string; | ||
value?: string; | ||
}[], strict?: boolean | undefined) => string; | ||
/** | ||
* Deconstruct a querystring to name/value pairs | ||
* @param [qs] {string} | ||
* @param [strict=true] {boolean} - allow empty names and values | ||
* @returns {{name: string, value: string}[]} | ||
*/ | ||
export declare const deconstructQueryStringToParams: (qs: string, strict?: boolean | undefined) => { | ||
name: string; | ||
value: string; | ||
}[]; | ||
/** | ||
* Automatically encode the path and querystring components | ||
* @param url url to encode | ||
* @param encode enable encoding | ||
*/ | ||
export declare const smartEncodeUrl: (url: string, encode?: boolean | undefined) => string; | ||
/** | ||
* URL encode a string in a flexible way | ||
* @param str string to encode | ||
* @param ignore characters to ignore | ||
*/ | ||
export declare const flexibleEncodeComponent: (str?: string, ignore?: string) => string; | ||
//# sourceMappingURL=querystring.d.ts.map |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.