@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.
@@ -13131,6 +13131,9 @@ var NodeIdGenerator = class {
13131
13131
  function isScopedTo(slug, prefix) {
13132
13132
  return prefix.length > 0 && (slug === prefix || slug.startsWith(`${prefix}/`));
13133
13133
  }
13134
+ function isNestedUnder(slug, prefix) {
13135
+ return prefix.length > 0 && slug.startsWith(`${prefix}/`);
13136
+ }
13134
13137
  var SlugGenerator = class _SlugGenerator {
13135
13138
  constructor(baseSlug, productSlug, versionSlug, slug) {
13136
13139
  this.baseSlug = baseSlug;
@@ -13264,7 +13267,7 @@ var SlugGenerator = class _SlugGenerator {
13264
13267
  if (fullSlug != null) {
13265
13268
  return this.set(fullSlug.join("/"));
13266
13269
  }
13267
- if (this.slug === this.scopeSlug && isScopedTo(navigation_exports.V1.slugjoin(urlSlug), this.relativeScopeSlug)) {
13270
+ if (this.slug === this.scopeSlug && isNestedUnder(navigation_exports.V1.slugjoin(urlSlug), this.relativeScopeSlug)) {
13268
13271
  return this.set(urlSlug);
13269
13272
  }
13270
13273
  return this.append(urlSlug);