@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.mjs CHANGED
@@ -17203,6 +17203,9 @@ var NodeIdGenerator = class {
17203
17203
  function isScopedTo(slug, prefix) {
17204
17204
  return prefix.length > 0 && (slug === prefix || slug.startsWith(`${prefix}/`));
17205
17205
  }
17206
+ function isNestedUnder(slug, prefix) {
17207
+ return prefix.length > 0 && slug.startsWith(`${prefix}/`);
17208
+ }
17206
17209
  var SlugGenerator = class _SlugGenerator {
17207
17210
  constructor(baseSlug, productSlug, versionSlug, slug) {
17208
17211
  this.baseSlug = baseSlug;
@@ -17336,7 +17339,7 @@ var SlugGenerator = class _SlugGenerator {
17336
17339
  if (fullSlug != null) {
17337
17340
  return this.set(fullSlug.join("/"));
17338
17341
  }
17339
- if (this.slug === this.scopeSlug && isScopedTo(navigation_exports.V1.slugjoin(urlSlug), this.relativeScopeSlug)) {
17342
+ if (this.slug === this.scopeSlug && isNestedUnder(navigation_exports.V1.slugjoin(urlSlug), this.relativeScopeSlug)) {
17340
17343
  return this.set(urlSlug);
17341
17344
  }
17342
17345
  return this.append(urlSlug);