@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.
@@ -13170,6 +13170,9 @@ var NodeIdGenerator = class {
13170
13170
  function isScopedTo(slug, prefix) {
13171
13171
  return prefix.length > 0 && (slug === prefix || slug.startsWith(`${prefix}/`));
13172
13172
  }
13173
+ function isNestedUnder(slug, prefix) {
13174
+ return prefix.length > 0 && slug.startsWith(`${prefix}/`);
13175
+ }
13173
13176
  var SlugGenerator = class _SlugGenerator {
13174
13177
  constructor(baseSlug, productSlug, versionSlug, slug) {
13175
13178
  this.baseSlug = baseSlug;
@@ -13303,7 +13306,7 @@ var SlugGenerator = class _SlugGenerator {
13303
13306
  if (fullSlug != null) {
13304
13307
  return this.set(fullSlug.join("/"));
13305
13308
  }
13306
- if (this.slug === this.scopeSlug && isScopedTo(navigation_exports.V1.slugjoin(urlSlug), this.relativeScopeSlug)) {
13309
+ if (this.slug === this.scopeSlug && isNestedUnder(navigation_exports.V1.slugjoin(urlSlug), this.relativeScopeSlug)) {
13307
13310
  return this.set(urlSlug);
13308
13311
  }
13309
13312
  return this.append(urlSlug);