@teambit/application 0.0.364 → 0.0.367

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.
@@ -7,5 +7,5 @@ export declare class AppTypePlugin implements PluginDefinition {
7
7
  private appSlot;
8
8
  constructor(pattern: string, appType: ApplicationType<unknown>, appSlot: ApplicationSlot);
9
9
  runtimes: string[];
10
- register(object: any): void;
10
+ register(object: any): Promise<void>;
11
11
  }
@@ -2,6 +2,8 @@
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
4
 
5
+ require("core-js/modules/es.promise.js");
6
+
5
7
  Object.defineProperty(exports, "__esModule", {
6
8
  value: true
7
9
  });
@@ -35,8 +37,9 @@ class AppTypePlugin {
35
37
  (0, _defineProperty2().default)(this, "runtimes", [_cli().MainRuntime.name]);
36
38
  }
37
39
 
38
- register(object) {
39
- this.appSlot.register([this.appType.createApp(object)]);
40
+ async register(object) {
41
+ const app = await this.appType.createApp(object);
42
+ this.appSlot.register([app]);
40
43
  }
41
44
 
42
45
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["app-type.plugin.ts"],"names":["AppTypePlugin","constructor","pattern","appType","appSlot","MainRuntime","name","register","object","createApp"],"mappings":";;;;;;;;;;;;;;;;;;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAIO,MAAMA,aAAN,CAAgD;AACrDC,EAAAA,WAAW,CAAUC,OAAV,EAAmCC,OAAnC,EAA8EC,OAA9E,EAAwG;AAAA,SAA9FF,OAA8F,GAA9FA,OAA8F;AAAA,SAArEC,OAAqE,GAArEA,OAAqE;AAAA,SAA1BC,OAA0B,GAA1BA,OAA0B;AAAA,sDAExG,CAACC,mBAAYC,IAAb,CAFwG;AAAE;;AAIrHC,EAAAA,QAAQ,CAACC,MAAD,EAAc;AACpB,SAAKJ,OAAL,CAAaG,QAAb,CAAsB,CAAC,KAAKJ,OAAL,CAAaM,SAAb,CAAuBD,MAAvB,CAAD,CAAtB;AACD;;AAPoD","sourcesContent":["import { PluginDefinition } from '@teambit/aspect-loader';\nimport { MainRuntime } from '@teambit/cli';\nimport { ApplicationType } from './application-type';\nimport { ApplicationSlot } from './application.main.runtime';\n\nexport class AppTypePlugin implements PluginDefinition {\n constructor(readonly pattern: string, private appType: ApplicationType<unknown>, private appSlot: ApplicationSlot) {}\n\n runtimes = [MainRuntime.name];\n\n register(object: any) {\n this.appSlot.register([this.appType.createApp(object)]);\n }\n}\n"]}
1
+ {"version":3,"sources":["app-type.plugin.ts"],"names":["AppTypePlugin","constructor","pattern","appType","appSlot","MainRuntime","name","register","object","app","createApp"],"mappings":";;;;;;;;;;;;;;;;;;;;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAIO,MAAMA,aAAN,CAAgD;AACrDC,EAAAA,WAAW,CAAUC,OAAV,EAAmCC,OAAnC,EAA8EC,OAA9E,EAAwG;AAAA,SAA9FF,OAA8F,GAA9FA,OAA8F;AAAA,SAArEC,OAAqE,GAArEA,OAAqE;AAAA,SAA1BC,OAA0B,GAA1BA,OAA0B;AAAA,sDAExG,CAACC,mBAAYC,IAAb,CAFwG;AAAE;;AAIvG,QAARC,QAAQ,CAACC,MAAD,EAAc;AAC1B,UAAMC,GAAG,GAAG,MAAM,KAAKN,OAAL,CAAaO,SAAb,CAAuBF,MAAvB,CAAlB;AACA,SAAKJ,OAAL,CAAaG,QAAb,CAAsB,CAACE,GAAD,CAAtB;AACD;;AARoD","sourcesContent":["import { PluginDefinition } from '@teambit/aspect-loader';\nimport { MainRuntime } from '@teambit/cli';\nimport { ApplicationType } from './application-type';\nimport { ApplicationSlot } from './application.main.runtime';\n\nexport class AppTypePlugin implements PluginDefinition {\n constructor(readonly pattern: string, private appType: ApplicationType<unknown>, private appSlot: ApplicationSlot) {}\n\n runtimes = [MainRuntime.name];\n\n async register(object: any) {\n const app = await this.appType.createApp(object);\n this.appSlot.register([app]);\n }\n}\n"]}
@@ -5,5 +5,5 @@ export declare class AppPlugin implements PluginDefinition {
5
5
  constructor(appSlot: ApplicationSlot);
6
6
  pattern: string;
7
7
  runtimes: string[];
8
- register(object: any): void;
8
+ register(object: any): Promise<void>;
9
9
  }
@@ -2,6 +2,8 @@
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
4
 
5
+ require("core-js/modules/es.promise.js");
6
+
5
7
  Object.defineProperty(exports, "__esModule", {
6
8
  value: true
7
9
  });
@@ -34,7 +36,7 @@ class AppPlugin {
34
36
  (0, _defineProperty2().default)(this, "runtimes", [_cli().MainRuntime.name]);
35
37
  }
36
38
 
