@fern-api/generator-cli 0.9.31 → 0.9.32

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/dist/cli.js +7 -9
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -2021,7 +2021,7 @@ var init_esm = __esm({
2021
2021
  }
2022
2022
  });
2023
2023
 
2024
- // ../../node_modules/.pnpm/brace-expansion@5.0.5/node_modules/brace-expansion/dist/esm/index.js
2024
+ // ../../node_modules/.pnpm/brace-expansion@5.0.6/node_modules/brace-expansion/dist/esm/index.js
2025
2025
  function numeric(str) {
2026
2026
  return !isNaN(str) ? parseInt(str, 10) : str.charCodeAt(0);
2027
2027
  }
@@ -2124,7 +2124,7 @@ function expand_(str, max, isTop) {
2124
2124
  }
2125
2125
  const pad = n.some(isPadded);
2126
2126
  N2 = [];
2127
- for (let i2 = x2; test(i2, y2); i2 += incr) {
2127
+ for (let i2 = x2; test(i2, y2) && N2.length < max; i2 += incr) {
2128
2128
  let c3;
2129
2129
  if (isAlphaSequence) {
2130
2130
  c3 = String.fromCharCode(i2);
@@ -2166,7 +2166,7 @@ function expand_(str, max, isTop) {
2166
2166
  }
2167
2167
  var escSlash, escOpen, escClose, escComma, escPeriod, escSlashPattern, escOpenPattern, escClosePattern, escCommaPattern, escPeriodPattern, slashPattern, openPattern, closePattern, commaPattern, periodPattern, EXPANSION_MAX;
2168
2168
  var init_esm2 = __esm({
2169
- "../../node_modules/.pnpm/brace-expansion@5.0.5/node_modules/brace-expansion/dist/esm/index.js"() {
2169
+ "../../node_modules/.pnpm/brace-expansion@5.0.6/node_modules/brace-expansion/dist/esm/index.js"() {
2170
2170
  "use strict";
2171
2171
  init_esm();
2172
2172
  escSlash = "\0SLASH" + Math.random() + "\0";
@@ -41617,18 +41617,16 @@ async function pushSignedCommit({
41617
41617
  await repository.pushObjectToRef(localHeadSha, tempRef);
41618
41618
  tempRefPushed = true;
41619
41619
  for (let attempt2 = 0; attempt2 < MAX_CONCURRENT_PUSH_RETRIES; attempt2++) {
41620
- const commitAuthor = {
41621
- name: author?.name ?? FERN_BOT_NAME2,
41622
- email: author?.email ?? FERN_BOT_EMAIL2
41623
- };
41620
+ const resolvedAuthor = author ?? { name: FERN_BOT_NAME2, email: FERN_BOT_EMAIL2 };
41621
+ const committerField = author != null ? { committer: author } : {};
41624
41622
  const { data: signedCommit } = await octokit.git.createCommit({
41625
41623
  owner,
41626
41624
  repo,
41627
41625
  message,
41628
41626
  tree: treeSha,
41629
41627
  parents,
41630
- author: commitAuthor,
41631
- committer: commitAuthor
41628
+ author: resolvedAuthor,
41629
+ ...committerField
41632
41630
  });
41633
41631
  const signedSha = signedCommit.sha;
41634
41632
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fern-api/generator-cli",
3
- "version": "0.9.31",
3
+ "version": "0.9.32",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/fern-api/fern.git",