@wordpress/url 4.36.1-next.8fd3f8831.0 → 4.37.1-next.06ee73755.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.
Files changed (63) hide show
  1. package/LICENSE.md +1 -1
  2. package/build/clean-for-slug.cjs +1 -1
  3. package/build-module/{add-query-args.js → add-query-args.mjs} +4 -4
  4. package/build-module/{build-query-string.js → build-query-string.mjs} +1 -1
  5. package/build-module/{clean-for-slug.js → clean-for-slug.mjs} +1 -1
  6. package/build-module/{filter-url-for-display.js → filter-url-for-display.mjs} +1 -1
  7. package/build-module/{get-authority.js → get-authority.mjs} +1 -1
  8. package/build-module/{get-filename.js → get-filename.mjs} +1 -1
  9. package/build-module/{get-fragment.js → get-fragment.mjs} +1 -1
  10. package/build-module/{get-path-and-query-string.js → get-path-and-query-string.mjs} +2 -2
  11. package/build-module/{get-path.js → get-path.mjs} +1 -1
  12. package/build-module/{get-protocol.js → get-protocol.mjs} +1 -1
  13. package/build-module/{get-query-arg.js → get-query-arg.mjs} +2 -2
  14. package/build-module/{get-query-args.js → get-query-args.mjs} +3 -3
  15. package/build-module/{get-query-string.js → get-query-string.mjs} +1 -1
  16. package/build-module/{has-query-arg.js → has-query-arg.mjs} +2 -2
  17. package/build-module/index.mjs +60 -0
  18. package/build-module/{is-email.js → is-email.mjs} +1 -1
  19. package/build-module/{is-phone-number.js → is-phone-number.mjs} +1 -1
  20. package/build-module/{is-url.js → is-url.mjs} +1 -1
  21. package/build-module/{is-valid-authority.js → is-valid-authority.mjs} +1 -1
  22. package/build-module/{is-valid-fragment.js → is-valid-fragment.mjs} +1 -1
  23. package/build-module/{is-valid-path.js → is-valid-path.mjs} +1 -1
  24. package/build-module/{is-valid-protocol.js → is-valid-protocol.mjs} +1 -1
  25. package/build-module/{is-valid-query-string.js → is-valid-query-string.mjs} +1 -1
  26. package/build-module/{normalize-path.js → normalize-path.mjs} +1 -1
  27. package/build-module/{prepend-http.js → prepend-http.mjs} +2 -2
  28. package/build-module/{prepend-https.js → prepend-https.mjs} +2 -2
  29. package/build-module/{remove-query-args.js → remove-query-args.mjs} +3 -3
  30. package/build-module/{safe-decode-uri-component.js → safe-decode-uri-component.mjs} +1 -1
  31. package/build-module/{safe-decode-uri.js → safe-decode-uri.mjs} +1 -1
  32. package/package.json +4 -5
  33. package/src/test/index.js +8 -8
  34. package/build-module/index.js +0 -60
  35. /package/build-module/{add-query-args.js.map → add-query-args.mjs.map} +0 -0
  36. /package/build-module/{build-query-string.js.map → build-query-string.mjs.map} +0 -0
  37. /package/build-module/{clean-for-slug.js.map → clean-for-slug.mjs.map} +0 -0
  38. /package/build-module/{filter-url-for-display.js.map → filter-url-for-display.mjs.map} +0 -0
  39. /package/build-module/{get-authority.js.map → get-authority.mjs.map} +0 -0
  40. /package/build-module/{get-filename.js.map → get-filename.mjs.map} +0 -0
  41. /package/build-module/{get-fragment.js.map → get-fragment.mjs.map} +0 -0
  42. /package/build-module/{get-path-and-query-string.js.map → get-path-and-query-string.mjs.map} +0 -0
  43. /package/build-module/{get-path.js.map → get-path.mjs.map} +0 -0
  44. /package/build-module/{get-protocol.js.map → get-protocol.mjs.map} +0 -0
  45. /package/build-module/{get-query-arg.js.map → get-query-arg.mjs.map} +0 -0
  46. /package/build-module/{get-query-args.js.map → get-query-args.mjs.map} +0 -0
  47. /package/build-module/{get-query-string.js.map → get-query-string.mjs.map} +0 -0
  48. /package/build-module/{has-query-arg.js.map → has-query-arg.mjs.map} +0 -0
  49. /package/build-module/{index.js.map → index.mjs.map} +0 -0
  50. /package/build-module/{is-email.js.map → is-email.mjs.map} +0 -0
  51. /package/build-module/{is-phone-number.js.map → is-phone-number.mjs.map} +0 -0
  52. /package/build-module/{is-url.js.map → is-url.mjs.map} +0 -0
  53. /package/build-module/{is-valid-authority.js.map → is-valid-authority.mjs.map} +0 -0
  54. /package/build-module/{is-valid-fragment.js.map → is-valid-fragment.mjs.map} +0 -0
  55. /package/build-module/{is-valid-path.js.map → is-valid-path.mjs.map} +0 -0
  56. /package/build-module/{is-valid-protocol.js.map → is-valid-protocol.mjs.map} +0 -0
  57. /package/build-module/{is-valid-query-string.js.map → is-valid-query-string.mjs.map} +0 -0
  58. /package/build-module/{normalize-path.js.map → normalize-path.mjs.map} +0 -0
  59. /package/build-module/{prepend-http.js.map → prepend-http.mjs.map} +0 -0
  60. /package/build-module/{prepend-https.js.map → prepend-https.mjs.map} +0 -0
  61. /package/build-module/{remove-query-args.js.map → remove-query-args.mjs.map} +0 -0
  62. /package/build-module/{safe-decode-uri-component.js.map → safe-decode-uri-component.mjs.map} +0 -0
  63. /package/build-module/{safe-decode-uri.js.map → safe-decode-uri.mjs.map} +0 -0
