kenobi-js 0.1.38 → 0.1.39
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/browser/dist.js +2 -7
- package/browser/dist.js.map +2 -2
- package/browser/dist.min.js +5 -5
- package/package.json +1 -1
package/browser/dist.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Kenobi SDK v0.1.
|
|
2
|
+
* Kenobi SDK v0.1.38
|
|
3
3
|
* (c) 2025 Kenobi.ai
|
|
4
4
|
*/
|
|
5
5
|
"use strict";
|
|
@@ -2573,16 +2573,11 @@ var KenobiLib = (() => {
|
|
|
2573
2573
|
__publicField(this, "formatThousands", /* @__PURE__ */ __name((number) => new Intl.NumberFormat("en-US").format(number), "formatThousands"));
|
|
2574
2574
|
__publicField(this, "setDebug", /* @__PURE__ */ __name((value) => this.config.debug = value, "setDebug"));
|
|
2575
2575
|
/**
|
|
2576
|
-
* Checks if a path matches a pattern.
|
|
2577
|
-
* Supports exact matches ("/pricing") and wildcard suffixes ("/blog/*").
|
|
2576
|
+
* Checks if a path matches a pattern (exact match only).
|
|
2578
2577
|
*/
|
|
2579
2578
|
__publicField(this, "matchesPathPattern", /* @__PURE__ */ __name((path, pattern) => {
|
|
2580
2579
|
const normalizedPath = path === "/" ? "/" : path.replace(/\/$/, "");
|
|
2581
2580
|
const normalizedPattern = pattern === "/" ? "/" : pattern.replace(/\/$/, "");
|
|
2582
|
-
if (normalizedPattern.endsWith("/*")) {
|
|
2583
|
-
const base = normalizedPattern.slice(0, -2);
|
|
2584
|
-
return normalizedPath === base || normalizedPath.startsWith(base + "/");
|
|
2585
|
-
}
|
|
2586
2581
|
return normalizedPath === normalizedPattern;
|
|
2587
2582
|
}, "matchesPathPattern"));
|
|
2588
2583
|
/**
|