fern-api 0.15.0-rc79 → 0.15.0-rc80
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 +17 -8
- package/package.json +1 -1
package/bundle.cjs
CHANGED
|
@@ -707949,7 +707949,7 @@ var AccessTokenPosthogManager = class {
|
|
|
707949
707949
|
properties: {
|
|
707950
707950
|
...event,
|
|
707951
707951
|
...event.properties,
|
|
707952
|
-
version: "0.15.0-
|
|
707952
|
+
version: "0.15.0-rc80",
|
|
707953
707953
|
usingAccessToken: true
|
|
707954
707954
|
}
|
|
707955
707955
|
});
|
|
@@ -708011,7 +708011,7 @@ var UserPosthogManager = class {
|
|
|
708011
708011
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
708012
708012
|
event: "CLI",
|
|
708013
708013
|
properties: {
|
|
708014
|
-
version: "0.15.0-
|
|
708014
|
+
version: "0.15.0-rc80",
|
|
708015
708015
|
...event,
|
|
708016
708016
|
...event.properties
|
|
708017
708017
|
}
|
|
@@ -725067,10 +725067,19 @@ async function validateVersionedDependencyAndGetDefinition({ dependency, context
|
|
|
725067
725067
|
context.failWithoutThrowing("Dependency must be a fern workspace.");
|
|
725068
725068
|
return void 0;
|
|
725069
725069
|
}
|
|
725070
|
-
const
|
|
725071
|
-
|
|
725072
|
-
|
|
725073
|
-
|
|
725070
|
+
const hasEndpoints = Object.values(workspaceOfDependency.definition.namedDefinitionFiles).filter((file) => {
|
|
725071
|
+
var _a2;
|
|
725072
|
+
return Object.keys(((_a2 = file.contents.service) == null ? void 0 : _a2.endpoints) ?? {}).length > 0;
|
|
725073
|
+
}).length > 0 || Object.values(workspaceOfDependency.definition.packageMarkers).filter((file) => {
|
|
725074
|
+
var _a2;
|
|
725075
|
+
return Object.keys(((_a2 = file.contents.service) == null ? void 0 : _a2.endpoints) ?? {}).length > 0;
|
|
725076
|
+
}).length > 0;
|
|
725077
|
+
if (hasEndpoints) {
|
|
725078
|
+
const { equal, differences } = await getAreRootApiFilesEquivalent(rootApiFile, workspaceOfDependency);
|
|
725079
|
+
if (!equal) {
|
|
725080
|
+
context.failWithoutThrowing(`Failed to incorporate dependency because ${ROOT_API_FILENAME} is meaningfully different for the following keys: [${differences.join(", ")}]`);
|
|
725081
|
+
return void 0;
|
|
725082
|
+
}
|
|
725074
725083
|
}
|
|
725075
725084
|
return workspaceOfDependency.definition;
|
|
725076
725085
|
}
|
|
@@ -732130,10 +732139,10 @@ var CliContext = class {
|
|
|
732130
732139
|
return "fern-api";
|
|
732131
732140
|
}
|
|
732132
732141
|
getPackageVersion() {
|
|
732133
|
-
if ("0.15.0-
|
|
732142
|
+
if ("0.15.0-rc80" == null) {
|
|
732134
732143
|
this.logger.error("CLI_VERSION is not defined");
|
|
732135
732144
|
}
|
|
732136
|
-
return "0.15.0-
|
|
732145
|
+
return "0.15.0-rc80";
|
|
732137
732146
|
}
|
|
732138
732147
|
getCliName() {
|
|
732139
732148
|
if ("fern" == null) {
|