@thisisagile/easy 17.13.4 → 17.13.5

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.js CHANGED
@@ -128,6 +128,7 @@ __export(src_exports, {
128
128
  cacheAge: () => cacheAge,
129
129
  capitalize: () => capitalize,
130
130
  choose: () => choose,
131
+ clipUri: () => clipUri,
131
132
  constraint: () => constraint,
132
133
  convert: () => convert,
133
134
  ctx: () => ctx,
@@ -3280,6 +3281,7 @@ var EasyUri = class _EasyUri {
3280
3281
  return entries(props).filter(([_, v]) => isNotEmpty(v)).reduce((u, [k, v]) => isBoolean(v) ? u.set(uri.boolean(k), v) : u.set(uri.query(k), toArray(v).join(",")), this);
3281
3282
  }
3282
3283
  };
3284
+ var clipUri = (uri2) => tryTo(() => asString(uri2)).map((uri3) => uri3.replace(/^(https?:\/\/)?(www\.)?/, "")).map((uri3) => uri3.replace(/\/$/, "")).value;
3283
3285
 
3284
3286
  // src/utils/Base64.ts
3285
3287
  var base64 = {
@@ -3458,6 +3460,7 @@ var wait = (millis) => Wait.wait(millis);
3458
3460
  cacheAge,
3459
3461
  capitalize,
3460
3462
  choose,
3463
+ clipUri,
3461
3464
  constraint,
3462
3465
  convert,
3463
3466
  ctx,