@lidcore/bs-express
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -14,3 +14,4 @@ { | ||
"bs-dependencies": [ | ||
"@lidcore/bs-node" | ||
] | ||
} |
{ | ||
"name": "@lidcore/bs-express", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "BuckleScript bindings for express.", | ||
@@ -29,10 +29,7 @@ "main": "lib/js/src/express.js", | ||
"dependencies": { | ||
"cors": "^2.8.4", | ||
"express": "^4.16.3" | ||
"@lidcore/bs-node": "^1.3.1" | ||
}, | ||
"author": "Lidcore IT <it@lidcore.com>", | ||
"license": "BSD-2-Clause", | ||
"homepage": "https://github.com/lidcore/bs-express", | ||
"dependencies": { | ||
} | ||
"homepage": "https://github.com/lidcore/bs-express" | ||
} |
@@ -1,2 +0,2 @@ | ||
// Generated by BUCKLESCRIPT VERSION 3.0.0, PLEASE EDIT WITH CARE | ||
// Generated by BUCKLESCRIPT VERSION 4.0.6, PLEASE EDIT WITH CARE | ||
'use strict'; | ||
@@ -6,5 +6,6 @@ | ||
var Express = require("express"); | ||
var Js_null_undefined = require("bs-platform/lib/js/js_null_undefined.js"); | ||
function init($staropt$star, _) { | ||
var useCors = $staropt$star ? $staropt$star[0] : true; | ||
var useCors = $staropt$star !== undefined ? $staropt$star : true; | ||
var app = Express(); | ||
@@ -17,2 +18,7 @@ if (useCors) { | ||
function writeHead(resp, headers, statusMessage, code) { | ||
resp.writeHead(code, Js_null_undefined.fromOption(statusMessage), Js_null_undefined.fromOption(headers)); | ||
return /* () */0; | ||
} | ||
function body(prim) { | ||
@@ -47,2 +53,7 @@ return prim.body; | ||
function pipe(prim, prim$1) { | ||
prim.pipe(prim$1); | ||
return /* () */0; | ||
} | ||
function end_(prim) { | ||
@@ -101,2 +112,4 @@ prim.end(); | ||
exports.json = json; | ||
exports.writeHead = writeHead; | ||
exports.pipe = pipe; | ||
exports.end_ = end_; | ||
@@ -103,0 +116,0 @@ exports.init = init; |
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
10520
15
117
2
+ Added@lidcore/bs-node@^1.3.1
+ Added@lidcore/bs-node@1.3.7(transitive)
+ Addedbs-async-monad@1.2.6(transitive)