37
- register(object) {
39
+ async register(object) {
38
40
  return this.appSlot.register([object]);
39
41
  }
40
42
 
@@ -1 +1 @@
1
- {"version":3,"sources":["app.plugin.ts"],"names":["AppPlugin","constructor","appSlot","MainRuntime","name","register","object"],"mappings":";;;;;;;;;;;;;;;;;;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAGO,MAAMA,SAAN,CAA4C;AACjDC,EAAAA,WAAW,CAASC,OAAT,EAAmC;AAAA,SAA1BA,OAA0B,GAA1BA,OAA0B;AAAA,qDAEpC,0BAFoC;AAAA,sDAInC,CAACC,mBAAYC,IAAb,CAJmC;AAAE;;AAMhDC,EAAAA,QAAQ,CAACC,MAAD,EAAc;AACpB,WAAO,KAAKJ,OAAL,CAAaG,QAAb,CAAsB,CAACC,MAAD,CAAtB,CAAP;AACD;;AATgD","sourcesContent":["import { PluginDefinition } from '@teambit/aspect-loader';\nimport { MainRuntime } from '@teambit/cli';\nimport { ApplicationSlot } from './application.main.runtime';\n\nexport class AppPlugin implements PluginDefinition {\n constructor(private appSlot: ApplicationSlot) {}\n\n pattern = '*.app.*?(ts|tsx|js|jsx)$';\n\n runtimes = [MainRuntime.name];\n\n register(object: any) {\n return this.appSlot.register([object]);\n }\n}\n"]}
1
+ {"version":3,"sources":["app.plugin.ts"],"names":["AppPlugin","constructor","appSlot","MainRuntime","name","register","object"],"mappings":";;;;;;;;;;;;;;;;;;;;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAGO,MAAMA,SAAN,CAA4C;AACjDC,EAAAA,WAAW,CAASC,OAAT,EAAmC;AAAA,SAA1BA,OAA0B,GAA1BA,OAA0B;AAAA,qDAEpC,0BAFoC;AAAA,sDAInC,CAACC,mBAAYC,IAAb,CAJmC;AAAE;;AAMlC,QAARC,QAAQ,CAACC,MAAD,EAAc;AAC1B,WAAO,KAAKJ,OAAL,CAAaG,QAAb,CAAsB,CAACC,MAAD,CAAtB,CAAP;AACD;;AATgD","sourcesContent":["import { PluginDefinition } from '@teambit/aspect-loader';\nimport { MainRuntime } from '@teambit/cli';\nimport { ApplicationSlot } from './application.main.runtime';\n\nexport class AppPlugin implements PluginDefinition {\n constructor(private appSlot: ApplicationSlot) {}\n\n pattern = '*.app.*?(ts|tsx|js|jsx)$';\n\n runtimes = [MainRuntime.name];\n\n async register(object: any) {\n return this.appSlot.register([object]);\n }\n}\n"]}
@@ -7,5 +7,5 @@ export interface ApplicationType<T> {
7
7
  /**
8
8
  * a function that creates the app instance.
9
9
  */
10
- createApp(options: T): Application;
10
+ createApp(options: T): Promise<Application>;
11
11
  }
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/application",
3
- "version": "0.0.364",
3
+ "version": "0.0.367",
4
4
  "homepage": "https://bit.dev/teambit/harmony/application",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.harmony",
8
8
  "name": "application",
9
- "version": "0.0.364"
9
+ "version": "0.0.367"
10
10
  },
11
11
  "dependencies": {
12
12
  "chalk": "4.1.2",
@@ -16,15 +16,15 @@
16
16
  "@babel/runtime": "7.12.18",
17
17
  "core-js": "^3.0.0",
18
18
  "@teambit/harmony": "0.3.3",
19
- "@teambit/builder": "0.0.722",
20
- "@teambit/component": "0.0.722",
21
- "@teambit/isolator": "0.0.722",
22
- "@teambit/envs": "0.0.722",
19
+ "@teambit/builder": "0.0.725",
20
+ "@teambit/component": "0.0.725",
21
+ "@teambit/isolator": "0.0.725",
22
+ "@teambit/envs": "0.0.725",
23
23
  "@teambit/cli-table": "0.0.34",
24
- "@teambit/cli": "0.0.481",
25
- "@teambit/aspect-loader": "0.0.722",
26
- "@teambit/logger": "0.0.573",
27
- "@teambit/workspace": "0.0.722"
24
+ "@teambit/cli": "0.0.484",
25
+ "@teambit/aspect-loader": "0.0.725",
26
+ "@teambit/logger": "0.0.576",
27
+ "@teambit/workspace": "0.0.725"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@types/react": "^17.0.8",
@@ -36,7 +36,7 @@
36
36
  "@types/node": "12.20.4"
37
37
  },
38
38
  "peerDependencies": {
39
- "@teambit/legacy": "1.0.261",
39
+ "@teambit/legacy": "1.0.263",
40
40
  "react-dom": "^16.8.0 || ^17.0.0",
41
41
  "react": "^16.8.0 || ^17.0.0"
42
42
  },
@@ -64,7 +64,7 @@
64
64
  "react": "-"
65
65
  },
66
66
  "peerDependencies": {
67
- "@teambit/legacy": "1.0.261",
67
+ "@teambit/legacy": "1.0.263",
68
68
  "react-dom": "^16.8.0 || ^17.0.0",
69
69
  "react": "^16.8.0 || ^17.0.0"
70
70
  }
@@ -1,2 +1,2 @@
1
- export const compositions = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_application@0.0.364/dist/application.composition.js')]
2
- export const overview = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_application@0.0.364/dist/application.docs.mdx')]
1
+ export const compositions = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_application@0.0.367/dist/application.composition.js')]
2
+ export const overview = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_application@0.0.367/dist/application.docs.mdx')]