fetch-multipart-graphql
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -24,4 +24,2 @@ 'use strict'; | ||
var supportsMozChunked = supportsXhrResponseType('moz-chunked-text'); | ||
function xhrImpl(url, _ref) { | ||
@@ -88,3 +86,3 @@ var method = _ref.method, | ||
if (supportsMozChunked) { | ||
if (supportsXhrResponseType('moz-chunked-text')) { | ||
xhr.responseType = 'moz-chunked-text'; | ||
@@ -91,0 +89,0 @@ } |
{ | ||
"name": "fetch-multipart-graphql", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Cross browser function to fetch and parse streaming multipart graphql responses.", | ||
@@ -15,3 +15,6 @@ "main": "dist/index.js", | ||
"jest": { | ||
"testPathIgnorePatterns": ["/node_modules/", "/dist/"], | ||
"testPathIgnorePatterns": [ | ||
"/node_modules/", | ||
"/dist/" | ||
], | ||
"testEnvironment": "node" | ||
@@ -18,0 +21,0 @@ }, |
@@ -14,4 +14,2 @@ import { PatchResolver } from './PatchResolver'; | ||
const supportsMozChunked = supportsXhrResponseType('moz-chunked-text'); | ||
export function xhrImpl(url, { method, headers, body, onNext, onError, onComplete }) { | ||
@@ -43,3 +41,3 @@ const xhr = new XMLHttpRequest(); | ||
if (supportsMozChunked) { | ||
if (supportsXhrResponseType('moz-chunked-text')) { | ||
xhr.responseType = 'moz-chunked-text'; | ||
@@ -46,0 +44,0 @@ } |
159584
649