@fern-api/fdr-sdk 1.2.96-066f6aa406 → 1.2.96-8e5f0d55dd

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.
@@ -11855,6 +11855,9 @@ var NodeIdGenerator = class {
11855
11855
  function isScopedTo(slug, prefix) {
11856
11856
  return prefix.length > 0 && (slug === prefix || slug.startsWith(`${prefix}/`));
11857
11857
  }
11858
+ function isNestedUnder(slug, prefix) {
11859
+ return prefix.length > 0 && slug.startsWith(`${prefix}/`);
11860
+ }
11858
11861
  var SlugGenerator = class _SlugGenerator {
11859
11862
  constructor(baseSlug, productSlug, versionSlug, slug) {
11860
11863
  this.baseSlug = baseSlug;
@@ -11988,7 +11991,7 @@ var SlugGenerator = class _SlugGenerator {
11988
11991
  if (fullSlug != null) {
11989
11992
  return this.set(fullSlug.join("/"));
11990
11993
  }
11991
- if (this.slug === this.scopeSlug && isScopedTo(navigation_exports.V1.slugjoin(urlSlug), this.relativeScopeSlug)) {
11994
+ if (this.slug === this.scopeSlug && isNestedUnder(navigation_exports.V1.slugjoin(urlSlug), this.relativeScopeSlug)) {
11992
11995
  return this.set(urlSlug);
11993
11996
  }
11994
11997
  return this.append(urlSlug);