Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

apollo-upload-client

Package Overview
Dependencies
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apollo-upload-client - npm Package Compare versions

Comparing version 10.0.1 to 11.0.0

16

changelog.md
# apollo-upload-client changelog
## 11.0.0
### Major
- Updated Node.js support from v6+ to v8.5+.
### Minor
- Support [Apollo Engine client awareness](https://apollographql.com/docs/platform/client-awareness), via [#143](https://github.com/jaydenseric/apollo-upload-client/pull/143).
### Patch
- Updated dependencies.
- Ensure Babel helpers are imported and not inlined, using the [`@babel/runtime`](https://npm.im/@babel/runtime) dependency and [`@babel/plugin-transform-runtime`](https://npm.im/@babel/plugin-transform-runtime) dev dependency.
- Nicer Browserslist syntax for supported Node.js versions.
## 10.0.1

@@ -4,0 +20,0 @@

25

lib/index.js
'use strict'
var _interopRequireDefault = require('@babel/runtime/helpers/interopRequireDefault')
var _extends2 = _interopRequireDefault(
require('@babel/runtime/helpers/extends')
)
var _require = require('apollo-link'),

@@ -43,2 +49,8 @@ ApolloLink = _require.ApolloLink,

var context = operation.getContext()
var _context$clientAwaren = context.clientAwareness
_context$clientAwaren =
_context$clientAwaren === void 0 ? {} : _context$clientAwaren
var name = _context$clientAwaren.name,
version = _context$clientAwaren.version,
headers = context.headers
var contextConfig = {

@@ -48,3 +60,14 @@ http: context.http,

credentials: context.credentials,
headers: context.headers
headers: (0, _extends2.default)(
{},
name && {
'apollographql-client-name': name
},
{},
version && {
'apollographql-client-version': version
},
{},
headers
)
}

@@ -51,0 +74,0 @@

44

package.json
{
"name": "apollo-upload-client",
"version": "10.0.1",
"version": "11.0.0",
"description": "A terminating Apollo Link for Apollo Client that allows FileList, File, Blob or ReactNativeFile instances within query or mutation variables and sends GraphQL multipart requests.",

@@ -32,28 +32,30 @@ "license": "MIT",

"engines": {
"node": ">=6"
"node": ">=8.5"
},
"browserslist": "> 0.5%, not dead, node 6",
"browserslist": "> 0.5%, not dead, node >= 8.5",
"dependencies": {
"apollo-link": "^1.2.11",
"apollo-link-http-common": "^0.2.13",
"@babel/runtime": "^7.5.4",
"apollo-link": "^1.2.12",
"apollo-link-http-common": "^0.2.14",
"extract-files": "^5.0.1"
},
"devDependencies": {
"@babel/cli": "^7.4.4",
"@babel/core": "^7.4.4",
"@babel/preset-env": "^7.4.4",
"babel-eslint": "^10.0.1",
"eslint": "^5.16.0",
"eslint-config-env": "^4.0.0",
"eslint-config-prettier": "^4.2.0",
"eslint-plugin-import": "^2.17.2",
"@babel/cli": "^7.5.0",
"@babel/core": "^7.5.4",
"@babel/plugin-transform-runtime": "^7.5.0",
"@babel/preset-env": "^7.5.4",
"babel-eslint": "^10.0.2",
"eslint": "^6.0.1",
"eslint-config-env": "^6.0.0",
"eslint-config-prettier": "^6.0.0",
"eslint-plugin-import": "^2.18.0",
"eslint-plugin-import-order-alphabetical": "^0.0.2",
"eslint-plugin-node": "^8.0.1",
"eslint-plugin-prettier": "^3.0.1",
"graphql": "^14.2.1",
"husky": "^2.1.0",
"jsdoc-md": "^2.1.0",
"lint-staged": "^8.1.5",
"prettier": "^1.17.0",
"size-limit": "^1.3.0"
"eslint-plugin-node": "^9.1.0",
"eslint-plugin-prettier": "^3.1.0",
"graphql": "^14.4.2",
"husky": "^3.0.0",
"jsdoc-md": "^3.0.0",
"lint-staged": "^9.1.0",
"prettier": "^1.18.2",
"size-limit": "^1.3.7"
},

@@ -60,0 +62,0 @@ "scripts": {

@@ -120,3 +120,3 @@ ![Apollo upload logo](https://cdn.jsdelivr.net/gh/jaydenseric/apollo-upload-client@1.0.0/apollo-upload-logo.svg)

- Node.js v6+
- Node.js v8.5+
- Browsers [`> 0.5%, not dead`](https://browserl.ist/?q=%3E+0.5%25%2C+not+dead)

@@ -123,0 +123,0 @@ - React Native

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