@fern-api/fdr-sdk 1.2.39-99e577b270 → 1.2.39-a23cd4c739
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 +4 -9
- package/dist/js/converters/index.js.map +1 -1
- package/dist/js/converters/index.mjs +4 -9
- package/dist/js/converters/index.mjs.map +1 -1
- package/dist/js/index.js +4 -9
- package/dist/js/index.js.map +1 -1
- package/dist/js/index.mjs +4 -9
- package/dist/js/index.mjs.map +1 -1
- package/dist/js/navigation/index.js +4 -9
- package/dist/js/navigation/index.js.map +1 -1
- package/dist/js/navigation/index.mjs +4 -9
- package/dist/js/navigation/index.mjs.map +1 -1
- package/dist/js/navigation/ledger-root-builder.js +30 -8
- package/dist/js/navigation/ledger-root-builder.js.map +1 -1
- package/dist/js/navigation/ledger-root-builder.mjs +30 -8
- package/dist/js/navigation/ledger-root-builder.mjs.map +1 -1
- package/dist/navigation/__test__/findNode.authedRedirect.test.d.ts +2 -0
- package/dist/navigation/__test__/findNode.authedRedirect.test.d.ts.map +1 -0
- package/dist/navigation/__test__/findNode.authedRedirect.test.js +184 -0
- package/dist/navigation/__test__/findNode.authedRedirect.test.js.map +1 -0
- 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/__test__/ledger-root-builder.skipSlugApiReference.test.d.ts +2 -0
- package/dist/navigation/__test__/ledger-root-builder.skipSlugApiReference.test.d.ts.map +1 -0
- package/dist/navigation/__test__/ledger-root-builder.skipSlugApiReference.test.js +210 -0
- package/dist/navigation/__test__/ledger-root-builder.skipSlugApiReference.test.js.map +1 -0
- package/dist/navigation/__test__/ledger-root-builder.variantSharedSegments.test.d.ts +2 -0
- package/dist/navigation/__test__/ledger-root-builder.variantSharedSegments.test.d.ts.map +1 -0
- package/dist/navigation/__test__/ledger-root-builder.variantSharedSegments.test.js +262 -0
- package/dist/navigation/__test__/ledger-root-builder.variantSharedSegments.test.js.map +1 -0
- package/dist/navigation/ledger-root-builder.d.ts +5 -1
- package/dist/navigation/ledger-root-builder.d.ts.map +1 -1
- package/dist/navigation/ledger-root-builder.js +45 -16
- package/dist/navigation/ledger-root-builder.js.map +1 -1
- package/dist/navigation/utils/findNode.d.ts +1 -0
- package/dist/navigation/utils/findNode.d.ts.map +1 -1
- package/dist/navigation/utils/findNode.js +3 -11
- 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__/findNode.authedRedirect.test.d.ts +2 -0
- package/dist/types/navigation/__test__/findNode.authedRedirect.test.d.ts.map +1 -0
- 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/__test__/ledger-root-builder.skipSlugApiReference.test.d.ts +2 -0
- package/dist/types/navigation/__test__/ledger-root-builder.skipSlugApiReference.test.d.ts.map +1 -0
- package/dist/types/navigation/__test__/ledger-root-builder.variantSharedSegments.test.d.ts +2 -0
- package/dist/types/navigation/__test__/ledger-root-builder.variantSharedSegments.test.d.ts.map +1 -0
- package/dist/types/navigation/ledger-root-builder.d.ts +5 -1
- package/dist/types/navigation/ledger-root-builder.d.ts.map +1 -1
- package/dist/types/navigation/utils/findNode.d.ts +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.mjs
CHANGED
|
@@ -19471,12 +19471,6 @@ function findNode(root, slug) {
|
|
|
19471
19471
|
}
|
|
19472
19472
|
}
|
|
19473
19473
|
}
|
|
19474
|
-
if (!foundProductNode && isProductGroupNode(root.child) && root.child.landingPage != null) {
|
|
19475
|
-
const landingPageSlug = root.child.landingPage.slug;
|
|
19476
|
-
if (slug === landingPageSlug) {
|
|
19477
|
-
return { type: "redirect", redirect: landingPageSlug };
|
|
19478
|
-
}
|
|
19479
|
-
}
|
|
19480
19474
|
return {
|
|
19481
19475
|
type: "notFound",
|
|
19482
19476
|
// External product links don't have pointsTo, only internal products and versions do
|
|
@@ -19583,15 +19577,15 @@ function findNode(root, slug) {
|
|
|
19583
19577
|
};
|
|
19584
19578
|
}
|
|
19585
19579
|
if (root.type === "root" && root.slug === slug && root.pointsTo != null) {
|
|
19586
|
-
return { type: "redirect", redirect: root.pointsTo };
|
|
19580
|
+
return { type: "redirect", redirect: root.pointsTo, authed: root.authed };
|
|
19587
19581
|
}
|
|
19588
19582
|
if (navigation_exports.hasRedirect(found.node) && found.node.pointsTo != null) {
|
|
19589
|
-
return { type: "redirect", redirect: found.node.pointsTo };
|
|
19583
|
+
return { type: "redirect", redirect: found.node.pointsTo, authed: found.node.authed };
|
|
19590
19584
|
}
|
|
19591
19585
|
if (found.node.type === "variant" && (found.node.pointsTo == null || found.node.pointsTo === void 0)) {
|
|
19592
19586
|
const firstPage = findFirstPageInNode(found.node);
|
|
19593
19587
|
if (firstPage != null) {
|
|
19594
|
-
return { type: "redirect", redirect: firstPage };
|
|
19588
|
+
return { type: "redirect", redirect: firstPage, authed: found.node.authed };
|
|
19595
19589
|
}
|
|
19596
19590
|
}
|
|
19597
19591
|
return {
|
|
@@ -19693,6 +19687,7 @@ function followRedirect2(nodeToFollow) {
|
|
|
19693
19687
|
* Versioned and ProductGroup nodes are special in that they have a default child.
|
|
19694
19688
|
*/
|
|
19695
19689
|
case "productgroup":
|
|
19690
|
+
return followRedirect2(nodeToFollow.landingPage ?? void 0) ?? followRedirects2([...nodeToFollow.children].sort(defaultFirst));
|
|
19696
19691
|
case "versioned":
|
|
19697
19692
|
return followRedirects2([...nodeToFollow.children].sort(defaultFirst));
|
|
19698
19693
|
case "apiReference":
|