@fern-api/generator-cli 0.9.39 → 0.9.40
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/dist/api.js +6 -2
- package/dist/cli.js +16 -9
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -6,7 +6,11 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
|
6
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
7
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
8
|
var __commonJS = (cb, mod) => function __require() {
|
|
9
|
-
|
|
9
|
+
try {
|
|
10
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
11
|
+
} catch (e) {
|
|
12
|
+
throw mod = 0, e;
|
|
13
|
+
}
|
|
10
14
|
};
|
|
11
15
|
var __export = (target, all) => {
|
|
12
16
|
for (var name in all)
|
|
@@ -12293,7 +12297,7 @@ var ReplayPrepareError = class extends Error {
|
|
|
12293
12297
|
if (Error.captureStackTrace) {
|
|
12294
12298
|
Error.captureStackTrace(this, this.constructor);
|
|
12295
12299
|
}
|
|
12296
|
-
this.name =
|
|
12300
|
+
this.name = "ReplayPrepareError";
|
|
12297
12301
|
this.reason = reason;
|
|
12298
12302
|
}
|
|
12299
12303
|
};
|
package/dist/cli.js
CHANGED
|
@@ -5,11 +5,20 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
7
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __esm = (fn, res) => function __init() {
|
|
9
|
-
|
|
8
|
+
var __esm = (fn, res, err) => function __init() {
|
|
9
|
+
if (err) throw err[0];
|
|
10
|
+
try {
|
|
11
|
+
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
12
|
+
} catch (e) {
|
|
13
|
+
throw err = [e], e;
|
|
14
|
+
}
|
|
10
15
|
};
|
|
11
16
|
var __commonJS = (cb, mod) => function __require() {
|
|
12
|
-
|
|
17
|
+
try {
|
|
18
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
19
|
+
} catch (e) {
|
|
20
|
+
throw mod = 0, e;
|
|
21
|
+
}
|
|
13
22
|
};
|
|
14
23
|
var __export = (target, all) => {
|
|
15
24
|
for (var name in all)
|
|
@@ -40058,7 +40067,7 @@ var ReplayPrepareError = class extends Error {
|
|
|
40058
40067
|
if (Error.captureStackTrace) {
|
|
40059
40068
|
Error.captureStackTrace(this, this.constructor);
|
|
40060
40069
|
}
|
|
40061
|
-
this.name =
|
|
40070
|
+
this.name = "ReplayPrepareError";
|
|
40062
40071
|
this.reason = reason;
|
|
40063
40072
|
}
|
|
40064
40073
|
};
|
|
@@ -40187,7 +40196,7 @@ var CliError = class _CliError extends Error {
|
|
|
40187
40196
|
if (Error.captureStackTrace) {
|
|
40188
40197
|
Error.captureStackTrace(this, this.constructor);
|
|
40189
40198
|
}
|
|
40190
|
-
this.name =
|
|
40199
|
+
this.name = "CliError";
|
|
40191
40200
|
this.code = code;
|
|
40192
40201
|
this.docsLink = docsLink;
|
|
40193
40202
|
}
|
|
@@ -42226,16 +42235,14 @@ async function pushSignedCommit({
|
|
|
42226
42235
|
await repository.pushObjectToRef(localHeadSha, tempRef);
|
|
42227
42236
|
tempRefPushed = true;
|
|
42228
42237
|
for (let attempt2 = 0; attempt2 < MAX_CONCURRENT_PUSH_RETRIES; attempt2++) {
|
|
42229
|
-
const
|
|
42230
|
-
const committerField = author != null ? { committer: author } : {};
|
|
42238
|
+
const identityFields = author != null ? { author, committer: author } : {};
|
|
42231
42239
|
const { data: signedCommit } = await octokit.git.createCommit({
|
|
42232
42240
|
owner,
|
|
42233
42241
|
repo,
|
|
42234
42242
|
message,
|
|
42235
42243
|
tree: treeSha,
|
|
42236
42244
|
parents,
|
|
42237
|
-
|
|
42238
|
-
...committerField
|
|
42245
|
+
...identityFields
|
|
42239
42246
|
});
|
|
42240
42247
|
const signedSha = signedCommit.sha;
|
|
42241
42248
|
try {
|