@fern-api/fern-api-dev 4.63.5-34-gda98263e23f → 4.63.5-35-gb7c319792ab
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/cli.cjs +206 -167
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -323216,24 +323216,24 @@ var require_BackwardsCompatibleOutputMode = __commonJS({
|
|
|
323216
323216
|
};
|
|
323217
323217
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
323218
323218
|
exports2.BackwardsCompatibleOutputMode = void 0;
|
|
323219
|
-
var
|
|
323219
|
+
var FernGeneratorExec3 = __importStar2(require_api3());
|
|
323220
323220
|
exports2.BackwardsCompatibleOutputMode = {
|
|
323221
323221
|
publish: (value) => {
|
|
323222
323222
|
return Object.assign(Object.assign({}, value), { type: "publish", _visit: function(visitor) {
|
|
323223
|
-
return
|
|
323223
|
+
return FernGeneratorExec3.BackwardsCompatibleOutputMode._visit(this, visitor);
|
|
323224
323224
|
} });
|
|
323225
323225
|
},
|
|
323226
323226
|
downloadFiles: () => {
|
|
323227
323227
|
return {
|
|
323228
323228
|
type: "downloadFiles",
|
|
323229
323229
|
_visit: function(visitor) {
|
|
323230
|
-
return
|
|
323230
|
+
return FernGeneratorExec3.BackwardsCompatibleOutputMode._visit(this, visitor);
|
|
323231
323231
|
}
|
|
323232
323232
|
};
|
|
323233
323233
|
},
|
|
323234
323234
|
github: (value) => {
|
|
323235
323235
|
return Object.assign(Object.assign({}, value), { type: "github", _visit: function(visitor) {
|
|
323236
|
-
return
|
|
323236
|
+
return FernGeneratorExec3.BackwardsCompatibleOutputMode._visit(this, visitor);
|
|
323237
323237
|
} });
|
|
323238
323238
|
},
|
|
323239
323239
|
_visit: (value, visitor) => {
|
|
@@ -323301,11 +323301,11 @@ var require_BackwardsCompatiblePublishTarget = __commonJS({
|
|
|
323301
323301
|
};
|
|
323302
323302
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
323303
323303
|
exports2.BackwardsCompatiblePublishTarget = void 0;
|
|
323304
|
-
var
|
|
323304
|
+
var FernGeneratorExec3 = __importStar2(require_api3());
|
|
323305
323305
|
exports2.BackwardsCompatiblePublishTarget = {
|
|
323306
323306
|
npm: (value) => {
|
|
323307
323307
|
return Object.assign(Object.assign({}, value), { type: "npm", _visit: function(visitor) {
|
|
323308
|
-
return
|
|
323308
|
+
return FernGeneratorExec3.BackwardsCompatiblePublishTarget._visit(this, visitor);
|
|
323309
323309
|
} });
|
|
323310
323310
|
},
|
|
323311
323311
|
_visit: (value, visitor) => {
|
|
@@ -323416,16 +323416,16 @@ var require_LicenseConfig = __commonJS({
|
|
|
323416
323416
|
};
|
|
323417
323417
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
323418
323418
|
exports2.LicenseConfig = void 0;
|
|
323419
|
-
var
|
|
323419
|
+
var FernGeneratorExec3 = __importStar2(require_api3());
|
|
323420
323420
|
exports2.LicenseConfig = {
|
|
323421
323421
|
basic: (value) => {
|
|
323422
323422
|
return Object.assign(Object.assign({}, value), { type: "basic", _visit: function(visitor) {
|
|
323423
|
-
return
|
|
323423
|
+
return FernGeneratorExec3.LicenseConfig._visit(this, visitor);
|
|
323424
323424
|
} });
|
|
323425
323425
|
},
|
|
323426
323426
|
custom: (value) => {
|
|
323427
323427
|
return Object.assign(Object.assign({}, value), { type: "custom", _visit: function(visitor) {
|
|
323428
|
-
return
|
|
323428
|
+
return FernGeneratorExec3.LicenseConfig._visit(this, visitor);
|
|
323429
323429
|
} });
|
|
323430
323430
|
},
|
|
323431
323431
|
_visit: (value, visitor) => {
|
|
@@ -323522,24 +323522,24 @@ var require_OutputMode3 = __commonJS({
|
|
|
323522
323522
|
};
|
|
323523
323523
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
323524
323524
|
exports2.OutputMode = void 0;
|
|
323525
|
-
var
|
|
323525
|
+
var FernGeneratorExec3 = __importStar2(require_api3());
|
|
323526
323526
|
exports2.OutputMode = {
|
|
323527
323527
|
publish: (value) => {
|
|
323528
323528
|
return Object.assign(Object.assign({}, value), { type: "publish", _visit: function(visitor) {
|
|
323529
|
-
return
|
|
323529
|
+
return FernGeneratorExec3.OutputMode._visit(this, visitor);
|
|
323530
323530
|
} });
|
|
323531
323531
|
},
|
|
323532
323532
|
downloadFiles: () => {
|
|
323533
323533
|
return {
|
|
323534
323534
|
type: "downloadFiles",
|
|
323535
323535
|
_visit: function(visitor) {
|
|
323536
|
-
return
|
|
323536
|
+
return FernGeneratorExec3.OutputMode._visit(this, visitor);
|
|
323537
323537
|
}
|
|
323538
323538
|
};
|
|
323539
323539
|
},
|
|
323540
323540
|
github: (value) => {
|
|
323541
323541
|
return Object.assign(Object.assign({}, value), { type: "github", _visit: function(visitor) {
|
|
323542
|
-
return
|
|
323542
|
+
return FernGeneratorExec3.OutputMode._visit(this, visitor);
|
|
323543
323543
|
} });
|
|
323544
323544
|
},
|
|
323545
323545
|
_visit: (value, visitor) => {
|
|
@@ -323631,41 +323631,41 @@ var require_GithubPublishInfo3 = __commonJS({
|
|
|
323631
323631
|
};
|
|
323632
323632
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
323633
323633
|
exports2.GithubPublishInfo = void 0;
|
|
323634
|
-
var
|
|
323634
|
+
var FernGeneratorExec3 = __importStar2(require_api3());
|
|
323635
323635
|
exports2.GithubPublishInfo = {
|
|
323636
323636
|
npm: (value) => {
|
|
323637
323637
|
return Object.assign(Object.assign({}, value), { type: "npm", _visit: function(visitor) {
|
|
323638
|
-
return
|
|
323638
|
+
return FernGeneratorExec3.GithubPublishInfo._visit(this, visitor);
|
|
323639
323639
|
} });
|
|
323640
323640
|
},
|
|
323641
323641
|
maven: (value) => {
|
|
323642
323642
|
return Object.assign(Object.assign({}, value), { type: "maven", _visit: function(visitor) {
|
|
323643
|
-
return
|
|
323643
|
+
return FernGeneratorExec3.GithubPublishInfo._visit(this, visitor);
|
|
323644
323644
|
} });
|
|
323645
323645
|
},
|
|
323646
323646
|
postman: (value) => {
|
|
323647
323647
|
return Object.assign(Object.assign({}, value), { type: "postman", _visit: function(visitor) {
|
|
323648
|
-
return
|
|
323648
|
+
return FernGeneratorExec3.GithubPublishInfo._visit(this, visitor);
|
|
323649
323649
|
} });
|
|
323650
323650
|
},
|
|
323651
323651
|
pypi: (value) => {
|
|
323652
323652
|
return Object.assign(Object.assign({}, value), { type: "pypi", _visit: function(visitor) {
|
|
323653
|
-
return
|
|
323653
|
+
return FernGeneratorExec3.GithubPublishInfo._visit(this, visitor);
|
|
323654
323654
|
} });
|
|
323655
323655
|
},
|
|
323656
323656
|
rubygems: (value) => {
|
|
323657
323657
|
return Object.assign(Object.assign({}, value), { type: "rubygems", _visit: function(visitor) {
|
|
323658
|
-
return
|
|
323658
|
+
return FernGeneratorExec3.GithubPublishInfo._visit(this, visitor);
|
|
323659
323659
|
} });
|
|
323660
323660
|
},
|
|
323661
323661
|
nuget: (value) => {
|
|
323662
323662
|
return Object.assign(Object.assign({}, value), { type: "nuget", _visit: function(visitor) {
|
|
323663
|
-
return
|
|
323663
|
+
return FernGeneratorExec3.GithubPublishInfo._visit(this, visitor);
|
|
323664
323664
|
} });
|
|
323665
323665
|
},
|
|
323666
323666
|
crates: (value) => {
|
|
323667
323667
|
return Object.assign(Object.assign({}, value), { type: "crates", _visit: function(visitor) {
|
|
323668
|
-
return
|
|
323668
|
+
return FernGeneratorExec3.GithubPublishInfo._visit(this, visitor);
|
|
323669
323669
|
} });
|
|
323670
323670
|
},
|
|
323671
323671
|
_visit: (value, visitor) => {
|
|
@@ -323850,41 +323850,41 @@ var require_GeneratorPublishTarget = __commonJS({
|
|
|
323850
323850
|
};
|
|
323851
323851
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
323852
323852
|
exports2.GeneratorPublishTarget = void 0;
|
|
323853
|
-
var
|
|
323853
|
+
var FernGeneratorExec3 = __importStar2(require_api3());
|
|
323854
323854
|
exports2.GeneratorPublishTarget = {
|
|
323855
323855
|
maven: (value) => {
|
|
323856
323856
|
return Object.assign(Object.assign({}, value), { type: "maven", _visit: function(visitor) {
|
|
323857
|
-
return
|
|
323857
|
+
return FernGeneratorExec3.GeneratorPublishTarget._visit(this, visitor);
|
|
323858
323858
|
} });
|
|
323859
323859
|
},
|
|
323860
323860
|
npm: (value) => {
|
|
323861
323861
|
return Object.assign(Object.assign({}, value), { type: "npm", _visit: function(visitor) {
|
|
323862
|
-
return
|
|
323862
|
+
return FernGeneratorExec3.GeneratorPublishTarget._visit(this, visitor);
|
|
323863
323863
|
} });
|
|
323864
323864
|
},
|
|
323865
323865
|
pypi: (value) => {
|
|
323866
323866
|
return Object.assign(Object.assign({}, value), { type: "pypi", _visit: function(visitor) {
|
|
323867
|
-
return
|
|
323867
|
+
return FernGeneratorExec3.GeneratorPublishTarget._visit(this, visitor);
|
|
323868
323868
|
} });
|
|
323869
323869
|
},
|
|
323870
323870
|
postman: (value) => {
|
|
323871
323871
|
return Object.assign(Object.assign({}, value), { type: "postman", _visit: function(visitor) {
|
|
323872
|
-
return
|
|
323872
|
+
return FernGeneratorExec3.GeneratorPublishTarget._visit(this, visitor);
|
|
323873
323873
|
} });
|
|
323874
323874
|
},
|
|
323875
323875
|
rubygems: (value) => {
|
|
323876
323876
|
return Object.assign(Object.assign({}, value), { type: "rubygems", _visit: function(visitor) {
|
|
323877
|
-
return
|
|
323877
|
+
return FernGeneratorExec3.GeneratorPublishTarget._visit(this, visitor);
|
|
323878
323878
|
} });
|
|
323879
323879
|
},
|
|
323880
323880
|
nuget: (value) => {
|
|
323881
323881
|
return Object.assign(Object.assign({}, value), { type: "nuget", _visit: function(visitor) {
|
|
323882
|
-
return
|
|
323882
|
+
return FernGeneratorExec3.GeneratorPublishTarget._visit(this, visitor);
|
|
323883
323883
|
} });
|
|
323884
323884
|
},
|
|
323885
323885
|
crates: (value) => {
|
|
323886
323886
|
return Object.assign(Object.assign({}, value), { type: "crates", _visit: function(visitor) {
|
|
323887
|
-
return
|
|
323887
|
+
return FernGeneratorExec3.GeneratorPublishTarget._visit(this, visitor);
|
|
323888
323888
|
} });
|
|
323889
323889
|
},
|
|
323890
323890
|
_visit: (value, visitor) => {
|
|
@@ -324000,19 +324000,19 @@ var require_GeneratorEnvironment = __commonJS({
|
|
|
324000
324000
|
};
|
|
324001
324001
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
324002
324002
|
exports2.GeneratorEnvironment = void 0;
|
|
324003
|
-
var
|
|
324003
|
+
var FernGeneratorExec3 = __importStar2(require_api3());
|
|
324004
324004
|
exports2.GeneratorEnvironment = {
|
|
324005
324005
|
local: () => {
|
|
324006
324006
|
return {
|
|
324007
324007
|
type: "local",
|
|
324008
324008
|
_visit: function(visitor) {
|
|
324009
|
-
return
|
|
324009
|
+
return FernGeneratorExec3.GeneratorEnvironment._visit(this, visitor);
|
|
324010
324010
|
}
|
|
324011
324011
|
};
|
|
324012
324012
|
},
|
|
324013
324013
|
remote: (value) => {
|
|
324014
324014
|
return Object.assign(Object.assign({}, value), { type: "remote", _visit: function(visitor) {
|
|
324015
|
-
return
|
|
324015
|
+
return FernGeneratorExec3.GeneratorEnvironment._visit(this, visitor);
|
|
324016
324016
|
} });
|
|
324017
324017
|
},
|
|
324018
324018
|
_visit: (value, visitor) => {
|
|
@@ -324170,21 +324170,21 @@ var require_GeneratorUpdate = __commonJS({
|
|
|
324170
324170
|
};
|
|
324171
324171
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
324172
324172
|
exports2.GeneratorUpdate = void 0;
|
|
324173
|
-
var
|
|
324173
|
+
var FernGeneratorExec3 = __importStar2(require_api3());
|
|
324174
324174
|
exports2.GeneratorUpdate = {
|
|
324175
324175
|
init: (value) => {
|
|
324176
324176
|
return Object.assign(Object.assign({}, value), { type: "init", _visit: function(visitor) {
|
|
324177
|
-
return
|
|
324177
|
+
return FernGeneratorExec3.GeneratorUpdate._visit(this, visitor);
|
|
324178
324178
|
} });
|
|
324179
324179
|
},
|
|
324180
324180
|
initV2: (value) => {
|
|
324181
324181
|
return Object.assign(Object.assign({}, value), { type: "initV2", _visit: function(visitor) {
|
|
324182
|
-
return
|
|
324182
|
+
return FernGeneratorExec3.GeneratorUpdate._visit(this, visitor);
|
|
324183
324183
|
} });
|
|
324184
324184
|
},
|
|
324185
324185
|
log: (value) => {
|
|
324186
324186
|
return Object.assign(Object.assign({}, value), { type: "log", _visit: function(visitor) {
|
|
324187
|
-
return
|
|
324187
|
+
return FernGeneratorExec3.GeneratorUpdate._visit(this, visitor);
|
|
324188
324188
|
} });
|
|
324189
324189
|
},
|
|
324190
324190
|
publishing: (value) => {
|
|
@@ -324192,7 +324192,7 @@ var require_GeneratorUpdate = __commonJS({
|
|
|
324192
324192
|
publishing: value,
|
|
324193
324193
|
type: "publishing",
|
|
324194
324194
|
_visit: function(visitor) {
|
|
324195
|
-
return
|
|
324195
|
+
return FernGeneratorExec3.GeneratorUpdate._visit(this, visitor);
|
|
324196
324196
|
}
|
|
324197
324197
|
};
|
|
324198
324198
|
},
|
|
@@ -324201,7 +324201,7 @@ var require_GeneratorUpdate = __commonJS({
|
|
|
324201
324201
|
published: value,
|
|
324202
324202
|
type: "published",
|
|
324203
324203
|
_visit: function(visitor) {
|
|
324204
|
-
return
|
|
324204
|
+
return FernGeneratorExec3.GeneratorUpdate._visit(this, visitor);
|
|
324205
324205
|
}
|
|
324206
324206
|
};
|
|
324207
324207
|
},
|
|
@@ -324210,7 +324210,7 @@ var require_GeneratorUpdate = __commonJS({
|
|
|
324210
324210
|
exitStatusUpdate: value,
|
|
324211
324211
|
type: "exitStatusUpdate",
|
|
324212
324212
|
_visit: function(visitor) {
|
|
324213
|
-
return
|
|
324213
|
+
return FernGeneratorExec3.GeneratorUpdate._visit(this, visitor);
|
|
324214
324214
|
}
|
|
324215
324215
|
};
|
|
324216
324216
|
},
|
|
@@ -324357,21 +324357,21 @@ var require_PackageCoordinate3 = __commonJS({
|
|
|
324357
324357
|
};
|
|
324358
324358
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
324359
324359
|
exports2.PackageCoordinate = void 0;
|
|
324360
|
-
var
|
|
324360
|
+
var FernGeneratorExec3 = __importStar2(require_api3());
|
|
324361
324361
|
exports2.PackageCoordinate = {
|
|
324362
324362
|
npm: (value) => {
|
|
324363
324363
|
return Object.assign(Object.assign({}, value), { type: "npm", _visit: function(visitor) {
|
|
324364
|
-
return
|
|
324364
|
+
return FernGeneratorExec3.PackageCoordinate._visit(this, visitor);
|
|
324365
324365
|
} });
|
|
324366
324366
|
},
|
|
324367
324367
|
maven: (value) => {
|
|
324368
324368
|
return Object.assign(Object.assign({}, value), { type: "maven", _visit: function(visitor) {
|
|
324369
|
-
return
|
|
324369
|
+
return FernGeneratorExec3.PackageCoordinate._visit(this, visitor);
|
|
324370
324370
|
} });
|
|
324371
324371
|
},
|
|
324372
324372
|
crates: (value) => {
|
|
324373
324373
|
return Object.assign(Object.assign({}, value), { type: "crates", _visit: function(visitor) {
|
|
324374
|
-
return
|
|
324374
|
+
return FernGeneratorExec3.PackageCoordinate._visit(this, visitor);
|
|
324375
324375
|
} });
|
|
324376
324376
|
},
|
|
324377
324377
|
_visit: (value, visitor) => {
|
|
@@ -324447,16 +324447,16 @@ var require_ExitStatusUpdate = __commonJS({
|
|
|
324447
324447
|
};
|
|
324448
324448
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
324449
324449
|
exports2.ExitStatusUpdate = void 0;
|
|
324450
|
-
var
|
|
324450
|
+
var FernGeneratorExec3 = __importStar2(require_api3());
|
|
324451
324451
|
exports2.ExitStatusUpdate = {
|
|
324452
324452
|
successful: (value) => {
|
|
324453
324453
|
return Object.assign(Object.assign({}, value), { type: "successful", _visit: function(visitor) {
|
|
324454
|
-
return
|
|
324454
|
+
return FernGeneratorExec3.ExitStatusUpdate._visit(this, visitor);
|
|
324455
324455
|
} });
|
|
324456
324456
|
},
|
|
324457
324457
|
error: (value) => {
|
|
324458
324458
|
return Object.assign(Object.assign({}, value), { type: "error", _visit: function(visitor) {
|
|
324459
|
-
return
|
|
324459
|
+
return FernGeneratorExec3.ExitStatusUpdate._visit(this, visitor);
|
|
324460
324460
|
} });
|
|
324461
324461
|
},
|
|
324462
324462
|
_visit: (value, visitor) => {
|
|
@@ -324785,41 +324785,41 @@ var require_EndpointSnippet = __commonJS({
|
|
|
324785
324785
|
};
|
|
324786
324786
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
324787
324787
|
exports2.EndpointSnippet = void 0;
|
|
324788
|
-
var
|
|
324788
|
+
var FernGeneratorExec3 = __importStar2(require_api3());
|
|
324789
324789
|
exports2.EndpointSnippet = {
|
|
324790
324790
|
typescript: (value) => {
|
|
324791
324791
|
return Object.assign(Object.assign({}, value), { type: "typescript", _visit: function(visitor) {
|
|
324792
|
-
return
|
|
324792
|
+
return FernGeneratorExec3.EndpointSnippet._visit(this, visitor);
|
|
324793
324793
|
} });
|
|
324794
324794
|
},
|
|
324795
324795
|
python: (value) => {
|
|
324796
324796
|
return Object.assign(Object.assign({}, value), { type: "python", _visit: function(visitor) {
|
|
324797
|
-
return
|
|
324797
|
+
return FernGeneratorExec3.EndpointSnippet._visit(this, visitor);
|
|
324798
324798
|
} });
|
|
324799
324799
|
},
|
|
324800
324800
|
java: (value) => {
|
|
324801
324801
|
return Object.assign(Object.assign({}, value), { type: "java", _visit: function(visitor) {
|
|
324802
|
-
return
|
|
324802
|
+
return FernGeneratorExec3.EndpointSnippet._visit(this, visitor);
|
|
324803
324803
|
} });
|
|
324804
324804
|
},
|
|
324805
324805
|
go: (value) => {
|
|
324806
324806
|
return Object.assign(Object.assign({}, value), { type: "go", _visit: function(visitor) {
|
|
324807
|
-
return
|
|
324807
|
+
return FernGeneratorExec3.EndpointSnippet._visit(this, visitor);
|
|
324808
324808
|
} });
|
|
324809
324809
|
},
|
|
324810
324810
|
ruby: (value) => {
|
|
324811
324811
|
return Object.assign(Object.assign({}, value), { type: "ruby", _visit: function(visitor) {
|
|
324812
|
-
return
|
|
324812
|
+
return FernGeneratorExec3.EndpointSnippet._visit(this, visitor);
|
|
324813
324813
|
} });
|
|
324814
324814
|
},
|
|
324815
324815
|
csharp: (value) => {
|
|
324816
324816
|
return Object.assign(Object.assign({}, value), { type: "csharp", _visit: function(visitor) {
|
|
324817
|
-
return
|
|
324817
|
+
return FernGeneratorExec3.EndpointSnippet._visit(this, visitor);
|
|
324818
324818
|
} });
|
|
324819
324819
|
},
|
|
324820
324820
|
rust: (value) => {
|
|
324821
324821
|
return Object.assign(Object.assign({}, value), { type: "rust", _visit: function(visitor) {
|
|
324822
|
-
return
|
|
324822
|
+
return FernGeneratorExec3.EndpointSnippet._visit(this, visitor);
|
|
324823
324823
|
} });
|
|
324824
324824
|
},
|
|
324825
324825
|
_visit: (value, visitor) => {
|
|
@@ -327648,7 +327648,7 @@ var require_BackwardsCompatibleOutputMode2 = __commonJS({
|
|
|
327648
327648
|
};
|
|
327649
327649
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
327650
327650
|
exports2.BackwardsCompatibleOutputMode = void 0;
|
|
327651
|
-
var
|
|
327651
|
+
var FernGeneratorExec3 = __importStar2(require_api3());
|
|
327652
327652
|
var core3 = __importStar2(require_core12());
|
|
327653
327653
|
exports2.BackwardsCompatibleOutputMode = core3.serialization.union("type", {
|
|
327654
327654
|
publish: core3.serialization.lazyObject(() => __awaiter16(void 0, void 0, void 0, function* () {
|
|
@@ -327662,11 +327662,11 @@ var require_BackwardsCompatibleOutputMode2 = __commonJS({
|
|
|
327662
327662
|
transform: (value) => {
|
|
327663
327663
|
switch (value.type) {
|
|
327664
327664
|
case "publish":
|
|
327665
|
-
return
|
|
327665
|
+
return FernGeneratorExec3.BackwardsCompatibleOutputMode.publish(value);
|
|
327666
327666
|
case "downloadFiles":
|
|
327667
|
-
return
|
|
327667
|
+
return FernGeneratorExec3.BackwardsCompatibleOutputMode.downloadFiles();
|
|
327668
327668
|
case "github":
|
|
327669
|
-
return
|
|
327669
|
+
return FernGeneratorExec3.BackwardsCompatibleOutputMode.github(value);
|
|
327670
327670
|
default:
|
|
327671
327671
|
return value;
|
|
327672
327672
|
}
|
|
@@ -327901,7 +327901,7 @@ var require_BackwardsCompatiblePublishTarget2 = __commonJS({
|
|
|
327901
327901
|
};
|
|
327902
327902
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
327903
327903
|
exports2.BackwardsCompatiblePublishTarget = void 0;
|
|
327904
|
-
var
|
|
327904
|
+
var FernGeneratorExec3 = __importStar2(require_api3());
|
|
327905
327905
|
var core3 = __importStar2(require_core12());
|
|
327906
327906
|
exports2.BackwardsCompatiblePublishTarget = core3.serialization.union("type", {
|
|
327907
327907
|
npm: core3.serialization.lazyObject(() => __awaiter16(void 0, void 0, void 0, function* () {
|
|
@@ -327911,7 +327911,7 @@ var require_BackwardsCompatiblePublishTarget2 = __commonJS({
|
|
|
327911
327911
|
transform: (value) => {
|
|
327912
327912
|
switch (value.type) {
|
|
327913
327913
|
case "npm":
|
|
327914
|
-
return
|
|
327914
|
+
return FernGeneratorExec3.BackwardsCompatiblePublishTarget.npm(value);
|
|
327915
327915
|
default:
|
|
327916
327916
|
return value;
|
|
327917
327917
|
}
|
|
@@ -328138,7 +328138,7 @@ var require_LicenseConfig2 = __commonJS({
|
|
|
328138
328138
|
};
|
|
328139
328139
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
328140
328140
|
exports2.LicenseConfig = void 0;
|
|
328141
|
-
var
|
|
328141
|
+
var FernGeneratorExec3 = __importStar2(require_api3());
|
|
328142
328142
|
var core3 = __importStar2(require_core12());
|
|
328143
328143
|
exports2.LicenseConfig = core3.serialization.union("type", {
|
|
328144
328144
|
basic: core3.serialization.lazyObject(() => __awaiter16(void 0, void 0, void 0, function* () {
|
|
@@ -328151,9 +328151,9 @@ var require_LicenseConfig2 = __commonJS({
|
|
|
328151
328151
|
transform: (value) => {
|
|
328152
328152
|
switch (value.type) {
|
|
328153
328153
|
case "basic":
|
|
328154
|
-
return
|
|
328154
|
+
return FernGeneratorExec3.LicenseConfig.basic(value);
|
|
328155
328155
|
case "custom":
|
|
328156
|
-
return
|
|
328156
|
+
return FernGeneratorExec3.LicenseConfig.custom(value);
|
|
328157
328157
|
default:
|
|
328158
328158
|
return value;
|
|
328159
328159
|
}
|
|
@@ -328459,7 +328459,7 @@ var require_OutputMode4 = __commonJS({
|
|
|
328459
328459
|
};
|
|
328460
328460
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
328461
328461
|
exports2.OutputMode = void 0;
|
|
328462
|
-
var
|
|
328462
|
+
var FernGeneratorExec3 = __importStar2(require_api3());
|
|
328463
328463
|
var core3 = __importStar2(require_core12());
|
|
328464
328464
|
exports2.OutputMode = core3.serialization.union("type", {
|
|
328465
328465
|
publish: core3.serialization.lazyObject(() => __awaiter16(void 0, void 0, void 0, function* () {
|
|
@@ -328473,11 +328473,11 @@ var require_OutputMode4 = __commonJS({
|
|
|
328473
328473
|
transform: (value) => {
|
|
328474
328474
|
switch (value.type) {
|
|
328475
328475
|
case "publish":
|
|
328476
|
-
return
|
|
328476
|
+
return FernGeneratorExec3.OutputMode.publish(value);
|
|
328477
328477
|
case "downloadFiles":
|
|
328478
|
-
return
|
|
328478
|
+
return FernGeneratorExec3.OutputMode.downloadFiles();
|
|
328479
328479
|
case "github":
|
|
328480
|
-
return
|
|
328480
|
+
return FernGeneratorExec3.OutputMode.github(value);
|
|
328481
328481
|
default:
|
|
328482
328482
|
return value;
|
|
328483
328483
|
}
|
|
@@ -328863,7 +328863,7 @@ var require_GithubPublishInfo4 = __commonJS({
|
|
|
328863
328863
|
};
|
|
328864
328864
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
328865
328865
|
exports2.GithubPublishInfo = void 0;
|
|
328866
|
-
var
|
|
328866
|
+
var FernGeneratorExec3 = __importStar2(require_api3());
|
|
328867
328867
|
var core3 = __importStar2(require_core12());
|
|
328868
328868
|
exports2.GithubPublishInfo = core3.serialization.union("type", {
|
|
328869
328869
|
npm: core3.serialization.lazyObject(() => __awaiter16(void 0, void 0, void 0, function* () {
|
|
@@ -328891,19 +328891,19 @@ var require_GithubPublishInfo4 = __commonJS({
|
|
|
328891
328891
|
transform: (value) => {
|
|
328892
328892
|
switch (value.type) {
|
|
328893
328893
|
case "npm":
|
|
328894
|
-
return
|
|
328894
|
+
return FernGeneratorExec3.GithubPublishInfo.npm(value);
|
|
328895
328895
|
case "maven":
|
|
328896
|
-
return
|
|
328896
|
+
return FernGeneratorExec3.GithubPublishInfo.maven(value);
|
|
328897
328897
|
case "postman":
|
|
328898
|
-
return
|
|
328898
|
+
return FernGeneratorExec3.GithubPublishInfo.postman(value);
|
|
328899
328899
|
case "pypi":
|
|
328900
|
-
return
|
|
328900
|
+
return FernGeneratorExec3.GithubPublishInfo.pypi(value);
|
|
328901
328901
|
case "rubygems":
|
|
328902
|
-
return
|
|
328902
|
+
return FernGeneratorExec3.GithubPublishInfo.rubygems(value);
|
|
328903
328903
|
case "nuget":
|
|
328904
|
-
return
|
|
328904
|
+
return FernGeneratorExec3.GithubPublishInfo.nuget(value);
|
|
328905
328905
|
case "crates":
|
|
328906
|
-
return
|
|
328906
|
+
return FernGeneratorExec3.GithubPublishInfo.crates(value);
|
|
328907
328907
|
default:
|
|
328908
328908
|
return value;
|
|
328909
328909
|
}
|
|
@@ -328949,10 +328949,10 @@ var require_EnvironmentVariable2 = __commonJS({
|
|
|
328949
328949
|
};
|
|
328950
328950
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
328951
328951
|
exports2.EnvironmentVariable = void 0;
|
|
328952
|
-
var
|
|
328952
|
+
var FernGeneratorExec3 = __importStar2(require_api3());
|
|
328953
328953
|
var core3 = __importStar2(require_core12());
|
|
328954
328954
|
exports2.EnvironmentVariable = core3.serialization.string().transform({
|
|
328955
|
-
transform:
|
|
328955
|
+
transform: FernGeneratorExec3.EnvironmentVariable,
|
|
328956
328956
|
untransform: (value) => value
|
|
328957
328957
|
});
|
|
328958
328958
|
}
|
|
@@ -330004,7 +330004,7 @@ var require_GeneratorPublishTarget2 = __commonJS({
|
|
|
330004
330004
|
};
|
|
330005
330005
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
330006
330006
|
exports2.GeneratorPublishTarget = void 0;
|
|
330007
|
-
var
|
|
330007
|
+
var FernGeneratorExec3 = __importStar2(require_api3());
|
|
330008
330008
|
var core3 = __importStar2(require_core12());
|
|
330009
330009
|
exports2.GeneratorPublishTarget = core3.serialization.union("type", {
|
|
330010
330010
|
maven: core3.serialization.lazyObject(() => __awaiter16(void 0, void 0, void 0, function* () {
|
|
@@ -330032,19 +330032,19 @@ var require_GeneratorPublishTarget2 = __commonJS({
|
|
|
330032
330032
|
transform: (value) => {
|
|
330033
330033
|
switch (value.type) {
|
|
330034
330034
|
case "maven":
|
|
330035
|
-
return
|
|
330035
|
+
return FernGeneratorExec3.GeneratorPublishTarget.maven(value);
|
|
330036
330036
|
case "npm":
|
|
330037
|
-
return
|
|
330037
|
+
return FernGeneratorExec3.GeneratorPublishTarget.npm(value);
|
|
330038
330038
|
case "pypi":
|
|
330039
|
-
return
|
|
330039
|
+
return FernGeneratorExec3.GeneratorPublishTarget.pypi(value);
|
|
330040
330040
|
case "postman":
|
|
330041
|
-
return
|
|
330041
|
+
return FernGeneratorExec3.GeneratorPublishTarget.postman(value);
|
|
330042
330042
|
case "rubygems":
|
|
330043
|
-
return
|
|
330043
|
+
return FernGeneratorExec3.GeneratorPublishTarget.rubygems(value);
|
|
330044
330044
|
case "nuget":
|
|
330045
|
-
return
|
|
330045
|
+
return FernGeneratorExec3.GeneratorPublishTarget.nuget(value);
|
|
330046
330046
|
case "crates":
|
|
330047
|
-
return
|
|
330047
|
+
return FernGeneratorExec3.GeneratorPublishTarget.crates(value);
|
|
330048
330048
|
default:
|
|
330049
330049
|
return value;
|
|
330050
330050
|
}
|
|
@@ -330483,7 +330483,7 @@ var require_GeneratorEnvironment2 = __commonJS({
|
|
|
330483
330483
|
};
|
|
330484
330484
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
330485
330485
|
exports2.GeneratorEnvironment = void 0;
|
|
330486
|
-
var
|
|
330486
|
+
var FernGeneratorExec3 = __importStar2(require_api3());
|
|
330487
330487
|
var core3 = __importStar2(require_core12());
|
|
330488
330488
|
exports2.GeneratorEnvironment = core3.serialization.union(core3.serialization.discriminant("type", "_type"), {
|
|
330489
330489
|
local: core3.serialization.object({}),
|
|
@@ -330494,9 +330494,9 @@ var require_GeneratorEnvironment2 = __commonJS({
|
|
|
330494
330494
|
transform: (value) => {
|
|
330495
330495
|
switch (value.type) {
|
|
330496
330496
|
case "local":
|
|
330497
|
-
return
|
|
330497
|
+
return FernGeneratorExec3.GeneratorEnvironment.local();
|
|
330498
330498
|
case "remote":
|
|
330499
|
-
return
|
|
330499
|
+
return FernGeneratorExec3.GeneratorEnvironment.remote(value);
|
|
330500
330500
|
default:
|
|
330501
330501
|
return value;
|
|
330502
330502
|
}
|
|
@@ -330700,10 +330700,10 @@ var require_TaskId2 = __commonJS({
|
|
|
330700
330700
|
};
|
|
330701
330701
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
330702
330702
|
exports2.TaskId = void 0;
|
|
330703
|
-
var
|
|
330703
|
+
var FernGeneratorExec3 = __importStar2(require_api3());
|
|
330704
330704
|
var core3 = __importStar2(require_core12());
|
|
330705
330705
|
exports2.TaskId = core3.serialization.string().transform({
|
|
330706
|
-
transform:
|
|
330706
|
+
transform: FernGeneratorExec3.TaskId,
|
|
330707
330707
|
untransform: (value) => value
|
|
330708
330708
|
});
|
|
330709
330709
|
}
|
|
@@ -330780,7 +330780,7 @@ var require_GeneratorUpdate2 = __commonJS({
|
|
|
330780
330780
|
};
|
|
330781
330781
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
330782
330782
|
exports2.GeneratorUpdate = void 0;
|
|
330783
|
-
var
|
|
330783
|
+
var FernGeneratorExec3 = __importStar2(require_api3());
|
|
330784
330784
|
var core3 = __importStar2(require_core12());
|
|
330785
330785
|
exports2.GeneratorUpdate = core3.serialization.union(core3.serialization.discriminant("type", "_type"), {
|
|
330786
330786
|
init: core3.serialization.lazyObject(() => __awaiter16(void 0, void 0, void 0, function* () {
|
|
@@ -330811,17 +330811,17 @@ var require_GeneratorUpdate2 = __commonJS({
|
|
|
330811
330811
|
transform: (value) => {
|
|
330812
330812
|
switch (value.type) {
|
|
330813
330813
|
case "init":
|
|
330814
|
-
return
|
|
330814
|
+
return FernGeneratorExec3.GeneratorUpdate.init(value);
|
|
330815
330815
|
case "initV2":
|
|
330816
|
-
return
|
|
330816
|
+
return FernGeneratorExec3.GeneratorUpdate.initV2(value);
|
|
330817
330817
|
case "log":
|
|
330818
|
-
return
|
|
330818
|
+
return FernGeneratorExec3.GeneratorUpdate.log(value);
|
|
330819
330819
|
case "publishing":
|
|
330820
|
-
return
|
|
330820
|
+
return FernGeneratorExec3.GeneratorUpdate.publishing(value.publishing);
|
|
330821
330821
|
case "published":
|
|
330822
|
-
return
|
|
330822
|
+
return FernGeneratorExec3.GeneratorUpdate.published(value.published);
|
|
330823
330823
|
case "exitStatusUpdate":
|
|
330824
|
-
return
|
|
330824
|
+
return FernGeneratorExec3.GeneratorUpdate.exitStatusUpdate(value.exitStatusUpdate);
|
|
330825
330825
|
default:
|
|
330826
330826
|
return value;
|
|
330827
330827
|
}
|
|
@@ -331189,7 +331189,7 @@ var require_PackageCoordinate4 = __commonJS({
|
|
|
331189
331189
|
};
|
|
331190
331190
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
331191
331191
|
exports2.PackageCoordinate = void 0;
|
|
331192
|
-
var
|
|
331192
|
+
var FernGeneratorExec3 = __importStar2(require_api3());
|
|
331193
331193
|
var core3 = __importStar2(require_core12());
|
|
331194
331194
|
exports2.PackageCoordinate = core3.serialization.union(core3.serialization.discriminant("type", "_type"), {
|
|
331195
331195
|
npm: core3.serialization.lazyObject(() => __awaiter16(void 0, void 0, void 0, function* () {
|
|
@@ -331205,11 +331205,11 @@ var require_PackageCoordinate4 = __commonJS({
|
|
|
331205
331205
|
transform: (value) => {
|
|
331206
331206
|
switch (value.type) {
|
|
331207
331207
|
case "npm":
|
|
331208
|
-
return
|
|
331208
|
+
return FernGeneratorExec3.PackageCoordinate.npm(value);
|
|
331209
331209
|
case "maven":
|
|
331210
|
-
return
|
|
331210
|
+
return FernGeneratorExec3.PackageCoordinate.maven(value);
|
|
331211
331211
|
case "crates":
|
|
331212
|
-
return
|
|
331212
|
+
return FernGeneratorExec3.PackageCoordinate.crates(value);
|
|
331213
331213
|
default:
|
|
331214
331214
|
return value;
|
|
331215
331215
|
}
|
|
@@ -331417,7 +331417,7 @@ var require_ExitStatusUpdate2 = __commonJS({
|
|
|
331417
331417
|
};
|
|
331418
331418
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
331419
331419
|
exports2.ExitStatusUpdate = void 0;
|
|
331420
|
-
var
|
|
331420
|
+
var FernGeneratorExec3 = __importStar2(require_api3());
|
|
331421
331421
|
var core3 = __importStar2(require_core12());
|
|
331422
331422
|
exports2.ExitStatusUpdate = core3.serialization.union(core3.serialization.discriminant("type", "_type"), {
|
|
331423
331423
|
successful: core3.serialization.lazyObject(() => __awaiter16(void 0, void 0, void 0, function* () {
|
|
@@ -331430,9 +331430,9 @@ var require_ExitStatusUpdate2 = __commonJS({
|
|
|
331430
331430
|
transform: (value) => {
|
|
331431
331431
|
switch (value.type) {
|
|
331432
331432
|
case "successful":
|
|
331433
|
-
return
|
|
331433
|
+
return FernGeneratorExec3.ExitStatusUpdate.successful(value);
|
|
331434
331434
|
case "error":
|
|
331435
|
-
return
|
|
331435
|
+
return FernGeneratorExec3.ExitStatusUpdate.error(value);
|
|
331436
331436
|
default:
|
|
331437
331437
|
return value;
|
|
331438
331438
|
}
|
|
@@ -331894,10 +331894,10 @@ var require_TypeId2 = __commonJS({
|
|
|
331894
331894
|
};
|
|
331895
331895
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
331896
331896
|
exports2.TypeId = void 0;
|
|
331897
|
-
var
|
|
331897
|
+
var FernGeneratorExec3 = __importStar2(require_api3());
|
|
331898
331898
|
var core3 = __importStar2(require_core12());
|
|
331899
331899
|
exports2.TypeId = core3.serialization.string().transform({
|
|
331900
|
-
transform:
|
|
331900
|
+
transform: FernGeneratorExec3.TypeId,
|
|
331901
331901
|
untransform: (value) => value
|
|
331902
331902
|
});
|
|
331903
331903
|
}
|
|
@@ -332154,10 +332154,10 @@ var require_EndpointPath2 = __commonJS({
|
|
|
332154
332154
|
};
|
|
332155
332155
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
332156
332156
|
exports2.EndpointPath = void 0;
|
|
332157
|
-
var
|
|
332157
|
+
var FernGeneratorExec3 = __importStar2(require_api3());
|
|
332158
332158
|
var core3 = __importStar2(require_core12());
|
|
332159
332159
|
exports2.EndpointPath = core3.serialization.string().transform({
|
|
332160
|
-
transform:
|
|
332160
|
+
transform: FernGeneratorExec3.EndpointPath,
|
|
332161
332161
|
untransform: (value) => value
|
|
332162
332162
|
});
|
|
332163
332163
|
}
|
|
@@ -332272,7 +332272,7 @@ var require_EndpointSnippet2 = __commonJS({
|
|
|
332272
332272
|
};
|
|
332273
332273
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
332274
332274
|
exports2.EndpointSnippet = void 0;
|
|
332275
|
-
var
|
|
332275
|
+
var FernGeneratorExec3 = __importStar2(require_api3());
|
|
332276
332276
|
var core3 = __importStar2(require_core12());
|
|
332277
332277
|
exports2.EndpointSnippet = core3.serialization.union("type", {
|
|
332278
332278
|
typescript: core3.serialization.lazyObject(() => __awaiter16(void 0, void 0, void 0, function* () {
|
|
@@ -332300,19 +332300,19 @@ var require_EndpointSnippet2 = __commonJS({
|
|
|
332300
332300
|
transform: (value) => {
|
|
332301
332301
|
switch (value.type) {
|
|
332302
332302
|
case "typescript":
|
|
332303
|
-
return
|
|
332303
|
+
return FernGeneratorExec3.EndpointSnippet.typescript(value);
|
|
332304
332304
|
case "python":
|
|
332305
|
-
return
|
|
332305
|
+
return FernGeneratorExec3.EndpointSnippet.python(value);
|
|
332306
332306
|
case "java":
|
|
332307
|
-
return
|
|
332307
|
+
return FernGeneratorExec3.EndpointSnippet.java(value);
|
|
332308
332308
|
case "go":
|
|
332309
|
-
return
|
|
332309
|
+
return FernGeneratorExec3.EndpointSnippet.go(value);
|
|
332310
332310
|
case "ruby":
|
|
332311
|
-
return
|
|
332311
|
+
return FernGeneratorExec3.EndpointSnippet.ruby(value);
|
|
332312
332312
|
case "csharp":
|
|
332313
|
-
return
|
|
332313
|
+
return FernGeneratorExec3.EndpointSnippet.csharp(value);
|
|
332314
332314
|
case "rust":
|
|
332315
|
-
return
|
|
332315
|
+
return FernGeneratorExec3.EndpointSnippet.rust(value);
|
|
332316
332316
|
default:
|
|
332317
332317
|
return value;
|
|
332318
332318
|
}
|
|
@@ -333056,7 +333056,7 @@ var require_Client13 = __commonJS({
|
|
|
333056
333056
|
exports2.FernGeneratorExecClient = void 0;
|
|
333057
333057
|
var Client_1 = require_Client11();
|
|
333058
333058
|
var Client_2 = require_Client12();
|
|
333059
|
-
var
|
|
333059
|
+
var FernGeneratorExecClient2 = class {
|
|
333060
333060
|
constructor(_options) {
|
|
333061
333061
|
this._options = _options;
|
|
333062
333062
|
}
|
|
@@ -333069,7 +333069,7 @@ var require_Client13 = __commonJS({
|
|
|
333069
333069
|
return (_a11 = this._readme) !== null && _a11 !== void 0 ? _a11 : this._readme = new Client_2.Readme(this._options);
|
|
333070
333070
|
}
|
|
333071
333071
|
};
|
|
333072
|
-
exports2.FernGeneratorExecClient =
|
|
333072
|
+
exports2.FernGeneratorExecClient = FernGeneratorExecClient2;
|
|
333073
333073
|
}
|
|
333074
333074
|
});
|
|
333075
333075
|
|
|
@@ -603736,7 +603736,7 @@ var AccessTokenPosthogManager = class {
|
|
|
603736
603736
|
properties: {
|
|
603737
603737
|
...event,
|
|
603738
603738
|
...event.properties,
|
|
603739
|
-
version: "4.63.5-
|
|
603739
|
+
version: "4.63.5-35-gb7c319792ab",
|
|
603740
603740
|
usingAccessToken: true
|
|
603741
603741
|
}
|
|
603742
603742
|
});
|
|
@@ -603787,7 +603787,7 @@ var UserPosthogManager = class {
|
|
|
603787
603787
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
603788
603788
|
event: "CLI",
|
|
603789
603789
|
properties: {
|
|
603790
|
-
version: "4.63.5-
|
|
603790
|
+
version: "4.63.5-35-gb7c319792ab",
|
|
603791
603791
|
...event,
|
|
603792
603792
|
...event.properties,
|
|
603793
603793
|
usingAccessToken: false,
|
|
@@ -840754,7 +840754,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
840754
840754
|
var LOGS_FOLDER_NAME = "logs";
|
|
840755
840755
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
840756
840756
|
function getCliSource() {
|
|
840757
|
-
const version7 = "4.63.5-
|
|
840757
|
+
const version7 = "4.63.5-35-gb7c319792ab";
|
|
840758
840758
|
return `cli@${version7}`;
|
|
840759
840759
|
}
|
|
840760
840760
|
var DebugLogger = class {
|
|
@@ -851952,7 +851952,7 @@ var LegacyDocsPublisher = class {
|
|
|
851952
851952
|
previewId,
|
|
851953
851953
|
disableTemplates: void 0,
|
|
851954
851954
|
skipUpload,
|
|
851955
|
-
cliVersion: "4.63.5-
|
|
851955
|
+
cliVersion: "4.63.5-35-gb7c319792ab"
|
|
851956
851956
|
});
|
|
851957
851957
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
851958
851958
|
return { success: false };
|
|
@@ -855317,6 +855317,11 @@ var ContainerExecutionEnvironment = class {
|
|
|
855317
855317
|
// ../generation/local-generation/local-workspace-runner/lib/GenerationRunner.js
|
|
855318
855318
|
init_lib6();
|
|
855319
855319
|
|
|
855320
|
+
// ../../../generators/browser-compatible-base/lib/GeneratorNotificationService.js
|
|
855321
|
+
var import_generator_exec_sdk = __toESM(require_generator_exec_sdk(), 1);
|
|
855322
|
+
var import_api50 = __toESM(require_api3(), 1);
|
|
855323
|
+
var GeneratorExecParsing = __toESM(require_serialization3(), 1);
|
|
855324
|
+
|
|
855320
855325
|
// ../../../generators/browser-compatible-base/lib/utils/stacktrace.js
|
|
855321
855326
|
var key = process.env["FERN_STACK_TRACK"]?.toLowerCase() ?? "";
|
|
855322
855327
|
var enableStackTracking = key !== "" && key !== "0" && key !== "false";
|
|
@@ -876204,11 +876209,12 @@ var DynamicSnippetsGeneratorContext2 = class _DynamicSnippetsGeneratorContext ex
|
|
|
876204
876209
|
constructor({ ir: ir15, config: config5 }) {
|
|
876205
876210
|
super({ ir: ir15, config: config5 });
|
|
876206
876211
|
this.ir = ir15;
|
|
876207
|
-
|
|
876212
|
+
const effectiveConfig = this.buildEffectiveConfig({ ir: ir15, config: config5 });
|
|
876213
|
+
this.customConfig = effectiveConfig.customConfig != null ? effectiveConfig.customConfig : void 0;
|
|
876208
876214
|
this.dynamicTypeMapper = new DynamicTypeMapper2({ context: this });
|
|
876209
876215
|
this.dynamicTypeInstantiationMapper = new DynamicTypeInstantiationMapper({ context: this });
|
|
876210
876216
|
this.filePropertyMapper = new FilePropertyMapper2({ context: this });
|
|
876211
|
-
this.rootImportPath = resolveRootImportPath({ config:
|
|
876217
|
+
this.rootImportPath = resolveRootImportPath({ config: effectiveConfig, customConfig: this.customConfig });
|
|
876212
876218
|
}
|
|
876213
876219
|
clone() {
|
|
876214
876220
|
return new _DynamicSnippetsGeneratorContext({
|
|
@@ -876332,6 +876338,39 @@ var DynamicSnippetsGeneratorContext2 = class _DynamicSnippetsGeneratorContext ex
|
|
|
876332
876338
|
importPath: this.rootImportPath
|
|
876333
876339
|
});
|
|
876334
876340
|
}
|
|
876341
|
+
/**
|
|
876342
|
+
* Builds an effective FernGeneratorExec.GeneratorConfig by incorporating
|
|
876343
|
+
* Go-specific publish info from the dynamic IR's generatorConfig.
|
|
876344
|
+
*
|
|
876345
|
+
* The dynamic IR contains the authoritative generator config (including
|
|
876346
|
+
* repoUrl and version for Go). This method ensures the snippet generator
|
|
876347
|
+
* uses that config directly, rather than depending on an external conversion
|
|
876348
|
+
* layer (e.g. FDR) to correctly populate the FernGeneratorExec config.
|
|
876349
|
+
*/
|
|
876350
|
+
buildEffectiveConfig({ ir: ir15, config: config5 }) {
|
|
876351
|
+
const generatorConfig = ir15.generatorConfig;
|
|
876352
|
+
if (generatorConfig == null) {
|
|
876353
|
+
return config5;
|
|
876354
|
+
}
|
|
876355
|
+
if (generatorConfig.outputConfig.type !== "publish") {
|
|
876356
|
+
return config5;
|
|
876357
|
+
}
|
|
876358
|
+
const publishInfo = generatorConfig.outputConfig.value;
|
|
876359
|
+
if (publishInfo.type !== "go") {
|
|
876360
|
+
return config5;
|
|
876361
|
+
}
|
|
876362
|
+
return {
|
|
876363
|
+
...config5,
|
|
876364
|
+
customConfig: generatorConfig.customConfig ?? config5.customConfig,
|
|
876365
|
+
output: {
|
|
876366
|
+
...config5.output,
|
|
876367
|
+
mode: import_generator_exec_sdk.FernGeneratorExec.OutputMode.github({
|
|
876368
|
+
version: publishInfo.version,
|
|
876369
|
+
repoUrl: publishInfo.repoUrl
|
|
876370
|
+
})
|
|
876371
|
+
}
|
|
876372
|
+
};
|
|
876373
|
+
}
|
|
876335
876374
|
static chainMethods(baseFunc, ...methods) {
|
|
876336
876375
|
if (methods.length === 0) {
|
|
876337
876376
|
throw new Error("Must have methods to chain");
|
|
@@ -902117,9 +902156,9 @@ var import_tmp_promise13 = __toESM(require_tmp_promise(), 1);
|
|
|
902117
902156
|
|
|
902118
902157
|
// ../generation/local-generation/local-workspace-runner/lib/getGeneratorConfig.js
|
|
902119
902158
|
init_lib7();
|
|
902120
|
-
var
|
|
902121
|
-
var
|
|
902122
|
-
var
|
|
902159
|
+
var import_api51 = __toESM(require_api2(), 1);
|
|
902160
|
+
var import_generator_exec_sdk2 = __toESM(require_generator_exec_sdk(), 1);
|
|
902161
|
+
var import_api52 = __toESM(require_api3(), 1);
|
|
902123
902162
|
var path69 = __toESM(require("path"), 1);
|
|
902124
902163
|
var DEFAULT_OUTPUT_VERSION = "0.0.1";
|
|
902125
902164
|
function getLicensePathFromConfig(generatorInvocation) {
|
|
@@ -902150,66 +902189,66 @@ function extractLicenseInfo(generatorInvocation, absolutePathToFernConfig) {
|
|
|
902150
902189
|
}
|
|
902151
902190
|
if (licenseConfig.type === "basic") {
|
|
902152
902191
|
if (licenseConfig.value === "MIT" || licenseConfig.value === "Apache-2.0") {
|
|
902153
|
-
return
|
|
902154
|
-
id: licenseConfig.value === "MIT" ?
|
|
902192
|
+
return import_generator_exec_sdk2.FernGeneratorExec.LicenseConfig.basic({
|
|
902193
|
+
id: licenseConfig.value === "MIT" ? import_generator_exec_sdk2.FernGeneratorExec.LicenseId.Mit : import_generator_exec_sdk2.FernGeneratorExec.LicenseId.Apache2
|
|
902155
902194
|
});
|
|
902156
902195
|
}
|
|
902157
902196
|
} else if (licenseConfig.type === "custom") {
|
|
902158
|
-
return
|
|
902197
|
+
return import_generator_exec_sdk2.FernGeneratorExec.LicenseConfig.custom({
|
|
902159
902198
|
filename: path69.basename(licenseConfig.value)
|
|
902160
902199
|
});
|
|
902161
902200
|
}
|
|
902162
902201
|
return void 0;
|
|
902163
902202
|
}
|
|
902164
902203
|
function getGithubPublishConfig(githubPublishInfo) {
|
|
902165
|
-
return githubPublishInfo != null ?
|
|
902204
|
+
return githubPublishInfo != null ? import_api51.GithubPublishInfo._visit(githubPublishInfo, {
|
|
902166
902205
|
npm: (value) => {
|
|
902167
902206
|
const token = (value.token ?? "").trim();
|
|
902168
902207
|
const useOidc = token === "<USE_OIDC>" || token === "OIDC";
|
|
902169
902208
|
const hasToken = token !== "";
|
|
902170
|
-
return
|
|
902209
|
+
return import_generator_exec_sdk2.FernGeneratorExec.GithubPublishInfo.npm({
|
|
902171
902210
|
registryUrl: value.registryUrl,
|
|
902172
902211
|
packageName: value.packageName,
|
|
902173
|
-
tokenEnvironmentVariable: (0,
|
|
902212
|
+
tokenEnvironmentVariable: (0, import_api52.EnvironmentVariable)(useOidc ? "<USE_OIDC>" : token.startsWith("${") && token.endsWith("}") ? token.slice(2, -1).trim() : ""),
|
|
902174
902213
|
shouldGeneratePublishWorkflow: useOidc || hasToken
|
|
902175
902214
|
});
|
|
902176
902215
|
},
|
|
902177
|
-
maven: (value) =>
|
|
902216
|
+
maven: (value) => import_generator_exec_sdk2.FernGeneratorExec.GithubPublishInfo.maven({
|
|
902178
902217
|
registryUrl: value.registryUrl,
|
|
902179
902218
|
coordinate: value.coordinate,
|
|
902180
|
-
usernameEnvironmentVariable: (0,
|
|
902181
|
-
passwordEnvironmentVariable: (0,
|
|
902219
|
+
usernameEnvironmentVariable: (0, import_api52.EnvironmentVariable)(value.credentials?.username ?? ""),
|
|
902220
|
+
passwordEnvironmentVariable: (0, import_api52.EnvironmentVariable)(value.credentials?.password ?? ""),
|
|
902182
902221
|
signature: value.signature != null ? {
|
|
902183
|
-
keyIdEnvironmentVariable: (0,
|
|
902184
|
-
passwordEnvironmentVariable: (0,
|
|
902185
|
-
secretKeyEnvironmentVariable: (0,
|
|
902222
|
+
keyIdEnvironmentVariable: (0, import_api52.EnvironmentVariable)(value.signature.keyId ?? ""),
|
|
902223
|
+
passwordEnvironmentVariable: (0, import_api52.EnvironmentVariable)(value.signature.password ?? ""),
|
|
902224
|
+
secretKeyEnvironmentVariable: (0, import_api52.EnvironmentVariable)(value.signature.secretKey ?? "")
|
|
902186
902225
|
} : void 0
|
|
902187
902226
|
}),
|
|
902188
|
-
pypi: (value) =>
|
|
902227
|
+
pypi: (value) => import_generator_exec_sdk2.FernGeneratorExec.GithubPublishInfo.pypi({
|
|
902189
902228
|
registryUrl: value.registryUrl,
|
|
902190
902229
|
packageName: value.packageName,
|
|
902191
|
-
usernameEnvironmentVariable: (0,
|
|
902192
|
-
passwordEnvironmentVariable: (0,
|
|
902230
|
+
usernameEnvironmentVariable: (0, import_api52.EnvironmentVariable)("PYPI_USERNAME"),
|
|
902231
|
+
passwordEnvironmentVariable: (0, import_api52.EnvironmentVariable)("PYPI_PASSWORD"),
|
|
902193
902232
|
pypiMetadata: value.pypiMetadata
|
|
902194
902233
|
}),
|
|
902195
|
-
rubygems: (value) =>
|
|
902234
|
+
rubygems: (value) => import_generator_exec_sdk2.FernGeneratorExec.GithubPublishInfo.rubygems({
|
|
902196
902235
|
registryUrl: value.registryUrl,
|
|
902197
902236
|
packageName: value.packageName,
|
|
902198
|
-
apiKeyEnvironmentVariable: (0,
|
|
902237
|
+
apiKeyEnvironmentVariable: (0, import_api52.EnvironmentVariable)(value.apiKey ?? "")
|
|
902199
902238
|
}),
|
|
902200
|
-
postman: (value) =>
|
|
902201
|
-
apiKeyEnvironmentVariable: (0,
|
|
902202
|
-
workspaceIdEnvironmentVariable: (0,
|
|
902239
|
+
postman: (value) => import_generator_exec_sdk2.FernGeneratorExec.GithubPublishInfo.postman({
|
|
902240
|
+
apiKeyEnvironmentVariable: (0, import_api52.EnvironmentVariable)(value.apiKey ?? ""),
|
|
902241
|
+
workspaceIdEnvironmentVariable: (0, import_api52.EnvironmentVariable)(value.workspaceId ?? "")
|
|
902203
902242
|
}),
|
|
902204
|
-
nuget: (value) =>
|
|
902243
|
+
nuget: (value) => import_generator_exec_sdk2.FernGeneratorExec.GithubPublishInfo.nuget({
|
|
902205
902244
|
registryUrl: value.registryUrl,
|
|
902206
902245
|
packageName: value.packageName,
|
|
902207
|
-
apiKeyEnvironmentVariable: (0,
|
|
902246
|
+
apiKeyEnvironmentVariable: (0, import_api52.EnvironmentVariable)(value.apiKey ?? "")
|
|
902208
902247
|
}),
|
|
902209
|
-
crates: (value) =>
|
|
902248
|
+
crates: (value) => import_generator_exec_sdk2.FernGeneratorExec.GithubPublishInfo.crates({
|
|
902210
902249
|
registryUrl: value.registryUrl,
|
|
902211
902250
|
packageName: value.packageName,
|
|
902212
|
-
tokenEnvironmentVariable: (0,
|
|
902251
|
+
tokenEnvironmentVariable: (0, import_api52.EnvironmentVariable)(value.token ?? "")
|
|
902213
902252
|
}),
|
|
902214
902253
|
_other: () => void 0
|
|
902215
902254
|
}) : void 0;
|
|
@@ -902250,7 +902289,7 @@ function getGeneratorConfig({ generatorInvocation, customConfig, workspaceName,
|
|
|
902250
902289
|
},
|
|
902251
902290
|
downloadFiles: () => {
|
|
902252
902291
|
const outputConfig = {
|
|
902253
|
-
mode:
|
|
902292
|
+
mode: import_generator_exec_sdk2.FernGeneratorExec.OutputMode.downloadFiles(),
|
|
902254
902293
|
path: outputDirectory,
|
|
902255
902294
|
snippetFilepath: snippetPath,
|
|
902256
902295
|
publishingMetadata: generatorInvocation.publishMetadata
|
|
@@ -902259,7 +902298,7 @@ function getGeneratorConfig({ generatorInvocation, customConfig, workspaceName,
|
|
|
902259
902298
|
},
|
|
902260
902299
|
github: (value) => {
|
|
902261
902300
|
const outputConfig = {
|
|
902262
|
-
mode:
|
|
902301
|
+
mode: import_generator_exec_sdk2.FernGeneratorExec.OutputMode.github({
|
|
902263
902302
|
repoUrl: `https://github.com/${value.owner}/${value.repo}`,
|
|
902264
902303
|
version: outputVersion,
|
|
902265
902304
|
publishInfo: getGithubPublishConfig(value.publishInfo),
|
|
@@ -902287,7 +902326,7 @@ function getGeneratorConfig({ generatorInvocation, customConfig, workspaceName,
|
|
|
902287
902326
|
}
|
|
902288
902327
|
});
|
|
902289
902328
|
const outputConfig = {
|
|
902290
|
-
mode:
|
|
902329
|
+
mode: import_generator_exec_sdk2.FernGeneratorExec.OutputMode.github({
|
|
902291
902330
|
repoUrl,
|
|
902292
902331
|
version: outputVersion,
|
|
902293
902332
|
publishInfo: getGithubPublishConfig(value.publishInfo)
|
|
@@ -902314,7 +902353,7 @@ function getGeneratorConfig({ generatorInvocation, customConfig, workspaceName,
|
|
|
902314
902353
|
customConfig,
|
|
902315
902354
|
workspaceName,
|
|
902316
902355
|
organization,
|
|
902317
|
-
environment:
|
|
902356
|
+
environment: import_generator_exec_sdk2.FernGeneratorExec.GeneratorEnvironment.local(),
|
|
902318
902357
|
dryRun: false,
|
|
902319
902358
|
whitelabel: whiteLabel ?? false,
|
|
902320
902359
|
writeUnitTests,
|
|
@@ -902350,7 +902389,7 @@ function newDummyPublishOutputConfig(version7, multipleOutputMode, generatorInvo
|
|
|
902350
902389
|
}
|
|
902351
902390
|
}
|
|
902352
902391
|
return {
|
|
902353
|
-
mode:
|
|
902392
|
+
mode: import_generator_exec_sdk2.FernGeneratorExec.OutputMode.github({
|
|
902354
902393
|
repoUrl,
|
|
902355
902394
|
version: version7
|
|
902356
902395
|
}),
|
|
@@ -902361,7 +902400,7 @@ function newRealPublishOutputConfig(version7, publishTarget, paths) {
|
|
|
902361
902400
|
const { outputDirectory } = paths;
|
|
902362
902401
|
const { registries, registriesV2 } = buildRegistriesFromPublishTarget(publishTarget);
|
|
902363
902402
|
return {
|
|
902364
|
-
mode:
|
|
902403
|
+
mode: import_generator_exec_sdk2.FernGeneratorExec.OutputMode.publish({
|
|
902365
902404
|
registries,
|
|
902366
902405
|
registriesV2,
|
|
902367
902406
|
publishTarget,
|
|
@@ -902440,14 +902479,14 @@ function getPublishTargetFromPublishMode(mode) {
|
|
|
902440
902479
|
if ("registryOverrides" in mode) {
|
|
902441
902480
|
const overrides = mode.registryOverrides;
|
|
902442
902481
|
if (overrides.npm != null) {
|
|
902443
|
-
return
|
|
902482
|
+
return import_generator_exec_sdk2.FernGeneratorExec.GeneratorPublishTarget.npm({
|
|
902444
902483
|
registryUrl: overrides.npm.registryUrl,
|
|
902445
902484
|
token: overrides.npm.token,
|
|
902446
902485
|
packageName: overrides.npm.packageName
|
|
902447
902486
|
});
|
|
902448
902487
|
}
|
|
902449
902488
|
if (overrides.maven != null) {
|
|
902450
|
-
return
|
|
902489
|
+
return import_generator_exec_sdk2.FernGeneratorExec.GeneratorPublishTarget.maven({
|
|
902451
902490
|
registryUrl: overrides.maven.registryUrl,
|
|
902452
902491
|
username: overrides.maven.username ?? "",
|
|
902453
902492
|
password: overrides.maven.password ?? "",
|
|
@@ -902460,41 +902499,41 @@ function getPublishTargetFromPublishMode(mode) {
|
|
|
902460
902499
|
}
|
|
902461
902500
|
function getPublishTargetFromPublishModeV2(mode) {
|
|
902462
902501
|
return mode._visit({
|
|
902463
|
-
npmOverride: (value) => value != null ?
|
|
902502
|
+
npmOverride: (value) => value != null ? import_generator_exec_sdk2.FernGeneratorExec.GeneratorPublishTarget.npm({
|
|
902464
902503
|
registryUrl: value.registryUrl,
|
|
902465
902504
|
token: value.token,
|
|
902466
902505
|
packageName: value.packageName
|
|
902467
902506
|
}) : void 0,
|
|
902468
|
-
mavenOverride: (value) => value != null ?
|
|
902507
|
+
mavenOverride: (value) => value != null ? import_generator_exec_sdk2.FernGeneratorExec.GeneratorPublishTarget.maven({
|
|
902469
902508
|
registryUrl: value.registryUrl,
|
|
902470
902509
|
username: value.username,
|
|
902471
902510
|
password: value.password,
|
|
902472
902511
|
coordinate: value.coordinate,
|
|
902473
902512
|
signature: value.signature ?? void 0
|
|
902474
902513
|
}) : void 0,
|
|
902475
|
-
pypiOverride: (value) => value != null ?
|
|
902514
|
+
pypiOverride: (value) => value != null ? import_generator_exec_sdk2.FernGeneratorExec.GeneratorPublishTarget.pypi({
|
|
902476
902515
|
registryUrl: value.registryUrl,
|
|
902477
902516
|
username: value.username,
|
|
902478
902517
|
password: value.password,
|
|
902479
902518
|
packageName: value.coordinate,
|
|
902480
902519
|
pypiMetadata: value.pypiMetadata ?? void 0
|
|
902481
902520
|
}) : void 0,
|
|
902482
|
-
rubyGemsOverride: (value) => value != null ?
|
|
902521
|
+
rubyGemsOverride: (value) => value != null ? import_generator_exec_sdk2.FernGeneratorExec.GeneratorPublishTarget.rubygems({
|
|
902483
902522
|
registryUrl: value.registryUrl,
|
|
902484
902523
|
apiKey: value.apiKey,
|
|
902485
902524
|
packageName: value.packageName
|
|
902486
902525
|
}) : void 0,
|
|
902487
|
-
nugetOverride: (value) => value != null ?
|
|
902526
|
+
nugetOverride: (value) => value != null ? import_generator_exec_sdk2.FernGeneratorExec.GeneratorPublishTarget.nuget({
|
|
902488
902527
|
registryUrl: value.registryUrl,
|
|
902489
902528
|
apiKey: value.apiKey,
|
|
902490
902529
|
packageName: value.packageName
|
|
902491
902530
|
}) : void 0,
|
|
902492
|
-
cratesOverride: (value) => value != null ?
|
|
902531
|
+
cratesOverride: (value) => value != null ? import_generator_exec_sdk2.FernGeneratorExec.GeneratorPublishTarget.crates({
|
|
902493
902532
|
registryUrl: value.registryUrl,
|
|
902494
902533
|
token: value.token,
|
|
902495
902534
|
packageName: value.packageName
|
|
902496
902535
|
}) : void 0,
|
|
902497
|
-
postman: (value) =>
|
|
902536
|
+
postman: (value) => import_generator_exec_sdk2.FernGeneratorExec.GeneratorPublishTarget.postman({
|
|
902498
902537
|
apiKey: value.apiKey,
|
|
902499
902538
|
workspaceId: value.workspaceId
|
|
902500
902539
|
}),
|
|
@@ -925330,7 +925369,7 @@ var CliContext = class {
|
|
|
925330
925369
|
if (false) {
|
|
925331
925370
|
this.logger.error("CLI_VERSION is not defined");
|
|
925332
925371
|
}
|
|
925333
|
-
return "4.63.5-
|
|
925372
|
+
return "4.63.5-35-gb7c319792ab";
|
|
925334
925373
|
}
|
|
925335
925374
|
getCliName() {
|
|
925336
925375
|
if (false) {
|
package/package.json
CHANGED