Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@lidcore/bs-express

Package Overview
Dependencies
Maintainers
3
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lidcore/bs-express - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

lib/bs/.bsbuild

1

bsconfig.json

@@ -14,3 +14,4 @@ {

"bs-dependencies": [
"@lidcore/bs-node"
]
}

9

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc