@teambit/diagnostic 1.0.322 → 1.0.323
Sign up to get free protection for your applications and to get access to all the features.
- package/artifacts/__bit_junit.xml +1 -1
- package/artifacts/schema.json +5 -5
- package/dist/diagnostic.main.runtime.d.ts +1 -1
- package/dist/diagnostic.main.runtime.js +4 -4
- package/dist/diagnostic.main.runtime.js.map +1 -1
- package/package.json +6 -5
- /package/dist/{preview-1719890668338.js → preview-1719976973592.js} +0 -0
@@ -1,4 +1,4 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
2
|
<testsuites tests="0" failures="0" errors="0" skipped="0">
|
3
|
-
<testsuite name="teambit.harmony/diagnostic@1.0.
|
3
|
+
<testsuite name="teambit.harmony/diagnostic@1.0.323" tests="0" failures="0" errors="0" skipped="0"/>
|
4
4
|
</testsuites>
|
package/artifacts/schema.json
CHANGED
@@ -216,7 +216,7 @@
|
|
216
216
|
"line": 40,
|
217
217
|
"character": 3
|
218
218
|
},
|
219
|
-
"signature": "(method) DiagnosticMain.getBitVersion(): {\n version:
|
219
|
+
"signature": "(method) DiagnosticMain.getBitVersion(): {\n version: string;\n}",
|
220
220
|
"name": "getBitVersion",
|
221
221
|
"params": [],
|
222
222
|
"returnType": {
|
@@ -226,7 +226,7 @@
|
|
226
226
|
"line": 40,
|
227
227
|
"character": 3
|
228
228
|
},
|
229
|
-
"type": "{\n version:
|
229
|
+
"type": "{\n version: string;\n}"
|
230
230
|
},
|
231
231
|
"modifiers": [
|
232
232
|
"static"
|
@@ -656,7 +656,7 @@
|
|
656
656
|
"line": 40,
|
657
657
|
"character": 3
|
658
658
|
},
|
659
|
-
"signature": "(method) DiagnosticMain.getBitVersion(): {\n version:
|
659
|
+
"signature": "(method) DiagnosticMain.getBitVersion(): {\n version: string;\n}",
|
660
660
|
"name": "getBitVersion",
|
661
661
|
"params": [],
|
662
662
|
"returnType": {
|
@@ -666,7 +666,7 @@
|
|
666
666
|
"line": 40,
|
667
667
|
"character": 3
|
668
668
|
},
|
669
|
-
"type": "{\n version:
|
669
|
+
"type": "{\n version: string;\n}"
|
670
670
|
},
|
671
671
|
"modifiers": [
|
672
672
|
"static"
|
@@ -854,7 +854,7 @@
|
|
854
854
|
"componentId": {
|
855
855
|
"scope": "teambit.harmony",
|
856
856
|
"name": "diagnostic",
|
857
|
-
"version": "1.0.
|
857
|
+
"version": "1.0.323"
|
858
858
|
},
|
859
859
|
"taggedModuleExports": []
|
860
860
|
}
|
@@ -15,7 +15,7 @@ export declare class DiagnosticMain {
|
|
15
15
|
register(...diagnostic: Diagnostic[]): void;
|
16
16
|
getDiagnosticData(): {};
|
17
17
|
static getBitVersion(): {
|
18
|
-
version:
|
18
|
+
version: string;
|
19
19
|
};
|
20
20
|
static provider([express, graphql]: [ExpressMain, GraphqlMain], config: any, [diagnosticSlot]: [DiagnosticSlot]): Promise<DiagnosticMain>;
|
21
21
|
}
|
@@ -4,9 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
exports.DiagnosticMain = void 0;
|
7
|
-
function
|
8
|
-
const data = require("@teambit/
|
9
|
-
|
7
|
+
function _bit() {
|
8
|
+
const data = require("@teambit/bit.get-bit-version");
|
9
|
+
_bit = function () {
|
10
10
|
return data;
|
11
11
|
};
|
12
12
|
return data;
|
@@ -88,7 +88,7 @@ class DiagnosticMain {
|
|
88
88
|
}, {});
|
89
89
|
}
|
90
90
|
static getBitVersion() {
|
91
|
-
const version = (0,
|
91
|
+
const version = (0, _bit().getBitVersion)();
|
92
92
|
return {
|
93
93
|
version
|
94
94
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["
|
1
|
+
{"version":3,"names":["_bit","data","require","_harmony","_cli","_express","_graphql","_diagnostic","_diagnostic2","_diagnostic3","_defineProperty","e","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","DiagnosticMain","constructor","diagnosticSlot","register","diagnostic","getDiagnosticData","slots","toArray","reduce","prev","cSlot","aspectId","reports","forEach","diag","diagnosticFn","push","getBitVersion","version","provider","express","graphql","config","diagnosticMain","DiagnosticRoute","DiagnosticGraphql","exports","Slot","withType","ExpressAspect","GraphqlAspect","MainRuntime","DiagnosticAspect","addRuntime"],"sources":["diagnostic.main.runtime.ts"],"sourcesContent":["import { getBitVersion } from '@teambit/bit.get-bit-version';\n\nimport { Slot, SlotRegistry } from '@teambit/harmony';\nimport { MainRuntime } from '@teambit/cli';\nimport { ExpressAspect, ExpressMain } from '@teambit/express';\nimport { GraphqlAspect, GraphqlMain } from '@teambit/graphql';\nimport { DiagnosticAspect } from './diagnostic.aspect';\nimport { DiagnosticRoute } from './diagnostic.route';\nimport { DiagnosticGraphql } from './diagnostic.graphql';\nimport { Diagnostic } from './diagnostic';\n\nexport type DiagnosticSlot = SlotRegistry<Diagnostic[]>;\n\nexport class DiagnosticMain {\n constructor(\n /** the diagnostic entity slot */\n private diagnosticSlot: DiagnosticSlot\n ) {}\n static slots = [Slot.withType<Diagnostic[]>()];\n static dependencies = [ExpressAspect, GraphqlAspect];\n static runtime = MainRuntime;\n\n register(...diagnostic: Diagnostic[]) {\n this.diagnosticSlot.register(diagnostic);\n }\n\n getDiagnosticData() {\n const slots = this.diagnosticSlot.toArray();\n return slots.reduce((prev, cSlot) => {\n const [aspectId, diagnostic] = cSlot;\n prev[aspectId] = { reports: [] };\n diagnostic.forEach((diag) => {\n const { diagnosticFn } = diag;\n prev[aspectId].reports.push(diagnosticFn());\n });\n return prev;\n }, {});\n }\n\n static getBitVersion() {\n const version = getBitVersion();\n return { version };\n }\n\n static async provider(\n [express, graphql]: [ExpressMain, GraphqlMain],\n config: any,\n [diagnosticSlot]: [DiagnosticSlot]\n ) {\n const diagnosticMain = new DiagnosticMain(diagnosticSlot);\n diagnosticMain.register({ diagnosticFn: DiagnosticMain.getBitVersion });\n express.register([new DiagnosticRoute(diagnosticMain)]);\n graphql.register(new DiagnosticGraphql(diagnosticMain));\n return diagn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Y,CAAC,CAAC,CAAC;MAC7C,CAAC,CAAC;MACF,OAAON,IAAI;IACb,CAAC,EAAE,CAAC,CAAC,CAAC;EACR;EAEA,OAAOQ,aAAaA,CAAA,EAAG;IACrB,MAAMC,OAAO,GAAG,IAAAD,oBAAa,EAAC,CAAC;IAC/B,OAAO;MAAEC;IAAQ,CAAC;EACpB;EAEA,aAAaC,QAAQA,CACnB,CAACC,OAAO,EAAEC,OAAO,CAA6B,EAC9CC,MAAW,EACX,CAACpB,cAAc,CAAmB,EAClC;IACA,MAAMqB,cAAc,GAAG,IAAIvB,cAAc,CAACE,cAAc,CAAC;IACzDqB,cAAc,CAACpB,QAAQ,CAAC;MAAEY,YAAY,EAAEf,cAAc,CAACiB;IAAc,CAAC,CAAC;IACvEG,OAAO,CAACjB,QAAQ,CAAC,CAAC,KAAIqB,8BAAe,EAACD,cAAc,CAAC,CAAC,CAAC;IACvDF,OAAO,CAAClB,QAAQ,CAAC,KAAIsB,gCAAiB,EAACF,cAAc,CAAC,CAAC;IACvD,OAAOA,cAAc;EACvB;AACF;AAACG,OAAA,CAAA1B,cAAA,GAAAA,cAAA;AAAAnB,eAAA,CA1CYmB,cAAc,WAKV,CAAC2B,eAAI,CAACC,QAAQ,CAAe,CAAC,CAAC;AAAA/C,eAAA,CALnCmB,cAAc,kBAMH,CAAC6B,wBAAa,EAAEC,wBAAa,CAAC;AAAAjD,eAAA,CANzCmB,cAAc,aAOR+B,kBAAW;AAqC9BC,8BAAgB,CAACC,UAAU,CAACjC,cAAc,CAAC","ignoreList":[]}
|
package/package.json
CHANGED
@@ -1,19 +1,20 @@
|
|
1
1
|
{
|
2
2
|
"name": "@teambit/diagnostic",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.323",
|
4
4
|
"homepage": "https://bit.cloud/teambit/harmony/diagnostic",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"componentId": {
|
7
7
|
"scope": "teambit.harmony",
|
8
8
|
"name": "diagnostic",
|
9
|
-
"version": "1.0.
|
9
|
+
"version": "1.0.323"
|
10
10
|
},
|
11
11
|
"dependencies": {
|
12
12
|
"graphql-tag": "2.12.1",
|
13
13
|
"@teambit/harmony": "0.4.6",
|
14
|
-
"@teambit/graphql": "1.0.
|
15
|
-
"@teambit/
|
16
|
-
"@teambit/
|
14
|
+
"@teambit/graphql": "1.0.323",
|
15
|
+
"@teambit/bit.get-bit-version": "0.0.1",
|
16
|
+
"@teambit/cli": "0.0.900",
|
17
|
+
"@teambit/express": "0.0.999"
|
17
18
|
},
|
18
19
|
"devDependencies": {
|
19
20
|
"@types/mocha": "9.1.0",
|
File without changes
|