fetch-multipart-graphql
Advanced tools
Comparing version 1.2.1 to 1.2.2
@@ -27,3 +27,3 @@ 'use strict'; | ||
} }); | ||
reader.read().then(function sendNext(_ref2) { | ||
return reader.read().then(function sendNext(_ref2) { | ||
var value = _ref2.value, | ||
@@ -51,3 +51,3 @@ done = _ref2.done; | ||
} else { | ||
response.json().then(function (json) { | ||
return response.json().then(function (json) { | ||
onNext(json); | ||
@@ -54,0 +54,0 @@ onComplete(); |
{ | ||
"name": "fetch-multipart-graphql", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "Cross browser function to fetch and parse streaming multipart graphql responses.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -16,3 +16,3 @@ import { PatchResolver } from './PatchResolver'; | ||
const patchResolver = new PatchResolver({ onResponse: r => onNext(r) }); | ||
reader.read().then(function sendNext({ value, done }) { | ||
return reader.read().then(function sendNext({ value, done }) { | ||
if (!done) { | ||
@@ -37,3 +37,3 @@ let plaintext; | ||
} else { | ||
response.json().then(json => { | ||
return response.json().then(json => { | ||
onNext(json); | ||
@@ -40,0 +40,0 @@ onComplete(); |
171296