@teambit/harmony.modules.requireable-component 0.0.497 → 0.0.498

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,6 +1,6 @@
1
1
  import { Component } from '@teambit/component';
2
2
  import { Capsule } from '@teambit/isolator';
3
- declare type RequireFunc = () => any;
3
+ type RequireFunc = () => any;
4
4
  export declare class RequireableComponent {
5
5
  readonly component: Component;
6
6
  readonly requireFunc: RequireFunc;
@@ -1 +1 @@
1
- {"version":3,"file":"requireable-component.js","sourceRoot":"","sources":["../requireable-component.ts"],"names":[],"mappings":";;;;;;;;;;;;AAKA,MAAa,oBAAoB;IAC/B,YAAqB,SAAoB,EAAW,WAAwB,EAAW,OAAiB;QAAnF,cAAS,GAAT,SAAS,CAAW;QAAW,gBAAW,GAAX,WAAW,CAAa;QAAW,YAAO,GAAP,OAAO,CAAU;IAAG,CAAC;IAEtG,OAAO;;YACX,qEAAqE;YACrE,OAAO,IAAI,CAAC,WAAW,EAAE,CAAC;QAC5B,CAAC;KAAA;IAED,MAAM,CAAC,WAAW,CAAC,OAAgB;QACjC,qEAAqE;QACrE,MAAM,WAAW,GAAG,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QAClD,OAAO,IAAI,oBAAoB,CAAC,OAAO,CAAC,SAAS,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;IAC3E,CAAC;CACF;AAbD,oDAaC"}
1
+ {"version":3,"file":"requireable-component.js","sourceRoot":"","sources":["../requireable-component.ts"],"names":[],"mappings":";;;;;;;;;;;;AAKA,MAAa,oBAAoB;IAC/B,YACW,SAAoB,EACpB,WAAwB,EACxB,OAAiB;QAFjB,cAAS,GAAT,SAAS,CAAW;QACpB,gBAAW,GAAX,WAAW,CAAa;QACxB,YAAO,GAAP,OAAO,CAAU;IACzB,CAAC;IAEE,OAAO;;YACX,qEAAqE;YACrE,OAAO,IAAI,CAAC,WAAW,EAAE,CAAC;QAC5B,CAAC;KAAA;IAED,MAAM,CAAC,WAAW,CAAC,OAAgB;QACjC,qEAAqE;QACrE,MAAM,WAAW,GAAG,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QAClD,OAAO,IAAI,oBAAoB,CAAC,OAAO,CAAC,SAAS,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;IAC3E,CAAC;CACF;AAjBD,oDAiBC"}
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/harmony.modules.requireable-component",
3
- "version": "0.0.497",
3
+ "version": "0.0.498",
4
4
  "homepage": "https://bit.cloud/teambit/harmony/modules/requireable-component",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.harmony",
8
8
  "name": "modules/requireable-component",
9
- "version": "0.0.497"
9
+ "version": "0.0.498"
10
10
  },
11
11
  "dependencies": {},
12
12
  "devDependencies": {
@@ -4,7 +4,11 @@ import { Capsule } from '@teambit/isolator';
4
4
  type RequireFunc = () => any;
5
5
 
6
6
  export class RequireableComponent {
7
- constructor(readonly component: Component, readonly requireFunc: RequireFunc, readonly capsule?: Capsule) {}
7
+ constructor(
8
+ readonly component: Component,
9
+ readonly requireFunc: RequireFunc,
10
+ readonly capsule?: Capsule
11
+ ) {}
8
12
 
9
13
  async require() {
10
14
  // eslint-disable-next-line global-require, import/no-dynamic-require
@@ -1,32 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "lib": [
4
- "es2019",
5
- "DOM",
6
- "ES6",
7
- "DOM.Iterable"
8
- ],
9
- "target": "es2015",
10
- "module": "CommonJS",
11
- "jsx": "react",
12
- "allowJs": true,
13
- "composite": true,
14
- "declaration": true,
15
- "sourceMap": true,
16
- "skipLibCheck": true,
17
- "experimentalDecorators": true,
18
- "outDir": "dist",
19
- "moduleResolution": "node",
20
- "esModuleInterop": true,
21
- "rootDir": ".",
22
- "resolveJsonModule": true
23
- },
24
- "exclude": [
25
- "dist",
26
- "package.json"
27
- ],
28
- "include": [
29
- "**/*",
30
- "**/*.json"
31
- ]
32
- }
package/tsconfig.json DELETED
@@ -1,32 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "lib": [
4
- "es2019",
5
- "DOM",
6
- "ES6",
7
- "DOM.Iterable"
8
- ],
9
- "target": "es2015",
10
- "module": "CommonJS",
11
- "jsx": "react",
12
- "allowJs": true,
13
- "composite": true,
14
- "declaration": true,
15
- "sourceMap": true,
16
- "skipLibCheck": true,
17
- "experimentalDecorators": true,
18
- "outDir": "dist",
19
- "moduleResolution": "node",
20
- "esModuleInterop": true,
21
- "rootDir": ".",
22
- "resolveJsonModule": true
23
- },
24
- "exclude": [
25
- "dist",
26
- "package.json"
27
- ],
28
- "include": [
29
- "**/*",
30
- "**/*.json"
31
- ]
32
- }