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

simple-protocol-http

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-protocol-http - npm Package Compare versions

Comparing version 0.6.0 to 0.8.0

lib/util.js

4

lib/simple.js

@@ -5,3 +5,3 @@ 'use strict';

var _require = require('ramda');
var _require = require('../vendor/ramda');

@@ -12,3 +12,3 @@ var curry = _require.curry;

var _require2 = require('safe-errors');
var _require2 = require('./util');

@@ -15,0 +15,0 @@ var safep = _require2.safep;

'use strict';
var express = require('express');
var _require = require('safe-errors');
var safecb = _require.safecb;
var bodyParser = require('body-parser');

@@ -52,3 +47,10 @@

} else {
stopServer = safecb(server.close, server);
stopServer = function stopServer() {
return new Promise(function (resolve, reject) {
server.close(function (err) {
if (err) return reject(err);
resolve();
});
});
};
resolve({

@@ -55,0 +57,0 @@ stopServer: stopServer,

{
"name": "simple-protocol-http",
"version": "0.6.0",
"version": "0.8.0",
"description": "",

@@ -15,8 +15,12 @@ "main": "index.js",

"dependencies": {
"isomorphic-fetch": "^2.2.1",
"ramda": "^0.22.1",
"safe-errors": "0.5.0"
"isomorphic-fetch": "^2.2.1"
},
"devDependencies": {
"mocha": "^3.0.2"
"babel-core": "^6.14.0",
"babel-preset-es2015": "^6.14.0",
"body-parser": "^1.15.2",
"co": "^4.6.0",
"express": "^4.14.0",
"husky": "^0.11.7",
"standard": "^8.0.0"
},

@@ -32,12 +36,3 @@ "standard": {

]
},
"devDependencies": {
"babel-core": "^6.14.0",
"babel-preset-es2015": "^6.14.0",
"body-parser": "^1.15.2",
"co": "^4.6.0",
"express": "^4.14.0",
"husky": "^0.11.7",
"standard": "^8.0.0"
}
}
const fetch = require('isomorphic-fetch')
const { curry, merge, keys } = require('ramda')
const { safep } = require('safe-errors')
const { curry, merge, keys } = require('../vendor/ramda')
const { safep } = require('./util')

@@ -5,0 +5,0 @@ const defaultHeaders = {

const express = require('express')
const { safecb } = require('safe-errors')
const bodyParser = require('body-parser')

@@ -44,3 +43,10 @@

} else {
stopServer = safecb(server.close, server)
stopServer = () => {
return new Promise((resolve, reject) => {
server.close((err) => {
if (err) return reject(err)
resolve()
})
})
}
resolve({

@@ -47,0 +53,0 @@ stopServer,

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