simple-protocol-http
Advanced tools
Comparing version 0.6.0 to 0.8.0
@@ -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, |
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
48101
1
16
1437
- Removedramda@^0.22.1
- Removedsafe-errors@0.5.0
- Removedbluebird@3.7.2(transitive)
- Removedramda@0.22.1(transitive)
- Removedsafe-errors@0.5.0(transitive)