@fern-api/fern-api-dev 4.53.1-11-gb3c57b310a3 → 4.53.1-15-g4f2ceb97072
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/cli.cjs +9 -37
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -602380,7 +602380,7 @@ var AccessTokenPosthogManager = class {
|
|
|
602380
602380
|
properties: {
|
|
602381
602381
|
...event,
|
|
602382
602382
|
...event.properties,
|
|
602383
|
-
version: "4.53.1-
|
|
602383
|
+
version: "4.53.1-15-g4f2ceb97072",
|
|
602384
602384
|
usingAccessToken: true
|
|
602385
602385
|
}
|
|
602386
602386
|
});
|
|
@@ -602431,7 +602431,7 @@ var UserPosthogManager = class {
|
|
|
602431
602431
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
602432
602432
|
event: "CLI",
|
|
602433
602433
|
properties: {
|
|
602434
|
-
version: "4.53.1-
|
|
602434
|
+
version: "4.53.1-15-g4f2ceb97072",
|
|
602435
602435
|
...event,
|
|
602436
602436
|
...event.properties,
|
|
602437
602437
|
usingAccessToken: false,
|
|
@@ -826304,7 +826304,7 @@ var import_path54 = __toESM(require("path"), 1);
|
|
|
826304
826304
|
var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
826305
826305
|
var LOGS_FOLDER_NAME = "logs";
|
|
826306
826306
|
function getCliSource() {
|
|
826307
|
-
const version7 = "4.53.1-
|
|
826307
|
+
const version7 = "4.53.1-15-g4f2ceb97072";
|
|
826308
826308
|
return `cli@${version7}`;
|
|
826309
826309
|
}
|
|
826310
826310
|
var DebugLogger = class {
|
|
@@ -837316,7 +837316,7 @@ var LegacyDocsPublisher = class {
|
|
|
837316
837316
|
previewId: void 0,
|
|
837317
837317
|
disableTemplates: void 0,
|
|
837318
837318
|
skipUpload,
|
|
837319
|
-
cliVersion: "4.53.1-
|
|
837319
|
+
cliVersion: "4.53.1-15-g4f2ceb97072"
|
|
837320
837320
|
});
|
|
837321
837321
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
837322
837322
|
return { success: false };
|
|
@@ -879864,10 +879864,7 @@ var EndpointSnippetGenerator8 = class {
|
|
|
879864
879864
|
const hasBody = request7.body != null;
|
|
879865
879865
|
const body = request7.body;
|
|
879866
879866
|
const isReferencedBodyOnly = body != null && !hasQueryParams && body.type === "referenced";
|
|
879867
|
-
|
|
879868
|
-
if (isBytesWithQueryParams) {
|
|
879869
|
-
args.push(...this.getBytesEndpointArgs({ request: request7, snippet: snippet2 }));
|
|
879870
|
-
} else if (isReferencedBodyOnly && body.type === "referenced") {
|
|
879867
|
+
if (isReferencedBodyOnly && body.type === "referenced") {
|
|
879871
879868
|
const bodyExpr = this.getReferencedRequestBodyPropertyExpression({
|
|
879872
879869
|
body: body.bodyType,
|
|
879873
879870
|
value: snippet2.requestBody
|
|
@@ -879884,34 +879881,6 @@ var EndpointSnippetGenerator8 = class {
|
|
|
879884
879881
|
}
|
|
879885
879882
|
return args;
|
|
879886
879883
|
}
|
|
879887
|
-
getBytesEndpointArgs({ request: request7, snippet: snippet2 }) {
|
|
879888
|
-
const args = [];
|
|
879889
|
-
const queryParameters = this.context.associateQueryParametersByWireValue({
|
|
879890
|
-
parameters: request7.queryParameters ?? [],
|
|
879891
|
-
values: snippet2.queryParameters ?? {}
|
|
879892
|
-
});
|
|
879893
|
-
const providedValues = /* @__PURE__ */ new Map();
|
|
879894
|
-
for (const qp4 of queryParameters) {
|
|
879895
|
-
const fieldName = this.context.getPropertyName(qp4.name.name);
|
|
879896
|
-
providedValues.set(fieldName, this.context.dynamicTypeLiteralMapper.convert(qp4));
|
|
879897
|
-
}
|
|
879898
|
-
const allQueryParams = request7.queryParameters ?? [];
|
|
879899
|
-
for (const param of allQueryParams) {
|
|
879900
|
-
const fieldName = this.context.getPropertyName(param.name.name);
|
|
879901
|
-
const value = providedValues.get(fieldName);
|
|
879902
|
-
if (value != null) {
|
|
879903
|
-
args.push(rust_exports.Expression.referenceOf(value));
|
|
879904
|
-
} else {
|
|
879905
|
-
args.push(rust_exports.Expression.referenceOf(rust_exports.Expression.raw("None")));
|
|
879906
|
-
}
|
|
879907
|
-
}
|
|
879908
|
-
if (snippet2.requestBody != null && typeof snippet2.requestBody === "string" && snippet2.requestBody !== "") {
|
|
879909
|
-
args.push(rust_exports.Expression.referenceOf(rust_exports.Expression.raw(`"${snippet2.requestBody}".as_bytes().to_vec()`)));
|
|
879910
|
-
} else {
|
|
879911
|
-
args.push(rust_exports.Expression.referenceOf(rust_exports.Expression.raw("vec![]")));
|
|
879912
|
-
}
|
|
879913
|
-
return args;
|
|
879914
|
-
}
|
|
879915
879884
|
getBodyRequestArg({ body, value }) {
|
|
879916
879885
|
switch (body.type) {
|
|
879917
879886
|
case "bytes":
|
|
@@ -879923,6 +879892,9 @@ var EndpointSnippetGenerator8 = class {
|
|
|
879923
879892
|
}
|
|
879924
879893
|
}
|
|
879925
879894
|
getBytesBodyRequestArg({ value }) {
|
|
879895
|
+
if (value == null) {
|
|
879896
|
+
return rust_exports.Expression.raw("vec![]");
|
|
879897
|
+
}
|
|
879926
879898
|
if (typeof value !== "string") {
|
|
879927
879899
|
this.context.errors.add({
|
|
879928
879900
|
severity: Severity.Critical,
|
|
@@ -910486,7 +910458,7 @@ var CliContext = class {
|
|
|
910486
910458
|
if (false) {
|
|
910487
910459
|
this.logger.error("CLI_VERSION is not defined");
|
|
910488
910460
|
}
|
|
910489
|
-
return "4.53.1-
|
|
910461
|
+
return "4.53.1-15-g4f2ceb97072";
|
|
910490
910462
|
}
|
|
910491
910463
|
getCliName() {
|
|
910492
910464
|
if (false) {
|
package/package.json
CHANGED