@teambit/diagnostic 0.0.406 → 0.0.408
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.map +1 -1
- package/dist/diagnostic.graphql.js.map +1 -1
- package/dist/diagnostic.main.runtime.js.map +1 -1
- package/dist/diagnostic.route.js.map +1 -1
- package/dist/index.js.map +1 -1
- package/package-tar/teambit-diagnostic-0.0.408.tgz +0 -0
- package/package.json +6 -6
- package/package-tar/teambit-diagnostic-0.0.406.tgz +0 -0
- /package/dist/{preview-1689995873460.js → preview-1690254961496.js} +0 -0
|
@@ -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":";;;;;;AAAA;EAAA;
|
|
1
|
+
{"version":3,"names":["_harmony","data","require","DiagnosticAspect","Aspect","create","id","exports"],"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,SAAAA,SAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,QAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEO,MAAME,gBAAgB,GAAGC,iBAAM,CAACC,MAAM,CAAC;EAC5CC,EAAE,EAAE;AACN,CAAC,CAAC;AAACC,OAAA,CAAAJ,gBAAA,GAAAA,gBAAA"}
|
|
@@ -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":";;;;;;;;;;;;;;AACA;EAAA;
|
|
1
|
+
{"version":3,"names":["_graphqlTag","data","require","DiagnosticGraphql","constructor","diagnosticMain","_defineProperty2","default","gql","Query","_diagnostic","getDiagnosticData","exports"],"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,SAAAA,YAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,WAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAGO,MAAME,iBAAiB,CAAmB;EAC/CC,WAAWA,CAASC,cAA8B,EAAE;IAAA,KAAhCA,cAA8B,GAA9BA,cAA8B;IAAA,IAAAC,gBAAA,GAAAC,OAAA,oBAEvC,IAAAC,iBAAG,CAAC;AACjB;AACA;AACA;AACA;AACA;AACA,GAAG;IAAA,IAAAF,gBAAA,GAAAC,OAAA,qBACW;MACVE,KAAK,EAAE;QACLC,WAAW,EAAEA,CAAA,KAAM;UACjB,OAAO,IAAI,CAACL,cAAc,CAACM,iBAAiB,CAAC,CAAC;QAChD;MACF;IACF,CAAC;EAfoD;AAgBvD;AAACC,OAAA,CAAAT,iBAAA,GAAAA,iBAAA"}
|
|
@@ -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":";;;;;;;;;;;;;;;;AAAA;EAAA;
|
|
1
|
+
{"version":3,"names":["_bootstrap","data","require","_harmony","_cli","_express","_graphql","_interopRequireDefault","_diagnostic","_diagnostic2","_diagnostic3","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","exports","_defineProperty2","default","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,SAAAA,WAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,UAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAE,SAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,QAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,KAAA;EAAA,MAAAH,IAAA,GAAAC,OAAA;EAAAE,IAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,SAAA;EAAA,MAAAJ,IAAA,GAAAC,OAAA;EAAAG,QAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAK,SAAA;EAAA,MAAAL,IAAA,GAAAM,sBAAA,CAAAL,OAAA;EAAAI,QAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAO,YAAA;EAAA,MAAAP,IAAA,GAAAC,OAAA;EAAAM,WAAA,YAAAA,CAAA;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C,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;AAACG,OAAA,CAAA3B,cAAA,GAAAA,cAAA;AAAA,IAAA4B,gBAAA,GAAAC,OAAA,EA1CY7B,cAAc,WAKV,CAAC8B,eAAI,CAACC,QAAQ,CAAe,CAAC,CAAC;AAAA,IAAAH,gBAAA,GAAAC,OAAA,EALnC7B,cAAc,kBAMH,CAACgC,wBAAa,EAAEC,kBAAa,CAAC;AAAA,IAAAL,gBAAA,GAAAC,OAAA,EANzC7B,cAAc,aAORkC,kBAAW;AAqC9BC,8BAAgB,CAACC,UAAU,CAACpC,cAAc,CAAC"}
|
|
@@ -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":";;;;;;;;;;;;;;;AAAA;EAAA;
|
|
1
|
+
{"version":3,"names":["_express","data","require","DiagnosticRoute","constructor","diagnosticMain","_defineProperty2","default","Verb","READ","req","res","diagnosticData","getDiagnosticData","json","exports"],"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,SAAAA,SAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,QAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAGO,MAAME,eAAe,CAAkB;EAC5CC,WAAWA,CAAUC,cAA8B,EAAE;IAAA,KAAhCA,cAA8B,GAA9BA,cAA8B;IAAA,IAAAC,gBAAA,GAAAC,OAAA,kBAE1C,KAAK;IAAA,IAAAD,gBAAA,GAAAC,OAAA,iBACN,cAAc;IAAA,IAAAD,gBAAA,GAAAC,OAAA,gBACfC,eAAI,CAACC,IAAI;IAAA,IAAAH,gBAAA,GAAAC,OAAA,uBAEF,CACZ,OAAOG,GAAY,EAAEC,GAAa,KAAK;MACrC,MAAMC,cAAc,GAAG,IAAI,CAACP,cAAc,CAACQ,iBAAiB,CAAC,CAAC;MAC9DF,GAAG,CAACG,IAAI,CAACF,cAAc,CAAC;IAC1B,CAAC,CACF;EAXqD;AAYxD;AAACG,OAAA,CAAAZ,eAAA,GAAAA,eAAA"}
|
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":";;;;;;;;;;;;AAAA;EAAA;
|
|
1
|
+
{"version":3,"names":["_diagnostic","data","require","_default","DiagnosticAspect","exports","default"],"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,SAAAA,YAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,WAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAAuD,IAAAE,QAAA,GAGxCC,8BAAgB;AAAAC,OAAA,CAAAC,OAAA,GAAAH,QAAA"}
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/diagnostic",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.408",
|
|
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": "0.0.
|
|
9
|
+
"version": "0.0.408"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"graphql-tag": "2.12.1",
|
|
13
13
|
"core-js": "^3.0.0",
|
|
14
14
|
"@babel/runtime": "7.20.0",
|
|
15
15
|
"@teambit/harmony": "0.4.6",
|
|
16
|
-
"@teambit/graphql": "0.0.
|
|
17
|
-
"@teambit/cli": "0.0.
|
|
18
|
-
"@teambit/express": "0.0.
|
|
16
|
+
"@teambit/graphql": "0.0.1115",
|
|
17
|
+
"@teambit/cli": "0.0.747",
|
|
18
|
+
"@teambit/express": "0.0.845"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@types/mocha": "9.1.0",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@types/testing-library__jest-dom": "5.9.5"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
|
-
"@teambit/legacy": "1.0.
|
|
29
|
+
"@teambit/legacy": "1.0.526",
|
|
30
30
|
"react": "^16.8.0 || ^17.0.0",
|
|
31
31
|
"react-dom": "^16.8.0 || ^17.0.0"
|
|
32
32
|
},
|
|
Binary file
|
|
File without changes
|