@fern-api/fern-api-dev 4.94.1-8-g7a0fcfffa0a → 4.94.2
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 +21 -5
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -618017,7 +618017,7 @@ var AccessTokenPosthogManager = class {
|
|
|
618017
618017
|
properties: {
|
|
618018
618018
|
...event,
|
|
618019
618019
|
...event.properties,
|
|
618020
|
-
version: "4.94.
|
|
618020
|
+
version: "4.94.2",
|
|
618021
618021
|
usingAccessToken: true
|
|
618022
618022
|
}
|
|
618023
618023
|
});
|
|
@@ -618071,7 +618071,7 @@ var UserPosthogManager = class {
|
|
|
618071
618071
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
618072
618072
|
event: "CLI",
|
|
618073
618073
|
properties: {
|
|
618074
|
-
version: "4.94.
|
|
618074
|
+
version: "4.94.2",
|
|
618075
618075
|
...event,
|
|
618076
618076
|
...event.properties,
|
|
618077
618077
|
usingAccessToken: false,
|
|
@@ -829195,7 +829195,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
829195
829195
|
var LOGS_FOLDER_NAME = "logs";
|
|
829196
829196
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
829197
829197
|
function getCliSource() {
|
|
829198
|
-
const version7 = "4.94.
|
|
829198
|
+
const version7 = "4.94.2";
|
|
829199
829199
|
return `cli@${version7}`;
|
|
829200
829200
|
}
|
|
829201
829201
|
var DebugLogger = class {
|
|
@@ -841158,7 +841158,7 @@ var LegacyDocsPublisher = class {
|
|
|
841158
841158
|
previewId,
|
|
841159
841159
|
disableTemplates: void 0,
|
|
841160
841160
|
skipUpload,
|
|
841161
|
-
cliVersion: "4.94.
|
|
841161
|
+
cliVersion: "4.94.2",
|
|
841162
841162
|
loginCommand: "fern auth login"
|
|
841163
841163
|
});
|
|
841164
841164
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -875914,6 +875914,7 @@ var DynamicTypeLiteralMapper3 = class {
|
|
|
875914
875914
|
}
|
|
875915
875915
|
}
|
|
875916
875916
|
convertDiscriminatedUnion({ discriminatedUnion: discriminatedUnion2, value: value2 }) {
|
|
875917
|
+
const typedDictRequests = this.context.useTypedDictRequests();
|
|
875917
875918
|
const discriminatedUnionTypeInstance = this.context.resolveDiscriminatedUnionTypeInstance({
|
|
875918
875919
|
discriminatedUnion: discriminatedUnion2,
|
|
875919
875920
|
value: value2
|
|
@@ -875929,6 +875930,13 @@ var DynamicTypeLiteralMapper3 = class {
|
|
|
875929
875930
|
if (unionProperties == null) {
|
|
875930
875931
|
return python_exports.TypeInstantiation.nop();
|
|
875931
875932
|
}
|
|
875933
|
+
if (typedDictRequests) {
|
|
875934
|
+
const discriminantEntry = {
|
|
875935
|
+
name: this.context.getPropertyName(discriminatedUnion2.discriminant.name),
|
|
875936
|
+
value: python_exports.TypeInstantiation.str(discriminatedUnionTypeInstance.discriminantValue.wireValue)
|
|
875937
|
+
};
|
|
875938
|
+
return python_exports.TypeInstantiation.typedDict([discriminantEntry, ...unionProperties], { multiline: true });
|
|
875939
|
+
}
|
|
875932
875940
|
const variantClassReference = this.context.getDiscriminatedUnionVariantClassReference({
|
|
875933
875941
|
unionDeclaration: discriminatedUnion2.declaration,
|
|
875934
875942
|
discriminantValue: unionVariant.discriminantValue
|
|
@@ -876059,7 +876067,11 @@ var DynamicTypeLiteralMapper3 = class {
|
|
|
876059
876067
|
return result.filter((entry) => !python_exports.TypeInstantiation.isNop(entry.value));
|
|
876060
876068
|
}
|
|
876061
876069
|
convertObject({ object_, value: value2 }) {
|
|
876070
|
+
const typedDictRequests = this.context.useTypedDictRequests();
|
|
876062
876071
|
const entries23 = this.convertObjectEntries({ object_, value: value2 });
|
|
876072
|
+
if (typedDictRequests) {
|
|
876073
|
+
return python_exports.TypeInstantiation.typedDict(entries23, { multiline: true });
|
|
876074
|
+
}
|
|
876063
876075
|
const classReference4 = this.context.getTypeClassReference(object_.declaration);
|
|
876064
876076
|
return python_exports.TypeInstantiation.reference(python_exports.instantiateClass({
|
|
876065
876077
|
classReference: classReference4,
|
|
@@ -876210,6 +876222,7 @@ var DynamicTypeLiteralMapper3 = class {
|
|
|
876210
876222
|
}
|
|
876211
876223
|
}
|
|
876212
876224
|
synthesizeDefaultNamed({ named, typeId, seen }) {
|
|
876225
|
+
const typedDictRequests = this.context.useTypedDictRequests();
|
|
876213
876226
|
const newSeen = new Set(seen);
|
|
876214
876227
|
newSeen.add(typeId);
|
|
876215
876228
|
switch (named.type) {
|
|
@@ -876245,6 +876258,9 @@ var DynamicTypeLiteralMapper3 = class {
|
|
|
876245
876258
|
});
|
|
876246
876259
|
}
|
|
876247
876260
|
}
|
|
876261
|
+
if (typedDictRequests) {
|
|
876262
|
+
return python_exports.TypeInstantiation.typedDict(entries23, { multiline: true });
|
|
876263
|
+
}
|
|
876248
876264
|
const classReference4 = this.context.getTypeClassReference(named.declaration);
|
|
876249
876265
|
return python_exports.TypeInstantiation.reference(python_exports.instantiateClass({
|
|
876250
876266
|
classReference: classReference4,
|
|
@@ -915634,7 +915650,7 @@ var CliContext = class _CliContext {
|
|
|
915634
915650
|
if (false) {
|
|
915635
915651
|
this.logger.error("CLI_VERSION is not defined");
|
|
915636
915652
|
}
|
|
915637
|
-
return "4.94.
|
|
915653
|
+
return "4.94.2";
|
|
915638
915654
|
}
|
|
915639
915655
|
getCliName() {
|
|
915640
915656
|
if (false) {
|
package/package.json
CHANGED