@wordpress/url 4.26.1-next.719a03cbe.0 → 4.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -0
- package/README.md +12 -12
- package/build/add-query-args.js +4 -4
- package/build/add-query-args.js.map +1 -1
- package/build/build-query-string.js +3 -3
- package/build/build-query-string.js.map +1 -1
- package/build/clean-for-slug.js +2 -2
- package/build/clean-for-slug.js.map +1 -1
- package/build/filter-url-for-display.js +3 -3
- package/build/filter-url-for-display.js.map +1 -1
- package/build/get-authority.js +2 -2
- package/build/get-authority.js.map +1 -1
- package/build/get-filename.js +2 -2
- package/build/get-filename.js.map +1 -1
- package/build/get-fragment.js +2 -2
- package/build/get-fragment.js.map +1 -1
- package/build/get-path-and-query-string.js +2 -2
- package/build/get-path-and-query-string.js.map +1 -1
- package/build/get-path.js +2 -2
- package/build/get-path.js.map +1 -1
- package/build/get-protocol.js +2 -2
- package/build/get-protocol.js.map +1 -1
- package/build/get-query-arg.js +3 -11
- package/build/get-query-arg.js.map +1 -1
- package/build/get-query-args.js +5 -11
- package/build/get-query-args.js.map +1 -1
- package/build/get-query-string.js +2 -2
- package/build/get-query-string.js.map +1 -1
- package/build/has-query-arg.js +3 -3
- package/build/has-query-arg.js.map +1 -1
- package/build/index.js.map +1 -1
- package/build/is-email.js +2 -2
- package/build/is-email.js.map +1 -1
- package/build/is-phone-number.js +2 -2
- package/build/is-phone-number.js.map +1 -1
- package/build/is-url.js +2 -2
- package/build/is-url.js.map +1 -1
- package/build/is-valid-authority.js +2 -2
- package/build/is-valid-authority.js.map +1 -1
- package/build/is-valid-fragment.js +2 -2
- package/build/is-valid-fragment.js.map +1 -1
- package/build/is-valid-path.js +2 -2
- package/build/is-valid-path.js.map +1 -1
- package/build/is-valid-protocol.js +2 -2
- package/build/is-valid-protocol.js.map +1 -1
- package/build/is-valid-query-string.js +2 -2
- package/build/is-valid-query-string.js.map +1 -1
- package/build/normalize-path.js +2 -2
- package/build/normalize-path.js.map +1 -1
- package/build/prepend-http.js +2 -2
- package/build/prepend-http.js.map +1 -1
- package/build/prepend-https.js +2 -2
- package/build/prepend-https.js.map +1 -1
- package/build/remove-query-args.js +3 -3
- package/build/remove-query-args.js.map +1 -1
- package/build/safe-decode-uri-component.js +2 -2
- package/build/safe-decode-uri-component.js.map +1 -1
- package/build/safe-decode-uri.js +2 -2
- package/build/safe-decode-uri.js.map +1 -1
- package/build-module/add-query-args.js +4 -4
- package/build-module/add-query-args.js.map +1 -1
- package/build-module/build-query-string.js +3 -3
- package/build-module/build-query-string.js.map +1 -1
- package/build-module/clean-for-slug.js +2 -2
- package/build-module/clean-for-slug.js.map +1 -1
- package/build-module/filter-url-for-display.js +3 -3
- package/build-module/filter-url-for-display.js.map +1 -1
- package/build-module/get-authority.js +2 -2
- package/build-module/get-authority.js.map +1 -1
- package/build-module/get-filename.js +2 -2
- package/build-module/get-filename.js.map +1 -1
- package/build-module/get-fragment.js +2 -2
- package/build-module/get-fragment.js.map +1 -1
- package/build-module/get-path-and-query-string.js +2 -2
- package/build-module/get-path-and-query-string.js.map +1 -1
- package/build-module/get-path.js +2 -2
- package/build-module/get-path.js.map +1 -1
- package/build-module/get-protocol.js +2 -2
- package/build-module/get-protocol.js.map +1 -1
- package/build-module/get-query-arg.js +3 -12
- package/build-module/get-query-arg.js.map +1 -1
- package/build-module/get-query-args.js +5 -12
- package/build-module/get-query-args.js.map +1 -1
- package/build-module/get-query-string.js +2 -2
- package/build-module/get-query-string.js.map +1 -1
- package/build-module/has-query-arg.js +3 -3
- package/build-module/has-query-arg.js.map +1 -1
- package/build-module/index.js.map +1 -1
- package/build-module/is-email.js +2 -2
- package/build-module/is-email.js.map +1 -1
- package/build-module/is-phone-number.js +2 -2
- package/build-module/is-phone-number.js.map +1 -1
- package/build-module/is-url.js +2 -2
- package/build-module/is-url.js.map +1 -1
- package/build-module/is-valid-authority.js +2 -2
- package/build-module/is-valid-authority.js.map +1 -1
- package/build-module/is-valid-fragment.js +2 -2
- package/build-module/is-valid-fragment.js.map +1 -1
- package/build-module/is-valid-path.js +2 -2
- package/build-module/is-valid-path.js.map +1 -1
- package/build-module/is-valid-protocol.js +2 -2
- package/build-module/is-valid-protocol.js.map +1 -1
- package/build-module/is-valid-query-string.js +2 -2
- package/build-module/is-valid-query-string.js.map +1 -1
- package/build-module/normalize-path.js +2 -2
- package/build-module/normalize-path.js.map +1 -1
- package/build-module/prepend-http.js +2 -2
- package/build-module/prepend-http.js.map +1 -1
- package/build-module/prepend-https.js +2 -2
- package/build-module/prepend-https.js.map +1 -1
- package/build-module/remove-query-args.js +3 -3
- package/build-module/remove-query-args.js.map +1 -1
- package/build-module/safe-decode-uri-component.js +2 -2
- package/build-module/safe-decode-uri-component.js.map +1 -1
- package/build-module/safe-decode-uri.js +2 -2
- package/build-module/safe-decode-uri.js.map +1 -1
- package/build-types/add-query-args.d.ts +5 -5
- package/build-types/add-query-args.d.ts.map +1 -1
- package/build-types/build-query-string.d.ts +3 -3
- package/build-types/build-query-string.d.ts.map +1 -1
- package/build-types/clean-for-slug.d.ts +3 -3
- package/build-types/clean-for-slug.d.ts.map +1 -1
- package/build-types/filter-url-for-display.d.ts +4 -4
- package/build-types/filter-url-for-display.d.ts.map +1 -1
- package/build-types/get-authority.d.ts +3 -3
- package/build-types/get-authority.d.ts.map +1 -1
- package/build-types/get-filename.d.ts +3 -3
- package/build-types/get-filename.d.ts.map +1 -1
- package/build-types/get-fragment.d.ts +3 -3
- package/build-types/get-fragment.d.ts.map +1 -1
- package/build-types/get-path-and-query-string.d.ts +3 -3
- package/build-types/get-path-and-query-string.d.ts.map +1 -1
- package/build-types/get-path.d.ts +3 -3
- package/build-types/get-path.d.ts.map +1 -1
- package/build-types/get-protocol.d.ts +3 -3
- package/build-types/get-protocol.d.ts.map +1 -1
- package/build-types/get-query-arg.d.ts +8 -14
- package/build-types/get-query-arg.d.ts.map +1 -1
- package/build-types/get-query-args.d.ts +6 -5
- package/build-types/get-query-args.d.ts.map +1 -1
- package/build-types/get-query-string.d.ts +3 -3
- package/build-types/get-query-string.d.ts.map +1 -1
- package/build-types/has-query-arg.d.ts +4 -4
- package/build-types/has-query-arg.d.ts.map +1 -1
- package/build-types/index.d.ts +28 -28
- package/build-types/index.d.ts.map +1 -1
- package/build-types/is-email.d.ts +3 -3
- package/build-types/is-email.d.ts.map +1 -1
- package/build-types/is-phone-number.d.ts +3 -3
- package/build-types/is-phone-number.d.ts.map +1 -1
- package/build-types/is-url.d.ts +3 -3
- package/build-types/is-url.d.ts.map +1 -1
- package/build-types/is-valid-authority.d.ts +3 -3
- package/build-types/is-valid-authority.d.ts.map +1 -1
- package/build-types/is-valid-fragment.d.ts +3 -3
- package/build-types/is-valid-fragment.d.ts.map +1 -1
- package/build-types/is-valid-path.d.ts +3 -3
- package/build-types/is-valid-path.d.ts.map +1 -1
- package/build-types/is-valid-protocol.d.ts +3 -3
- package/build-types/is-valid-protocol.d.ts.map +1 -1
- package/build-types/is-valid-query-string.d.ts +3 -3
- package/build-types/is-valid-query-string.d.ts.map +1 -1
- package/build-types/normalize-path.d.ts +3 -3
- package/build-types/normalize-path.d.ts.map +1 -1
- package/build-types/prepend-http.d.ts +3 -3
- package/build-types/prepend-http.d.ts.map +1 -1
- package/build-types/prepend-https.d.ts +3 -3
- package/build-types/prepend-https.d.ts.map +1 -1
- package/build-types/remove-query-args.d.ts +4 -4
- package/build-types/remove-query-args.d.ts.map +1 -1
- package/build-types/safe-decode-uri-component.d.ts +3 -3
- package/build-types/safe-decode-uri-component.d.ts.map +1 -1
- package/build-types/safe-decode-uri.d.ts +3 -3
- package/build-types/safe-decode-uri.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/{add-query-args.js → add-query-args.ts} +8 -5
- package/src/{build-query-string.js → build-query-string.ts} +7 -6
- package/src/{clean-for-slug.js → clean-for-slug.ts} +3 -3
- package/src/{filter-url-for-display.js → filter-url-for-display.ts} +7 -4
- package/src/{get-authority.js → get-authority.ts} +3 -3
- package/src/{get-filename.js → get-filename.ts} +3 -3
- package/src/{get-fragment.js → get-fragment.ts} +3 -3
- package/src/{get-path-and-query-string.js → get-path-and-query-string.ts} +3 -3
- package/src/{get-path.js → get-path.ts} +3 -3
- package/src/{get-protocol.js → get-protocol.ts} +3 -3
- package/src/get-query-arg.ts +30 -0
- package/src/{get-query-args.js → get-query-args.ts} +9 -12
- package/src/{get-query-string.js → get-query-string.ts} +3 -3
- package/src/{has-query-arg.js → has-query-arg.ts} +4 -4
- package/src/{is-email.js → is-email.ts} +3 -3
- package/src/{is-phone-number.js → is-phone-number.ts} +3 -3
- package/src/{is-url.js → is-url.ts} +3 -3
- package/src/{is-valid-authority.js → is-valid-authority.ts} +3 -3
- package/src/{is-valid-fragment.js → is-valid-fragment.ts} +3 -3
- package/src/{is-valid-path.js → is-valid-path.ts} +3 -3
- package/src/{is-valid-protocol.js → is-valid-protocol.ts} +3 -3
- package/src/{is-valid-query-string.js → is-valid-query-string.ts} +3 -3
- package/src/{normalize-path.js → normalize-path.ts} +3 -3
- package/src/{prepend-http.js → prepend-http.ts} +3 -3
- package/src/{prepend-https.js → prepend-https.ts} +3 -3
- package/src/{remove-query-args.js → remove-query-args.ts} +4 -4
- package/src/{safe-decode-uri-component.js → safe-decode-uri-component.ts} +3 -3
- package/src/{safe-decode-uri.js → safe-decode-uri.ts} +3 -3
- package/src/test/index.js +2 -2
- package/tsconfig.tsbuildinfo +1 -1
- package/src/get-query-arg.js +0 -29
- /package/src/{index.js → index.ts} +0 -0
|
@@ -3,16 +3,16 @@ const PHONE_REGEXP = /^(tel:)?(\+)?\d{6,15}$/;
|
|
|
3
3
|
/**
|
|
4
4
|
* Determines whether the given string looks like a phone number.
|
|
5
5
|
*
|
|
6
|
-
* @param
|
|
6
|
+
* @param phoneNumber The string to scrutinize.
|
|
7
7
|
*
|
|
8
8
|
* @example
|
|
9
9
|
* ```js
|
|
10
10
|
* const isPhoneNumber = isPhoneNumber('+1 (555) 123-4567'); // true
|
|
11
11
|
* ```
|
|
12
12
|
*
|
|
13
|
-
* @return
|
|
13
|
+
* @return Whether or not it looks like a phone number.
|
|
14
14
|
*/
|
|
15
|
-
export function isPhoneNumber( phoneNumber ) {
|
|
15
|
+
export function isPhoneNumber( phoneNumber: string ): boolean {
|
|
16
16
|
// Remove any separator from phone number.
|
|
17
17
|
phoneNumber = phoneNumber.replace( /[-.() ]/g, '' );
|
|
18
18
|
return PHONE_REGEXP.test( phoneNumber );
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Determines whether the given string looks like a URL.
|
|
3
3
|
*
|
|
4
|
-
* @param
|
|
4
|
+
* @param url The string to scrutinise.
|
|
5
5
|
*
|
|
6
6
|
* @example
|
|
7
7
|
* ```js
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
* @see https://url.spec.whatwg.org/
|
|
12
12
|
* @see https://url.spec.whatwg.org/#valid-url-string
|
|
13
13
|
*
|
|
14
|
-
* @return
|
|
14
|
+
* @return Whether or not it looks like a URL.
|
|
15
15
|
*/
|
|
16
|
-
export function isURL( url ) {
|
|
16
|
+
export function isURL( url: string ): boolean {
|
|
17
17
|
// A URL can be considered value if the `URL` constructor is able to parse
|
|
18
18
|
// it. The constructor throws an error for an invalid URL.
|
|
19
19
|
try {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Checks for invalid characters within the provided authority.
|
|
3
3
|
*
|
|
4
|
-
* @param
|
|
4
|
+
* @param authority A string containing the URL authority.
|
|
5
5
|
*
|
|
6
6
|
* @example
|
|
7
7
|
* ```js
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
* const isNotValid = isValidAuthority( 'wordpress#org' ); // false
|
|
10
10
|
* ```
|
|
11
11
|
*
|
|
12
|
-
* @return
|
|
12
|
+
* @return True if the argument contains a valid authority.
|
|
13
13
|
*/
|
|
14
|
-
export function isValidAuthority( authority ) {
|
|
14
|
+
export function isValidAuthority( authority: string ): boolean {
|
|
15
15
|
if ( ! authority ) {
|
|
16
16
|
return false;
|
|
17
17
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Checks for invalid characters within the provided fragment.
|
|
3
3
|
*
|
|
4
|
-
* @param
|
|
4
|
+
* @param fragment The url fragment.
|
|
5
5
|
*
|
|
6
6
|
* @example
|
|
7
7
|
* ```js
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
* const isNotValid = isValidFragment( '#invalid-#fragment' ); // false
|
|
10
10
|
* ```
|
|
11
11
|
*
|
|
12
|
-
* @return
|
|
12
|
+
* @return True if the argument contains a valid fragment.
|
|
13
13
|
*/
|
|
14
|
-
export function isValidFragment( fragment ) {
|
|
14
|
+
export function isValidFragment( fragment: string ): boolean {
|
|
15
15
|
if ( ! fragment ) {
|
|
16
16
|
return false;
|
|
17
17
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Checks for invalid characters within the provided path.
|
|
3
3
|
*
|
|
4
|
-
* @param
|
|
4
|
+
* @param path The URL path.
|
|
5
5
|
*
|
|
6
6
|
* @example
|
|
7
7
|
* ```js
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
* const isNotValid = isValidPath( '/invalid?test/path/' ); // false
|
|
10
10
|
* ```
|
|
11
11
|
*
|
|
12
|
-
* @return
|
|
12
|
+
* @return True if the argument contains a valid path
|
|
13
13
|
*/
|
|
14
|
-
export function isValidPath( path ) {
|
|
14
|
+
export function isValidPath( path: string ): boolean {
|
|
15
15
|
if ( ! path ) {
|
|
16
16
|
return false;
|
|
17
17
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Tests if a url protocol is valid.
|
|
3
3
|
*
|
|
4
|
-
* @param
|
|
4
|
+
* @param protocol The url protocol.
|
|
5
5
|
*
|
|
6
6
|
* @example
|
|
7
7
|
* ```js
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
* const isNotValid = isValidProtocol( 'https :' ); // false
|
|
10
10
|
* ```
|
|
11
11
|
*
|
|
12
|
-
* @return
|
|
12
|
+
* @return True if the argument is a valid protocol (e.g. http:, tel:).
|
|
13
13
|
*/
|
|
14
|
-
export function isValidProtocol( protocol ) {
|
|
14
|
+
export function isValidProtocol( protocol: string ): boolean {
|
|
15
15
|
if ( ! protocol ) {
|
|
16
16
|
return false;
|
|
17
17
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Checks for invalid characters within the provided query string.
|
|
3
3
|
*
|
|
4
|
-
* @param
|
|
4
|
+
* @param queryString The query string.
|
|
5
5
|
*
|
|
6
6
|
* @example
|
|
7
7
|
* ```js
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
* const isNotValid = isValidQueryString( 'query=true?another=false' ); // false
|
|
10
10
|
* ```
|
|
11
11
|
*
|
|
12
|
-
* @return
|
|
12
|
+
* @return True if the argument contains a valid query string.
|
|
13
13
|
*/
|
|
14
|
-
export function isValidQueryString( queryString ) {
|
|
14
|
+
export function isValidQueryString( queryString: string ): boolean {
|
|
15
15
|
if ( ! queryString ) {
|
|
16
16
|
return false;
|
|
17
17
|
}
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
* will be treated as identical, regardless of order they appear in the original
|
|
4
4
|
* text.
|
|
5
5
|
*
|
|
6
|
-
* @param
|
|
6
|
+
* @param path Original path.
|
|
7
7
|
*
|
|
8
|
-
* @return
|
|
8
|
+
* @return Normalized path.
|
|
9
9
|
*/
|
|
10
|
-
export function normalizePath( path ) {
|
|
10
|
+
export function normalizePath( path: string ): string {
|
|
11
11
|
const split = path.split( '?' );
|
|
12
12
|
const query = split[ 1 ];
|
|
13
13
|
const base = split[ 0 ];
|
|
@@ -8,16 +8,16 @@ const USABLE_HREF_REGEXP = /^(?:[a-z]+:|#|\?|\.|\/)/i;
|
|
|
8
8
|
/**
|
|
9
9
|
* Prepends "http://" to a url, if it looks like something that is meant to be a TLD.
|
|
10
10
|
*
|
|
11
|
-
* @param
|
|
11
|
+
* @param url The URL to test.
|
|
12
12
|
*
|
|
13
13
|
* @example
|
|
14
14
|
* ```js
|
|
15
15
|
* const actualURL = prependHTTP( 'wordpress.org' ); // http://wordpress.org
|
|
16
16
|
* ```
|
|
17
17
|
*
|
|
18
|
-
* @return
|
|
18
|
+
* @return The updated URL.
|
|
19
19
|
*/
|
|
20
|
-
export function prependHTTP( url ) {
|
|
20
|
+
export function prependHTTP( url: string ): string {
|
|
21
21
|
if ( ! url ) {
|
|
22
22
|
return url;
|
|
23
23
|
}
|
|
@@ -8,16 +8,16 @@ import { prependHTTP } from './prepend-http';
|
|
|
8
8
|
*
|
|
9
9
|
* Note: this will not replace "http://" with "https://".
|
|
10
10
|
*
|
|
11
|
-
* @param
|
|
11
|
+
* @param url The URL to test.
|
|
12
12
|
*
|
|
13
13
|
* @example
|
|
14
14
|
* ```js
|
|
15
15
|
* const actualURL = prependHTTPS( 'wordpress.org' ); // https://wordpress.org
|
|
16
16
|
* ```
|
|
17
17
|
*
|
|
18
|
-
* @return
|
|
18
|
+
* @return The updated URL.
|
|
19
19
|
*/
|
|
20
|
-
export function prependHTTPS( url ) {
|
|
20
|
+
export function prependHTTPS( url: string ): string {
|
|
21
21
|
if ( ! url ) {
|
|
22
22
|
return url;
|
|
23
23
|
}
|
|
@@ -7,17 +7,17 @@ import { buildQueryString } from './build-query-string';
|
|
|
7
7
|
/**
|
|
8
8
|
* Removes arguments from the query string of the url
|
|
9
9
|
*
|
|
10
|
-
* @param
|
|
11
|
-
* @param
|
|
10
|
+
* @param url URL.
|
|
11
|
+
* @param args Query Args.
|
|
12
12
|
*
|
|
13
13
|
* @example
|
|
14
14
|
* ```js
|
|
15
15
|
* const newUrl = removeQueryArgs( 'https://wordpress.org?foo=bar&bar=baz&baz=foobar', 'foo', 'bar' ); // https://wordpress.org?baz=foobar
|
|
16
16
|
* ```
|
|
17
17
|
*
|
|
18
|
-
* @return
|
|
18
|
+
* @return Updated URL.
|
|
19
19
|
*/
|
|
20
|
-
export function removeQueryArgs( url, ...args ) {
|
|
20
|
+
export function removeQueryArgs( url: string, ...args: string[] ): string {
|
|
21
21
|
const fragment = url.replace( /^[^#]*/, '' );
|
|
22
22
|
url = url.replace( /#.*/, '' );
|
|
23
23
|
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
* Safely decodes a URI component with `decodeURIComponent`. Returns the URI component unmodified if
|
|
3
3
|
* `decodeURIComponent` throws an error.
|
|
4
4
|
*
|
|
5
|
-
* @param
|
|
5
|
+
* @param uriComponent URI component to decode.
|
|
6
6
|
*
|
|
7
|
-
* @return
|
|
7
|
+
* @return Decoded URI component if possible.
|
|
8
8
|
*/
|
|
9
|
-
export function safeDecodeURIComponent( uriComponent ) {
|
|
9
|
+
export function safeDecodeURIComponent( uriComponent: string ): string {
|
|
10
10
|
try {
|
|
11
11
|
return decodeURIComponent( uriComponent );
|
|
12
12
|
} catch ( uriComponentError ) {
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
* Safely decodes a URI with `decodeURI`. Returns the URI unmodified if
|
|
3
3
|
* `decodeURI` throws an error.
|
|
4
4
|
*
|
|
5
|
-
* @param
|
|
5
|
+
* @param uri URI to decode.
|
|
6
6
|
*
|
|
7
7
|
* @example
|
|
8
8
|
* ```js
|
|
9
9
|
* const badUri = safeDecodeURI( '%z' ); // does not throw an Error, simply returns '%z'
|
|
10
10
|
* ```
|
|
11
11
|
*
|
|
12
|
-
* @return
|
|
12
|
+
* @return Decoded URI if possible.
|
|
13
13
|
*/
|
|
14
|
-
export function safeDecodeURI( uri ) {
|
|
14
|
+
export function safeDecodeURI( uri: string ): string {
|
|
15
15
|
try {
|
|
16
16
|
return decodeURI( uri );
|
|
17
17
|
} catch ( uriError ) {
|
package/src/test/index.js
CHANGED
|
@@ -494,12 +494,12 @@ describe( 'getPathAndQueryString', () => {
|
|
|
494
494
|
beforeAll( jest.resetModules );
|
|
495
495
|
afterAll( jest.resetModules );
|
|
496
496
|
it( 'combines the results of `getPath` and `getQueryString`', () => {
|
|
497
|
-
jest.doMock( '../get-path
|
|
497
|
+
jest.doMock( '../get-path', () => ( {
|
|
498
498
|
getPath( { path } = {} ) {
|
|
499
499
|
return path;
|
|
500
500
|
},
|
|
501
501
|
} ) );
|
|
502
|
-
jest.doMock( '../get-query-string
|
|
502
|
+
jest.doMock( '../get-query-string', () => ( {
|
|
503
503
|
getQueryString( { queryString } = {} ) {
|
|
504
504
|
return queryString;
|
|
505
505
|
},
|
package/tsconfig.tsbuildinfo
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"fileNames":["../../node_modules/typescript/lib/lib.es5.d.ts","../../node_modules/typescript/lib/lib.es2015.d.ts","../../node_modules/typescript/lib/lib.es2016.d.ts","../../node_modules/typescript/lib/lib.es2017.d.ts","../../node_modules/typescript/lib/lib.es2018.d.ts","../../node_modules/typescript/lib/lib.es2019.d.ts","../../node_modules/typescript/lib/lib.es2020.d.ts","../../node_modules/typescript/lib/lib.es2021.d.ts","../../node_modules/typescript/lib/lib.es2022.d.ts","../../node_modules/typescript/lib/lib.es2023.d.ts","../../node_modules/typescript/lib/lib.es2024.d.ts","../../node_modules/typescript/lib/lib.esnext.d.ts","../../node_modules/typescript/lib/lib.dom.d.ts","../../node_modules/typescript/lib/lib.dom.iterable.d.ts","../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../node_modules/typescript/lib/lib.es2021.promise.d.ts","../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../node_modules/typescript/lib/lib.es2021.intl.d.ts","../../node_modules/typescript/lib/lib.es2022.array.d.ts","../../node_modules/typescript/lib/lib.es2022.error.d.ts","../../node_modules/typescript/lib/lib.es2022.intl.d.ts","../../node_modules/typescript/lib/lib.es2022.object.d.ts","../../node_modules/typescript/lib/lib.es2022.string.d.ts","../../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../node_modules/typescript/lib/lib.es2023.array.d.ts","../../node_modules/typescript/lib/lib.es2023.collection.d.ts","../../node_modules/typescript/lib/lib.es2023.intl.d.ts","../../node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts","../../node_modules/typescript/lib/lib.es2024.collection.d.ts","../../node_modules/typescript/lib/lib.es2024.object.d.ts","../../node_modules/typescript/lib/lib.es2024.promise.d.ts","../../node_modules/typescript/lib/lib.es2024.regexp.d.ts","../../node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts","../../node_modules/typescript/lib/lib.es2024.string.d.ts","../../node_modules/typescript/lib/lib.esnext.array.d.ts","../../node_modules/typescript/lib/lib.esnext.collection.d.ts","../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../node_modules/typescript/lib/lib.esnext.disposable.d.ts","../../node_modules/typescript/lib/lib.esnext.decorators.d.ts","../../node_modules/typescript/lib/lib.esnext.iterator.d.ts","../../node_modules/typescript/lib/lib.decorators.d.ts","../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","./src/safe-decode-uri-component.js","./src/get-query-string.js","./src/get-query-arg.js","./src/get-query-args.js","./src/build-query-string.js","./src/get-fragment.js","./src/add-query-args.js","../../node_modules/remove-accents/index.d.ts","./src/clean-for-slug.js","./src/filter-url-for-display.js","./src/get-authority.js","./src/get-filename.js","./src/is-url.js","./src/is-email.js","./src/is-phone-number.js","./src/get-protocol.js","./src/is-valid-protocol.js","./src/is-valid-authority.js","./src/get-path.js","./src/is-valid-path.js","./src/is-valid-query-string.js","./src/is-valid-fragment.js","./src/has-query-arg.js","./src/remove-query-args.js","./src/prepend-http.js","./src/safe-decode-uri.js","./src/normalize-path.js","./src/prepend-https.js","./src/index.js","./src/get-path-and-query-string.js"],"fileIdsList":[[82,83,84],[86],[107],[82],[79,80,81],[81],[79,80,81,82,83,84,85,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,108],[92],[103],[82,83]],"fileInfos":[{"version":"e41c290ef7dd7dab3493e6cbe5909e0148edf4a8dad0271be08edec368a0f7b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"27bdc30a0e32783366a5abeda841bc22757c1797de8681bbe81fbc735eeb1c10","impliedFormat":1},{"version":"8fd575e12870e9944c7e1d62e1f5a73fcf23dd8d3a321f2a2c74c20d022283fe","impliedFormat":1},{"version":"e12a46ce14b817d4c9e6b2b478956452330bf00c9801b79de46f7a1815b5bd40","impliedFormat":1},{"version":"4fd3f3422b2d2a3dfd5cdd0f387b3a8ec45f006c6ea896a4cb41264c2100bb2c","affectsGlobalScope":true,"impliedFormat":1},{"version":"69e65d976bf166ce4a9e6f6c18f94d2424bf116e90837ace179610dbccad9b42","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"62bb211266ee48b2d0edf0d8d1b191f0c24fc379a82bd4c1692a082c540bc6b1","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"936e80ad36a2ee83fc3caf008e7c4c5afe45b3cf3d5c24408f039c1d47bdc1df","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"fef8cfad2e2dc5f5b3d97a6f4f2e92848eb1b88e897bb7318cef0e2820bceaab","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"f1e2a172204962276504466a6393426d2ca9c54894b1ad0a6c9dad867a65f876","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"b5ce7a470bc3628408429040c4e3a53a27755022a32fd05e2cb694e7015386c7","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"bab26767638ab3557de12c900f0b91f710c7dc40ee9793d5a27d32c04f0bf646","affectsGlobalScope":true,"impliedFormat":1},{"version":"436aaf437562f276ec2ddbee2f2cdedac7664c1e4c1d2c36839ddd582eeb3d0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e3c06ea092138bf9fa5e874a1fdbc9d54805d074bee1de31b99a11e2fec239d","affectsGlobalScope":true,"impliedFormat":1},{"version":"87dc0f382502f5bbce5129bdc0aea21e19a3abbc19259e0b43ae038a9fc4e326","affectsGlobalScope":true,"impliedFormat":1},{"version":"b1cb28af0c891c8c96b2d6b7be76bd394fddcfdb4709a20ba05a7c1605eea0f9","affectsGlobalScope":true,"impliedFormat":1},{"version":"2fef54945a13095fdb9b84f705f2b5994597640c46afeb2ce78352fab4cb3279","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac77cb3e8c6d3565793eb90a8373ee8033146315a3dbead3bde8db5eaf5e5ec6","affectsGlobalScope":true,"impliedFormat":1},{"version":"56e4ed5aab5f5920980066a9409bfaf53e6d21d3f8d020c17e4de584d29600ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ece9f17b3866cc077099c73f4983bddbcb1dc7ddb943227f1ec070f529dedd1","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a6282c8827e4b9a95f4bf4f5c205673ada31b982f50572d27103df8ceb8013c","affectsGlobalScope":true,"impliedFormat":1},{"version":"1c9319a09485199c1f7b0498f2988d6d2249793ef67edda49d1e584746be9032","affectsGlobalScope":true,"impliedFormat":1},{"version":"e3a2a0cee0f03ffdde24d89660eba2685bfbdeae955a6c67e8c4c9fd28928eeb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811c71eee4aa0ac5f7adf713323a5c41b0cf6c4e17367a34fbce379e12bbf0a4","affectsGlobalScope":true,"impliedFormat":1},{"version":"51ad4c928303041605b4d7ae32e0c1ee387d43a24cd6f1ebf4a2699e1076d4fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"d4b1d2c51d058fc21ec2629fff7a76249dec2e36e12960ea056e3ef89174080f","affectsGlobalScope":true,"impliedFormat":1},{"version":"61d6a2092f48af66dbfb220e31eea8b10bc02b6932d6e529005fd2d7b3281290","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"7adb044d7fb892c86a142b1ecf264086e6c49593f31c72d1cb88d5541b14c362","signature":"e68f0a22290ea66539378ff08315a85fd75b778fe0ac69d10fefa1947ec5d6d2"},{"version":"3d13e8d35928df6913cc508baea9212eeaf77ac6b8bcdeea6ef81417bd1ab796","signature":"73f5f1468cf6fa9be4addede3604d134bb76004ceac46b8215b9c8bf17599cbb"},{"version":"93c18f1428bac34102b0df1c2b41dc3d12ce391e03c8a46d38c417479575a20e","signature":"edcf8b0f0aa5e3fad814da17002f1cacd4197c24f1b6e063938ed2d987780adf"},{"version":"b60bd6d8540a5a96a69fdadea70025291e62155d4b7c474a2fa7ff268096732b","signature":"e3fa7e6e8865e41382c461c0864c6cf8e3ab629ebe1b8f06cd4303f86d7d8fb9"},{"version":"7661a5ede28fb0d92e17e5336aba72b46117d6fa195dffe472a7a6c2bb63a882","signature":"a2c68bf95abbcdb88e32ebf9088307217c98c2aa66b5bd8efe879602bea33b1d"},{"version":"934bb323f6db147579270f1814fefb892cd740b41b3a502f0fc1fdea89c8bbdf","signature":"6f7383250ac7b41864893198e9bad95a44c2348b9edede578bfabb3203841263"},{"version":"91fbf840c4df5fa0ec8569de14b35f224aebda4e718ee7338ee6f75cca89d062","signature":"424610e24d75e90a6c37799b06fbd705bc5230cd7decfb535ba92e613bd62323"},{"version":"ddf9ae86061a50cb95914a7e59cca5737fae145d23bbcc0009d65bbd27b0df43","impliedFormat":1},{"version":"54e23503bf6b212978be70cd8cf55791af0797434456e579ae41efa45604dc34","signature":"211accf6ab17b179f6f29b012a2f9320bc6451d861c3e1896fba4c30bccf3e06"},{"version":"843bd2b96bd4bedda57db24ef23e54b4ee9e254a56b2153df64f08bde254bd12","signature":"fc739ba246e64fa62e2549c1085c718488e988909511f6697118d80469ea5e63"},{"version":"e17e8f3a2d2b70b82111a7caba0bd0469c15d54b7f5182249c11e86ec91d48c4","signature":"eae2672d9233cff7dddcf8fb9a7442ba79b1a9216cc087ace0d9137a501bbf8a"},{"version":"c92a4fc60ca72d4b660bdc9572f9fcd0574dd1849c3607be6bfa89800fb3ebbe","signature":"b3ab3d7638e24e13193b390b06e20341de0f17794a9da53c867d428deef0e10d"},{"version":"2e53b021189ff0a38763fa8b475e9e52b2f8ad5afb824b1bdd0ac4e75c672915","signature":"e8bbe21ff748a993920eee2a1cd315c5fa650e4b0fa8e62c8740ee47ac39d313"},{"version":"3573449a7b11478382da67ca0247cd72aa4bd55c3faf16eaac50fc4d6e31a73f","signature":"dd39ce0fe1d8f53f79a85ab0fcc4b031a8a3fe98ad30ba655875d93ca8e9d6a6"},{"version":"df06b23eda78c0f1f3fbe412dcd4a0f56e7397eba7731e52c4ccc5f717a0a796","signature":"c2b8e177001c8dd7ebd70d88101dabfd3650b2654ed54dbd4e8f0b6ad2b596c2"},{"version":"45cf018e474510e7c5d1609f31f26aee0c8313123c667eebe6274a70359ac61b","signature":"d99fafce42f167cb2d8d0c8e66078ae98d16a044cf78b09777ff55b3ef5f80f4"},{"version":"63f54074d98d3460d320df957eb1a81370309dc146f4e75db5c41af8eaafb6f3","signature":"c5eabd668e2a6c46cf51519448b9dee0370060b36843c9edb52d9517ca2378db"},{"version":"e21699f5f16e21f013325d7c2e3055e51a0ffd3905f70f2c9943146c537740c7","signature":"03d71ae680636aa8dcc0bc393f55f62a2fc2d486ef065f065909c760f839493a"},{"version":"922ea6a76eb75e5fcfc43667fe268bd33ba5febb7906413ee1a6df63495d198f","signature":"83a75790507bc4ac1a68af99745f96a0cb1ce89203cd48daad303e95fab23103"},{"version":"675f074197cc4af2fec6fdd2d402c4b79796bac84be27abe4a2fdf83f178bdfc","signature":"516411af2792238aeb02d8dd077cbf9bbdaa261dd87ef34fd3781b6734f1096d"},{"version":"50445b9c70447cc93ebe21e8e84041687b477771bebc3335a437684d25e714fa","signature":"1cf19b11895b447100eea30892c4c7186c084692f76ba58e8ae18ef81791f91a"},{"version":"af42fd7aa201d45b2366759c7f5ef74df0be5a9175b29ae28eea3823c1726e4c","signature":"f283a335488feb8ab9770f535ddd2f504228cf8ae5ea601c9cf5f418080d61dc"},{"version":"334aeb1ce0fc76ca31b758e041e232c0554278de6a3d84540822bab39d07b5e6","signature":"4045e2a71f2e2b600c9e3ec3b11191c7010e85594a543632dd044f3a4aadfefd"},{"version":"9a72dc4e5bde9641ba91a8836d3d073adcfb8399e31c41cf3040e323efa046a7","signature":"f402aa9d7f85f20f72da9356d7e02476258bcdeb2aa72d9959f542b59a4e0491"},{"version":"f73f85026d30aaa6d4c348ba9e4458482016ebe29956c99195e6434f8e81f5a4","signature":"d263ba9ce4a38ffa22361dd7d213af653f69d0962c833cfb6612a69f664ce59b"},{"version":"7854cef32e2726edf5332d119686c31940e6ee63369f6e3fbb6add61a112f51b","signature":"ace6d6fe1c8df74a13ce7ddb5af7f0e7ee6ac1781ccbdc6b0e5d68aa68180d10"},{"version":"4efa467a74cfebd00a01b1c9d5e2caa6c12efb84bcb6223e25a23e1edf73b42c","signature":"bd7d8d3e83988c4a12046a5c4189094eccd869c1e4da54d6adf346df6266fa4d"},{"version":"31f78288b8d0c85db211d4322b4a69f55222f1c83ae9f70acb69c983774532ea","signature":"b96dcb17ffca43039ad48fd8ce35959cc13503dce9abe371322e533b65150313"},{"version":"5889252f92765b72e62e1a6aec48491c1b23213d125874f75e29abe183083004","signature":"711db6a20737bfda7bc47097b73d8630a61fd2d5b60e497fb1498441c46b5403"},{"version":"88eb407aa9bd3c8e11401486c417529fb053282ec9a63f1be88979a2d303c97c","signature":"12c71d91ff0a42607b7f0c82b3181abb595052548cbd88cdb52079c9c102fd66"}],"root":[[79,85],[87,108]],"options":{"allowJs":true,"allowSyntheticDefaultImports":true,"checkJs":true,"composite":true,"declaration":true,"declarationDir":"./build-types","declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":false,"jsx":1,"module":99,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"rootDir":"./src","skipDefaultLibCheck":true,"strict":true,"target":99},"referencedMap":[[85,1],[87,2],[108,3],[81,4],[82,5],[101,6],[107,7],[103,8],[106,9],[102,10]],"latestChangedDtsFile":"./build-types/get-path-and-query-string.d.ts","version":"5.7.2"}
|
|
1
|
+
{"fileNames":["../../node_modules/typescript/lib/lib.es5.d.ts","../../node_modules/typescript/lib/lib.es2015.d.ts","../../node_modules/typescript/lib/lib.es2016.d.ts","../../node_modules/typescript/lib/lib.es2017.d.ts","../../node_modules/typescript/lib/lib.es2018.d.ts","../../node_modules/typescript/lib/lib.es2019.d.ts","../../node_modules/typescript/lib/lib.es2020.d.ts","../../node_modules/typescript/lib/lib.es2021.d.ts","../../node_modules/typescript/lib/lib.es2022.d.ts","../../node_modules/typescript/lib/lib.es2023.d.ts","../../node_modules/typescript/lib/lib.es2024.d.ts","../../node_modules/typescript/lib/lib.esnext.d.ts","../../node_modules/typescript/lib/lib.dom.d.ts","../../node_modules/typescript/lib/lib.dom.iterable.d.ts","../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../node_modules/typescript/lib/lib.es2021.promise.d.ts","../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../node_modules/typescript/lib/lib.es2021.intl.d.ts","../../node_modules/typescript/lib/lib.es2022.array.d.ts","../../node_modules/typescript/lib/lib.es2022.error.d.ts","../../node_modules/typescript/lib/lib.es2022.intl.d.ts","../../node_modules/typescript/lib/lib.es2022.object.d.ts","../../node_modules/typescript/lib/lib.es2022.string.d.ts","../../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../node_modules/typescript/lib/lib.es2023.array.d.ts","../../node_modules/typescript/lib/lib.es2023.collection.d.ts","../../node_modules/typescript/lib/lib.es2023.intl.d.ts","../../node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts","../../node_modules/typescript/lib/lib.es2024.collection.d.ts","../../node_modules/typescript/lib/lib.es2024.object.d.ts","../../node_modules/typescript/lib/lib.es2024.promise.d.ts","../../node_modules/typescript/lib/lib.es2024.regexp.d.ts","../../node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts","../../node_modules/typescript/lib/lib.es2024.string.d.ts","../../node_modules/typescript/lib/lib.esnext.array.d.ts","../../node_modules/typescript/lib/lib.esnext.collection.d.ts","../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../node_modules/typescript/lib/lib.esnext.disposable.d.ts","../../node_modules/typescript/lib/lib.esnext.decorators.d.ts","../../node_modules/typescript/lib/lib.esnext.iterator.d.ts","../../node_modules/typescript/lib/lib.decorators.d.ts","../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","./src/safe-decode-uri-component.ts","./src/get-query-string.ts","./src/get-query-arg.ts","./src/get-query-args.ts","./src/build-query-string.ts","./src/get-fragment.ts","./src/add-query-args.ts","../../node_modules/remove-accents/index.d.ts","./src/clean-for-slug.ts","./src/filter-url-for-display.ts","./src/get-authority.ts","./src/get-filename.ts","./src/is-url.ts","./src/is-email.ts","./src/is-phone-number.ts","./src/get-protocol.ts","./src/is-valid-protocol.ts","./src/is-valid-authority.ts","./src/get-path.ts","./src/is-valid-path.ts","./src/is-valid-query-string.ts","./src/is-valid-fragment.ts","./src/has-query-arg.ts","./src/remove-query-args.ts","./src/prepend-http.ts","./src/safe-decode-uri.ts","./src/normalize-path.ts","./src/prepend-https.ts","./src/index.ts","./src/get-path-and-query-string.ts"],"fileIdsList":[[82,83,84],[86],[107],[82],[79,80,81],[81],[79,80,81,82,83,84,85,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,108],[92],[103],[82,83]],"fileInfos":[{"version":"e41c290ef7dd7dab3493e6cbe5909e0148edf4a8dad0271be08edec368a0f7b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"27bdc30a0e32783366a5abeda841bc22757c1797de8681bbe81fbc735eeb1c10","impliedFormat":1},{"version":"8fd575e12870e9944c7e1d62e1f5a73fcf23dd8d3a321f2a2c74c20d022283fe","impliedFormat":1},{"version":"e12a46ce14b817d4c9e6b2b478956452330bf00c9801b79de46f7a1815b5bd40","impliedFormat":1},{"version":"4fd3f3422b2d2a3dfd5cdd0f387b3a8ec45f006c6ea896a4cb41264c2100bb2c","affectsGlobalScope":true,"impliedFormat":1},{"version":"69e65d976bf166ce4a9e6f6c18f94d2424bf116e90837ace179610dbccad9b42","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"62bb211266ee48b2d0edf0d8d1b191f0c24fc379a82bd4c1692a082c540bc6b1","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"936e80ad36a2ee83fc3caf008e7c4c5afe45b3cf3d5c24408f039c1d47bdc1df","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"fef8cfad2e2dc5f5b3d97a6f4f2e92848eb1b88e897bb7318cef0e2820bceaab","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"f1e2a172204962276504466a6393426d2ca9c54894b1ad0a6c9dad867a65f876","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"b5ce7a470bc3628408429040c4e3a53a27755022a32fd05e2cb694e7015386c7","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"bab26767638ab3557de12c900f0b91f710c7dc40ee9793d5a27d32c04f0bf646","affectsGlobalScope":true,"impliedFormat":1},{"version":"436aaf437562f276ec2ddbee2f2cdedac7664c1e4c1d2c36839ddd582eeb3d0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e3c06ea092138bf9fa5e874a1fdbc9d54805d074bee1de31b99a11e2fec239d","affectsGlobalScope":true,"impliedFormat":1},{"version":"87dc0f382502f5bbce5129bdc0aea21e19a3abbc19259e0b43ae038a9fc4e326","affectsGlobalScope":true,"impliedFormat":1},{"version":"b1cb28af0c891c8c96b2d6b7be76bd394fddcfdb4709a20ba05a7c1605eea0f9","affectsGlobalScope":true,"impliedFormat":1},{"version":"2fef54945a13095fdb9b84f705f2b5994597640c46afeb2ce78352fab4cb3279","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac77cb3e8c6d3565793eb90a8373ee8033146315a3dbead3bde8db5eaf5e5ec6","affectsGlobalScope":true,"impliedFormat":1},{"version":"56e4ed5aab5f5920980066a9409bfaf53e6d21d3f8d020c17e4de584d29600ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ece9f17b3866cc077099c73f4983bddbcb1dc7ddb943227f1ec070f529dedd1","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a6282c8827e4b9a95f4bf4f5c205673ada31b982f50572d27103df8ceb8013c","affectsGlobalScope":true,"impliedFormat":1},{"version":"1c9319a09485199c1f7b0498f2988d6d2249793ef67edda49d1e584746be9032","affectsGlobalScope":true,"impliedFormat":1},{"version":"e3a2a0cee0f03ffdde24d89660eba2685bfbdeae955a6c67e8c4c9fd28928eeb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811c71eee4aa0ac5f7adf713323a5c41b0cf6c4e17367a34fbce379e12bbf0a4","affectsGlobalScope":true,"impliedFormat":1},{"version":"51ad4c928303041605b4d7ae32e0c1ee387d43a24cd6f1ebf4a2699e1076d4fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"d4b1d2c51d058fc21ec2629fff7a76249dec2e36e12960ea056e3ef89174080f","affectsGlobalScope":true,"impliedFormat":1},{"version":"61d6a2092f48af66dbfb220e31eea8b10bc02b6932d6e529005fd2d7b3281290","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"d521c766cd25c1ea85b286d7554f6dc99e9e606837d6869edebea6907fa817e4","signature":"eb0b70bc4f4550c0fab2afcd99ffa68ba09745d1a7d1e6097ff2213bf3e010e3"},{"version":"ccf14e11776e543516f57c1cabdbe222795536db92bd26b9da39b4398f5a8202","signature":"aa8d15c2c116e764b88183557d4cf152a79c2b41525bdd0d3859a2102e2dd8f0"},{"version":"5e10e7ca40617e8a9c1b8161f3026c847751c386eb8b8e8b1ea4dab15295b81a","signature":"9d320c1de70e4d9b0b1f243f2fe2190a39755b104a2a19a9b348374696c2f5b4"},{"version":"b0d278eaccc72491568af5bd9ae4497e3f888d69024fcf87f895f997a781556b","signature":"21a875726b21a53e8f7869f71834b6c5861889a840142363616178d2ff06a80c"},{"version":"bcbbf959d814882ba371c36d3a59e5f15db3f4e105b86a33657667ad5185b572","signature":"bb77b30621666128dd38d993e6c12bfb64b11059fdcf564fb67e32ac3db5fa45"},{"version":"ba9b6d8db0bf6af062dec0db93332e755f77dbe3547cde5c64963460235dc583","signature":"a868dd9b0ef63511977bc7a234bcef636bbd6be3e0ab5cb36932d38422fa86c7"},{"version":"c8f73e99398db0d8a622855ecdb76811549ed5b0094efd5c6a9437b2a7dd98f5","signature":"3b756732c3074a919ceb88c4d60cab15b66fcdb3d04593adff2902ae131e11b0"},{"version":"ddf9ae86061a50cb95914a7e59cca5737fae145d23bbcc0009d65bbd27b0df43","impliedFormat":1},{"version":"5bd877ba72f49bb284e325151f9d5feadc816243adc590bbdf23851fa97a1a17","signature":"31580699639a23cb8747f472bd1a1161f0f054d13a263b266c3f99021599f28b"},{"version":"6704c092b781bbef56c849d149ea15d51a2dc889b306a277c8c5224a9f125f68","signature":"46aae03e5e281df5734d782fdd4401697f0493aa31c1f60dbcbc70767bcfbafd"},{"version":"8cad67bd315e75acb295411030096381444e25b330813d9bbc965b612a9308c5","signature":"efae2f53ca9aba90034e9e15260c14fe8dcc3008267cdfbe7710042dbc4b21b0"},{"version":"d37760850fe8b2c04464de59a530326beb66cefadece51ffa4cac029e9975f28","signature":"e6c307f6e71f72bd14a2ac9598f9ef3cae3d40d01506ac58afd049191f74ad1d"},{"version":"cb54fc13bf0e80718e11ccce5d30a37d139dea60c4452345efca3e5976a34415","signature":"20638b7e5b18d63c1c0bea482cf6a476dda56636a2db757cb8548f7c338815e5"},{"version":"3fb273765271d0ebe62c76711997ce66b7cf7b05be47e4bf231b9777db3468cf","signature":"f80230f749efb147eadae86b4a43a5c93a88586c7a4f5962bb29f31827eda4b7"},{"version":"e25603daa755c675c222d275f388a770555e1a372755f2c96fb11e6715889281","signature":"f7008ea22738cb36c8996a5411893c4d5c4ec7895abd8c6513d0ad2bdd6c101b"},{"version":"38ce8376fe3bb9a0522444a4e8fae11f1fd0678079614c672d988b3c981c00a7","signature":"936f6d2ccfef26c2e7ccb669353dda9667b388f8aa60efdd7f806a404ca73744"},{"version":"6d1e70f266ff978066dd7d39a8d0f42a47df077659ebd7bbb95b2fcbc8d46684","signature":"847c631c839e1b6ce114101ff5fcf393e1bb97f9b2bde6836e8eefa2462193a2"},{"version":"59d76ea4ee0ef5f5f5ce829e15e529e9b9395807e83ba525cf73b02fec952358","signature":"0361064de2ddd1752640c2cb5e0b558815223b11777fc60157f26960a94d8583"},{"version":"a1f0653f2d273df958843dafd233c90744cf974db9c737a32c0dc41b1abc3fcc","signature":"0ff675962eafbb02be18f7ea2b950f41e8a935ffbd53e37fbc8b168488143909"},{"version":"e6c49b780d4a4662a2397c04abb033bd84295bf9544c73824a4426946caf8988","signature":"414a7074507d25366066e2945b472cde8661c0bd2fb312691cead6cda15491a9"},{"version":"141c1ca6e98cddcd0f1fd7a93def757225a0b3742d79c8a0e090d0d4ec1433f2","signature":"aa0306389b2ea9a95ff3d330b73582bae4c4232b921c6282bfead27db47af4a2"},{"version":"0621fda98118868e09acca1aa3f579217e75dd19523549f279b05502ca9eef92","signature":"8a5ace28f492f279a592413af6262a7b5036b90419830168fb982795f259febc"},{"version":"43b5c5fc018067efb4f0ca77a2d17a4e870147b3ecf22d37982b4a3f58f23b66","signature":"363a0f95565733574f606f98de608fffd7afeb3303dfc4a40696192ad3635080"},{"version":"5ef3f5176d67a68c56df93f463f57099241fca17ebe89cb2b4c77eaadcc5fa70","signature":"476ab9d71972d917d8bfc851c0583fa515222624ced6f7fd7f3b07e1a786ae72"},{"version":"052b7003f677775295f4caaa7a62f7b1795142068874c22e836ef4890cdd93cd","signature":"7e11416bdc4117043a086703aec649fb8e3e92bdcf875659d7417a86f6acc34c"},{"version":"6d472431e7c94db07d520cd814ea35f52b1c040cb6eaef7ec033a05da2a11da2","signature":"dc999d60fe7be6fa59972152bed2cb2bf366319ee2ce5eed885cc9665e3d7692"},{"version":"4a5a50975ab5b50292e2589a5d8bcbab60c5d638f1ad8ad5514f0c178879c864","signature":"a41169d244be72cbfa8d3c9d62e98e207402df4ab778487be14b41e0090aed3d"},{"version":"1b1634a24665962f839240d8405371df06697c11215512396bdd7cd6dd905774","signature":"72415913ad8937568b6a5f200fcddcdb153556a6d3b55064593dd7b16727259f"},"5889252f92765b72e62e1a6aec48491c1b23213d125874f75e29abe183083004",{"version":"c5bac3d38c005b5dcda9a7230c3a97038de00d20bf532d9d13ad9f223d120fdb","signature":"e6e07a0dc96f5a884cc52e08842f6634f796747d70fae6d99062215941c543f0"}],"root":[[79,85],[87,108]],"options":{"allowJs":true,"allowSyntheticDefaultImports":true,"checkJs":true,"composite":true,"declaration":true,"declarationDir":"./build-types","declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":false,"jsx":1,"module":99,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"rootDir":"./src","skipDefaultLibCheck":true,"strict":true,"target":99},"referencedMap":[[85,1],[87,2],[108,3],[81,4],[82,5],[101,6],[107,7],[103,8],[106,9],[102,10]],"latestChangedDtsFile":"./build-types/get-path-and-query-string.d.ts","version":"5.7.2"}
|
package/src/get-query-arg.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Internal dependencies
|
|
3
|
-
*/
|
|
4
|
-
import { getQueryArgs } from './get-query-args';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* @typedef {{[key: string]: QueryArgParsed}} QueryArgObject
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* @typedef {string|string[]|QueryArgObject} QueryArgParsed
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* Returns a single query argument of the url
|
|
16
|
-
*
|
|
17
|
-
* @param {string} url URL.
|
|
18
|
-
* @param {string} arg Query arg name.
|
|
19
|
-
*
|
|
20
|
-
* @example
|
|
21
|
-
* ```js
|
|
22
|
-
* const foo = getQueryArg( 'https://wordpress.org?foo=bar&bar=baz', 'foo' ); // bar
|
|
23
|
-
* ```
|
|
24
|
-
*
|
|
25
|
-
* @return {QueryArgParsed|void} Query arg value.
|
|
26
|
-
*/
|
|
27
|
-
export function getQueryArg( url, arg ) {
|
|
28
|
-
return getQueryArgs( url )[ arg ];
|
|
29
|
-
}
|
|
File without changes
|