apollo-link-ethereum
Advanced tools
Comparing version 0.0.13 to 0.0.14
@@ -225,4 +225,8 @@ (function (global, factory) { | ||
contract = fieldName; | ||
contractDirectives = info.directives.contract; | ||
result = {}; | ||
contractDirectives = info.directives.contract || {}; | ||
var __typename = contractDirectives.type; | ||
var id = contractDirectives.id; | ||
result = { | ||
__typename: __typename, id: id | ||
}; | ||
} | ||
@@ -316,3 +320,2 @@ else if (isBlock || contract) { | ||
return new apolloLink.Observable(function (observer) { | ||
// console.log('Query operation name: ', operation.operationName) | ||
// Works around race condition between completion and graphql execution | ||
@@ -319,0 +322,0 @@ // finishing. If complete is called during the graphql call, we will |
@@ -46,3 +46,2 @@ var __extends = (this && this.__extends) || (function () { | ||
return new Observable(function (observer) { | ||
// console.log('Query operation name: ', operation.operationName) | ||
// Works around race condition between completion and graphql execution | ||
@@ -49,0 +48,0 @@ // finishing. If complete is called during the graphql call, we will |
@@ -23,4 +23,8 @@ import { Observable } from 'apollo-link'; | ||
contract = fieldName; | ||
contractDirectives = info.directives.contract; | ||
result = {}; | ||
contractDirectives = info.directives.contract || {}; | ||
var __typename = contractDirectives.type; | ||
var id = contractDirectives.id; | ||
result = { | ||
__typename: __typename, id: id | ||
}; | ||
} | ||
@@ -27,0 +31,0 @@ else if (isBlock || contract) { |
{ | ||
"name": "apollo-link-ethereum", | ||
"version": "0.0.13", | ||
"version": "0.0.14", | ||
"main": "./dist/bundle.umd.js", | ||
@@ -34,3 +34,3 @@ "modules": "./lib/index.js", | ||
}, | ||
"gitHead": "30e4c337a169f8060cf77703666802bdd1ce5ec5" | ||
"gitHead": "6ce43feec43470b0b5834603abbef1a6fdf1bf48" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
500314
1127