fern-api 0.23.0-rc3 → 0.23.0-rc5
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 +18 -26
- package/package.json +1 -1
package/bundle.cjs
CHANGED
|
@@ -852804,7 +852804,7 @@ var AccessTokenPosthogManager = class {
|
|
|
852804
852804
|
properties: {
|
|
852805
852805
|
...event,
|
|
852806
852806
|
...event.properties,
|
|
852807
|
-
version: "0.23.0-
|
|
852807
|
+
version: "0.23.0-rc5",
|
|
852808
852808
|
usingAccessToken: true
|
|
852809
852809
|
}
|
|
852810
852810
|
});
|
|
@@ -852866,7 +852866,7 @@ var UserPosthogManager = class {
|
|
|
852866
852866
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
852867
852867
|
event: "CLI",
|
|
852868
852868
|
properties: {
|
|
852869
|
-
version: "0.23.0-
|
|
852869
|
+
version: "0.23.0-rc5",
|
|
852870
852870
|
...event,
|
|
852871
852871
|
...event.properties
|
|
852872
852872
|
}
|
|
@@ -877214,10 +877214,10 @@ var CliContext = class {
|
|
|
877214
877214
|
return "fern-api";
|
|
877215
877215
|
}
|
|
877216
877216
|
getPackageVersion() {
|
|
877217
|
-
if ("0.23.0-
|
|
877217
|
+
if ("0.23.0-rc5" == null) {
|
|
877218
877218
|
this.logger.error("CLI_VERSION is not defined");
|
|
877219
877219
|
}
|
|
877220
|
-
return "0.23.0-
|
|
877220
|
+
return "0.23.0-rc5";
|
|
877221
877221
|
}
|
|
877222
877222
|
getCliName() {
|
|
877223
877223
|
if ("fern" == null) {
|
|
@@ -886653,12 +886653,6 @@ function validateBasePath(basePath) {
|
|
|
886653
886653
|
message: "base-path must be empty or start with a slash."
|
|
886654
886654
|
});
|
|
886655
886655
|
}
|
|
886656
|
-
if (basePath.endsWith("/")) {
|
|
886657
|
-
violations.push({
|
|
886658
|
-
severity: "error",
|
|
886659
|
-
message: "base-path cannot end with a slash."
|
|
886660
|
-
});
|
|
886661
|
-
}
|
|
886662
886656
|
return violations;
|
|
886663
886657
|
}
|
|
886664
886658
|
|
|
@@ -886717,11 +886711,6 @@ var ValidEndpointPathRule = {
|
|
|
886717
886711
|
severity: "error",
|
|
886718
886712
|
message: 'Path cannot be /. Use "" instead.'
|
|
886719
886713
|
});
|
|
886720
|
-
} else if (endpoint.path.endsWith("/")) {
|
|
886721
|
-
violations.push({
|
|
886722
|
-
severity: "error",
|
|
886723
|
-
message: "Path cannot end with a slash."
|
|
886724
|
-
});
|
|
886725
886714
|
}
|
|
886726
886715
|
return violations;
|
|
886727
886716
|
}
|
|
@@ -892521,7 +892510,7 @@ var V33_TO_V32_MIGRATION = {
|
|
|
892521
892510
|
[GeneratorName.TYPESCRIPT_BROWSER_SDK]: "0.12.0",
|
|
892522
892511
|
[GeneratorName.TYPESCRIPT]: GeneratorWasNeverUpdatedToConsumeNewIR,
|
|
892523
892512
|
[GeneratorName.TYPESCRIPT_SDK]: GeneratorWasNeverUpdatedToConsumeNewIR,
|
|
892524
|
-
[GeneratorName.TYPESCRIPT_EXPRESS]:
|
|
892513
|
+
[GeneratorName.TYPESCRIPT_EXPRESS]: GeneratorWasNeverUpdatedToConsumeNewIR,
|
|
892525
892514
|
[GeneratorName.JAVA]: GeneratorWasNeverUpdatedToConsumeNewIR,
|
|
892526
892515
|
[GeneratorName.JAVA_MODEL]: GeneratorWasNeverUpdatedToConsumeNewIR,
|
|
892527
892516
|
[GeneratorName.JAVA_SDK]: GeneratorWasNeverUpdatedToConsumeNewIR,
|
|
@@ -893006,13 +892995,13 @@ var V39_TO_V38_MIGRATION = {
|
|
|
893006
892995
|
[GeneratorName.JAVA_MODEL]: GeneratorWasNeverUpdatedToConsumeNewIR,
|
|
893007
892996
|
[GeneratorName.JAVA_SDK]: GeneratorWasNeverUpdatedToConsumeNewIR,
|
|
893008
892997
|
[GeneratorName.JAVA_SPRING]: GeneratorWasNeverUpdatedToConsumeNewIR,
|
|
893009
|
-
[GeneratorName.PYTHON_FASTAPI]:
|
|
893010
|
-
[GeneratorName.PYTHON_PYDANTIC]:
|
|
892998
|
+
[GeneratorName.PYTHON_FASTAPI]: "0.9.0-rc1",
|
|
892999
|
+
[GeneratorName.PYTHON_PYDANTIC]: "0.9.0-rc1",
|
|
893011
893000
|
[GeneratorName.OPENAPI_PYTHON_CLIENT]: GeneratorWasNeverUpdatedToConsumeNewIR,
|
|
893012
893001
|
[GeneratorName.OPENAPI]: GeneratorWasNeverUpdatedToConsumeNewIR,
|
|
893013
893002
|
[GeneratorName.STOPLIGHT]: GeneratorWasNeverUpdatedToConsumeNewIR,
|
|
893014
893003
|
[GeneratorName.POSTMAN]: GeneratorWasNeverUpdatedToConsumeNewIR,
|
|
893015
|
-
[GeneratorName.PYTHON_SDK]:
|
|
893004
|
+
[GeneratorName.PYTHON_SDK]: "1.4.0-rc1",
|
|
893016
893005
|
[GeneratorName.GO_FIBER]: GeneratorWasNeverUpdatedToConsumeNewIR,
|
|
893017
893006
|
[GeneratorName.GO_MODEL]: GeneratorWasNeverUpdatedToConsumeNewIR,
|
|
893018
893007
|
[GeneratorName.GO_SDK]: GeneratorWasNeverUpdatedToConsumeNewIR,
|
|
@@ -894997,7 +894986,7 @@ function getGithubPublishConfig(githubPublishInfo) {
|
|
|
894997
894986
|
_other: () => void 0
|
|
894998
894987
|
}) : void 0;
|
|
894999
894988
|
}
|
|
895000
|
-
function getGeneratorConfig({ generatorInvocation, customConfig, workspaceName, organization, outputVersion = DEFAULT_OUTPUT_VERSION, absolutePathToSnippet, absolutePathToSnippetTemplates, writeUnitTests }) {
|
|
894989
|
+
function getGeneratorConfig({ generatorInvocation, customConfig, workspaceName, organization, outputVersion = DEFAULT_OUTPUT_VERSION, absolutePathToSnippet, absolutePathToSnippetTemplates, writeUnitTests, generateOauthClients }) {
|
|
895001
894990
|
const binds = [];
|
|
895002
894991
|
const output = generatorInvocation.outputMode._visit({
|
|
895003
894992
|
publish: (value) => {
|
|
@@ -895084,7 +895073,7 @@ function getGeneratorConfig({ generatorInvocation, customConfig, workspaceName,
|
|
|
895084
895073
|
dryRun: false,
|
|
895085
895074
|
whitelabel: false,
|
|
895086
895075
|
writeUnitTests,
|
|
895087
|
-
generateOauthClients
|
|
895076
|
+
generateOauthClients
|
|
895088
895077
|
}
|
|
895089
895078
|
};
|
|
895090
895079
|
}
|
|
@@ -895365,7 +895354,7 @@ async function getFernIgnorePaths({ absolutePathToFernignore }) {
|
|
|
895365
895354
|
}
|
|
895366
895355
|
|
|
895367
895356
|
// pnp:/home/circleci/project/packages/cli/generation/local-generation/local-workspace-runner/lib/runGenerator.js
|
|
895368
|
-
async function writeFilesToDiskAndRunGenerator({ organization, workspace, generatorInvocation, absolutePathToLocalOutput, absolutePathToLocalSnippetJSON, absolutePathToLocalSnippetTemplateJSON, absolutePathToFernConfig, audiences, workspaceTempDir, keepDocker, context, irVersionOverride, outputVersionOverride, writeUnitTests }) {
|
|
895357
|
+
async function writeFilesToDiskAndRunGenerator({ organization, workspace, generatorInvocation, absolutePathToLocalOutput, absolutePathToLocalSnippetJSON, absolutePathToLocalSnippetTemplateJSON, absolutePathToFernConfig, audiences, workspaceTempDir, keepDocker, context, irVersionOverride, outputVersionOverride, writeUnitTests, generateOauthClients }) {
|
|
895369
895358
|
const absolutePathToIr = await writeIrToFile({
|
|
895370
895359
|
workspace,
|
|
895371
895360
|
audiences,
|
|
@@ -895414,7 +895403,8 @@ async function writeFilesToDiskAndRunGenerator({ organization, workspace, genera
|
|
|
895414
895403
|
keepDocker,
|
|
895415
895404
|
generatorInvocation,
|
|
895416
895405
|
context,
|
|
895417
|
-
writeUnitTests
|
|
895406
|
+
writeUnitTests,
|
|
895407
|
+
generateOauthClients
|
|
895418
895408
|
});
|
|
895419
895409
|
const taskHandler = new LocalTaskHandler({
|
|
895420
895410
|
context,
|
|
@@ -895469,7 +895459,7 @@ async function writeDotMock({ absolutePathToDotMockDirectory, absolutePathToFern
|
|
|
895469
895459
|
await (0, import_promises37.writeFile)(`${absolutePathToDotMockDirectory}/.mock/fern.config.json`, '{"organization": "fern-test", "version": "0.19.0"}');
|
|
895470
895460
|
}
|
|
895471
895461
|
}
|
|
895472
|
-
async function runGenerator({ workspaceName, organization, outputVersion, absolutePathToOutput, absolutePathToSnippet, absolutePathToSnippetTemplates, absolutePathToIr, absolutePathToWriteConfigJson, keepDocker, generatorInvocation, writeUnitTests }) {
|
|
895462
|
+
async function runGenerator({ workspaceName, organization, outputVersion, absolutePathToOutput, absolutePathToSnippet, absolutePathToSnippetTemplates, absolutePathToIr, absolutePathToWriteConfigJson, keepDocker, generatorInvocation, writeUnitTests, generateOauthClients }) {
|
|
895473
895463
|
const { name: name2, version: version3, config: customConfig } = generatorInvocation;
|
|
895474
895464
|
const imageName = `${name2}:${version3}`;
|
|
895475
895465
|
const binds = [
|
|
@@ -895485,7 +895475,8 @@ async function runGenerator({ workspaceName, organization, outputVersion, absolu
|
|
|
895485
895475
|
organization,
|
|
895486
895476
|
absolutePathToSnippet,
|
|
895487
895477
|
absolutePathToSnippetTemplates,
|
|
895488
|
-
writeUnitTests
|
|
895478
|
+
writeUnitTests,
|
|
895479
|
+
generateOauthClients
|
|
895489
895480
|
});
|
|
895490
895481
|
binds.push(...bindsForGenerators);
|
|
895491
895482
|
const parsedConfig = await FernGeneratorExecParsing.GeneratorConfig.json(config);
|
|
@@ -895530,7 +895521,8 @@ async function runLocalGenerationForWorkspace({ projectConfig, workspace, genera
|
|
|
895530
895521
|
context: interactiveTaskContext,
|
|
895531
895522
|
irVersionOverride: generatorInvocation.irVersionOverride,
|
|
895532
895523
|
outputVersionOverride: void 0,
|
|
895533
|
-
writeUnitTests: false
|
|
895524
|
+
writeUnitTests: false,
|
|
895525
|
+
generateOauthClients: false
|
|
895534
895526
|
});
|
|
895535
895527
|
interactiveTaskContext.logger.info(source_default.green("Wrote files to " + generatorInvocation.absolutePathToLocalOutput));
|
|
895536
895528
|
}
|