@fern-api/fdr-sdk 0.136.12-64661e34f → 0.136.13-0e26f1bae
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"followRedirect.d.ts","sourceRoot":"","sources":["../../../../src/navigation/versions/v1/followRedirect.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAG1C,wBAAgB,cAAc,CAC5B,YAAY,EAAE,cAAc,CAAC,EAAE,CAAC,cAAc,GAAG,SAAS,GACzD,cAAc,CAAC,EAAE,CAAC,IAAI,GAAG,SAAS,
|
|
1
|
+
{"version":3,"file":"followRedirect.d.ts","sourceRoot":"","sources":["../../../../src/navigation/versions/v1/followRedirect.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAG1C,wBAAgB,cAAc,CAC5B,YAAY,EAAE,cAAc,CAAC,EAAE,CAAC,cAAc,GAAG,SAAS,GACzD,cAAc,CAAC,EAAE,CAAC,IAAI,GAAG,SAAS,CA6CpC;AAED,wBAAgB,eAAe,CAC7B,KAAK,EAAE,cAAc,CAAC,EAAE,CAAC,cAAc,EAAE,GACxC,cAAc,CAAC,EAAE,CAAC,IAAI,GAAG,SAAS,CAYpC"}
|
|
@@ -20,9 +20,9 @@ export function followRedirect(nodeToFollow) {
|
|
|
20
20
|
apiPackage: (node) => node.overviewPageId != null ? node.slug : followRedirects(node.children),
|
|
21
21
|
section: (node) => node.overviewPageId != null ? node.slug : followRedirects(node.children),
|
|
22
22
|
apiReference: (node) => node.overviewPageId != null ? node.slug : followRedirects(node.children),
|
|
23
|
-
// version is a special case where it should only consider it's first child (the first version)
|
|
24
23
|
product: (node) => followRedirect(node.child),
|
|
25
|
-
productgroup: (node) => followRedirect(node.children.filter((node) => !node.hidden)[0]),
|
|
24
|
+
productgroup: (node) => followRedirect(node.landingPage ?? node.children.filter((node) => !node.hidden)[0]),
|
|
25
|
+
// version is a special case where it should only consider it's first child (the first version)
|
|
26
26
|
versioned: (node) => followRedirect(node.children.filter((node) => !node.hidden)[0]),
|
|
27
27
|
unversioned: (node) => followRedirect(node.landingPage ?? node.child),
|
|
28
28
|
tabbed: (node) => followRedirects(node.children),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fern-api/fdr-sdk",
|
|
3
|
-
"version": "0.136.
|
|
3
|
+
"version": "0.136.13-0e26f1bae",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"test:update": "vitest --run --passWithNoTests --globals -u"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@fern-api/ui-core-utils": "0.136.
|
|
52
|
+
"@fern-api/ui-core-utils": "0.136.13-0e26f1bae*",
|
|
53
53
|
"@ungap/structured-clone": "^1.2.0",
|
|
54
54
|
"dayjs": "^1.11.11",
|
|
55
55
|
"es-toolkit": "^1.32.0",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"@babel/core": "^7.26.9",
|
|
69
69
|
"@babel/preset-env": "^7.26.0",
|
|
70
70
|
"@babel/preset-typescript": "^7.26.0",
|
|
71
|
-
"@fern-platform/configs": "0.136.
|
|
71
|
+
"@fern-platform/configs": "0.136.13-0e26f1bae*",
|
|
72
72
|
"@types/node-fetch": "2.6.9",
|
|
73
73
|
"@types/qs": "6.9.14",
|
|
74
74
|
"@types/tinycolor2": "^1.4.6",
|