fern-api 0.19.0-rc5 → 0.19.0-rc6

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 +16 -12
  2. package/package.json +1 -1
package/bundle.cjs CHANGED
@@ -103059,7 +103059,7 @@ var require_index_cjs = __commonJS({
103059
103059
  throw new Error(message);
103060
103060
  }
103061
103061
  }
103062
- function removeTrailingSlash(url) {
103062
+ function removeTrailingSlash2(url) {
103063
103063
  return url === null || url === void 0 ? void 0 : url.replace(/\/+$/, "");
103064
103064
  }
103065
103065
  function retriable(fn2, props) {
@@ -103590,7 +103590,7 @@ var require_index_cjs = __commonJS({
103590
103590
  this._events = new SimpleEventEmitter();
103591
103591
  assert3(apiKey, "You must pass your PostHog project's api key.");
103592
103592
  this.apiKey = apiKey;
103593
- this.host = removeTrailingSlash((options === null || options === void 0 ? void 0 : options.host) || "https://app.posthog.com");
103593
+ this.host = removeTrailingSlash2((options === null || options === void 0 ? void 0 : options.host) || "https://app.posthog.com");
103594
103594
  this.flushAt = (options === null || options === void 0 ? void 0 : options.flushAt) ? Math.max(options === null || options === void 0 ? void 0 : options.flushAt, 1) : 20;
103595
103595
  this.flushInterval = (_a2 = options === null || options === void 0 ? void 0 : options.flushInterval) !== null && _a2 !== void 0 ? _a2 : 1e4;
103596
103596
  this.captureMode = (options === null || options === void 0 ? void 0 : options.captureMode) || "form";
@@ -799138,7 +799138,7 @@ var AccessTokenPosthogManager = class {
799138
799138
  properties: {
799139
799139
  ...event,
799140
799140
  ...event.properties,
799141
- version: "0.19.0-rc5",
799141
+ version: "0.19.0-rc6",
799142
799142
  usingAccessToken: true
799143
799143
  }
799144
799144
  });
@@ -799200,7 +799200,7 @@ var UserPosthogManager = class {
799200
799200
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
799201
799201
  event: "CLI",
799202
799202
  properties: {
799203
- version: "0.19.0-rc5",
799203
+ version: "0.19.0-rc6",
799204
799204
  ...event,
799205
799205
  ...event.properties
799206
799206
  }
@@ -825946,10 +825946,10 @@ var CliContext = class {
825946
825946
  return "fern-api";
825947
825947
  }
825948
825948
  getPackageVersion() {
825949
- if ("0.19.0-rc5" == null) {
825949
+ if ("0.19.0-rc6" == null) {
825950
825950
  this.logger.error("CLI_VERSION is not defined");
825951
825951
  }
825952
- return "0.19.0-rc5";
825952
+ return "0.19.0-rc6";
825953
825953
  }
825954
825954
  getCliName() {
825955
825955
  if ("fern" == null) {
@@ -827267,7 +827267,8 @@ var RESERVED_KEYWORDS = {
827267
827267
  "float",
827268
827268
  "int",
827269
827269
  "complex",
827270
- "self"
827270
+ "self",
827271
+ "all"
827271
827272
  ]),
827272
827273
  [GenerationLanguage.GO]: /* @__PURE__ */ new Set([
827273
827274
  "break",
@@ -830313,7 +830314,7 @@ function convertSingleBaseUrlEnvironments({ environments, casingsGenerator }) {
830313
830314
  docs: typeof singleBaseUrlEnvironment === "string" ? void 0 : singleBaseUrlEnvironment.docs,
830314
830315
  id: environmentName,
830315
830316
  name: casingsGenerator.generateName(environmentName),
830316
- url: typeof singleBaseUrlEnvironment === "string" ? singleBaseUrlEnvironment : singleBaseUrlEnvironment.url
830317
+ url: removeTrailingSlash(typeof singleBaseUrlEnvironment === "string" ? singleBaseUrlEnvironment : singleBaseUrlEnvironment.url)
830317
830318
  }),
830318
830319
  multipleBaseUrls: () => {
830319
830320
  throw new Error(`Environment ${environmentName} has multiple base URLs`);
@@ -830332,7 +830333,7 @@ function convertMultipleBaseUrlEnvironments({ baseUrls, environments, casingsGen
830332
830333
  docs: multipleBaseUrlsEnvironment.docs,
830333
830334
  id: environmentName,
830334
830335
  name: casingsGenerator.generateName(environmentName),
830335
- urls: multipleBaseUrlsEnvironment.urls
830336
+ urls: mapValues_default(multipleBaseUrlsEnvironment.urls, (url) => removeTrailingSlash(url))
830336
830337
  }),
830337
830338
  singleBaseUrl: () => {
830338
830339
  throw new Error(`Environment ${environmentName} does not have multiple base URLs`);
@@ -830340,6 +830341,9 @@ function convertMultipleBaseUrlEnvironments({ baseUrls, environments, casingsGen
830340
830341
  }))
830341
830342
  };
830342
830343
  }
830344
+ function removeTrailingSlash(url) {
830345
+ return url.endsWith("/") ? url.slice(0, -1) : url;
830346
+ }
830343
830347
 
830344
830348
  // pnp:/home/circleci/project/packages/cli/generation/ir-generator/lib/converters/convertErrorDeclaration.js
830345
830349
  function convertErrorDeclaration({ errorName, errorDeclaration, file }) {
@@ -839379,9 +839383,9 @@ var V35_TO_V34_MIGRATION = {
839379
839383
  [GeneratorName.STOPLIGHT]: GeneratorWasNeverUpdatedToConsumeNewIR,
839380
839384
  [GeneratorName.POSTMAN]: GeneratorWasNeverUpdatedToConsumeNewIR,
839381
839385
  [GeneratorName.PYTHON_SDK]: "0.11.6",
839382
- [GeneratorName.GO_FIBER]: GeneratorWasNeverUpdatedToConsumeNewIR,
839383
- [GeneratorName.GO_MODEL]: GeneratorWasNeverUpdatedToConsumeNewIR,
839384
- [GeneratorName.GO_SDK]: GeneratorWasNeverUpdatedToConsumeNewIR,
839386
+ [GeneratorName.GO_FIBER]: "0.18.0",
839387
+ [GeneratorName.GO_MODEL]: "0.18.0",
839388
+ [GeneratorName.GO_SDK]: "0.18.0",
839385
839389
  [GeneratorName.RUBY_MODEL]: GeneratorWasNeverUpdatedToConsumeNewIR,
839386
839390
  [GeneratorName.RUBY_SDK]: GeneratorWasNeverUpdatedToConsumeNewIR,
839387
839391
  [GeneratorName.CSHARP_MODEL]: GeneratorWasNeverUpdatedToConsumeNewIR,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fern-api",
3
- "version": "0.19.0-rc5",
3
+ "version": "0.19.0-rc6",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/fern-api/fern.git",