@fern-api/fern-api-dev 5.44.1 → 5.44.3

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 +25 -7
  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.1",
669399
+ version: "5.44.3",
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.1",
669463
+ version: "5.44.3",
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.1";
860904
+ const version7 = "5.44.3";
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.1",
891879
+ cliVersion: "5.44.3",
891868
891880
  loginCommand: "fern auth login"
891869
891881
  });
891870
891882
  if (taskContext.getResult() === TaskResult.Failure) {
@@ -944162,6 +944174,7 @@ var LocalTaskHandler = class {
944162
944174
  const pathsToPreserve = await this.getPathsToPreserve(fernIgnorePaths);
944163
944175
  await (0, import_promises129.cp)(this.absolutePathToLocalOutput, tmpOutputResolutionDir, { recursive: true });
944164
944176
  await this.runThrowawayGitCommand(["init"], tmpOutputResolutionDir);
944177
+ await this.runThrowawayGitCommand(["config", "gc.auto", "0"], tmpOutputResolutionDir);
944165
944178
  await this.runThrowawayGitCommand(["add", "."], tmpOutputResolutionDir);
944166
944179
  await this.runThrowawayGitCommand([
944167
944180
  "-c",
@@ -944180,7 +944193,12 @@ var LocalTaskHandler = class {
944180
944193
  await this.runThrowawayGitCommand(["reset", "--", ...pathsToPreserve], tmpOutputResolutionDir);
944181
944194
  await this.runThrowawayGitCommand(["clean", "-fd", "--", ...pathsToPreserve], tmpOutputResolutionDir);
944182
944195
  await this.runThrowawayGitCommand(["restore", "."], tmpOutputResolutionDir);
944183
- await (0, import_promises129.rm)(join8(tmpOutputResolutionDir, RelativeFilePath2.of(".git")), { recursive: true });
944196
+ await (0, import_promises129.rm)(join8(tmpOutputResolutionDir, RelativeFilePath2.of(".git")), {
944197
+ recursive: true,
944198
+ force: true,
944199
+ maxRetries: 3,
944200
+ retryDelay: 100
944201
+ });
944184
944202
  await (0, import_promises129.rm)(this.absolutePathToLocalOutput, { recursive: true });
944185
944203
  await (0, import_promises129.cp)(tmpOutputResolutionDir, this.absolutePathToLocalOutput, { recursive: true });
944186
944204
  }
@@ -956945,7 +956963,7 @@ function getAutomationContextFromEnv() {
956945
956963
  config_branch: process.env.FERN_CONFIG_BRANCH,
956946
956964
  config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
956947
956965
  trigger: process.env.GITHUB_EVENT_NAME,
956948
- cli_version: "5.44.1"
956966
+ cli_version: "5.44.3"
956949
956967
  };
956950
956968
  }
956951
956969
  function isAutomationMode() {
@@ -957771,7 +957789,7 @@ var CliContext = class _CliContext {
957771
957789
  if (false) {
957772
957790
  this.logger.error("CLI_VERSION is not defined");
957773
957791
  }
957774
- return "5.44.1";
957792
+ return "5.44.3";
957775
957793
  }
957776
957794
  getCliName() {
957777
957795
  if (false) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.44.1",
2
+ "version": "5.44.3",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/fern-api/fern.git",