@fern-api/fern-api-dev 5.23.3-764-g07d84856196 → 5.23.3-765-gc7c3e4796f9

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/cli.cjs +24 -16
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -52666,9 +52666,9 @@ var init_streamObjectToFile = __esm({
52666
52666
  }
52667
52667
  });
52668
52668
 
52669
- // ../../../node_modules/.pnpm/tmp@0.2.6/node_modules/tmp/lib/tmp.js
52669
+ // ../../../node_modules/.pnpm/tmp@0.2.7/node_modules/tmp/lib/tmp.js
52670
52670
  var require_tmp = __commonJS({
52671
- "../../../node_modules/.pnpm/tmp@0.2.6/node_modules/tmp/lib/tmp.js"(exports2, module4) {
52671
+ "../../../node_modules/.pnpm/tmp@0.2.7/node_modules/tmp/lib/tmp.js"(exports2, module4) {
52672
52672
  "use strict";
52673
52673
  var fs34 = require("fs");
52674
52674
  var os22 = require("os");
@@ -52919,11 +52919,14 @@ var require_tmp = __commonJS({
52919
52919
  ].join("");
52920
52920
  return path118.join(tmpDir, opts.dir, name2);
52921
52921
  }
52922
- function _assertPath(path119) {
52923
- if (path119.includes("..")) {
52922
+ function _assertPath(option, value2) {
52923
+ if (typeof value2 !== "string") {
52924
+ throw new Error(`${option} option must be a string, got "${typeof value2}".`);
52925
+ }
52926
+ if (value2.includes("..")) {
52924
52927
  throw new Error("Relative value not allowed");
52925
52928
  }
52926
- return path119;
52929
+ return value2;
52927
52930
  }
52928
52931
  function _assertOptionsBase(options2) {
52929
52932
  if (!_isUndefined(options2.name)) {
@@ -52934,8 +52937,13 @@ var require_tmp = __commonJS({
52934
52937
  throw new Error(`name option must not contain a path, found "${name2}".`);
52935
52938
  }
52936
52939
  }
52937
- if (!_isUndefined(options2.template) && !options2.template.match(TEMPLATE_PATTERN)) {
52938
- throw new Error(`Invalid template, found "${options2.template}".`);
52940
+ if (!_isUndefined(options2.template)) {
52941
+ if (typeof options2.template !== "string") {
52942
+ throw new Error(`template option must be a string, got "${typeof options2.template}".`);
52943
+ }
52944
+ if (!options2.template.match(TEMPLATE_PATTERN)) {
52945
+ throw new Error(`Invalid template, found "${options2.template}".`);
52946
+ }
52939
52947
  }
52940
52948
  if (!_isUndefined(options2.tries) && isNaN(options2.tries) || options2.tries < 0) {
52941
52949
  throw new Error(`Invalid tries, found "${options2.tries}".`);
@@ -52945,9 +52953,9 @@ var require_tmp = __commonJS({
52945
52953
  options2.detachDescriptor = !!options2.detachDescriptor;
52946
52954
  options2.discardDescriptor = !!options2.discardDescriptor;
52947
52955
  options2.unsafeCleanup = !!options2.unsafeCleanup;
52948
- options2.prefix = _isUndefined(options2.prefix) ? "" : _assertPath(options2.prefix);
52949
- options2.postfix = _isUndefined(options2.postfix) ? "" : _assertPath(options2.postfix);
52950
- options2.template = _isUndefined(options2.template) ? void 0 : _assertPath(options2.template);
52956
+ options2.prefix = _isUndefined(options2.prefix) ? "" : _assertPath("prefix", options2.prefix);
52957
+ options2.postfix = _isUndefined(options2.postfix) ? "" : _assertPath("postfix", options2.postfix);
52958
+ options2.template = _isUndefined(options2.template) ? void 0 : _assertPath("template", options2.template);
52951
52959
  }
52952
52960
  function _getRelativePath(option, name2, tmpDir, cb) {
52953
52961
  if (_isUndefined(name2)) return cb(null);
@@ -628667,7 +628675,7 @@ var AccessTokenPosthogManager = class {
628667
628675
  properties: {
628668
628676
  ...event,
628669
628677
  ...event.properties,
628670
- version: "5.23.3-764-g07d84856196",
628678
+ version: "5.23.3-765-gc7c3e4796f9",
628671
628679
  usingAccessToken: true,
628672
628680
  ...getRunIdProperties()
628673
628681
  }
@@ -628731,7 +628739,7 @@ var UserPosthogManager = class {
628731
628739
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
628732
628740
  event: "CLI",
628733
628741
  properties: {
628734
- version: "5.23.3-764-g07d84856196",
628742
+ version: "5.23.3-765-gc7c3e4796f9",
628735
628743
  ...event,
628736
628744
  ...event.properties,
628737
628745
  usingAccessToken: false,
@@ -820746,7 +820754,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
820746
820754
  var LOGS_FOLDER_NAME = "logs";
820747
820755
  var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
820748
820756
  function getCliSource() {
820749
- const version7 = "5.23.3-764-g07d84856196";
820757
+ const version7 = "5.23.3-765-gc7c3e4796f9";
820750
820758
  return `cli@${version7}`;
820751
820759
  }
820752
820760
  var DebugLogger = class {
@@ -852079,7 +852087,7 @@ var LegacyDocsPublisher = class {
852079
852087
  previewId,
852080
852088
  disableTemplates: void 0,
852081
852089
  skipUpload,
852082
- cliVersion: "5.23.3-764-g07d84856196",
852090
+ cliVersion: "5.23.3-765-gc7c3e4796f9",
852083
852091
  loginCommand: "fern auth login"
852084
852092
  });
852085
852093
  if (taskContext.getResult() === TaskResult.Failure) {
@@ -917465,7 +917473,7 @@ function getAutomationContextFromEnv() {
917465
917473
  config_branch: process.env.FERN_CONFIG_BRANCH,
917466
917474
  config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
917467
917475
  trigger: process.env.GITHUB_EVENT_NAME,
917468
- cli_version: "5.23.3-764-g07d84856196"
917476
+ cli_version: "5.23.3-765-gc7c3e4796f9"
917469
917477
  };
917470
917478
  }
917471
917479
  function isAutomationMode() {
@@ -918291,7 +918299,7 @@ var CliContext = class _CliContext {
918291
918299
  if (false) {
918292
918300
  this.logger.error("CLI_VERSION is not defined");
918293
918301
  }
918294
- return "5.23.3-764-g07d84856196";
918302
+ return "5.23.3-765-gc7c3e4796f9";
918295
918303
  }
918296
918304
  getCliName() {
918297
918305
  if (false) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.23.3-764-g07d84856196",
2
+ "version": "5.23.3-765-gc7c3e4796f9",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/fern-api/fern.git",