apollo-link-http
Advanced tools
Comparing version 0.5.2 to 0.5.4
@@ -0,1 +1,2 @@ | ||
"use strict"; | ||
var __extends = (this && this.__extends) || (function () { | ||
@@ -19,5 +20,6 @@ var extendStatics = Object.setPrototypeOf || | ||
}; | ||
import { ApolloLink, Observable, } from 'apollo-link-core'; | ||
import { createApolloFetch } from 'apollo-fetch'; | ||
import { print } from 'graphql/language/printer'; | ||
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"); | ||
var HttpLink = (function (_super) { | ||
@@ -30,3 +32,3 @@ __extends(HttpLink, _super); | ||
(fetchParams && fetchParams.fetch) || | ||
createApolloFetch({ uri: fetchParams && fetchParams.uri }); | ||
apollo_fetch_1.createApolloFetch({ uri: fetchParams && fetchParams.uri }); | ||
_this._fetch.use(function (request, next) { | ||
@@ -41,4 +43,4 @@ request.options.headers = __assign({}, request.options.headers, _this.headers); | ||
this.headers = (operation.context && operation.context.headers) || {}; | ||
var request = __assign({}, operation, { query: print(operation.query) }); | ||
return new Observable(function (observer) { | ||
var request = __assign({}, operation, { query: printer_1.print(operation.query) }); | ||
return new apollo_link_core_1.Observable(function (observer) { | ||
_this._fetch(request) | ||
@@ -59,4 +61,4 @@ .then(function (data) { | ||
return HttpLink; | ||
}(ApolloLink)); | ||
export default HttpLink; | ||
}(apollo_link_core_1.ApolloLink)); | ||
exports.default = HttpLink; | ||
//# sourceMappingURL=httpLink.js.map |
{ | ||
"name": "apollo-link-http", | ||
"version": "0.5.2", | ||
"version": "0.5.4", | ||
"description": "HTTP transport layer for GraphQL", | ||
@@ -13,6 +13,4 @@ "author": "Evans Hauser <evanshauser@gmail.com>", | ||
"license": "MIT", | ||
"main": "./dist/src/bundle.umd.js", | ||
"module": "./dist/src/httpLink.js", | ||
"jsnext:main": "./dist/src/httpLink.js", | ||
"typings": "./dist/src/httpLink.d.ts", | ||
"main": "./lib/httpLink.js", | ||
"typings": "./lib/httpLink.d.ts", | ||
"repository": { | ||
@@ -27,3 +25,3 @@ "type": "git", | ||
"scripts": { | ||
"pretest": "npm run build-test", | ||
"pretest": "npm run build", | ||
"test": "npm run test-only --", | ||
@@ -39,12 +37,9 @@ "posttest": "npm run lint", | ||
"lint": | ||
"tslint --type-check -p tsconfig.test.json src/*.ts && tslint --type-check -p tsconfig.test.json tests/*.ts", | ||
"tslint --type-check -p tsconfig.json src/*.ts && tslint --type-check -p tsconfig.json tests/*.ts", | ||
"prebuild": "npm run clean:dist", | ||
"build": "tsc -p .", | ||
"build-test": "tsc -p tsconfig.test.json", | ||
"postbuild": "npm run bundle", | ||
"postbuild-test": "npm run bundle", | ||
"bundle": "rollup -c", | ||
"postbuild": "cp -R ./dist/src/. ./lib", | ||
"watch": "tsc -w -p .", | ||
"clean": "npm run clean:dist && npm run clean:coverage", | ||
"clean:dist": "rimraf dist/*", | ||
"clean:dist": "rimraf dist/* && rimraf lib/*", | ||
"clean:coverage": "rimraf coverage/*", | ||
@@ -55,3 +50,3 @@ "prepublishOnly": "npm run clean && npm run build" | ||
"apollo-fetch": "^0.6.0", | ||
"apollo-link-core": "^0.5.2", | ||
"apollo-link-core": "^0.5.4", | ||
"graphql": "^0.10.5" | ||
@@ -74,3 +69,2 @@ }, | ||
"rimraf": "2.6.1", | ||
"rollup": "^0.45.2", | ||
"sinon": "3.2.0", | ||
@@ -77,0 +71,0 @@ "source-map-support": "0.4.16", |
{ | ||
"extends": "../../tsconfig", | ||
"compilerOptions": { | ||
"target": "es5", | ||
"lib": ["es6", "dom"], | ||
"module": "commonjs", | ||
"moduleResolution": "node", | ||
"removeComments": true, | ||
"sourceMap": true, | ||
"declaration": true, | ||
"rootDir": ".", | ||
"outDir": "dist", | ||
"rootDir": "." | ||
"noImplicitAny": false, | ||
"noUnusedParameters": false, | ||
"noUnusedLocals": true, | ||
"skipLibCheck": true | ||
}, | ||
"include": ["src/**/*.ts"] | ||
"include": ["src/**/*.ts", "tests/**/*.ts"] | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
29241
18
16
494
1
Updatedapollo-link-core@^0.5.4