apollo-link-context
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -5,3 +5,9 @@ # Change log | ||
### 1.0.1 | ||
- moved to better rollup build | ||
### 1.0.0 | ||
- bump to major to signal API stability | ||
### 0.1.0 | ||
- initial release |
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('apollo-link')) : | ||
typeof define === 'function' && define.amd ? define(['exports', 'apollo-link'], factory) : | ||
(factory((global.errorLink = {}),global.apolloLink)); | ||
(factory((global.apolloLink = global.apolloLink || {}, global.apolloLink.context = {}),global.apolloLink.core)); | ||
}(this, (function (exports,apolloLink) { 'use strict'; | ||
@@ -6,0 +6,0 @@ |
{ | ||
"name": "apollo-link-context", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "An easy way to set and cache context changes for Apollo Link", | ||
@@ -37,8 +37,8 @@ "author": "James Baxley <james@meteor.com>", | ||
"peerDependencies": { | ||
"apollo-link": "^1.0.0" | ||
"apollo-link": "^1.0.3" | ||
}, | ||
"devDependencies": { | ||
"@types/graphql": "0.11.5", | ||
"@types/jest": "21.1.4", | ||
"apollo-link": "^1.0.0", | ||
"@types/graphql": "0.11.6", | ||
"@types/jest": "21.1.6", | ||
"apollo-link": "^1.0.3", | ||
"browserify": "14.5.0", | ||
@@ -49,7 +49,7 @@ "graphql": "0.11.7", | ||
"rimraf": "2.6.1", | ||
"rollup": "0.45.2", | ||
"ts-jest": "21.1.3", | ||
"rollup": "0.51.5", | ||
"ts-jest": "21.2.2", | ||
"tslint": "5.8.0", | ||
"typescript": "2.5.1", | ||
"uglify-js": "3.1.5" | ||
"typescript": "2.6.1", | ||
"uglify-js": "3.1.9" | ||
}, | ||
@@ -56,0 +56,0 @@ "jest": { |
@@ -24,3 +24,3 @@ --- | ||
const asyncMiddleware = setContext((request) => new Promise(success, fail) => { | ||
const asyncMiddleware = setContext((request) => new Promise((success, fail) => { | ||
// do some async lookup here | ||
@@ -30,3 +30,3 @@ setTimeout(() => { | ||
}, 10); | ||
}); | ||
})); | ||
@@ -33,0 +33,0 @@ ``` |
@@ -1,17 +0,3 @@ | ||
export default { | ||
entry: 'lib/index.js', | ||
dest: 'lib/bundle.umd.js', | ||
format: 'umd', | ||
sourceMap: true, | ||
moduleName: 'errorLink', | ||
exports: 'named', | ||
onwarn, | ||
}; | ||
import build from '../../rollup.config'; | ||
function onwarn(message) { | ||
const suppressed = ['UNRESOLVED_IMPORT', 'THIS_IS_UNDEFINED']; | ||
if (!suppressed.find(code => message.code === code)) { | ||
return console.warn(message.message); | ||
} | ||
} | ||
export default build('context'); |
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
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
17860
288