bs-hyperquest
Advanced tools
Comparing version 0.4.0 to 0.5.0
@@ -26,3 +26,3 @@ { | ||
"suffix": ".bs.js", | ||
"version": "0.4.0" | ||
"version": "0.5.0" | ||
} |
{ | ||
"name": "bs-hyperquest", | ||
"version": "0.4.0", | ||
"version": "0.5.0", | ||
"description": "BuckleScript bindings for Substack's hyperquest (http-client) library.", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -5,18 +5,19 @@ // Generated by BUCKLESCRIPT VERSION 4.0.2, PLEASE EDIT WITH CARE | ||
var Js_primitive = require("bs-platform/lib/js/js_primitive.js"); | ||
var Hyperquest_method = require("./Hyperquest_method.bs.js"); | ||
function make(prim, prim$1, prim$2, prim$3, prim$4, _) { | ||
function make(method_, headers, agent, auth, timeout, _) { | ||
var tmp = { | ||
method: prim | ||
method: Hyperquest_method.toString(method_) | ||
}; | ||
if (prim$1 !== undefined) { | ||
tmp.headers = Js_primitive.valFromOption(prim$1); | ||
if (headers !== undefined) { | ||
tmp.headers = Js_primitive.valFromOption(headers); | ||
} | ||
if (prim$2 !== undefined) { | ||
tmp.agent = Js_primitive.valFromOption(prim$2); | ||
if (agent !== undefined) { | ||
tmp.agent = Js_primitive.valFromOption(agent); | ||
} | ||
if (prim$3 !== undefined) { | ||
tmp.auth = Js_primitive.valFromOption(prim$3); | ||
if (auth !== undefined) { | ||
tmp.auth = Js_primitive.valFromOption(auth); | ||
} | ||
if (prim$4 !== undefined) { | ||
tmp.timeout = Js_primitive.valFromOption(prim$4); | ||
if (timeout !== undefined) { | ||
tmp.timeout = Js_primitive.valFromOption(timeout); | ||
} | ||
@@ -26,3 +27,6 @@ return tmp; | ||
var Method = 0; | ||
exports.Method = Method; | ||
exports.make = make; | ||
/* No side effect */ |
@@ -7,2 +7,3 @@ // Generated by BUCKLESCRIPT VERSION 4.0.2, PLEASE EDIT WITH CARE | ||
var Hyperquest_future = require("./Hyperquest_future.bs.js"); | ||
var Hyperquest_method = require("./Hyperquest_method.bs.js"); | ||
var Hyperquest_options = require("./Hyperquest_options.bs.js"); | ||
@@ -202,4 +203,10 @@ var Hyperquest_incoming_message = require("./Hyperquest_incoming_message.bs.js"); | ||
var Options = /* Hyperquest_options */[Hyperquest_options.make]; | ||
var Method = [ | ||
Hyperquest_method.toString, | ||
Hyperquest_method.fromString, | ||
Hyperquest_method.fromStringUnsafe | ||
]; | ||
var Options = [Hyperquest_options.make]; | ||
function make$1(prim, prim$1, prim$2, _) { | ||
@@ -252,2 +259,3 @@ return Hyperquest(prim, prim$1 !== undefined ? Js_primitive.valFromOption(prim$1) : undefined, prim$2 !== undefined ? Js_primitive.valFromOption(prim$2) : undefined); | ||
exports.Msg = Msg; | ||
exports.Method = Method; | ||
exports.Options = Options; | ||
@@ -254,0 +262,0 @@ exports.make = make$1; |
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
52695
854