@chromahq/core 0.1.0 → 0.1.1
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/index.cjs.js +13 -4
- package/dist/index.d.ts +8 -2
- package/dist/index.es.js +13 -4
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1569,9 +1569,15 @@ class BootstrapLogger {
|
|
|
1569
1569
|
console.log("=".repeat(50));
|
|
1570
1570
|
}
|
|
1571
1571
|
}
|
|
1572
|
-
async function create(
|
|
1572
|
+
async function create({
|
|
1573
|
+
keepPortAlive = false,
|
|
1574
|
+
portName
|
|
1575
|
+
} = {}) {
|
|
1573
1576
|
const bootstrap2 = new ApplicationBootstrap();
|
|
1574
|
-
await bootstrap2.create(
|
|
1577
|
+
await bootstrap2.create({
|
|
1578
|
+
keepPortAlive,
|
|
1579
|
+
portName
|
|
1580
|
+
});
|
|
1575
1581
|
}
|
|
1576
1582
|
function bootstrap() {
|
|
1577
1583
|
return new BootstrapBuilder();
|
|
@@ -1597,8 +1603,11 @@ class BootstrapBuilder {
|
|
|
1597
1603
|
/**
|
|
1598
1604
|
* Create and start the application
|
|
1599
1605
|
*/
|
|
1600
|
-
async create(
|
|
1601
|
-
|
|
1606
|
+
async create({
|
|
1607
|
+
keepPortAlive = false,
|
|
1608
|
+
portName
|
|
1609
|
+
} = {}) {
|
|
1610
|
+
await this.app.create({ keepPortAlive, portName });
|
|
1602
1611
|
}
|
|
1603
1612
|
}
|
|
1604
1613
|
|
package/dist/index.d.ts
CHANGED
|
@@ -10,7 +10,10 @@ declare const bind: <T>(id: symbol | (new (...a: any[]) => T), cls: new (...a: a
|
|
|
10
10
|
declare const resolve: <T>(id: symbol | (new (...a: any[]) => T)) => T;
|
|
11
11
|
declare function isInjectable(target: any): boolean;
|
|
12
12
|
|
|
13
|
-
declare function create(
|
|
13
|
+
declare function create({ keepPortAlive, portName, }?: {
|
|
14
|
+
keepPortAlive?: boolean;
|
|
15
|
+
portName?: string;
|
|
16
|
+
}): Promise<void>;
|
|
14
17
|
declare function bootstrap(): BootstrapBuilder;
|
|
15
18
|
declare class BootstrapBuilder {
|
|
16
19
|
private readonly app;
|
|
@@ -25,7 +28,10 @@ declare class BootstrapBuilder {
|
|
|
25
28
|
/**
|
|
26
29
|
* Create and start the application
|
|
27
30
|
*/
|
|
28
|
-
create(
|
|
31
|
+
create({ keepPortAlive, portName, }?: {
|
|
32
|
+
keepPortAlive?: boolean;
|
|
33
|
+
portName?: string;
|
|
34
|
+
}): Promise<void>;
|
|
29
35
|
}
|
|
30
36
|
|
|
31
37
|
declare abstract class IMessage {
|
package/dist/index.es.js
CHANGED
|
@@ -1567,9 +1567,15 @@ class BootstrapLogger {
|
|
|
1567
1567
|
console.log("=".repeat(50));
|
|
1568
1568
|
}
|
|
1569
1569
|
}
|
|
1570
|
-
async function create(
|
|
1570
|
+
async function create({
|
|
1571
|
+
keepPortAlive = false,
|
|
1572
|
+
portName
|
|
1573
|
+
} = {}) {
|
|
1571
1574
|
const bootstrap2 = new ApplicationBootstrap();
|
|
1572
|
-
await bootstrap2.create(
|
|
1575
|
+
await bootstrap2.create({
|
|
1576
|
+
keepPortAlive,
|
|
1577
|
+
portName
|
|
1578
|
+
});
|
|
1573
1579
|
}
|
|
1574
1580
|
function bootstrap() {
|
|
1575
1581
|
return new BootstrapBuilder();
|
|
@@ -1595,8 +1601,11 @@ class BootstrapBuilder {
|
|
|
1595
1601
|
/**
|
|
1596
1602
|
* Create and start the application
|
|
1597
1603
|
*/
|
|
1598
|
-
async create(
|
|
1599
|
-
|
|
1604
|
+
async create({
|
|
1605
|
+
keepPortAlive = false,
|
|
1606
|
+
portName
|
|
1607
|
+
} = {}) {
|
|
1608
|
+
await this.app.create({ keepPortAlive, portName });
|
|
1600
1609
|
}
|
|
1601
1610
|
}
|
|
1602
1611
|
|