@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.
package/dist/js/index.js CHANGED
@@ -17266,6 +17266,9 @@ var NodeIdGenerator = class {
17266
17266
  function isScopedTo(slug, prefix) {
17267
17267
  return prefix.length > 0 && (slug === prefix || slug.startsWith(`${prefix}/`));
17268
17268
  }
17269
+ function isNestedUnder(slug, prefix) {
17270
+ return prefix.length > 0 && slug.startsWith(`${prefix}/`);
17271
+ }
17269
17272
  var SlugGenerator = class _SlugGenerator {
17270
17273
  constructor(baseSlug, productSlug, versionSlug, slug) {
17271
17274
  this.baseSlug = baseSlug;
@@ -17399,7 +17402,7 @@ var SlugGenerator = class _SlugGenerator {
17399
17402
  if (fullSlug != null) {
17400
17403
  return this.set(fullSlug.join("/"));
17401
17404
  }
17402
- if (this.slug === this.scopeSlug && isScopedTo(navigation_exports.V1.slugjoin(urlSlug), this.relativeScopeSlug)) {
17405
+ if (this.slug === this.scopeSlug && isNestedUnder(navigation_exports.V1.slugjoin(urlSlug), this.relativeScopeSlug)) {
17403
17406
  return this.set(urlSlug);
17404
17407
  }
17405
17408
  return this.append(urlSlug);