@celljs/core 3.5.7 → 3.5.9

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.
@@ -1,2 +1,2 @@
1
- export {};
1
+ export { container } from '../container/dynamic-container';
2
2
  //# sourceMappingURL=application-entry.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"application-entry.d.ts","sourceRoot":"","sources":["../../../src/common/application/application-entry.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"application-entry.d.ts","sourceRoot":"","sources":["../../../src/common/application/application-entry.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC"}
@@ -1,9 +1,19 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.container = void 0;
3
4
  const dynamic_container_1 = require("../container/dynamic-container");
4
5
  const application_protocol_1 = require("./application-protocol");
5
6
  const container_1 = require("../container");
6
- dynamic_container_1.container.then(c => {
7
+ var dynamic_container_2 = require("../container/dynamic-container");
8
+ Object.defineProperty(exports, "container", { enumerable: true, get: function () { return dynamic_container_2.container; } });
9
+ dynamic_container_1.container.then(async (c) => {
10
+ try {
11
+ await container_1.ContainerProvider.provide();
12
+ return;
13
+ }
14
+ catch (error) {
15
+ // NoOp
16
+ }
7
17
  container_1.ContainerProvider.set(c);
8
18
  const application = c.get(application_protocol_1.Application);
9
19
  application.start().catch(reason => {
@@ -1 +1 @@
1
- {"version":3,"file":"application-entry.js","sourceRoot":"","sources":["../../../src/common/application/application-entry.ts"],"names":[],"mappings":";;AAAA,sEAA2D;AAC3D,iEAAqD;AACrD,4CAAiD;AACjD,6BAAS,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE;IACf,6BAAiB,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IACzB,MAAM,WAAW,GAAG,CAAC,CAAC,GAAG,CAAc,kCAAW,CAAC,CAAC;IACpD,WAAW,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE;QAC/B,OAAO,CAAC,KAAK,CAAC,uBAAuB,WAAW,CAAC,WAAW,CAAC,IAAI,GAAG,CAAC,CAAC;QACtE,IAAI,MAAM,EAAE;YACR,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;SACzB;IACL,CAAC,CAAC,CAAC;AAEP,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"application-entry.js","sourceRoot":"","sources":["../../../src/common/application/application-entry.ts"],"names":[],"mappings":";;;AAAA,sEAA2D;AAC3D,iEAAqD;AACrD,4CAAiD;AACjD,oEAA2D;AAAlD,8GAAA,SAAS,OAAA;AAClB,6BAAS,CAAC,IAAI,CAAC,KAAK,EAAC,CAAC,EAAC,EAAE;IACrB,IAAI;QACA,MAAM,6BAAiB,CAAC,OAAO,EAAE,CAAC;QAClC,OAAO;KACV;IAAC,OAAO,KAAK,EAAE;QACZ,OAAO;KACV;IACD,6BAAiB,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IACzB,MAAM,WAAW,GAAG,CAAC,CAAC,GAAG,CAAc,kCAAW,CAAC,CAAC;IACpD,WAAW,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE;QAC/B,OAAO,CAAC,KAAK,CAAC,uBAAuB,WAAW,CAAC,WAAW,CAAC,IAAI,GAAG,CAAC,CAAC;QACtE,IAAI,MAAM,EAAE;YACR,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;SACzB;IACL,CAAC,CAAC,CAAC;AAEP,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celljs/core",
3
- "version": "3.5.7",
3
+ "version": "3.5.9",
4
4
  "description": "",
5
5
  "main": "lib/common/index.js",
6
6
  "typings": "lib/common/index.d.ts",
@@ -48,9 +48,9 @@
48
48
  "test": "cell-component test:js"
49
49
  },
50
50
  "devDependencies": {
51
- "@celljs/component": "3.5.7",
51
+ "@celljs/component": "3.5.9",
52
52
  "@types/jexl": "^2.2.0",
53
53
  "@types/traverse": "^0.6.32"
54
54
  },
55
- "gitHead": "9ca650780b716b38272e6507ffb6fe49f79084ab"
55
+ "gitHead": "7899c3394683e5f2d55ea4697b91ad4a13e2ed10"
56
56
  }
@@ -1,7 +1,14 @@
1
1
  import { container } from '../container/dynamic-container';
2
2
  import { Application } from './application-protocol';
3
3
  import { ContainerProvider } from '../container';
4
- container.then(c => {
4
+ export { container } from '../container/dynamic-container';
5
+ container.then(async c => {
6
+ try {
7
+ await ContainerProvider.provide();
8
+ return;
9
+ } catch (error) {
10
+ // NoOp
11
+ }
5
12
  ContainerProvider.set(c);
6
13
  const application = c.get<Application>(Application);
7
14
  application.start().catch(reason => {