Skip to content

Commit c535e8d

Browse files
committed
Bugfix
1 parent 0c267f3 commit c535e8d

6 files changed

+7
-7
lines changed

dist/vuex-orm-graphql.es5.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/vuex-orm-graphql.es5.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/vuex-orm-graphql.umd.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/vuex-orm-graphql.umd.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vuex-orm/plugin-graphql",
3-
"version": "1.0.0-rc.30",
3+
"version": "1.0.0-rc.31",
44
"description": "Vuex-ORM persistence plugin to sync the store against a GraphQL API.",
55
"main": "dist/vuex-orm-graphql.umd.js",
66
"module": "dist/vuex-orm-graphql.es5.js",

src/graphql/apollo.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ export default class Apollo {
107107
private static getHeaders() {
108108
const context = Context.getInstance();
109109

110-
let headers: Object | Function = context.options.headers ? context.options.headers : {};
110+
let headers: any = context.options.headers ? context.options.headers : {};
111111

112-
if (headers instanceof Function) {
112+
if (typeof headers === "function") {
113113
headers = headers(context);
114114
}
115115

0 commit comments

Comments
 (0)