@fern-api/fdr-sdk 1.2.39-9079772dd8 → 1.2.39-95d268d05b
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/converters/index.js +1 -6
- package/dist/js/converters/index.js.map +1 -1
- package/dist/js/converters/index.mjs +1 -6
- package/dist/js/converters/index.mjs.map +1 -1
- package/dist/js/index.js +1 -6
- package/dist/js/index.js.map +1 -1
- package/dist/js/index.mjs +1 -6
- package/dist/js/index.mjs.map +1 -1
- package/dist/js/navigation/index.js +1 -6
- package/dist/js/navigation/index.js.map +1 -1
- package/dist/js/navigation/index.mjs +1 -6
- package/dist/js/navigation/index.mjs.map +1 -1
- package/dist/navigation/__test__/ledger-root-builder.collapsedDeterminism.test.d.ts +2 -0
- package/dist/navigation/__test__/ledger-root-builder.collapsedDeterminism.test.d.ts.map +1 -0
- package/dist/navigation/__test__/ledger-root-builder.collapsedDeterminism.test.js +85 -0
- package/dist/navigation/__test__/ledger-root-builder.collapsedDeterminism.test.js.map +1 -0
- package/dist/navigation/utils/findNode.d.ts.map +1 -1
- package/dist/navigation/utils/findNode.js +0 -8
- package/dist/navigation/utils/findNode.js.map +1 -1
- package/dist/navigation/utils/followRedirect.d.ts.map +1 -1
- package/dist/navigation/utils/followRedirect.js +2 -0
- package/dist/navigation/utils/followRedirect.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/navigation/__test__/ledger-root-builder.collapsedDeterminism.test.d.ts +2 -0
- package/dist/types/navigation/__test__/ledger-root-builder.collapsedDeterminism.test.d.ts.map +1 -0
- package/dist/types/navigation/utils/findNode.d.ts.map +1 -1
- package/dist/types/navigation/utils/followRedirect.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/js/index.js
CHANGED
|
@@ -19534,12 +19534,6 @@ function findNode(root, slug) {
|
|
|
19534
19534
|
}
|
|
19535
19535
|
}
|
|
19536
19536
|
}
|
|
19537
|
-
if (!foundProductNode && isProductGroupNode(root.child) && root.child.landingPage != null) {
|
|
19538
|
-
const landingPageSlug = root.child.landingPage.slug;
|
|
19539
|
-
if (slug === landingPageSlug) {
|
|
19540
|
-
return { type: "redirect", redirect: landingPageSlug };
|
|
19541
|
-
}
|
|
19542
|
-
}
|
|
19543
19537
|
return {
|
|
19544
19538
|
type: "notFound",
|
|
19545
19539
|
// External product links don't have pointsTo, only internal products and versions do
|
|
@@ -19756,6 +19750,7 @@ function followRedirect2(nodeToFollow) {
|
|
|
19756
19750
|
* Versioned and ProductGroup nodes are special in that they have a default child.
|
|
19757
19751
|
*/
|
|
19758
19752
|
case "productgroup":
|
|
19753
|
+
return followRedirect2(nodeToFollow.landingPage ?? void 0) ?? followRedirects2([...nodeToFollow.children].sort(defaultFirst));
|
|
19759
19754
|
case "versioned":
|
|
19760
19755
|
return followRedirects2([...nodeToFollow.children].sort(defaultFirst));
|
|
19761
19756
|
case "apiReference":
|