@fern-api/fdr-sdk 0.137.2-d6ca216f2 → 0.137.2-e67fdff43
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":"get-har-request.d.ts","sourceRoot":"","sources":["../../../src/api-definition/snippets/get-har-request.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAOnD,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,EAE5B,MAAM,KAAK,CAAC;AACb,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAEjD,wBAAgB,aAAa,CAC3B,QAAQ,EAAE,kBAAkB,EAC5B,OAAO,EAAE,mBAAmB,EAC5B,KAAK,EAAE,MAAM,CAAC,YAAY,EAAE,OAAO,CAAC,EACpC,WAAW,EAAE,sBAAsB,GAAG,SAAS,GAC9C,UAAU,
|
|
1
|
+
{"version":3,"file":"get-har-request.d.ts","sourceRoot":"","sources":["../../../src/api-definition/snippets/get-har-request.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAOnD,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,EAE5B,MAAM,KAAK,CAAC;AACb,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAEjD,wBAAgB,aAAa,CAC3B,QAAQ,EAAE,kBAAkB,EAC5B,OAAO,EAAE,mBAAmB,EAC5B,KAAK,EAAE,MAAM,CAAC,YAAY,EAAE,OAAO,CAAC,EACpC,WAAW,EAAE,sBAAsB,GAAG,SAAS,GAC9C,UAAU,CA6JZ"}
|
|
@@ -36,10 +36,12 @@ export function getHarRequest(endpoint, example, auths, requestBody) {
|
|
|
36
36
|
request.postData = {
|
|
37
37
|
mimeType,
|
|
38
38
|
};
|
|
39
|
-
// filter out request parameters that have no value
|
|
39
|
+
// filter out request parameters that have no value and are not an array
|
|
40
40
|
if (requestBody.value && typeof requestBody.value === "object") {
|
|
41
41
|
requestBody.value = Object.fromEntries(Object.entries(requestBody.value).filter(([_, valueObj]) => {
|
|
42
|
-
if (typeof valueObj === "object" &&
|
|
42
|
+
if (typeof valueObj === "object" &&
|
|
43
|
+
valueObj != null &&
|
|
44
|
+
!Array.isArray(valueObj)) {
|
|
43
45
|
return "value" in valueObj;
|
|
44
46
|
}
|
|
45
47
|
return true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fern-api/fdr-sdk",
|
|
3
|
-
"version": "0.137.2-
|
|
3
|
+
"version": "0.137.2-e67fdff43",
|
|
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.137.2-
|
|
52
|
+
"@fern-api/ui-core-utils": "0.137.2-e67fdff43*",
|
|
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.137.2-
|
|
71
|
+
"@fern-platform/configs": "0.137.2-e67fdff43*",
|
|
72
72
|
"@types/node-fetch": "2.6.9",
|
|
73
73
|
"@types/qs": "6.9.14",
|
|
74
74
|
"@types/tinycolor2": "^1.4.6",
|