@teambit/graphql 1.0.671 → 1.0.672

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,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.harmony_graphql@1.0.671/dist/graphql.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.harmony_graphql@1.0.671/dist/graphql.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.harmony_graphql@1.0.672/dist/graphql.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.harmony_graphql@1.0.672/dist/graphql.docs.mdx';
3
3
 
4
4
  export const compositions = [compositions_0];
5
5
  export const overview = [overview_0];
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/graphql",
3
- "version": "1.0.671",
3
+ "version": "1.0.672",
4
4
  "homepage": "https://bit.cloud/teambit/harmony/graphql",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.harmony",
8
8
  "name": "graphql",
9
- "version": "1.0.671"
9
+ "version": "1.0.672"
10
10
  },
11
11
  "dependencies": {
12
12
  "@graphql-modules/core": "0.7.17",
@@ -33,9 +33,9 @@
33
33
  "@teambit/harmony": "0.4.7",
34
34
  "@teambit/toolbox.network.get-port": "1.0.10",
35
35
  "@teambit/ui-foundation.ui.is-browser": "0.0.500",
36
- "@teambit/cli": "0.0.1248",
37
- "@teambit/logger": "0.0.1341",
38
- "@teambit/ui": "1.0.671"
36
+ "@teambit/cli": "0.0.1249",
37
+ "@teambit/logger": "0.0.1342",
38
+ "@teambit/ui": "1.0.672"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@types/cors": "2.8.10",
@@ -44,23 +44,15 @@
44
44
  "@types/lodash": "4.14.165",
45
45
  "@types/node-fetch": "2.5.12",
46
46
  "@types/mocha": "9.1.0",
47
- "@teambit/harmony.envs.core-aspect-env": "0.0.72",
48
- "@teambit/harmony.testing.load-aspect": "0.0.319",
49
- "@teambit/lanes": "1.0.672",
50
- "@teambit/workspace.testing.mock-workspace": "0.0.103",
51
- "@teambit/workspace": "1.0.671"
47
+ "@teambit/harmony.envs.core-aspect-env": "0.0.72"
52
48
  },
53
49
  "peerDependencies": {
54
50
  "@apollo/client": "^3.6.0",
55
51
  "react": "^17.0.0 || ^18.0.0",
56
52
  "react-dom": "^17.0.0 || ^18.0.0",
57
- "chai": "5.2.1",
58
- "chai-fs": "1.0.0",
59
53
  "graphql": "^15.8.0",
60
54
  "@types/react": "^17.0.73",
61
- "@types/react-dom": "^17.0.5",
62
- "@types/chai-fs": "2.0.5",
63
- "@types/chai": "5.2.2"
55
+ "@types/react-dom": "^17.0.5"
64
56
  },
65
57
  "license": "Apache-2.0",
66
58
  "optionalDependencies": {},
