@fern-api/fern-api-dev 5.44.0 → 5.44.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.
Files changed (2) hide show
  1. package/cli.cjs +18 -6
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -605008,7 +605008,19 @@ function validateUnionExample({ typeName, rawUnion, example, typeResolver, examp
605008
605008
  }
605009
605009
  }
605010
605010
  if (resolvedType._type === "named" && isRawObjectDefinition(resolvedType.declaration)) {
605011
+ const variantPropertyKeys = new Set(getAllPropertiesForObject({
605012
+ typeName: type8,
605013
+ objectDeclaration: resolvedType.declaration,
605014
+ typeResolver,
605015
+ definitionFile: resolvedType.file.definitionFile,
605016
+ workspace,
605017
+ filepathOfDeclaration: resolvedType.file.relativeFilepath,
605018
+ smartCasing: false
605019
+ }).map((p14) => p14.wireKey));
605011
605020
  const unionMemberExample = Object.fromEntries(Object.entries(nonDiscriminantPropertyExamples).filter(([key2]) => {
605021
+ if (variantPropertyKeys.has(key2)) {
605022
+ return true;
605023
+ }
605012
605024
  if (rawUnion["base-properties"]?.[key2] != null) {
605013
605025
  return false;
605014
605026
  }
@@ -669384,7 +669396,7 @@ var AccessTokenPosthogManager = class {
669384
669396
  properties: {
669385
669397
  ...event,
669386
669398
  ...event.properties,
669387
- version: "5.44.0",
669399
+ version: "5.44.2",
669388
669400
  usingAccessToken: true,
669389
669401
  ...getRunIdProperties()
669390
669402
  }
@@ -669448,7 +669460,7 @@ var UserPosthogManager = class {
669448
669460
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
669449
669461
  event: "CLI",
669450
669462
  properties: {
669451
- version: "5.44.0",
669463
+ version: "5.44.2",
669452
669464
  ...event,
669453
669465
  ...event.properties,
669454
669466
  usingAccessToken: false,
@@ -860889,7 +860901,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
860889
860901
  var LOGS_FOLDER_NAME = "logs";
860890
860902
  var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
860891
860903
  function getCliSource() {
860892
- const version7 = "5.44.0";
860904
+ const version7 = "5.44.2";
860893
860905
  return `cli@${version7}`;
860894
860906
  }
860895
860907
  var DebugLogger = class {
@@ -891864,7 +891876,7 @@ var LegacyDocsPublisher = class {
891864
891876
  previewId,
891865
891877
  disableTemplates: void 0,
891866
891878
  skipUpload,
891867
- cliVersion: "5.44.0",
891879
+ cliVersion: "5.44.2",
891868
891880
  loginCommand: "fern auth login"
891869
891881
  });
891870
891882
  if (taskContext.getResult() === TaskResult.Failure) {
@@ -956945,7 +956957,7 @@ function getAutomationContextFromEnv() {
956945
956957
  config_branch: process.env.FERN_CONFIG_BRANCH,
956946
956958
  config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
956947
956959
  trigger: process.env.GITHUB_EVENT_NAME,
956948
- cli_version: "5.44.0"
956960
+ cli_version: "5.44.2"
956949
956961
  };
956950
956962
  }
956951
956963
  function isAutomationMode() {
@@ -957771,7 +957783,7 @@ var CliContext = class _CliContext {
957771
957783
  if (false) {
957772
957784
  this.logger.error("CLI_VERSION is not defined");
957773
957785
  }
957774
- return "5.44.0";
957786
+ return "5.44.2";
957775
957787
  }
957776
957788
  getCliName() {
957777
957789
  if (false) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.44.0",
2
+ "version": "5.44.2",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/fern-api/fern.git",