@teambit/diagnostic 0.0.174 → 0.0.175
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.
- package/dist/diagnostic.aspect.js +0 -5
- package/dist/diagnostic.aspect.js.map +1 -1
- package/dist/diagnostic.graphql.js +0 -10
- package/dist/diagnostic.graphql.js.map +1 -1
- package/dist/diagnostic.main.runtime.js +1 -40
- package/dist/diagnostic.main.runtime.js.map +1 -1
- package/dist/diagnostic.route.js +0 -11
- package/dist/diagnostic.route.js.map +1 -1
- package/dist/index.js +0 -5
- package/dist/index.js.map +1 -1
- package/package-tar/teambit-diagnostic-0.0.175.tgz +0 -0
- package/package.json +3 -3
- /package/{preview-1666409808293.js → preview-1666496165706.js} +0 -0
- package/package-tar/teambit-diagnostic-0.0.174.tgz +0 -0
|
@@ -4,21 +4,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.DiagnosticAspect = void 0;
|
|
7
|
-
|
|
8
7
|
function _harmony() {
|
|
9
8
|
const data = require("@teambit/harmony");
|
|
10
|
-
|
|
11
9
|
_harmony = function () {
|
|
12
10
|
return data;
|
|
13
11
|
};
|
|
14
|
-
|
|
15
12
|
return data;
|
|
16
13
|
}
|
|
17
|
-
|
|
18
14
|
const DiagnosticAspect = _harmony().Aspect.create({
|
|
19
15
|
id: 'teambit.harmony/diagnostic'
|
|
20
16
|
});
|
|
21
|
-
|
|
22
17
|
exports.DiagnosticAspect = DiagnosticAspect;
|
|
23
18
|
|
|
24
19
|
//# sourceMappingURL=diagnostic.aspect.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["DiagnosticAspect","Aspect","create","id"],"sources":["diagnostic.aspect.ts"],"sourcesContent":["import { Aspect } from '@teambit/harmony';\n\nexport const DiagnosticAspect = Aspect.create({\n id: 'teambit.harmony/diagnostic',\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["DiagnosticAspect","Aspect","create","id"],"sources":["diagnostic.aspect.ts"],"sourcesContent":["import { Aspect } from '@teambit/harmony';\n\nexport const DiagnosticAspect = Aspect.create({\n id: 'teambit.harmony/diagnostic',\n});\n"],"mappings":";;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEO,MAAMA,gBAAgB,GAAGC,iBAAM,CAACC,MAAM,CAAC;EAC5CC,EAAE,EAAE;AACN,CAAC,CAAC;AAAC"}
|
|
@@ -1,32 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.DiagnosticGraphql = void 0;
|
|
9
|
-
|
|
10
8
|
function _defineProperty2() {
|
|
11
9
|
const data = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
12
|
-
|
|
13
10
|
_defineProperty2 = function () {
|
|
14
11
|
return data;
|
|
15
12
|
};
|
|
16
|
-
|
|
17
13
|
return data;
|
|
18
14
|
}
|
|
19
|
-
|
|
20
15
|
function _graphqlTag() {
|
|
21
16
|
const data = require("graphql-tag");
|
|
22
|
-
|
|
23
17
|
_graphqlTag = function () {
|
|
24
18
|
return data;
|
|
25
19
|
};
|
|
26
|
-
|
|
27
20
|
return data;
|
|
28
21
|
}
|
|
29
|
-
|
|
30
22
|
class DiagnosticGraphql {
|
|
31
23
|
constructor(diagnosticMain) {
|
|
32
24
|
this.diagnosticMain = diagnosticMain;
|
|
@@ -45,9 +37,7 @@ class DiagnosticGraphql {
|
|
|
45
37
|
}
|
|
46
38
|
});
|
|
47
39
|
}
|
|
48
|
-
|
|
49
40
|
}
|
|
50
|
-
|
|
51
41
|
exports.DiagnosticGraphql = DiagnosticGraphql;
|
|
52
42
|
|
|
53
43
|
//# sourceMappingURL=diagnostic.graphql.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["DiagnosticGraphql","constructor","diagnosticMain","gql","Query","_diagnostic","getDiagnosticData"],"sources":["diagnostic.graphql.ts"],"sourcesContent":["import { Schema } from '@teambit/graphql';\nimport { gql } from 'graphql-tag';\nimport { DiagnosticMain } from './diagnostic.main.runtime';\n\nexport class DiagnosticGraphql implements Schema {\n constructor(private diagnosticMain: DiagnosticMain) {}\n\n typeDefs = gql`\n scalar JSONObject\n\n type Query {\n _diagnostic: JSONObject\n }\n `;\n resolvers = {\n Query: {\n _diagnostic: () => {\n return this.diagnosticMain.getDiagnosticData();\n },\n },\n };\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["DiagnosticGraphql","constructor","diagnosticMain","gql","Query","_diagnostic","getDiagnosticData"],"sources":["diagnostic.graphql.ts"],"sourcesContent":["import { Schema } from '@teambit/graphql';\nimport { gql } from 'graphql-tag';\nimport { DiagnosticMain } from './diagnostic.main.runtime';\n\nexport class DiagnosticGraphql implements Schema {\n constructor(private diagnosticMain: DiagnosticMain) {}\n\n typeDefs = gql`\n scalar JSONObject\n\n type Query {\n _diagnostic: JSONObject\n }\n `;\n resolvers = {\n Query: {\n _diagnostic: () => {\n return this.diagnosticMain.getDiagnosticData();\n },\n },\n };\n}\n"],"mappings":";;;;;;;;;;;;;;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAGO,MAAMA,iBAAiB,CAAmB;EAC/CC,WAAW,CAASC,cAA8B,EAAE;IAAA,KAAhCA,cAA8B,GAA9BA,cAA8B;IAAA,kDAEvC,IAAAC,iBAAG,CAAC;AACjB;AACA;AACA;AACA;AACA;AACA,GAAG;IAAA,mDACW;MACVC,KAAK,EAAE;QACLC,WAAW,EAAE,MAAM;UACjB,OAAO,IAAI,CAACH,cAAc,CAACI,iBAAiB,EAAE;QAChD;MACF;IACF,CAAC;EAfoD;AAgBvD;AAAC"}
|
|
@@ -1,117 +1,83 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
require("core-js/modules/es.array.iterator.js");
|
|
6
|
-
|
|
7
5
|
require("core-js/modules/es.promise.js");
|
|
8
|
-
|
|
9
6
|
Object.defineProperty(exports, "__esModule", {
|
|
10
7
|
value: true
|
|
11
8
|
});
|
|
12
9
|
exports.DiagnosticMain = void 0;
|
|
13
|
-
|
|
14
10
|
function _defineProperty2() {
|
|
15
11
|
const data = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
16
|
-
|
|
17
12
|
_defineProperty2 = function () {
|
|
18
13
|
return data;
|
|
19
14
|
};
|
|
20
|
-
|
|
21
15
|
return data;
|
|
22
16
|
}
|
|
23
|
-
|
|
24
17
|
function _bootstrap() {
|
|
25
18
|
const data = require("@teambit/legacy/dist/bootstrap");
|
|
26
|
-
|
|
27
19
|
_bootstrap = function () {
|
|
28
20
|
return data;
|
|
29
21
|
};
|
|
30
|
-
|
|
31
22
|
return data;
|
|
32
23
|
}
|
|
33
|
-
|
|
34
24
|
function _harmony() {
|
|
35
25
|
const data = require("@teambit/harmony");
|
|
36
|
-
|
|
37
26
|
_harmony = function () {
|
|
38
27
|
return data;
|
|
39
28
|
};
|
|
40
|
-
|
|
41
29
|
return data;
|
|
42
30
|
}
|
|
43
|
-
|
|
44
31
|
function _cli() {
|
|
45
32
|
const data = require("@teambit/cli");
|
|
46
|
-
|
|
47
33
|
_cli = function () {
|
|
48
34
|
return data;
|
|
49
35
|
};
|
|
50
|
-
|
|
51
36
|
return data;
|
|
52
37
|
}
|
|
53
|
-
|
|
54
38
|
function _express() {
|
|
55
39
|
const data = require("@teambit/express");
|
|
56
|
-
|
|
57
40
|
_express = function () {
|
|
58
41
|
return data;
|
|
59
42
|
};
|
|
60
|
-
|
|
61
43
|
return data;
|
|
62
44
|
}
|
|
63
|
-
|
|
64
45
|
function _graphql() {
|
|
65
46
|
const data = _interopRequireDefault(require("@teambit/graphql"));
|
|
66
|
-
|
|
67
47
|
_graphql = function () {
|
|
68
48
|
return data;
|
|
69
49
|
};
|
|
70
|
-
|
|
71
50
|
return data;
|
|
72
51
|
}
|
|
73
|
-
|
|
74
52
|
function _diagnostic() {
|
|
75
53
|
const data = require("./diagnostic.aspect");
|
|
76
|
-
|
|
77
54
|
_diagnostic = function () {
|
|
78
55
|
return data;
|
|
79
56
|
};
|
|
80
|
-
|
|
81
57
|
return data;
|
|
82
58
|
}
|
|
83
|
-
|
|
84
59
|
function _diagnostic2() {
|
|
85
60
|
const data = require("./diagnostic.route");
|
|
86
|
-
|
|
87
61
|
_diagnostic2 = function () {
|
|
88
62
|
return data;
|
|
89
63
|
};
|
|
90
|
-
|
|
91
64
|
return data;
|
|
92
65
|
}
|
|
93
|
-
|
|
94
66
|
function _diagnostic3() {
|
|
95
67
|
const data = require("./diagnostic.graphql");
|
|
96
|
-
|
|
97
68
|
_diagnostic3 = function () {
|
|
98
69
|
return data;
|
|
99
70
|
};
|
|
100
|
-
|
|
101
71
|
return data;
|
|
102
72
|
}
|
|
103
|
-
|
|
104
73
|
class DiagnosticMain {
|
|
105
|
-
constructor(
|
|
106
|
-
/** the diagnostic entity slot */
|
|
74
|
+
constructor( /** the diagnostic entity slot */
|
|
107
75
|
diagnosticSlot) {
|
|
108
76
|
this.diagnosticSlot = diagnosticSlot;
|
|
109
77
|
}
|
|
110
|
-
|
|
111
78
|
register(...diagnostic) {
|
|
112
79
|
this.diagnosticSlot.register(diagnostic);
|
|
113
80
|
}
|
|
114
|
-
|
|
115
81
|
getDiagnosticData() {
|
|
116
82
|
const slots = this.diagnosticSlot.toArray();
|
|
117
83
|
return slots.reduce((prev, cSlot) => {
|
|
@@ -128,14 +94,12 @@ class DiagnosticMain {
|
|
|
128
94
|
return prev;
|
|
129
95
|
}, {});
|
|
130
96
|
}
|
|
131
|
-
|
|
132
97
|
static getBitVersion() {
|
|
133
98
|
const version = (0, _bootstrap().getHarmonyVersion)(true);
|
|
134
99
|
return {
|
|
135
100
|
version
|
|
136
101
|
};
|
|
137
102
|
}
|
|
138
|
-
|
|
139
103
|
static async provider([express, graphql], config, [diagnosticSlot]) {
|
|
140
104
|
const diagnosticMain = new DiagnosticMain(diagnosticSlot);
|
|
141
105
|
diagnosticMain.register({
|
|
@@ -145,14 +109,11 @@ class DiagnosticMain {
|
|
|
145
109
|
graphql.register(new (_diagnostic3().DiagnosticGraphql)(diagnosticMain));
|
|
146
110
|
return diagnosticMain;
|
|
147
111
|
}
|
|
148
|
-
|
|
149
112
|
}
|
|
150
|
-
|
|
151
113
|
exports.DiagnosticMain = DiagnosticMain;
|
|
152
114
|
(0, _defineProperty2().default)(DiagnosticMain, "slots", [_harmony().Slot.withType()]);
|
|
153
115
|
(0, _defineProperty2().default)(DiagnosticMain, "dependencies", [_express().ExpressAspect, _graphql().default]);
|
|
154
116
|
(0, _defineProperty2().default)(DiagnosticMain, "runtime", _cli().MainRuntime);
|
|
155
|
-
|
|
156
117
|
_diagnostic().DiagnosticAspect.addRuntime(DiagnosticMain);
|
|
157
118
|
|
|
158
119
|
//# sourceMappingURL=diagnostic.main.runtime.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["DiagnosticMain","constructor","diagnosticSlot","register","diagnostic","getDiagnosticData","slots","toArray","reduce","prev","cSlot","aspectId","reports","forEach","diag","diagnosticFn","push","getBitVersion","version","getHarmonyVersion","provider","express","graphql","config","diagnosticMain","DiagnosticRoute","DiagnosticGraphql","Slot","withType","ExpressAspect","GraphqlAspect","MainRuntime","DiagnosticAspect","addRuntime"],"sources":["diagnostic.main.runtime.ts"],"sourcesContent":["import { getHarmonyVersion } from '@teambit/legacy/dist/bootstrap';\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 = getHarmonyVersion(true);\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 diagnosticMain;\n }\n}\n\nDiagnosticAspect.addRuntime(DiagnosticMain);\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["DiagnosticMain","constructor","diagnosticSlot","register","diagnostic","getDiagnosticData","slots","toArray","reduce","prev","cSlot","aspectId","reports","forEach","diag","diagnosticFn","push","getBitVersion","version","getHarmonyVersion","provider","express","graphql","config","diagnosticMain","DiagnosticRoute","DiagnosticGraphql","Slot","withType","ExpressAspect","GraphqlAspect","MainRuntime","DiagnosticAspect","addRuntime"],"sources":["diagnostic.main.runtime.ts"],"sourcesContent":["import { getHarmonyVersion } from '@teambit/legacy/dist/bootstrap';\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 = getHarmonyVersion(true);\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 diagnosticMain;\n }\n}\n\nDiagnosticAspect.addRuntime(DiagnosticMain);\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAKO,MAAMA,cAAc,CAAC;EAC1BC,WAAW,EACT;EACQC,cAA8B,EACtC;IAAA,KADQA,cAA8B,GAA9BA,cAA8B;EACrC;EAKHC,QAAQ,CAAC,GAAGC,UAAwB,EAAE;IACpC,IAAI,CAACF,cAAc,CAACC,QAAQ,CAACC,UAAU,CAAC;EAC1C;EAEAC,iBAAiB,GAAG;IAClB,MAAMC,KAAK,GAAG,IAAI,CAACJ,cAAc,CAACK,OAAO,EAAE;IAC3C,OAAOD,KAAK,CAACE,MAAM,CAAC,CAACC,IAAI,EAAEC,KAAK,KAAK;MACnC,MAAM,CAACC,QAAQ,EAAEP,UAAU,CAAC,GAAGM,KAAK;MACpCD,IAAI,CAACE,QAAQ,CAAC,GAAG;QAAEC,OAAO,EAAE;MAAG,CAAC;MAChCR,UAAU,CAACS,OAAO,CAAEC,IAAI,IAAK;QAC3B,MAAM;UAAEC;QAAa,CAAC,GAAGD,IAAI;QAC7BL,IAAI,CAACE,QAAQ,CAAC,CAACC,OAAO,CAACI,IAAI,CAACD,YAAY,EAAE,CAAC;MAC7C,CAAC,CAAC;MACF,OAAON,IAAI;IACb,CAAC,EAAE,CAAC,CAAC,CAAC;EACR;EAEA,OAAOQ,aAAa,GAAG;IACrB,MAAMC,OAAO,GAAG,IAAAC,8BAAiB,EAAC,IAAI,CAAC;IACvC,OAAO;MAAED;IAAQ,CAAC;EACpB;EAEA,aAAaE,QAAQ,CACnB,CAACC,OAAO,EAAEC,OAAO,CAA6B,EAC9CC,MAAW,EACX,CAACrB,cAAc,CAAmB,EAClC;IACA,MAAMsB,cAAc,GAAG,IAAIxB,cAAc,CAACE,cAAc,CAAC;IACzDsB,cAAc,CAACrB,QAAQ,CAAC;MAAEY,YAAY,EAAEf,cAAc,CAACiB;IAAc,CAAC,CAAC;IACvEI,OAAO,CAAClB,QAAQ,CAAC,CAAC,KAAIsB,8BAAe,EAACD,cAAc,CAAC,CAAC,CAAC;IACvDF,OAAO,CAACnB,QAAQ,CAAC,KAAIuB,gCAAiB,EAACF,cAAc,CAAC,CAAC;IACvD,OAAOA,cAAc;EACvB;AACF;AAAC;AAAA,gCA1CYxB,cAAc,WAKV,CAAC2B,eAAI,CAACC,QAAQ,EAAgB,CAAC;AAAA,gCALnC5B,cAAc,kBAMH,CAAC6B,wBAAa,EAAEC,kBAAa,CAAC;AAAA,gCANzC9B,cAAc,aAOR+B,kBAAW;AAqC9BC,8BAAgB,CAACC,UAAU,CAACjC,cAAc,CAAC"}
|
package/dist/diagnostic.route.js
CHANGED
|
@@ -1,34 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
require("core-js/modules/es.promise.js");
|
|
6
|
-
|
|
7
5
|
Object.defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
10
8
|
exports.DiagnosticRoute = void 0;
|
|
11
|
-
|
|
12
9
|
function _defineProperty2() {
|
|
13
10
|
const data = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
14
|
-
|
|
15
11
|
_defineProperty2 = function () {
|
|
16
12
|
return data;
|
|
17
13
|
};
|
|
18
|
-
|
|
19
14
|
return data;
|
|
20
15
|
}
|
|
21
|
-
|
|
22
16
|
function _express() {
|
|
23
17
|
const data = require("@teambit/express");
|
|
24
|
-
|
|
25
18
|
_express = function () {
|
|
26
19
|
return data;
|
|
27
20
|
};
|
|
28
|
-
|
|
29
21
|
return data;
|
|
30
22
|
}
|
|
31
|
-
|
|
32
23
|
class DiagnosticRoute {
|
|
33
24
|
constructor(diagnosticMain) {
|
|
34
25
|
this.diagnosticMain = diagnosticMain;
|
|
@@ -40,9 +31,7 @@ class DiagnosticRoute {
|
|
|
40
31
|
res.json(diagnosticData);
|
|
41
32
|
}]);
|
|
42
33
|
}
|
|
43
|
-
|
|
44
34
|
}
|
|
45
|
-
|
|
46
35
|
exports.DiagnosticRoute = DiagnosticRoute;
|
|
47
36
|
|
|
48
37
|
//# sourceMappingURL=diagnostic.route.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["DiagnosticRoute","constructor","diagnosticMain","Verb","READ","req","res","diagnosticData","getDiagnosticData","json"],"sources":["diagnostic.route.ts"],"sourcesContent":["import { Route, Verb, Request, Response } from '@teambit/express';\nimport type { DiagnosticMain } from './diagnostic.main.runtime';\n\nexport class DiagnosticRoute implements Route {\n constructor(readonly diagnosticMain: DiagnosticMain) {}\n\n method = 'GET';\n route = '/_diagnostic';\n verb = Verb.READ;\n\n middlewares = [\n async (req: Request, res: Response) => {\n const diagnosticData = this.diagnosticMain.getDiagnosticData();\n res.json(diagnosticData);\n },\n ];\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["DiagnosticRoute","constructor","diagnosticMain","Verb","READ","req","res","diagnosticData","getDiagnosticData","json"],"sources":["diagnostic.route.ts"],"sourcesContent":["import { Route, Verb, Request, Response } from '@teambit/express';\nimport type { DiagnosticMain } from './diagnostic.main.runtime';\n\nexport class DiagnosticRoute implements Route {\n constructor(readonly diagnosticMain: DiagnosticMain) {}\n\n method = 'GET';\n route = '/_diagnostic';\n verb = Verb.READ;\n\n middlewares = [\n async (req: Request, res: Response) => {\n const diagnosticData = this.diagnosticMain.getDiagnosticData();\n res.json(diagnosticData);\n },\n ];\n}\n"],"mappings":";;;;;;;;;;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAGO,MAAMA,eAAe,CAAkB;EAC5CC,WAAW,CAAUC,cAA8B,EAAE;IAAA,KAAhCA,cAA8B,GAA9BA,cAA8B;IAAA,gDAE1C,KAAK;IAAA,+CACN,cAAc;IAAA,8CACfC,eAAI,CAACC,IAAI;IAAA,qDAEF,CACZ,OAAOC,GAAY,EAAEC,GAAa,KAAK;MACrC,MAAMC,cAAc,GAAG,IAAI,CAACL,cAAc,CAACM,iBAAiB,EAAE;MAC9DF,GAAG,CAACG,IAAI,CAACF,cAAc,CAAC;IAC1B,CAAC,CACF;EAXqD;AAYxD;AAAC"}
|
package/dist/index.js
CHANGED
|
@@ -10,19 +10,14 @@ Object.defineProperty(exports, "DiagnosticAspect", {
|
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
exports.default = void 0;
|
|
13
|
-
|
|
14
13
|
function _diagnostic() {
|
|
15
14
|
const data = require("./diagnostic.aspect");
|
|
16
|
-
|
|
17
15
|
_diagnostic = function () {
|
|
18
16
|
return data;
|
|
19
17
|
};
|
|
20
|
-
|
|
21
18
|
return data;
|
|
22
19
|
}
|
|
23
|
-
|
|
24
20
|
var _default = _diagnostic().DiagnosticAspect;
|
|
25
|
-
|
|
26
21
|
exports.default = _default;
|
|
27
22
|
|
|
28
23
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["DiagnosticAspect"],"sources":["index.ts"],"sourcesContent":["import { DiagnosticAspect } from './diagnostic.aspect';\n\nexport type { DiagnosticMain } from './diagnostic.main.runtime';\nexport default DiagnosticAspect;\nexport { DiagnosticAspect };\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["DiagnosticAspect"],"sources":["index.ts"],"sourcesContent":["import { DiagnosticAspect } from './diagnostic.aspect';\n\nexport type { DiagnosticMain } from './diagnostic.main.runtime';\nexport default DiagnosticAspect;\nexport { DiagnosticAspect };\n"],"mappings":";;;;;;;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAAuD,eAGxCA,8BAAgB;AAAA"}
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/diagnostic",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.175",
|
|
4
4
|
"homepage": "https://bit.dev/teambit/harmony/diagnostic",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.harmony",
|
|
8
8
|
"name": "diagnostic",
|
|
9
|
-
"version": "0.0.
|
|
9
|
+
"version": "0.0.175"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"graphql-tag": "2.12.1",
|
|
13
13
|
"@babel/runtime": "7.12.18",
|
|
14
14
|
"core-js": "^3.0.0",
|
|
15
15
|
"@teambit/harmony": "0.3.3",
|
|
16
|
-
"@teambit/graphql": "0.0.
|
|
16
|
+
"@teambit/graphql": "0.0.882",
|
|
17
17
|
"@teambit/cli": "0.0.591",
|
|
18
18
|
"@teambit/express": "0.0.689"
|
|
19
19
|
},
|
|
File without changes
|
|
Binary file
|