package/LICENSE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  ## Gutenberg
2
2
 
3
- Copyright 2016-2025 by the contributors
3
+ Copyright 2016-2026 by the contributors
4
4
 
5
5
  **License for Contributions (on and after April 15, 2021)**
6
6
 
@@ -33,7 +33,7 @@ __export(clean_for_slug_exports, {
33
33
  cleanForSlug: () => cleanForSlug
34
34
  });
35
35
  module.exports = __toCommonJS(clean_for_slug_exports);
36
- var import_remove_accents = __toESM(require("remove-accents"), 1);
36
+ var import_remove_accents = __toESM(require("remove-accents"));
37
37
  function cleanForSlug(string) {
38
38
  if (!string) {
39
39
  return "";
@@ -1,7 +1,7 @@
1
1
  // packages/url/src/add-query-args.ts
2
- import { getQueryArgs } from "./get-query-args.js";
3
- import { buildQueryString } from "./build-query-string.js";
4
- import { getFragment } from "./get-fragment.js";
2
+ import { getQueryArgs } from "./get-query-args.mjs";
3
+ import { buildQueryString } from "./build-query-string.mjs";
4
+ import { getFragment } from "./get-fragment.mjs";
5
5
  function addQueryArgs(url = "", args) {
6
6
  if (!args || !Object.keys(args).length) {
7
7
  return url;
@@ -18,4 +18,4 @@ function addQueryArgs(url = "", args) {
18
18
  export {
19
19
  addQueryArgs
20
20
  };
21
- //# sourceMappingURL=add-query-args.js.map
21
+ //# sourceMappingURL=add-query-args.mjs.map
@@ -23,4 +23,4 @@ function buildQueryString(data) {
23
23
  export {
24
24
  buildQueryString
25
25
  };
26
- //# sourceMappingURL=build-query-string.js.map
26
+ //# sourceMappingURL=build-query-string.mjs.map
@@ -9,4 +9,4 @@ function cleanForSlug(string) {
9
9
  export {
10
10
  cleanForSlug
11
11
  };
12
- //# sourceMappingURL=clean-for-slug.js.map
12
+ //# sourceMappingURL=clean-for-slug.mjs.map
@@ -28,4 +28,4 @@ function filterURLForDisplay(url, maxLength = null) {
28
28
  export {
29
29
  filterURLForDisplay
30
30
  };
31
- //# sourceMappingURL=filter-url-for-display.js.map
31
+ //# sourceMappingURL=filter-url-for-display.mjs.map
@@ -10,4 +10,4 @@ function getAuthority(url) {
10
10
  export {
11
11
  getAuthority
12
12
  };
13
- //# sourceMappingURL=get-authority.js.map
13
+ //# sourceMappingURL=get-authority.mjs.map
@@ -15,4 +15,4 @@ function getFilename(url) {
15
15
  export {
16
16
  getFilename
17
17
  };
18
- //# sourceMappingURL=get-filename.js.map
18
+ //# sourceMappingURL=get-filename.mjs.map
@@ -8,4 +8,4 @@ function getFragment(url) {
8
8
  export {
9
9
  getFragment
10
10
  };
11
- //# sourceMappingURL=get-fragment.js.map
11
+ //# sourceMappingURL=get-fragment.mjs.map
@@ -1,5 +1,5 @@
1
1
  // packages/url/src/get-path-and-query-string.ts
2
- import { getPath, getQueryString } from "./index.js";
2
+ import { getPath, getQueryString } from "./index.mjs";
3
3
  function getPathAndQueryString(url) {
4
4
  const path = getPath(url);
5
5
  const queryString = getQueryString(url);
@@ -15,4 +15,4 @@ function getPathAndQueryString(url) {
15
15
  export {
16
16
  getPathAndQueryString
17
17
  };
18
- //# sourceMappingURL=get-path-and-query-string.js.map
18
+ //# sourceMappingURL=get-path-and-query-string.mjs.map
@@ -8,4 +8,4 @@ function getPath(url) {
8
8
  export {
9
9
  getPath
10
10
  };
11
- //# sourceMappingURL=get-path.js.map
11
+ //# sourceMappingURL=get-path.mjs.map
@@ -8,4 +8,4 @@ function getProtocol(url) {
8
8
  export {
9
9
  getProtocol
10
10
  };
11
- //# sourceMappingURL=get-protocol.js.map
11
+ //# sourceMappingURL=get-protocol.mjs.map
@@ -1,9 +1,9 @@
1
1
  // packages/url/src/get-query-arg.ts
2
- import { getQueryArgs } from "./get-query-args.js";
2
+ import { getQueryArgs } from "./get-query-args.mjs";
3
3
  function getQueryArg(url, arg) {
4
4
  return getQueryArgs(url)[arg];
5
5
  }
6
6
  export {
7
7
  getQueryArg
8
8
  };
9
- //# sourceMappingURL=get-query-arg.js.map
9
+ //# sourceMappingURL=get-query-arg.mjs.map
@@ -1,6 +1,6 @@
1
1
  // packages/url/src/get-query-args.ts
2
- import { safeDecodeURIComponent } from "./safe-decode-uri-component.js";
3
- import { getQueryString } from "./get-query-string.js";
2
+ import { safeDecodeURIComponent } from "./safe-decode-uri-component.mjs";
3
+ import { getQueryString } from "./get-query-string.mjs";
4
4
  function setPath(object, path, value) {
5
5
  const length = path.length;
6
6
  const lastIndex = length - 1;
@@ -38,4 +38,4 @@ function getQueryArgs(url) {
38
38
  export {
39
39
  getQueryArgs
40
40
  };
41
- //# sourceMappingURL=get-query-args.js.map
41
+ //# sourceMappingURL=get-query-args.mjs.map
@@ -12,4 +12,4 @@ function getQueryString(url) {
12
12
  export {
13
13
  getQueryString
14
14
  };
15
- //# sourceMappingURL=get-query-string.js.map
15
+ //# sourceMappingURL=get-query-string.mjs.map
@@ -1,9 +1,9 @@
1
1
  // packages/url/src/has-query-arg.ts
2
- import { getQueryArg } from "./get-query-arg.js";
2
+ import { getQueryArg } from "./get-query-arg.mjs";
3
3
  function hasQueryArg(url, arg) {
4
4
  return getQueryArg(url, arg) !== void 0;
5
5
  }
6
6
  export {
7
7
  hasQueryArg
8
8
  };
9
- //# sourceMappingURL=has-query-arg.js.map
9
+ //# sourceMappingURL=has-query-arg.mjs.map
@@ -0,0 +1,60 @@
1
+ // packages/url/src/index.ts
2
+ import { isURL } from "./is-url.mjs";
3
+ import { isEmail } from "./is-email.mjs";
4
+ import { isPhoneNumber } from "./is-phone-number.mjs";
5
+ import { getProtocol } from "./get-protocol.mjs";
6
+ import { isValidProtocol } from "./is-valid-protocol.mjs";
7
+ import { getAuthority } from "./get-authority.mjs";
8
+ import { isValidAuthority } from "./is-valid-authority.mjs";
9
+ import { getPath } from "./get-path.mjs";
10
+ import { isValidPath } from "./is-valid-path.mjs";
11
+ import { getQueryString } from "./get-query-string.mjs";
12
+ import { buildQueryString } from "./build-query-string.mjs";
13
+ import { isValidQueryString } from "./is-valid-query-string.mjs";
14
+ import { getPathAndQueryString } from "./get-path-and-query-string.mjs";
15
+ import { getFragment } from "./get-fragment.mjs";
16
+ import { isValidFragment } from "./is-valid-fragment.mjs";
17
+ import { addQueryArgs } from "./add-query-args.mjs";
18
+ import { getQueryArg } from "./get-query-arg.mjs";
19
+ import { getQueryArgs } from "./get-query-args.mjs";
20
+ import { hasQueryArg } from "./has-query-arg.mjs";
21
+ import { removeQueryArgs } from "./remove-query-args.mjs";
22
+ import { prependHTTP } from "./prepend-http.mjs";
23
+ import { safeDecodeURI } from "./safe-decode-uri.mjs";
24
+ import { safeDecodeURIComponent } from "./safe-decode-uri-component.mjs";
25
+ import { filterURLForDisplay } from "./filter-url-for-display.mjs";
26
+ import { cleanForSlug } from "./clean-for-slug.mjs";
27
+ import { getFilename } from "./get-filename.mjs";
28
+ import { normalizePath } from "./normalize-path.mjs";
29
+ import { prependHTTPS } from "./prepend-https.mjs";
30
+ export {
31
+ addQueryArgs,
32
+ buildQueryString,
33
+ cleanForSlug,
34
+ filterURLForDisplay,
35
+ getAuthority,
36
+ getFilename,
37
+ getFragment,
38
+ getPath,
39
+ getPathAndQueryString,
40
+ getProtocol,
41
+ getQueryArg,
42
+ getQueryArgs,
43
+ getQueryString,
44
+ hasQueryArg,
45
+ isEmail,
46
+ isPhoneNumber,
47
+ isURL,
48
+ isValidAuthority,
49
+ isValidFragment,
50
+ isValidPath,
51
+ isValidProtocol,
52
+ isValidQueryString,
53
+ normalizePath,
54
+ prependHTTP,
55
+ prependHTTPS,
56
+ removeQueryArgs,
57
+ safeDecodeURI,
58
+ safeDecodeURIComponent
59
+ };
60
+ //# sourceMappingURL=index.mjs.map
@@ -6,4 +6,4 @@ function isEmail(email) {
6
6
  export {
7
7
  isEmail
8
8
  };
9
- //# sourceMappingURL=is-email.js.map
9
+ //# sourceMappingURL=is-email.mjs.map
@@ -7,4 +7,4 @@ function isPhoneNumber(phoneNumber) {
7
7
  export {
8
8
  isPhoneNumber
9
9
  };
10
- //# sourceMappingURL=is-phone-number.js.map
10
+ //# sourceMappingURL=is-phone-number.mjs.map
@@ -10,4 +10,4 @@ function isURL(url) {
10
10
  export {
11
11
  isURL
12
12
  };
13
- //# sourceMappingURL=is-url.js.map
13
+ //# sourceMappingURL=is-url.mjs.map
@@ -8,4 +8,4 @@ function isValidAuthority(authority) {
8
8
  export {
9
9
  isValidAuthority
10
10
  };
11
- //# sourceMappingURL=is-valid-authority.js.map
11
+ //# sourceMappingURL=is-valid-authority.mjs.map
@@ -8,4 +8,4 @@ function isValidFragment(fragment) {
8
8
  export {
9
9
  isValidFragment
10
10
  };
11
- //# sourceMappingURL=is-valid-fragment.js.map
11
+ //# sourceMappingURL=is-valid-fragment.mjs.map
@@ -8,4 +8,4 @@ function isValidPath(path) {
8
8
  export {
9
9
  isValidPath
10
10
  };
11
- //# sourceMappingURL=is-valid-path.js.map
11
+ //# sourceMappingURL=is-valid-path.mjs.map
@@ -8,4 +8,4 @@ function isValidProtocol(protocol) {
8
8
  export {
9
9
  isValidProtocol
10
10
  };
11
- //# sourceMappingURL=is-valid-protocol.js.map
11
+ //# sourceMappingURL=is-valid-protocol.mjs.map
@@ -8,4 +8,4 @@ function isValidQueryString(queryString) {
8
8
  export {
9
9
  isValidQueryString
10
10
  };
11
- //# sourceMappingURL=is-valid-query-string.js.map
11
+ //# sourceMappingURL=is-valid-query-string.mjs.map
@@ -11,4 +11,4 @@ function normalizePath(path) {
11
11
  export {
12
12
  normalizePath
13
13
  };
14
- //# sourceMappingURL=normalize-path.js.map
14
+ //# sourceMappingURL=normalize-path.mjs.map
@@ -1,5 +1,5 @@
1
1
  // packages/url/src/prepend-http.ts
2
- import { isEmail } from "./is-email.js";
2
+ import { isEmail } from "./is-email.mjs";
3
3
  var USABLE_HREF_REGEXP = /^(?:[a-z]+:|#|\?|\.|\/)/i;
4
4
  function prependHTTP(url) {
5
5
  if (!url) {
@@ -14,4 +14,4 @@ function prependHTTP(url) {
14
14
  export {
15
15
  prependHTTP
16
16
  };
17
- //# sourceMappingURL=prepend-http.js.map
17
+ //# sourceMappingURL=prepend-http.mjs.map
@@ -1,5 +1,5 @@
1
1
  // packages/url/src/prepend-https.ts
2
- import { prependHTTP } from "./prepend-http.js";
2
+ import { prependHTTP } from "./prepend-http.mjs";
3
3
  function prependHTTPS(url) {
4
4
  if (!url) {
5
5
  return url;
@@ -13,4 +13,4 @@ function prependHTTPS(url) {
13
13
  export {
14
14
  prependHTTPS
15
15
  };
16
- //# sourceMappingURL=prepend-https.js.map
16
+ //# sourceMappingURL=prepend-https.mjs.map
@@ -1,6 +1,6 @@
1
1
  // packages/url/src/remove-query-args.ts
2
- import { getQueryArgs } from "./get-query-args.js";
3
- import { buildQueryString } from "./build-query-string.js";
2
+ import { getQueryArgs } from "./get-query-args.mjs";
3
+ import { buildQueryString } from "./build-query-string.mjs";
4
4
  function removeQueryArgs(url, ...args) {
5
5
  const fragment = url.replace(/^[^#]*/, "");
6
6
  url = url.replace(/#.*/, "");
@@ -18,4 +18,4 @@ function removeQueryArgs(url, ...args) {
18
18
  export {
19
19
  removeQueryArgs
20
20
  };
21
- //# sourceMappingURL=remove-query-args.js.map
21
+ //# sourceMappingURL=remove-query-args.mjs.map
@@ -9,4 +9,4 @@ function safeDecodeURIComponent(uriComponent) {
9
9
  export {
10
10
  safeDecodeURIComponent
11
11
  };
12
- //# sourceMappingURL=safe-decode-uri-component.js.map
12
+ //# sourceMappingURL=safe-decode-uri-component.mjs.map
@@ -9,4 +9,4 @@ function safeDecodeURI(uri) {
9
9
  export {
10
10
  safeDecodeURI
11
11
  };
12
- //# sourceMappingURL=safe-decode-uri.js.map
12
+ //# sourceMappingURL=safe-decode-uri.mjs.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/url",
3
- "version": "4.36.1-next.8fd3f8831.0",
3
+ "version": "4.37.1-next.06ee73755.0",
4
4
  "description": "WordPress URL utilities.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -29,13 +29,12 @@
29
29
  "build-types",
30
30
  "*.md"
31
31
  ],
32
- "type": "module",
33
32
  "main": "build/index.cjs",
34
- "module": "build-module/index.js",
33
+ "module": "build-module/index.mjs",
35
34
  "exports": {
36
35
  ".": {
37
36
  "types": "./build-types/index.d.ts",
38
- "import": "./build-module/index.js",
37
+ "import": "./build-module/index.mjs",
39
38
  "require": "./build/index.cjs"
40
39
  },
41
40
  "./package.json": "./package.json"
@@ -50,5 +49,5 @@
50
49
  "publishConfig": {
51
50
  "access": "public"
52
51
  },
53
- "gitHead": "e582b351bc4c4b8734bb087f63a3beec9875c3c7"
52
+ "gitHead": "fd315436f44683a993d5f053789b5279d95b2872"
54
53
  }
package/src/test/index.js CHANGED
@@ -144,7 +144,7 @@ describe( 'getProtocol', () => {
144
144
  it( 'returns undefined when the provided value does not contain a URL protocol', () => {
145
145
  expect( getProtocol( '' ) ).toBeUndefined();
146
146
  expect( getProtocol( 'https' ) ).toBeUndefined();
147
- expect( getProtocol( 'test.com' ) ).toBeUndefined();
147
+ expect( getProtocol( 'example.com' ) ).toBeUndefined();
148
148
  expect( getProtocol( ' https:// ' ) ).toBeUndefined();
149
149
  } );
150
150
  } );
@@ -206,7 +206,7 @@ describe( 'getAuthority', () => {
206
206
  expect( getAuthority( 'https:///' ) ).toBeUndefined();
207
207
  expect( getAuthority( 'https://#' ) ).toBeUndefined();
208
208
  expect( getAuthority( 'https://?' ) ).toBeUndefined();
209
- expect( getAuthority( 'test.com' ) ).toBeUndefined();
209
+ expect( getAuthority( 'example.com' ) ).toBeUndefined();
210
210
  expect( getAuthority( 'https://#?hello' ) ).toBeUndefined();
211
211
  } );
212
212
  } );
@@ -274,7 +274,7 @@ describe( 'getPath', () => {
274
274
  expect( getPath( 'https:///test' ) ).toBeUndefined();
275
275
  expect( getPath( 'https://#' ) ).toBeUndefined();
276
276
  expect( getPath( 'https://?' ) ).toBeUndefined();
277
- expect( getPath( 'test.com' ) ).toBeUndefined();
277
+ expect( getPath( 'example.com' ) ).toBeUndefined();
278
278
  expect( getPath( 'https://#?hello' ) ).toBeUndefined();
279
279
  expect( getPath( 'https' ) ).toBeUndefined();
280
280
  } );
@@ -365,11 +365,11 @@ describe( 'getQueryString', () => {
365
365
  'https://andalouses.example/beach?foo[]=bar&foo[]=baz'
366
366
  )
367
367
  ).toBe( 'foo[]=bar&foo[]=baz' );
368
- expect( getQueryString( 'https://test.com?foo[]=bar&foo[]=baz' ) ).toBe(
369
- 'foo[]=bar&foo[]=baz'
370
- );
371
368
  expect(
372
- getQueryString( 'https://test.com?foo=bar&foo=baz?test' )
369
+ getQueryString( 'https://example.com?foo[]=bar&foo[]=baz' )
370
+ ).toBe( 'foo[]=bar&foo[]=baz' );
371
+ expect(
372
+ getQueryString( 'https://example.com?foo=bar&foo=baz?test' )
373
373
  ).toBe( 'foo=bar&foo=baz?test' );
374
374
  } );
375
375
 
@@ -564,7 +564,7 @@ describe( 'getFragment', () => {
564
564
  expect( getFragment( 'https://' ) ).toBeUndefined();
565
565
  expect( getFragment( 'https:///test' ) ).toBeUndefined();
566
566
  expect( getFragment( 'https://?' ) ).toBeUndefined();
567
- expect( getFragment( 'test.com' ) ).toBeUndefined();
567
+ expect( getFragment( 'example.com' ) ).toBeUndefined();
568
568
  } );
569
569
  } );
570
570
 
@@ -1,60 +0,0 @@
1
- // packages/url/src/index.ts
2
- import { isURL } from "./is-url.js";
3
- import { isEmail } from "./is-email.js";
4
- import { isPhoneNumber } from "./is-phone-number.js";
5
- import { getProtocol } from "./get-protocol.js";
6
- import { isValidProtocol } from "./is-valid-protocol.js";
7
- import { getAuthority } from "./get-authority.js";
8
- import { isValidAuthority } from "./is-valid-authority.js";
9
- import { getPath } from "./get-path.js";
10
- import { isValidPath } from "./is-valid-path.js";
11
- import { getQueryString } from "./get-query-string.js";
12
- import { buildQueryString } from "./build-query-string.js";
13
- import { isValidQueryString } from "./is-valid-query-string.js";
14
- import { getPathAndQueryString } from "./get-path-and-query-string.js";
15
- import { getFragment } from "./get-fragment.js";
16
- import { isValidFragment } from "./is-valid-fragment.js";
17
- import { addQueryArgs } from "./add-query-args.js";
18
- import { getQueryArg } from "./get-query-arg.js";
19
- import { getQueryArgs } from "./get-query-args.js";
20
- import { hasQueryArg } from "./has-query-arg.js";
21
- import { removeQueryArgs } from "./remove-query-args.js";
22
- import { prependHTTP } from "./prepend-http.js";
23
- import { safeDecodeURI } from "./safe-decode-uri.js";
24
- import { safeDecodeURIComponent } from "./safe-decode-uri-component.js";
25
- import { filterURLForDisplay } from "./filter-url-for-display.js";
26
- import { cleanForSlug } from "./clean-for-slug.js";
27
- import { getFilename } from "./get-filename.js";
28
- import { normalizePath } from "./normalize-path.js";
29
- import { prependHTTPS } from "./prepend-https.js";
30
- export {
31
- addQueryArgs,
32
- buildQueryString,
33
- cleanForSlug,
34
- filterURLForDisplay,
35
- getAuthority,
36
- getFilename,
37
- getFragment,
38
- getPath,
39
- getPathAndQueryString,
40
- getProtocol,
41
- getQueryArg,
42
- getQueryArgs,
43
- getQueryString,
44
- hasQueryArg,
45
- isEmail,
46
- isPhoneNumber,
47
- isURL,
48
- isValidAuthority,
49
- isValidFragment,
50
- isValidPath,
51
- isValidProtocol,
52
- isValidQueryString,
53
- normalizePath,
54
- prependHTTP,
55
- prependHTTPS,
56
- removeQueryArgs,
57
- safeDecodeURI,
58
- safeDecodeURIComponent
59
- };
60
- //# sourceMappingURL=index.js.map
File without changes
File without changes