seneca-transport
Advanced tools
Comparing version 3.0.0 to 4.0.1
@@ -13,3 +13,3 @@ /* Copyright (c) 2013-2015 Richard Rodger, MIT License */ | ||
var Jsonic = require('jsonic') | ||
var Wreck = require('wreck') | ||
var Wreck = require('@hapi/wreck') | ||
@@ -172,3 +172,13 @@ // Declare internals | ||
Wreck.post(url, requestOptions, function(err, res, payload) { | ||
var postP = Wreck.post(url, requestOptions) | ||
postP | ||
.then(function(out) { | ||
handle_post(null, out.res, out.payload) | ||
}) | ||
.catch(function(err) { | ||
handle_post(err) | ||
}) | ||
function handle_post(err, res, payload) { | ||
var response = { | ||
@@ -200,3 +210,3 @@ kind: 'res', | ||
transportUtil.handle_response(seneca, response, clientOptions) | ||
}) | ||
} | ||
} | ||
@@ -203,0 +213,0 @@ |
{ | ||
"name": "seneca-transport", | ||
"version": "3.0.0", | ||
"version": "4.0.1", | ||
"description": "Seneca transport", | ||
@@ -19,3 +19,3 @@ "main": "transport.js", | ||
"scripts": { | ||
"test": "lab -v -P test -t 70 -I URL,URLSearchParams,BigUint64Array,BigInt64Array,BigInt,SharedArrayBuffer,Atomics", | ||
"test": "lab -v -P test -t 70", | ||
"coveralls": "lab -s -P test -r lcov -I URL,URLSearchParams | coveralls", | ||
@@ -26,3 +26,3 @@ "coverage": "lab -v -P test -t 70 -r html -I URL,URLSearchParams > coverage.html", | ||
"repo-tag": "REPO_VERSION=`node -e \"console.log(require('./package').version)\"` && echo TAG: v$REPO_VERSION && git commit -a -m v$REPO_VERSION && git push && git tag v$REPO_VERSION && git push --tags;", | ||
"repo-publish": "npm run prettier && npm test && npm run repo-tag && npm publish --access public" | ||
"repo-publish": "npm run prettier && npm test && npm run repo-tag --registry http://registry.npmjs.org && npm publish --access public --registry http://registry.npmjs.org" | ||
}, | ||
@@ -50,25 +50,26 @@ "contributors": [ | ||
"dependencies": { | ||
"@hapi/wreck": "^15.0.2", | ||
"eraro": "^1.1.0", | ||
"gex": "^0.3.0", | ||
"jsonic": "^0.3.1", | ||
"lodash": "^4.17.11", | ||
"lru-cache": "^4.1.5", | ||
"lodash": "^4.17.15", | ||
"lru-cache": "^5.1.1", | ||
"ndjson": "^1.5.0", | ||
"nid": "^0.3.2", | ||
"patrun": "^1.0.0", | ||
"qs": "^6.5.2", | ||
"reconnect-core": "^1.3.0", | ||
"wreck": "^12.5.1" | ||
"qs": "^6.8.0", | ||
"reconnect-core": "^1.3.0" | ||
}, | ||
"devDependencies": { | ||
"async": "^2.6.2", | ||
"@hapi/code": "^6.0.0", | ||
"@hapi/joi": "^15.1.1", | ||
"@hapi/lab": "^20.2.2", | ||
"async": "^3.1.0", | ||
"bench": "^0.3.6", | ||
"code": "^4.1.0", | ||
"coveralls": "^3.0.2", | ||
"lab": "^14.3.4", | ||
"prettier": "^1.16.4", | ||
"seneca": "senecajs/seneca", | ||
"seneca-entity": "^2.3.0", | ||
"seneca-transport-test": "^0.3.0", | ||
"sinon": "^5.1.1" | ||
"coveralls": "^3.0.6", | ||
"prettier": "^1.18.2", | ||
"seneca": "plugin", | ||
"seneca-entity": "^4.1.0", | ||
"seneca-transport-test": "^1.0.0", | ||
"sinon": "^7.4.2" | ||
}, | ||
@@ -79,5 +80,4 @@ "files": [ | ||
"LICENSE", | ||
"bench.js", | ||
"lib" | ||
] | ||
} |
@@ -55,3 +55,3 @@ /* Copyright (c) 2013-2015 Richard Rodger & other contributors, MIT License */ | ||
var settings = seneca.util.deepextend(internals.defaults, options) | ||
var callmap = LruCache(settings.callmax) | ||
var callmap = new LruCache(settings.callmax) | ||
var transportUtil = new TransportUtil({ | ||
@@ -58,0 +58,0 @@ callmap: callmap, |
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
72630
10078
1242
11
+ Added@hapi/wreck@^15.0.2
+ Addedgopd@1.1.0(transitive)
+ Addedhas-proto@1.1.0(transitive)
+ Addedlru-cache@5.1.1(transitive)
+ Addedyallist@3.1.1(transitive)
- Removedwreck@^12.5.1
- Removedboom@5.3.3(transitive)
- Removedgopd@1.0.1(transitive)
- Removedhas-proto@1.0.3(transitive)
- Removedhoek@4.3.1(transitive)
- Removedlru-cache@4.1.5(transitive)
- Removedpseudomap@1.0.2(transitive)
- Removedwreck@12.6.2(transitive)
- Removedyallist@2.1.2(transitive)
Updatedlodash@^4.17.15
Updatedlru-cache@^5.1.1
Updatedqs@^6.8.0