@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.
@@ -11831,6 +11831,9 @@ var NodeIdGenerator = class {
11831
11831
  function isScopedTo(slug, prefix) {
11832
11832
  return prefix.length > 0 && (slug === prefix || slug.startsWith(`${prefix}/`));
11833
11833
  }
11834
+ function isNestedUnder(slug, prefix) {
11835
+ return prefix.length > 0 && slug.startsWith(`${prefix}/`);
11836
+ }
11834
11837
  var SlugGenerator = class _SlugGenerator {
11835
11838
  constructor(baseSlug, productSlug, versionSlug, slug) {
11836
11839
  this.baseSlug = baseSlug;
@@ -11964,7 +11967,7 @@ var SlugGenerator = class _SlugGenerator {
11964
11967
  if (fullSlug != null) {
11965
11968
  return this.set(fullSlug.join("/"));
11966
11969
  }
11967
- if (this.slug === this.scopeSlug && isScopedTo(navigation_exports.V1.slugjoin(urlSlug), this.relativeScopeSlug)) {
11970
+ if (this.slug === this.scopeSlug && isNestedUnder(navigation_exports.V1.slugjoin(urlSlug), this.relativeScopeSlug)) {
11968
11971
  return this.set(urlSlug);
11969
11972
  }
11970
11973
  return this.append(urlSlug);