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

apollo-fetch

Package Overview
Dependencies
Maintainers
3
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apollo-fetch - npm Package Compare versions

Comparing version 0.6.0 to 0.7.0

changelog.md

2

dist/apollo-fetch.d.ts
import { FetchOptions, ApolloFetch, GraphQLRequest } from './types';
import 'isomorphic-fetch';
import 'cross-fetch/polyfill';
export declare function constructDefaultOptions(requestOrRequests: GraphQLRequest | GraphQLRequest[], options: RequestInit): RequestInit;
export declare function createApolloFetch(params?: FetchOptions): ApolloFetch;

@@ -9,3 +9,3 @@ var __assign = (this && this.__assign) || Object.assign || function(t) {

};
import 'isomorphic-fetch';
import 'cross-fetch/polyfill';
function buildWareStack(funcs, modifiedObject, resolve) {

@@ -12,0 +12,0 @@ var _this = this;

(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('isomorphic-fetch')) :
typeof define === 'function' && define.amd ? define(['exports', 'isomorphic-fetch'], factory) :
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('cross-fetch/polyfill')) :
typeof define === 'function' && define.amd ? define(['exports', 'cross-fetch/polyfill'], factory) :
(factory((global.apolloFetch = {})));

@@ -5,0 +5,0 @@ }(this, (function (exports) { 'use strict';

{
"name": "apollo-fetch",
"version": "0.6.0",
"version": "0.7.0",
"description": "Lightweight implementation of fetch for GraphQL requests",

@@ -33,7 +33,7 @@ "author": "Evans Hauser <evanshauser@gmail.com>",

"coverage": "nyc --reporter=lcov npm run coverage:test",
"lint": "tslint --type-check -p tsconfig.test.json src/*.ts && tslint --type-check -p tsconfig.test.json tests/*.ts",
"lint": "tslint -p tsconfig.test.json src/*.ts && tslint -p tsconfig.test.json tests/*.ts",
"prebuild": "npm run clean:dist",
"prebuild-test": "npm run clean:dist",
"prebuild-test": "npm run clean:test",
"build": "tsc",
"build-test": "tsc -p tsconfig.test.json",
"build-test": "npm run build && tsc -p tsconfig.test.json",
"postbuild": "npm run bundle",

@@ -44,2 +44,3 @@ "bundle": "rollup -c",

"clean:dist": "rimraf dist/*",
"clean:test": "rimraf dist/src && rimraf dist/tests ",
"clean:coverage": "rimraf coverage/*",

@@ -50,27 +51,29 @@ "prepublish": "npm run clean && npm run build",

"dependencies": {
"isomorphic-fetch": "^2.2.1"
"cross-fetch": "^1.0.0"
},
"devDependencies": {
"@types/chai": "^4.0.0",
"@types/chai-as-promised": "0.0.31",
"@types/mocha": "^2.2.31",
"chai": "^4.0.2",
"chai-as-promised": "^7.0.0",
"fetch-mock": "^5.11.0",
"graphql": "^0.10.3",
"graphql-tag": "^2.4.2",
"lerna": "^2.0.0",
"lodash": "^4.17.4",
"mocha": "^3.2.0",
"nyc": "^11.0.3",
"rimraf": "^2.5.4",
"rollup": "^0.45.2",
"sinon": "^2.3.4",
"source-map-support": "^0.4.5",
"tslint": "^5.0.0",
"typescript": "^2.2.1"
"@types/chai": "4.0.8",
"@types/chai-as-promised": "7.1.0",
"@types/mocha": "2.2.44",
"chai": "4.1.2",
"chai-as-promised": "7.1.1",
"fetch-mock": "5.13.1",
"graphql": "0.11.7",
"graphql-tag": "2.5.0",
"lerna": "2.5.1",
"lodash": "4.17.4",
"mocha": "4.0.1",
"nyc": "11.3.0",
"rimraf": "2.6.2",
"rollup": "0.52.1",
"sinon": "4.1.2",
"source-map-support": "0.5.0",
"tslint": "5.8.0",
"typescript": "2.6.2"
},
"nyc": {
"exclude": ["tests"]
"exclude": [
"tests"
]
}
}

@@ -17,3 +17,3 @@ import {

} from './types';
import 'isomorphic-fetch';
import 'cross-fetch/polyfill';

@@ -20,0 +20,0 @@ type WareStack =

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