@awsless/awsless 0.0.23 → 0.0.24
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/bin.cjs +14 -3
- package/dist/bin.js +14 -3
- package/dist/index.d.ts +2 -0
- package/package.json +1 -1
package/dist/bin.cjs
CHANGED
|
@@ -453,10 +453,15 @@ var Stack = class {
|
|
|
453
453
|
this.name = name;
|
|
454
454
|
this.region = region;
|
|
455
455
|
}
|
|
456
|
+
app;
|
|
456
457
|
exports = /* @__PURE__ */ new Map();
|
|
457
458
|
resources = /* @__PURE__ */ new Set();
|
|
458
459
|
tags = /* @__PURE__ */ new Map();
|
|
459
460
|
assets = /* @__PURE__ */ new Set();
|
|
461
|
+
setApp(app) {
|
|
462
|
+
this.app = app;
|
|
463
|
+
return this;
|
|
464
|
+
}
|
|
460
465
|
add(...resources) {
|
|
461
466
|
for (const item of resources) {
|
|
462
467
|
if (item instanceof Asset) {
|
|
@@ -530,7 +535,9 @@ var Stack = class {
|
|
|
530
535
|
for (const [name, value] of this.exports.entries()) {
|
|
531
536
|
Object.assign(outputs, {
|
|
532
537
|
[formatLogicalId(name)]: {
|
|
533
|
-
Export: {
|
|
538
|
+
Export: {
|
|
539
|
+
Name: `${this.app?.name || "default"}-${name}`
|
|
540
|
+
},
|
|
534
541
|
Value: value
|
|
535
542
|
}
|
|
536
543
|
});
|
|
@@ -3831,7 +3838,10 @@ var App = class {
|
|
|
3831
3838
|
}
|
|
3832
3839
|
list = /* @__PURE__ */ new Map();
|
|
3833
3840
|
add(...stacks) {
|
|
3834
|
-
stacks.forEach((stack) =>
|
|
3841
|
+
stacks.forEach((stack) => {
|
|
3842
|
+
this.list.set(stack.name, stack);
|
|
3843
|
+
stack.setApp(this);
|
|
3844
|
+
});
|
|
3835
3845
|
return this;
|
|
3836
3846
|
}
|
|
3837
3847
|
find(resourceType) {
|
|
@@ -4619,6 +4629,7 @@ var Renderer = class {
|
|
|
4619
4629
|
}
|
|
4620
4630
|
}
|
|
4621
4631
|
}
|
|
4632
|
+
await this.setCursor(0, size - start);
|
|
4622
4633
|
this.screen = screen;
|
|
4623
4634
|
this.flushing = false;
|
|
4624
4635
|
}
|
|
@@ -4914,7 +4925,7 @@ var StackClient = class {
|
|
|
4914
4925
|
maxWaitTime = 60 * 30;
|
|
4915
4926
|
// 30 minutes
|
|
4916
4927
|
maxDelay = 30;
|
|
4917
|
-
//
|
|
4928
|
+
// 10 seconds
|
|
4918
4929
|
assetBucketName;
|
|
4919
4930
|
getClient(region) {
|
|
4920
4931
|
return new import_client_cloudformation.CloudFormationClient({
|
package/dist/bin.js
CHANGED
|
@@ -433,10 +433,15 @@ var Stack = class {
|
|
|
433
433
|
this.name = name;
|
|
434
434
|
this.region = region;
|
|
435
435
|
}
|
|
436
|
+
app;
|
|
436
437
|
exports = /* @__PURE__ */ new Map();
|
|
437
438
|
resources = /* @__PURE__ */ new Set();
|
|
438
439
|
tags = /* @__PURE__ */ new Map();
|
|
439
440
|
assets = /* @__PURE__ */ new Set();
|
|
441
|
+
setApp(app) {
|
|
442
|
+
this.app = app;
|
|
443
|
+
return this;
|
|
444
|
+
}
|
|
440
445
|
add(...resources) {
|
|
441
446
|
for (const item of resources) {
|
|
442
447
|
if (item instanceof Asset) {
|
|
@@ -510,7 +515,9 @@ var Stack = class {
|
|
|
510
515
|
for (const [name, value] of this.exports.entries()) {
|
|
511
516
|
Object.assign(outputs, {
|
|
512
517
|
[formatLogicalId(name)]: {
|
|
513
|
-
Export: {
|
|
518
|
+
Export: {
|
|
519
|
+
Name: `${this.app?.name || "default"}-${name}`
|
|
520
|
+
},
|
|
514
521
|
Value: value
|
|
515
522
|
}
|
|
516
523
|
});
|
|
@@ -3808,7 +3815,10 @@ var App = class {
|
|
|
3808
3815
|
}
|
|
3809
3816
|
list = /* @__PURE__ */ new Map();
|
|
3810
3817
|
add(...stacks) {
|
|
3811
|
-
stacks.forEach((stack) =>
|
|
3818
|
+
stacks.forEach((stack) => {
|
|
3819
|
+
this.list.set(stack.name, stack);
|
|
3820
|
+
stack.setApp(this);
|
|
3821
|
+
});
|
|
3812
3822
|
return this;
|
|
3813
3823
|
}
|
|
3814
3824
|
find(resourceType) {
|
|
@@ -4596,6 +4606,7 @@ var Renderer = class {
|
|
|
4596
4606
|
}
|
|
4597
4607
|
}
|
|
4598
4608
|
}
|
|
4609
|
+
await this.setCursor(0, size - start);
|
|
4599
4610
|
this.screen = screen;
|
|
4600
4611
|
this.flushing = false;
|
|
4601
4612
|
}
|
|
@@ -4891,7 +4902,7 @@ var StackClient = class {
|
|
|
4891
4902
|
maxWaitTime = 60 * 30;
|
|
4892
4903
|
// 30 minutes
|
|
4893
4904
|
maxDelay = 30;
|
|
4894
|
-
//
|
|
4905
|
+
// 10 seconds
|
|
4895
4906
|
assetBucketName;
|
|
4896
4907
|
getClient(region) {
|
|
4897
4908
|
return new CloudFormationClient({
|
package/dist/index.d.ts
CHANGED
|
@@ -2320,11 +2320,13 @@ type ConstructorOf<C> = {
|
|
|
2320
2320
|
declare class Stack {
|
|
2321
2321
|
readonly name: string;
|
|
2322
2322
|
readonly region: Region;
|
|
2323
|
+
private app?;
|
|
2323
2324
|
readonly exports: Map<string, string>;
|
|
2324
2325
|
readonly resources: Set<Resource>;
|
|
2325
2326
|
readonly tags: Map<string, string>;
|
|
2326
2327
|
readonly assets: Set<Asset>;
|
|
2327
2328
|
constructor(name: string, region: Region);
|
|
2329
|
+
setApp(app: App): this;
|
|
2328
2330
|
add(...resources: (Resource | Asset | Group)[]): this;
|
|
2329
2331
|
export(name: string, value: string): this;
|
|
2330
2332
|
get(name: string): string;
|