@envelop/core 2.3.2 → 2.3.3

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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  ## `@envelop/core`
2
2
 
3
- This is the core package for Envelop. You can find a complete documentation here: https://github.com/dotansimha/envelop
3
+ This is the core package for Envelop. You can find a complete documentation here: https://github.com/n1ru4l/envelop
4
4
 
5
5
  ### Built-in plugins
6
6
 
package/index.js CHANGED
@@ -22,9 +22,7 @@ function enableIf(condition, plugin) {
22
22
  if (condition) {
23
23
  return typeof plugin === 'function' ? plugin() : plugin;
24
24
  }
25
- else {
26
- return EnableIfBranded.DisabledPlugin;
27
- }
25
+ return EnableIfBranded.DisabledPlugin;
28
26
  }
29
27
 
30
28
  const trackedSchemaSymbol = Symbol('TRACKED_SCHEMA');
@@ -220,14 +218,12 @@ function handleStreamOrSingleExecutionResult(payload, fn) {
220
218
  if (isAsyncIterable(payload.result)) {
221
219
  return { onNext: fn };
222
220
  }
223
- else {
224
- fn({
225
- args: payload.args,
226
- result: payload.result,
227
- setResult: payload.setResult,
228
- });
229
- return undefined;
230
- }
221
+ fn({
222
+ args: payload.args,
223
+ result: payload.result,
224
+ setResult: payload.setResult,
225
+ });
226
+ return undefined;
231
227
  }
232
228
  function finalAsyncIterator(source, onFinal) {
233
229
  const iterator = source[Symbol.asyncIterator]();
package/index.mjs CHANGED
@@ -18,9 +18,7 @@ function enableIf(condition, plugin) {
18
18
  if (condition) {
19
19
  return typeof plugin === 'function' ? plugin() : plugin;
20
20
  }
21
- else {
22
- return EnableIfBranded.DisabledPlugin;
23
- }
21
+ return EnableIfBranded.DisabledPlugin;
24
22
  }
25
23
 
26
24
  const trackedSchemaSymbol = Symbol('TRACKED_SCHEMA');
@@ -216,14 +214,12 @@ function handleStreamOrSingleExecutionResult(payload, fn) {
216
214
  if (isAsyncIterable(payload.result)) {
217
215
  return { onNext: fn };
218
216
  }
219
- else {
220
- fn({
221
- args: payload.args,
222
- result: payload.result,
223
- setResult: payload.setResult,
224
- });
225
- return undefined;
226
- }
217
+ fn({
218
+ args: payload.args,
219
+ result: payload.result,
220
+ setResult: payload.setResult,
221
+ });
222
+ return undefined;
227
223
  }
228
224
  function finalAsyncIterator(source, onFinal) {
229
225
  const iterator = source[Symbol.asyncIterator]();
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@envelop/core",
3
- "version": "2.3.2",
3
+ "version": "2.3.3",
4
4
  "sideEffects": false,
5
5
  "peerDependencies": {
6
6
  "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0"
7
7
  },
8
8
  "dependencies": {
9
- "@envelop/types": "2.2.0"
9
+ "@envelop/types": "2.2.1"
10
10
  },
11
11
  "repository": {
12
12
  "type": "git",
13
- "url": "https://github.com/dotansimha/envelop.git",
13
+ "url": "https://github.com/n1ru4l/envelop.git",
14
14
  "directory": "packages/core"
15
15
  },
16
16
  "keywords": [