New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

apollo-link-http

Package Overview
Dependencies
Maintainers
3
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apollo-link-http - npm Package Compare versions

Comparing version 1.6.0-alpha.3 to 1.6.0-alpha.4

8

lib/bundle.umd.js

@@ -71,3 +71,3 @@ (function (global, factory) {

// Check that length of body matches the Content-Length
if (Buffer.byteLength(body, 'UTF-8') !== contentLength) {
if (new TextEncoder().encode(body).length !== contentLength) {
return null;

@@ -159,4 +159,6 @@ }

response.headers.get('Content-Type').indexOf('multipart/mixed') >= 0) {
if (response.body !== undefined) {
// For the majority of browsers with support for ReadableStream
if (response.body !== undefined &&
typeof TextDecoder !== 'undefined' &&
typeof TextEncoder !== 'undefined') {
// For the majority of browsers with support for ReadableStream and TextDecoder
var reader_1 = response.body.getReader();

@@ -163,0 +165,0 @@ var textDecoder_1 = new TextDecoder();

@@ -68,3 +68,3 @@ var __extends = (this && this.__extends) || (function () {

// Check that length of body matches the Content-Length
if (Buffer.byteLength(body, 'UTF-8') !== contentLength) {
if (new TextEncoder().encode(body).length !== contentLength) {
return null;

@@ -156,4 +156,6 @@ }

response.headers.get('Content-Type').indexOf('multipart/mixed') >= 0) {
if (response.body !== undefined) {
// For the majority of browsers with support for ReadableStream
if (response.body !== undefined &&
typeof TextDecoder !== 'undefined' &&
typeof TextEncoder !== 'undefined') {
// For the majority of browsers with support for ReadableStream and TextDecoder
var reader_1 = response.body.getReader();

@@ -160,0 +162,0 @@ var textDecoder_1 = new TextDecoder();

{
"name": "apollo-link-http",
"version": "1.6.0-alpha.3",
"version": "1.6.0-alpha.4",
"description": "HTTP transport layer for GraphQL",

@@ -5,0 +5,0 @@ "author": "Evans Hauser <evanshauser@gmail.com>",

@@ -90,3 +90,3 @@ import {

// Check that length of body matches the Content-Length
if (Buffer.byteLength(body, 'UTF-8') !== contentLength) {
if (new TextEncoder().encode(body).length !== contentLength) {
return null;

@@ -205,4 +205,8 @@ }

) {
if (response.body !== undefined) {
// For the majority of browsers with support for ReadableStream
if (
response.body !== undefined &&
typeof TextDecoder !== 'undefined' &&
typeof TextEncoder !== 'undefined'
) {
// For the majority of browsers with support for ReadableStream and TextDecoder
const reader = response.body.getReader();

@@ -209,0 +213,0 @@ const textDecoder = new TextDecoder();

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc