Huge News!Announcing our $40M Series B led by Abstract Ventures.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 0.5.4 to 0.6.1-beta.0

dist/src/bundle.umd.js

2

dist/src/httpLink.d.ts

@@ -1,2 +0,2 @@

import { ApolloLink, Operation, FetchResult, Observable } from 'apollo-link-core';
import { ApolloLink, Operation, FetchResult, Observable } from 'apollo-link';
import { ApolloFetch } from 'apollo-fetch';

@@ -3,0 +3,0 @@ export default class HttpLink extends ApolloLink {

@@ -1,2 +0,1 @@

"use strict";
var __extends = (this && this.__extends) || (function () {

@@ -20,6 +19,5 @@ var extendStatics = Object.setPrototypeOf ||

};
Object.defineProperty(exports, "__esModule", { value: true });
var apollo_link_core_1 = require("apollo-link-core");
var apollo_fetch_1 = require("apollo-fetch");
var printer_1 = require("graphql/language/printer");
import { ApolloLink, Observable } from 'apollo-link';
import { createApolloFetch } from 'apollo-fetch';
import { print } from 'graphql/language/printer';
var HttpLink = (function (_super) {

@@ -32,3 +30,3 @@ __extends(HttpLink, _super);

(fetchParams && fetchParams.fetch) ||
apollo_fetch_1.createApolloFetch({ uri: fetchParams && fetchParams.uri });
createApolloFetch({ uri: fetchParams && fetchParams.uri });
_this._fetch.use(function (request, next) {

@@ -43,4 +41,4 @@ request.options.headers = __assign({}, request.options.headers, _this.headers);

this.headers = (operation.context && operation.context.headers) || {};
var request = __assign({}, operation, { query: printer_1.print(operation.query) });
return new apollo_link_core_1.Observable(function (observer) {
var request = __assign({}, operation, { query: print(operation.query) });
return new Observable(function (observer) {
_this._fetch(request)

@@ -61,4 +59,4 @@ .then(function (data) {

return HttpLink;
}(apollo_link_core_1.ApolloLink));
exports.default = HttpLink;
}(ApolloLink));
export default HttpLink;
//# sourceMappingURL=httpLink.js.map
{
"name": "apollo-link-http",
"version": "0.5.4",
"version": "0.6.1-beta.0",
"description": "HTTP transport layer for GraphQL",

@@ -13,4 +13,6 @@ "author": "Evans Hauser <evanshauser@gmail.com>",

"license": "MIT",
"main": "./lib/httpLink.js",
"typings": "./lib/httpLink.d.ts",
"main": "./dist/src/bundle.umd.js",
"module": "./dist/src/httpLink.js",
"jsnext:main": "./dist/src/httpLink.js",
"typings": "./dist/src/httpLink.d.ts",
"repository": {

@@ -25,3 +27,3 @@ "type": "git",

"scripts": {
"pretest": "npm run build",
"pretest": "npm run build-test",
"test": "npm run test-only --",

@@ -37,9 +39,12 @@ "posttest": "npm run lint",

"lint":
"tslint --type-check -p tsconfig.json src/*.ts && tslint --type-check -p tsconfig.json tests/*.ts",
"tslint --type-check -p tsconfig.test.json src/*.ts && tslint --type-check -p tsconfig.test.json tests/*.ts",
"prebuild": "npm run clean:dist",
"build": "tsc -p .",
"postbuild": "cp -R ./dist/src/. ./lib",
"build-test": "tsc -p tsconfig.test.json",
"postbuild": "npm run bundle",
"postbuild-test": "npm run bundle",
"bundle": "rollup -c",
"watch": "tsc -w -p .",
"clean": "npm run clean:dist && npm run clean:coverage",
"clean:dist": "rimraf dist/* && rimraf lib/*",
"clean:dist": "rimraf dist/*",
"clean:coverage": "rimraf coverage/*",

@@ -50,5 +55,7 @@ "prepublishOnly": "npm run clean && npm run build"

"apollo-fetch": "^0.6.0",
"apollo-link-core": "^0.5.4",
"graphql": "^0.10.5"
},
"peerDependencies": {
"apollo-link": "^0.6.1-beta.0"
},
"devDependencies": {

@@ -60,2 +67,3 @@ "@types/chai": "4.0.4",

"@types/sinon": "2.3.3",
"apollo-link": "^0.6.1-beta.0",
"chai": "4.1.1",

@@ -70,2 +78,3 @@ "chai-as-promised": "7.1.1",

"rimraf": "2.6.1",
"rollup": "^0.45.2",
"sinon": "3.2.0",

@@ -72,0 +81,0 @@ "source-map-support": "0.4.16",

@@ -1,7 +0,2 @@

import {
ApolloLink,
Operation,
FetchResult,
Observable,
} from 'apollo-link-core';
import { ApolloLink, Operation, FetchResult, Observable } from 'apollo-link';
import { ApolloFetch, createApolloFetch } from 'apollo-fetch';

@@ -8,0 +3,0 @@

{
"extends": "../../tsconfig",
"compilerOptions": {
"target": "es5",
"lib": ["es6", "dom"],
"module": "commonjs",
"moduleResolution": "node",
"removeComments": true,
"sourceMap": true,
"declaration": true,
"rootDir": ".",
"outDir": "dist",
"noImplicitAny": false,
"noUnusedParameters": false,
"noUnusedLocals": true,
"skipLibCheck": true
"rootDir": "."
},
"include": ["src/**/*.ts", "tests/**/*.ts"]
"include": ["src/**/*.ts"]
}

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