@teambit/deprecation 0.0.598 → 0.0.599

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.
@@ -10,7 +10,7 @@ export declare class DeprecationFragment implements ShowFragment {
10
10
  }>;
11
11
  json(component: Component): Promise<{
12
12
  title: string;
13
- json: Promise<import("./deprecation.main.runtime").DeprecationInfo>;
13
+ json: import("./deprecation.main.runtime").DeprecationInfo;
14
14
  }>;
15
15
  weight: number;
16
16
  }
@@ -39,7 +39,7 @@ class DeprecationFragment {
39
39
  async json(component) {
40
40
  return {
41
41
  title: this.title,
42
- json: this.deprecation.getDeprecationInfo(component)
42
+ json: await this.deprecation.getDeprecationInfo(component)
43
43
  };
44
44
  }
45
45
 
@@ -1 +1 @@
1
- {"version":3,"sources":["deprecation.fragment.ts"],"names":["DeprecationFragment","constructor","deprecation","renderRow","component","deprecationInfo","getDeprecationInfo","isDeprecate","toString","newId","title","content","json"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAGO,MAAMA,mBAAN,CAAkD;AACvDC,EAAAA,WAAW,CAASC,WAAT,EAAuC;AAAA,SAA9BA,WAA8B,GAA9BA,WAA8B;AAAA,mDAE1C,YAF0C;AAAA,oDAqBzC,CArByC;AAAE;;AAIrC,QAATC,SAAS,CAACC,SAAD,EAAuB;AACpC,UAAMC,eAAe,GAAG,MAAM,KAAKH,WAAL,CAAiBI,kBAAjB,CAAoCF,SAApC,CAA9B;AACA,UAAMG,WAAW,GAAGF,eAAe,CAACE,WAAhB,CAA4BC,QAA5B,EAApB;AACA,UAAMC,KAAK,GAAGJ,eAAe,CAACI,KAAhB,GAAyB,aAAYJ,eAAe,CAACI,KAAM,GAA3D,GAAgE,EAA9E;AACA,WAAO;AACLC,MAAAA,KAAK,EAAE,KAAKA,KADP;AAELC,MAAAA,OAAO,EAAEJ,WAAW,GAAGE;AAFlB,KAAP;AAID;;AAES,QAAJG,IAAI,CAACR,SAAD,EAAuB;AAC/B,WAAO;AACLM,MAAAA,KAAK,EAAE,KAAKA,KADP;AAELE,MAAAA,IAAI,EAAE,KAAKV,WAAL,CAAiBI,kBAAjB,CAAoCF,SAApC;AAFD,KAAP;AAID;;AApBsD","sourcesContent":["import { Component, ShowFragment } from '@teambit/component';\nimport { DeprecationMain } from './deprecation.main.runtime';\n\nexport class DeprecationFragment implements ShowFragment {\n constructor(private deprecation: DeprecationMain) {}\n\n title = 'deprecated';\n\n async renderRow(component: Component) {\n const deprecationInfo = await this.deprecation.getDeprecationInfo(component);\n const isDeprecate = deprecationInfo.isDeprecate.toString();\n const newId = deprecationInfo.newId ? ` (new-id: ${deprecationInfo.newId})` : '';\n return {\n title: this.title,\n content: isDeprecate + newId,\n };\n }\n\n async json(component: Component) {\n return {\n title: this.title,\n json: this.deprecation.getDeprecationInfo(component),\n };\n }\n\n weight = 3;\n}\n"]}
1
+ {"version":3,"sources":["deprecation.fragment.ts"],"names":["DeprecationFragment","constructor","deprecation","renderRow","component","deprecationInfo","getDeprecationInfo","isDeprecate","toString","newId","title","content","json"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAGO,MAAMA,mBAAN,CAAkD;AACvDC,EAAAA,WAAW,CAASC,WAAT,EAAuC;AAAA,SAA9BA,WAA8B,GAA9BA,WAA8B;AAAA,mDAE1C,YAF0C;AAAA,oDAqBzC,CArByC;AAAE;;AAIrC,QAATC,SAAS,CAACC,SAAD,EAAuB;AACpC,UAAMC,eAAe,GAAG,MAAM,KAAKH,WAAL,CAAiBI,kBAAjB,CAAoCF,SAApC,CAA9B;AACA,UAAMG,WAAW,GAAGF,eAAe,CAACE,WAAhB,CAA4BC,QAA5B,EAApB;AACA,UAAMC,KAAK,GAAGJ,eAAe,CAACI,KAAhB,GAAyB,aAAYJ,eAAe,CAACI,KAAM,GAA3D,GAAgE,EAA9E;AACA,WAAO;AACLC,MAAAA,KAAK,EAAE,KAAKA,KADP;AAELC,MAAAA,OAAO,EAAEJ,WAAW,GAAGE;AAFlB,KAAP;AAID;;AAES,QAAJG,IAAI,CAACR,SAAD,EAAuB;AAC/B,WAAO;AACLM,MAAAA,KAAK,EAAE,KAAKA,KADP;AAELE,MAAAA,IAAI,EAAE,MAAM,KAAKV,WAAL,CAAiBI,kBAAjB,CAAoCF,SAApC;AAFP,KAAP;AAID;;AApBsD","sourcesContent":["import { Component, ShowFragment } from '@teambit/component';\nimport { DeprecationMain } from './deprecation.main.runtime';\n\nexport class DeprecationFragment implements ShowFragment {\n constructor(private deprecation: DeprecationMain) {}\n\n title = 'deprecated';\n\n async renderRow(component: Component) {\n const deprecationInfo = await this.deprecation.getDeprecationInfo(component);\n const isDeprecate = deprecationInfo.isDeprecate.toString();\n const newId = deprecationInfo.newId ? ` (new-id: ${deprecationInfo.newId})` : '';\n return {\n title: this.title,\n content: isDeprecate + newId,\n };\n }\n\n async json(component: Component) {\n return {\n title: this.title,\n json: await this.deprecation.getDeprecationInfo(component),\n };\n }\n\n weight = 3;\n}\n"]}
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/deprecation",
3
- "version": "0.0.598",
3
+ "version": "0.0.599",
4
4
  "homepage": "https://bit.dev/teambit/component/deprecation",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.component",
8
8
  "name": "deprecation",
9
- "version": "0.0.598"
9
+ "version": "0.0.599"
10
10
  },
11
11
  "dependencies": {
12
12
  "chalk": "2.4.2",
@@ -14,12 +14,12 @@
14
14
  "graphql-tag": "2.12.1",
15
15
  "@babel/runtime": "7.12.18",
16
16
  "core-js": "^3.0.0",
17
- "@teambit/cli": "0.0.410",
18
- "@teambit/workspace": "0.0.598",
19
- "@teambit/component": "0.0.598",
20
- "@teambit/graphql": "0.0.598",
17
+ "@teambit/cli": "0.0.411",
18
+ "@teambit/workspace": "0.0.599",
19
+ "@teambit/component": "0.0.599",
20
+ "@teambit/graphql": "0.0.599",
21
21
  "@teambit/component-id": "0.0.398",
22
- "@teambit/scope": "0.0.598"
22
+ "@teambit/scope": "0.0.599"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@types/mocha": "5.2.7",
@@ -30,7 +30,7 @@
30
30
  "@types/node": "12.20.4"
31
31
  },
32
32
  "peerDependencies": {
33
- "@teambit/legacy": "1.0.197",
33
+ "@teambit/legacy": "1.0.198",
34
34
  "react-dom": "^16.8.0 || ^17.0.0",
35
35
  "react": "^16.8.0 || ^17.0.0"
36
36
  },
@@ -58,7 +58,7 @@
58
58
  "react": "-"
59
59
  },
60
60
  "peerDependencies": {
61
- "@teambit/legacy": "1.0.197",
61
+ "@teambit/legacy": "1.0.198",
62
62
  "react-dom": "^16.8.0 || ^17.0.0",
63
63
  "react": "^16.8.0 || ^17.0.0"
64
64
  }