fern-api 0.16.14 → 0.16.15

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/bundle.cjs +10 -7
  2. package/package.json +1 -1
package/bundle.cjs CHANGED
@@ -736685,7 +736685,7 @@ var AccessTokenPosthogManager = class {
736685
736685
  properties: {
736686
736686
  ...event,
736687
736687
  ...event.properties,
736688
- version: "0.16.14",
736688
+ version: "0.16.15",
736689
736689
  usingAccessToken: true
736690
736690
  }
736691
736691
  });
@@ -736747,7 +736747,7 @@ var UserPosthogManager = class {
736747
736747
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
736748
736748
  event: "CLI",
736749
736749
  properties: {
736750
- version: "0.16.14",
736750
+ version: "0.16.15",
736751
736751
  ...event,
736752
736752
  ...event.properties
736753
736753
  }
@@ -761234,10 +761234,10 @@ var CliContext = class {
761234
761234
  return "fern-api";
761235
761235
  }
761236
761236
  getPackageVersion() {
761237
- if ("0.16.14" == null) {
761237
+ if ("0.16.15" == null) {
761238
761238
  this.logger.error("CLI_VERSION is not defined");
761239
761239
  }
761240
- return "0.16.14";
761240
+ return "0.16.15";
761241
761241
  }
761242
761242
  getCliName() {
761243
761243
  if ("fern" == null) {
@@ -768388,7 +768388,7 @@ function validateExampleEndpointCallParameters({ allDeclarations = {}, examples,
768388
768388
  type: rawType.rawType,
768389
768389
  file: rawType.file
768390
768390
  });
768391
- const isOptional = resolvedType != null && resolvedType._type === "container" && resolvedType.container._type === "optional";
768391
+ const isOptional = resolvedType != null && resolvedType._type === "container" && resolvedType.container._type === "optional" || (resolvedType == null ? void 0 : resolvedType._type) === "unknown";
768392
768392
  if (!isOptional) {
768393
768393
  acc.push(key2);
768394
768394
  }
@@ -804820,7 +804820,7 @@ async function writeDefinitionForFernWorkspace({
804820
804820
  workspace.absoluteFilepath,
804821
804821
  RelativeFilePath.of(DEFINITION_DIRECTORY),
804822
804822
  RelativeFilePath.of(relativePath),
804823
- RelativeFilePath.of(`${DEFINITION_DIRECTORY}`)
804823
+ RelativeFilePath.of(`.${DEFINITION_DIRECTORY}`)
804824
804824
  );
804825
804825
  await writeFernDefinition({
804826
804826
  definition: definition2,
@@ -804836,7 +804836,10 @@ async function writeDefinitionForOpenAPIWorkspace({
804836
804836
  context
804837
804837
  }) {
804838
804838
  const fernWorkspace = await convertOpenApiWorkspaceToFernWorkspace(workspace, context);
804839
- const absolutePathToOutputDirectory = join(workspace.absoluteFilepath, RelativeFilePath.of(DEFINITION_DIRECTORY));
804839
+ const absolutePathToOutputDirectory = join(
804840
+ workspace.absoluteFilepath,
804841
+ RelativeFilePath.of(`.${DEFINITION_DIRECTORY}`)
804842
+ );
804840
804843
  await writeFernDefinition({
804841
804844
  definition: fernWorkspace.definition,
804842
804845
  absolutePathToOutputDirectory
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fern-api",
3
- "version": "0.16.14",
3
+ "version": "0.16.15",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/fern-api/fern.git",