fern-api 0.36.0-rc1 → 0.36.0
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/bundle.cjs +6 -6
- package/package.json +1 -1
package/bundle.cjs
CHANGED
|
@@ -1189932,7 +1189932,7 @@ var AccessTokenPosthogManager = class {
|
|
|
1189932
1189932
|
properties: {
|
|
1189933
1189933
|
...event,
|
|
1189934
1189934
|
...event.properties,
|
|
1189935
|
-
version: "0.36.0
|
|
1189935
|
+
version: "0.36.0",
|
|
1189936
1189936
|
usingAccessToken: true
|
|
1189937
1189937
|
}
|
|
1189938
1189938
|
});
|
|
@@ -1189994,7 +1189994,7 @@ var UserPosthogManager = class {
|
|
|
1189994
1189994
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
1189995
1189995
|
event: "CLI",
|
|
1189996
1189996
|
properties: {
|
|
1189997
|
-
version: "0.36.0
|
|
1189997
|
+
version: "0.36.0",
|
|
1189998
1189998
|
...event,
|
|
1189999
1189999
|
...event.properties
|
|
1190000
1190000
|
}
|
|
@@ -1212858,7 +1212858,7 @@ var HeaderWithCount = class {
|
|
|
1212858
1212858
|
}
|
|
1212859
1212859
|
};
|
|
1212860
1212860
|
var GLOBAL_HEADER_PERCENTAGE_THRESHOLD = 0.75;
|
|
1212861
|
-
var HEADERS_TO_IGNORE = new Set(...["
|
|
1212861
|
+
var HEADERS_TO_IGNORE = new Set(...["authorization"]);
|
|
1212862
1212862
|
function buildGlobalHeaders(context) {
|
|
1212863
1212863
|
const predefinedGlobalHeaders = Object.fromEntries((context.ir.globalHeaders ?? []).map((header) => [header.header, header]));
|
|
1212864
1212864
|
for (const [headerName, header] of Object.entries(predefinedGlobalHeaders)) {
|
|
@@ -1212885,7 +1212885,7 @@ function buildGlobalHeaders(context) {
|
|
|
1212885
1212885
|
const globalHeaders = {};
|
|
1212886
1212886
|
for (const endpoint of context.ir.endpoints) {
|
|
1212887
1212887
|
for (const header of endpoint.headers) {
|
|
1212888
|
-
if (HEADERS_TO_IGNORE.has(header.name)) {
|
|
1212888
|
+
if (HEADERS_TO_IGNORE.has(header.name.toLowerCase())) {
|
|
1212889
1212889
|
continue;
|
|
1212890
1212890
|
}
|
|
1212891
1212891
|
let headerWithCount = globalHeaders[header.name];
|
|
@@ -1218297,10 +1218297,10 @@ var CliContext = class {
|
|
|
1218297
1218297
|
return "fern-api";
|
|
1218298
1218298
|
}
|
|
1218299
1218299
|
getPackageVersion() {
|
|
1218300
|
-
if ("0.36.0
|
|
1218300
|
+
if ("0.36.0" == null) {
|
|
1218301
1218301
|
this.logger.error("CLI_VERSION is not defined");
|
|
1218302
1218302
|
}
|
|
1218303
|
-
return "0.36.0
|
|
1218303
|
+
return "0.36.0";
|
|
1218304
1218304
|
}
|
|
1218305
1218305
|
getCliName() {
|
|
1218306
1218306
|
if ("fern" == null) {
|