@uniformdev/redirect 19.79.1-alpha.11 → 19.79.1-alpha.7

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/dist/index.d.mts CHANGED
@@ -452,4 +452,4 @@ type ProcessedUrl = {
452
452
  */
453
453
  declare function processUrl(url: string): ProcessedUrl;
454
454
 
455
- export { DirectionAwareRedirectDefinition, ExtractWildcards, PathTrie, PathTrieData, ProcessedUrl, RedirectClient, RedirectClientGetRedirect, RedirectClientGetRedirects, RedirectClientGetRequest, RedirectClientOptions, RedirectDataCache, RedirectDefinition, RedirectDefinitions, RedirectDeleteRequest, RedirectDeleteResponse, RedirectFileConverter, RedirectFileConverterParams, RedirectGetRequest, RedirectGetResponse, RedirectOptions, RedirectResult, RedirectUpsertRequest, RedirectUpsertResponse, SourceAndTarget, SourceTargetAndWildcards, UncachedRedirectClient, Wildcard, WithMemoryCache, getSourceVariables, getTargetVariableExpandedUrl, mergeQueryStrings, pathTrieReturn, processUrl };
455
+ export { type DirectionAwareRedirectDefinition, ExtractWildcards, PathTrie, PathTrieData, type ProcessedUrl, RedirectClient, type RedirectClientGetRedirect, type RedirectClientGetRedirects, type RedirectClientGetRequest, type RedirectClientOptions, type RedirectDataCache, type RedirectDefinition, type RedirectDefinitions, type RedirectDeleteRequest, type RedirectDeleteResponse, RedirectFileConverter, type RedirectFileConverterParams, type RedirectGetRequest, type RedirectGetResponse, type RedirectOptions, type RedirectResult, type RedirectUpsertRequest, type RedirectUpsertResponse, type SourceAndTarget, type SourceTargetAndWildcards, UncachedRedirectClient, type Wildcard, WithMemoryCache, getSourceVariables, getTargetVariableExpandedUrl, mergeQueryStrings, type pathTrieReturn, processUrl };
package/dist/index.d.ts CHANGED
@@ -452,4 +452,4 @@ type ProcessedUrl = {
452
452
  */
453
453
  declare function processUrl(url: string): ProcessedUrl;
454
454
 
455
- export { DirectionAwareRedirectDefinition, ExtractWildcards, PathTrie, PathTrieData, ProcessedUrl, RedirectClient, RedirectClientGetRedirect, RedirectClientGetRedirects, RedirectClientGetRequest, RedirectClientOptions, RedirectDataCache, RedirectDefinition, RedirectDefinitions, RedirectDeleteRequest, RedirectDeleteResponse, RedirectFileConverter, RedirectFileConverterParams, RedirectGetRequest, RedirectGetResponse, RedirectOptions, RedirectResult, RedirectUpsertRequest, RedirectUpsertResponse, SourceAndTarget, SourceTargetAndWildcards, UncachedRedirectClient, Wildcard, WithMemoryCache, getSourceVariables, getTargetVariableExpandedUrl, mergeQueryStrings, pathTrieReturn, processUrl };
455
+ export { type DirectionAwareRedirectDefinition, ExtractWildcards, PathTrie, PathTrieData, type ProcessedUrl, RedirectClient, type RedirectClientGetRedirect, type RedirectClientGetRedirects, type RedirectClientGetRequest, type RedirectClientOptions, type RedirectDataCache, type RedirectDefinition, type RedirectDefinitions, type RedirectDeleteRequest, type RedirectDeleteResponse, RedirectFileConverter, type RedirectFileConverterParams, type RedirectGetRequest, type RedirectGetResponse, type RedirectOptions, type RedirectResult, type RedirectUpsertRequest, type RedirectUpsertResponse, type SourceAndTarget, type SourceTargetAndWildcards, UncachedRedirectClient, type Wildcard, WithMemoryCache, getSourceVariables, getTargetVariableExpandedUrl, mergeQueryStrings, type pathTrieReturn, processUrl };
package/dist/index.esm.js CHANGED
@@ -260,15 +260,21 @@ import { ApiClient } from "@uniformdev/context/api";
260
260
  // src/util/url.ts
261
261
  function processUrl(url) {
262
262
  var _a, _b, _c, _d, _e, _f;
263
- const matches = url.match(/^(https?:\/\/)?(([^:/?#]*)(?:(:[0-9]+))?)?([/]{0,1}[^?#]*)(\?[^#]*|)(#.*|)$/);
263
+ const matches = url.match(/^(https?:\/\/)?(([^:/?#]*)(?:(:[0-9]+))?)?([/]{0,1}[^?#]*)(\?[^#?]*|)(#.*|)$/);
264
+ const protocol = (_a = matches == null ? void 0 : matches[1]) != null ? _a : "";
265
+ const domain = (_b = matches == null ? void 0 : matches[3]) != null ? _b : "";
266
+ const port = (_c = matches == null ? void 0 : matches[4]) != null ? _c : "";
267
+ const path = (_d = matches == null ? void 0 : matches[5].replace(/\/+$/g, "")) != null ? _d : "";
268
+ const query = (_e = matches == null ? void 0 : matches[6]) != null ? _e : "";
269
+ const fragment = (_f = matches == null ? void 0 : matches[7]) != null ? _f : "";
264
270
  return {
265
- url,
266
- protocol: (_a = matches == null ? void 0 : matches[1]) != null ? _a : "",
267
- domain: (_b = matches == null ? void 0 : matches[3]) != null ? _b : "",
268
- port: (_c = matches == null ? void 0 : matches[4]) != null ? _c : "",
269
- path: (_d = matches == null ? void 0 : matches[5]) != null ? _d : "",
270
- query: (_e = matches == null ? void 0 : matches[6]) != null ? _e : "",
271
- fragment: (_f = matches == null ? void 0 : matches[7]) != null ? _f : ""
271
+ url: `${protocol}${domain}${port}${path}${query}${fragment}`,
272
+ protocol,
273
+ domain,
274
+ port,
275
+ path,
276
+ query,
277
+ fragment
272
278
  };
273
279
  }
274
280
 
package/dist/index.js CHANGED
@@ -306,15 +306,21 @@ var import_api = require("@uniformdev/context/api");
306
306
  // src/util/url.ts
307
307
  function processUrl(url) {
308
308
  var _a, _b, _c, _d, _e, _f;
309
- const matches = url.match(/^(https?:\/\/)?(([^:/?#]*)(?:(:[0-9]+))?)?([/]{0,1}[^?#]*)(\?[^#]*|)(#.*|)$/);
309
+ const matches = url.match(/^(https?:\/\/)?(([^:/?#]*)(?:(:[0-9]+))?)?([/]{0,1}[^?#]*)(\?[^#?]*|)(#.*|)$/);
310
+ const protocol = (_a = matches == null ? void 0 : matches[1]) != null ? _a : "";
311
+ const domain = (_b = matches == null ? void 0 : matches[3]) != null ? _b : "";
312
+ const port = (_c = matches == null ? void 0 : matches[4]) != null ? _c : "";
313
+ const path = (_d = matches == null ? void 0 : matches[5].replace(/\/+$/g, "")) != null ? _d : "";
314
+ const query = (_e = matches == null ? void 0 : matches[6]) != null ? _e : "";
315
+ const fragment = (_f = matches == null ? void 0 : matches[7]) != null ? _f : "";
310
316
  return {
311
- url,
312
- protocol: (_a = matches == null ? void 0 : matches[1]) != null ? _a : "",
313
- domain: (_b = matches == null ? void 0 : matches[3]) != null ? _b : "",
314
- port: (_c = matches == null ? void 0 : matches[4]) != null ? _c : "",
315
- path: (_d = matches == null ? void 0 : matches[5]) != null ? _d : "",
316
- query: (_e = matches == null ? void 0 : matches[6]) != null ? _e : "",
317
- fragment: (_f = matches == null ? void 0 : matches[7]) != null ? _f : ""
317
+ url: `${protocol}${domain}${port}${path}${query}${fragment}`,
318
+ protocol,
319
+ domain,
320
+ port,
321
+ path,
322
+ query,
323
+ fragment
318
324
  };
319
325
  }
320
326
 
package/dist/index.mjs CHANGED
@@ -260,15 +260,21 @@ import { ApiClient } from "@uniformdev/context/api";
260
260
  // src/util/url.ts
261
261
  function processUrl(url) {
262
262
  var _a, _b, _c, _d, _e, _f;
263
- const matches = url.match(/^(https?:\/\/)?(([^:/?#]*)(?:(:[0-9]+))?)?([/]{0,1}[^?#]*)(\?[^#]*|)(#.*|)$/);
263
+ const matches = url.match(/^(https?:\/\/)?(([^:/?#]*)(?:(:[0-9]+))?)?([/]{0,1}[^?#]*)(\?[^#?]*|)(#.*|)$/);
264
+ const protocol = (_a = matches == null ? void 0 : matches[1]) != null ? _a : "";
265
+ const domain = (_b = matches == null ? void 0 : matches[3]) != null ? _b : "";
266
+ const port = (_c = matches == null ? void 0 : matches[4]) != null ? _c : "";
267
+ const path = (_d = matches == null ? void 0 : matches[5].replace(/\/+$/g, "")) != null ? _d : "";
268
+ const query = (_e = matches == null ? void 0 : matches[6]) != null ? _e : "";
269
+ const fragment = (_f = matches == null ? void 0 : matches[7]) != null ? _f : "";
264
270
  return {
265
- url,
266
- protocol: (_a = matches == null ? void 0 : matches[1]) != null ? _a : "",
267
- domain: (_b = matches == null ? void 0 : matches[3]) != null ? _b : "",
268
- port: (_c = matches == null ? void 0 : matches[4]) != null ? _c : "",
269
- path: (_d = matches == null ? void 0 : matches[5]) != null ? _d : "",
270
- query: (_e = matches == null ? void 0 : matches[6]) != null ? _e : "",
271
- fragment: (_f = matches == null ? void 0 : matches[7]) != null ? _f : ""
271
+ url: `${protocol}${domain}${port}${path}${query}${fragment}`,
272
+ protocol,
273
+ domain,
274
+ port,
275
+ path,
276
+ query,
277
+ fragment
272
278
  };
273
279
  }
274
280
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/redirect",
3
- "version": "19.79.1-alpha.11+4547ef846",
3
+ "version": "19.79.1-alpha.7+bd4b0c6f4",
4
4
  "description": "Uniform redirect client",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -33,12 +33,12 @@
33
33
  "/dist"
34
34
  ],
35
35
  "dependencies": {
36
- "@uniformdev/context": "19.79.1-alpha.11+4547ef846",
36
+ "@uniformdev/context": "19.79.1-alpha.7+bd4b0c6f4",
37
37
  "p-limit": "^3.1.0",
38
38
  "rfdc": "^1.3.0"
39
39
  },
40
40
  "publishConfig": {
41
41
  "access": "public"
42
42
  },
43
- "gitHead": "4547ef8469f21f7f2341bcd87203372c4646bc08"
43
+ "gitHead": "bd4b0c6f4a67549f8eb7e127a85927c798e7eed0"
44
44
  }