@@ -1 +0,0 @@
1
- export {};
@@ -1,78 +0,0 @@
1
- "use strict";
2
-
3
- function _chai() {
4
- const data = _interopRequireWildcard(require("chai"));
5
- _chai = function () {
6
- return data;
7
- };
8
- return data;
9
- }
10
- function _harmonyTesting() {
11
- const data = require("@teambit/harmony.testing.load-aspect");
12
- _harmonyTesting = function () {
13
- return data;
14
- };
15
- return data;
16
- }
17
- function _workspace() {
18
- const data = require("@teambit/workspace");
19
- _workspace = function () {
20
- return data;
21
- };
22
- return data;
23
- }
24
- function _workspaceTesting() {
25
- const data = require("@teambit/workspace.testing.mock-workspace");
26
- _workspaceTesting = function () {
27
- return data;
28
- };
29
- return data;
30
- }
31
- function _graphql() {
32
- const data = require("./graphql.aspect");
33
- _graphql = function () {
34
- return data;
35
- };
36
- return data;
37
- }
38
- function _lanes() {
39
- const data = require("@teambit/lanes");
40
- _lanes = function () {
41
- return data;
42
- };
43
- return data;
44
- }
45
- function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
46
- _chai().default.use(require('chai-fs'));
47
- describe('GraphQL Aspect', function () {
48
- this.timeout(0);
49
- describe('getSchemas and getSchema APIs', () => {
50
- let graphql;
51
- let workspaceData;
52
- before(async () => {
53
- workspaceData = (0, _workspaceTesting().mockWorkspace)();
54
- const {
55
- workspacePath
56
- } = workspaceData;
57
- const harmony = await (0, _harmonyTesting().loadManyAspects)([_workspace().WorkspaceAspect, _graphql().GraphqlAspect, _lanes().LanesAspect], workspacePath);
58
- graphql = harmony.get(_graphql().GraphqlAspect.id);
59
- });
60
- after(async () => {
61
- await (0, _workspaceTesting().destroyWorkspace)(workspaceData);
62
- });
63
- it('should bring the schemas when calling getSchemas API', async () => {
64
- const schemas = graphql.getSchemas([_lanes().LanesAspect.id]);
65
- (0, _chai().expect)(schemas).to.be.an('array');
66
- (0, _chai().expect)(schemas).to.have.lengthOf(1);
67
- (0, _chai().expect)(schemas[0]).to.be.an('object');
68
- (0, _chai().expect)(schemas[0]).to.not.be.an('function');
69
- });
70
- it('should bring the schemas when calling getSchema API', async () => {
71
- const schema = graphql.getSchema(_lanes().LanesAspect.id);
72
- (0, _chai().expect)(schema).to.be.an('object');
73
- (0, _chai().expect)(schema).to.not.be.an('function');
74
- });
75
- });
76
- });
77
-
78
- //# sourceMappingURL=graphql.spec.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_chai","data","_interopRequireWildcard","require","_harmonyTesting","_workspace","_workspaceTesting","_graphql","_lanes","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","chai","use","describe","timeout","graphql","workspaceData","before","mockWorkspace","workspacePath","harmony","loadManyAspects","WorkspaceAspect","GraphqlAspect","LanesAspect","id","after","destroyWorkspace","it","schemas","getSchemas","expect","to","be","an","have","lengthOf","not","schema","getSchema"],"sources":["graphql.spec.ts"],"sourcesContent":["import chai, { expect } from 'chai';\nimport { loadManyAspects } from '@teambit/harmony.testing.load-aspect';\nimport { WorkspaceAspect } from '@teambit/workspace';\nimport type { WorkspaceData } from '@teambit/workspace.testing.mock-workspace';\nimport { mockWorkspace, destroyWorkspace } from '@teambit/workspace.testing.mock-workspace';\nimport { GraphqlAspect } from './graphql.aspect';\nimport type { GraphqlMain } from './graphql.main.runtime';\nimport { LanesAspect } from '@teambit/lanes';\n\nchai.use(require('chai-fs'));\n\ndescribe('GraphQL Aspect', function () {\n this.timeout(0);\n\n describe('getSchemas and getSchema APIs', () => {\n let graphql: GraphqlMain;\n let workspaceData: WorkspaceData;\n before(async () => {\n workspaceData = mockWorkspace();\n const { workspacePath } = workspaceData;\n const harmony = await loadManyAspects([WorkspaceAspect, GraphqlAspect, LanesAspect], workspacePath);\n graphql = harmony.get<GraphqlMain>(GraphqlAspect.id);\n });\n after(async () => {\n await destroyWorkspace(workspaceData);\n });\n it('should bring the schemas when calling getSchemas API', async () => {\n const schemas = graphql.getSchemas([LanesAspect.id]);\n expect(schemas).to.be.an('array');\n expect(schemas).to.have.lengthOf(1);\n expect(schemas[0]).to.be.an('object');\n expect(schemas[0]).to.not.be.an('function');\n });\n it('should bring the schemas when calling getSchema API', async () => {\n const schema = graphql.getSchema(LanesAspect.id);\n expect(schema).to.be.an('object');\n expect(schema).to.not.be.an('function');\n });\n });\n});\n"],"mappings":";;AAAA,SAAAA,MAAA;EAAA,MAAAC,IAAA,GAAAC,uBAAA,CAAAC,OAAA;EAAAH,KAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;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