@qwick/apollo
Advanced tools
Comparing version 2.0.0 to 3.0.0
{ | ||
"name": "@qwick/apollo", | ||
"sources": [ | ||
{ | ||
"dir": "src" | ||
}, | ||
{ | ||
"dir": "examples", | ||
"type": "dev" | ||
} | ||
], | ||
"bs-dependencies": [ | ||
"reason-react", | ||
"bs-decode" | ||
"@qwick/future", | ||
"bs-decode", | ||
"reason-react" | ||
], | ||
@@ -19,2 +10,9 @@ "bsc-flags": [ | ||
], | ||
"name": "@qwick/apollo", | ||
"package-specs": [ | ||
{ | ||
"in-source": true, | ||
"module": "es6" | ||
} | ||
], | ||
"reason": { | ||
@@ -24,6 +22,9 @@ "react-jsx": 2 | ||
"refmt": 3, | ||
"package-specs": [ | ||
"sources": [ | ||
{ | ||
"module": "es6", | ||
"in-source": true | ||
"dir": "src" | ||
}, | ||
{ | ||
"dir": "examples", | ||
"type": "dev" | ||
} | ||
@@ -30,0 +31,0 @@ ], |
@@ -10,3 +10,3 @@ { | ||
"repository": "qwick/apollo", | ||
"version": "2.0.0", | ||
"version": "3.0.0", | ||
"license": "MIT", | ||
@@ -48,3 +48,6 @@ "scripts": { | ||
"reason-react": "^0.5.3" | ||
}, | ||
"dependencies": { | ||
"@qwick/future": "^2.3.2-qwick.2" | ||
} | ||
} |
@@ -5,6 +5,7 @@ // Generated by BUCKLESCRIPT VERSION 4.0.18, PLEASE EDIT WITH CARE | ||
import * as Curry from "bs-platform/lib/es6/curry.js"; | ||
import * as Future from "@qwick/future/src/Future.bs.js"; | ||
import * as Js_dict from "bs-platform/lib/es6/js_dict.js"; | ||
import * as Js_json from "bs-platform/lib/es6/js_json.js"; | ||
import * as FutureJs from "@qwick/future/src/FutureJs.bs.js"; | ||
import * as Belt_Array from "bs-platform/lib/es6/belt_Array.js"; | ||
import * as Belt_Option from "bs-platform/lib/es6/belt_Option.js"; | ||
import * as Caml_option from "bs-platform/lib/es6/caml_option.js"; | ||
@@ -244,4 +245,14 @@ import * as ReasonReact from "reason-react/src/ReasonReact.js"; | ||
var query$1 = function (variables, client) { | ||
return query(graphqlQueryAST, Belt_Option.map(variables, Config[/* variables */1]), client).then((function (response) { | ||
return Promise.resolve(queryResponseToVariant(Config[/* Response */2][/* decode */0], response)); | ||
return Future.map(FutureJs.fromPromise(query(graphqlQueryAST, Caml_option.some(Curry._1(Config[/* variables */1], variables)), client), (function (param) { | ||
return /* Error */Block.__(0, [/* record */[ | ||
/* message */"An unknown error occured while making an Apollo request", | ||
/* graphqlErrors */undefined, | ||
/* networkError */undefined | ||
]]); | ||
})), (function (result) { | ||
if (result.tag) { | ||
return result[0]; | ||
} else { | ||
return queryResponseToVariant(Config[/* Response */2][/* decode */0], result[0]); | ||
} | ||
})); | ||
@@ -258,4 +269,14 @@ }; | ||
var query$1 = function (variables, client) { | ||
return query(graphqlQueryAST, Belt_Option.map(variables, Config[/* variables */1]), client).then((function (response) { | ||
return Promise.resolve(queryResponseToVariant(Config[/* Response */2][/* decode */0], response)); | ||
return Future.map(FutureJs.fromPromise(query(graphqlQueryAST, Caml_option.some(Curry._1(Config[/* variables */1], variables)), client), (function (param) { | ||
return /* Error */Block.__(0, [/* record */[ | ||
/* message */"An unknown error occured while making an Apollo request", | ||
/* graphqlErrors */undefined, | ||
/* networkError */undefined | ||
]]); | ||
})), (function (result) { | ||
if (result.tag) { | ||
return result[0]; | ||
} else { | ||
return queryResponseToVariant(Config[/* Response */2][/* decode */0], result[0]); | ||
} | ||
})); | ||
@@ -330,4 +351,14 @@ }; | ||
var mutate$1 = function (variables, client) { | ||
return mutate(graphqlMutationAST, Belt_Option.map(variables, Config[/* variables */1]), client).then((function (response) { | ||
return Promise.resolve(mutationResponseToVariant(Config[/* Response */2][/* decode */0], response)); | ||
return Future.map(FutureJs.fromPromise(mutate(graphqlMutationAST, Caml_option.some(Curry._1(Config[/* variables */1], variables)), client), (function (param) { | ||
return /* Error */Block.__(0, [/* record */[ | ||
/* message */"An unknown error occured while making an Apollo request", | ||
/* graphqlErrors */undefined, | ||
/* networkError */undefined | ||
]]); | ||
})), (function (result) { | ||
if (result.tag) { | ||
return result[0]; | ||
} else { | ||
return mutationResponseToVariant(Config[/* Response */2][/* decode */0], result[0]); | ||
} | ||
})); | ||
@@ -344,4 +375,14 @@ }; | ||
var mutate$1 = function (variables, client) { | ||
return mutate(graphqlMutationAST, Belt_Option.map(variables, Config[/* variables */1]), client).then((function (response) { | ||
return Promise.resolve(mutationResponseToVariant(Config[/* Response */2][/* decode */0], response)); | ||
return Future.map(FutureJs.fromPromise(mutate(graphqlMutationAST, Caml_option.some(Curry._1(Config[/* variables */1], variables)), client), (function (param) { | ||
return /* Error */Block.__(0, [/* record */[ | ||
/* message */"An unknown error occured while making an Apollo request", | ||
/* graphqlErrors */undefined, | ||
/* networkError */undefined | ||
]]); | ||
})), (function (result) { | ||
if (result.tag) { | ||
return result[0]; | ||
} else { | ||
return mutationResponseToVariant(Config[/* Response */2][/* decode */0], result[0]); | ||
} | ||
})); | ||
@@ -348,0 +389,0 @@ }; |
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
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
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
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
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
Sorry, the diff of this file is not supported yet
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
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
676090
661
11
+ Added@qwick/future@^2.3.2-qwick.2
+ Added@qwick/future@2.3.2-qwick.2(transitive)