fern-api 0.16.7 → 0.16.8
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/bundle.cjs +11 -7
- 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.
|
|
736688
|
+
version: "0.16.8",
|
|
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.
|
|
736750
|
+
version: "0.16.8",
|
|
736751
736751
|
...event,
|
|
736752
736752
|
...event.properties
|
|
736753
736753
|
}
|
|
@@ -761175,10 +761175,10 @@ var CliContext = class {
|
|
|
761175
761175
|
return "fern-api";
|
|
761176
761176
|
}
|
|
761177
761177
|
getPackageVersion() {
|
|
761178
|
-
if ("0.16.
|
|
761178
|
+
if ("0.16.8" == null) {
|
|
761179
761179
|
this.logger.error("CLI_VERSION is not defined");
|
|
761180
761180
|
}
|
|
761181
|
-
return "0.16.
|
|
761181
|
+
return "0.16.8";
|
|
761182
761182
|
}
|
|
761183
761183
|
getCliName() {
|
|
761184
761184
|
if ("fern" == null) {
|
|
@@ -768874,6 +768874,8 @@ async function validateAPIWorkspaceAndLogIssues(workspace, context) {
|
|
|
768874
768874
|
}
|
|
768875
768875
|
if (violationsContainError) {
|
|
768876
768876
|
context.failAndThrow();
|
|
768877
|
+
} else {
|
|
768878
|
+
context.logger.info(source_default.green("\u2713 All checks passed"));
|
|
768877
768879
|
}
|
|
768878
768880
|
}
|
|
768879
768881
|
function getLogLevelForSeverity(severity) {
|
|
@@ -801970,6 +801972,8 @@ async function validateDocsWorkspaceAndLogIssues(workspace, context) {
|
|
|
801970
801972
|
}
|
|
801971
801973
|
if (violationsContainError) {
|
|
801972
801974
|
context.failAndThrow();
|
|
801975
|
+
} else {
|
|
801976
|
+
context.logger.info(source_default.green("\u2713 All checks passed"));
|
|
801973
801977
|
}
|
|
801974
801978
|
}
|
|
801975
801979
|
function getLogLevelForSeverity2(severity) {
|
|
@@ -804580,16 +804584,15 @@ async function writeDefinitionForWorkspaces({
|
|
|
804580
804584
|
project.apiWorkspaces.map(async (workspace) => {
|
|
804581
804585
|
await cliContext.runTaskForWorkspace(workspace, async (context) => {
|
|
804582
804586
|
if (workspace.type !== "openapi") {
|
|
804583
|
-
context.failAndThrow("Cannot write definition for non-OpenAPI workspace.");
|
|
804584
804587
|
return;
|
|
804585
804588
|
}
|
|
804586
804589
|
const fernWorkspace = await convertOpenApiWorkspaceToFernWorkspace(workspace, context);
|
|
804587
|
-
await writeDefinitionForWorkspace(fernWorkspace);
|
|
804590
|
+
await writeDefinitionForWorkspace({ workspace: fernWorkspace, context });
|
|
804588
804591
|
});
|
|
804589
804592
|
})
|
|
804590
804593
|
);
|
|
804591
804594
|
}
|
|
804592
|
-
async function writeDefinitionForWorkspace(workspace) {
|
|
804595
|
+
async function writeDefinitionForWorkspace({ workspace, context }) {
|
|
804593
804596
|
const directoryOfDefinition = join(workspace.absoluteFilepath, RelativeFilePath.of(DEFINITION_DIRECTORY));
|
|
804594
804597
|
await (0, import_promises65.mkdir)(directoryOfDefinition);
|
|
804595
804598
|
await (0, import_promises65.writeFile)(
|
|
@@ -804606,6 +804609,7 @@ async function writeDefinitionForWorkspace(workspace) {
|
|
|
804606
804609
|
await (0, import_promises65.mkdir)(dirname5, { recursive: true });
|
|
804607
804610
|
await (0, import_promises65.writeFile)(absoluteFilepath, fileContents);
|
|
804608
804611
|
}
|
|
804612
|
+
context.logger.info(source_default.green(`Wrote definition to ${directoryOfDefinition}`));
|
|
804609
804613
|
}
|
|
804610
804614
|
|
|
804611
804615
|
// pnp:/home/circleci/project/packages/cli/cli/src/utils/isUrl.ts
|