@graphql-mesh/urql-exchange 10.0.0 → 10.0.1-alpha-20230110080136-5d470bc93

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/cjs/index.js CHANGED
@@ -23,7 +23,9 @@ const makeExecuteSource = (operation, options) => {
23
23
  let prevResult = null;
24
24
  function next({ done, value }) {
25
25
  if (value) {
26
- observer.next((prevResult = prevResult ? (0, core_1.mergeResultPatch)(prevResult, value) : (0, core_1.makeResult)(operation, value)));
26
+ observer.next((prevResult = prevResult
27
+ ? (0, core_1.mergeResultPatch)(prevResult, value)
28
+ : (0, core_1.makeResult)(operation, value)));
27
29
  }
28
30
  if (!done && !ended) {
29
31
  return iterator.next().then(next);
@@ -51,7 +53,9 @@ const meshExchange = (options) => ({ forward }) => {
51
53
  return ops$ => {
52
54
  const sharedOps$ = (0, wonka_1.share)(ops$);
53
55
  const executedOps$ = (0, wonka_1.pipe)(sharedOps$, (0, wonka_1.filter)((operation) => {
54
- return operation.kind === 'query' || operation.kind === 'mutation' || operation.kind === 'subscription';
56
+ return (operation.kind === 'query' ||
57
+ operation.kind === 'mutation' ||
58
+ operation.kind === 'subscription');
55
59
  }), (0, wonka_1.mergeMap)((operation) => {
56
60
  const { key } = operation;
57
61
  const teardown$ = (0, wonka_1.pipe)(sharedOps$, (0, wonka_1.filter)(op => op.kind === 'teardown' && op.key === key));
package/esm/index.js CHANGED
@@ -20,7 +20,9 @@ const makeExecuteSource = (operation, options) => {
20
20
  let prevResult = null;
21
21
  function next({ done, value }) {
22
22
  if (value) {
23
- observer.next((prevResult = prevResult ? mergeResultPatch(prevResult, value) : makeResult(operation, value)));
23
+ observer.next((prevResult = prevResult
24
+ ? mergeResultPatch(prevResult, value)
25
+ : makeResult(operation, value)));
24
26
  }
25
27
  if (!done && !ended) {
26
28
  return iterator.next().then(next);
@@ -48,7 +50,9 @@ export const meshExchange = (options) => ({ forward }) => {
48
50
  return ops$ => {
49
51
  const sharedOps$ = share(ops$);
50
52
  const executedOps$ = pipe(sharedOps$, filter((operation) => {
51
- return operation.kind === 'query' || operation.kind === 'mutation' || operation.kind === 'subscription';
53
+ return (operation.kind === 'query' ||
54
+ operation.kind === 'mutation' ||
55
+ operation.kind === 'subscription');
52
56
  }), mergeMap((operation) => {
53
57
  const { key } = operation;
54
58
  const teardown$ = pipe(sharedOps$, filter(op => op.kind === 'teardown' && op.key === key));
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@graphql-mesh/urql-exchange",
3
- "version": "10.0.0",
3
+ "version": "10.0.1-alpha-20230110080136-5d470bc93",
4
4
  "sideEffects": false,
5
5
  "peerDependencies": {
6
- "@graphql-mesh/runtime": "^0.46.0",
6
+ "@graphql-mesh/runtime": "0.46.5-alpha-20230110080136-5d470bc93",
7
7
  "@urql/core": "^2.4.3",
8
8
  "graphql": "^15.2.0 || ^16.0.0",
9
9
  "wonka": "^4.0.15"