Merge branch 'master' of github.com:nicdex/node-eventstore-client into remove-subscription-started-log
This commit is contained in:
commit
7dc4658719
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "node-eventstore-client",
|
"name": "node-eventstore-client",
|
||||||
"version": "0.2.5",
|
"version": "0.2.8",
|
||||||
"description": "A port of the EventStore .Net ClientAPI to Node.js",
|
"description": "A port of the EventStore .Net ClientAPI to Node.js",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"types": "index.d.ts",
|
"types": "index.d.ts",
|
||||||
|
|
|
@ -72,6 +72,8 @@ exports.streamPosition = streamPosition;
|
||||||
exports.systemMetadata = require('./common/systemMetadata');
|
exports.systemMetadata = require('./common/systemMetadata');
|
||||||
exports.eventReadStatus = results.EventReadStatus;
|
exports.eventReadStatus = results.EventReadStatus;
|
||||||
exports.sliceReadStatus = require('./sliceReadStatus');
|
exports.sliceReadStatus = require('./sliceReadStatus');
|
||||||
|
exports.persistentSubscriptionNakEventAction =
|
||||||
|
exports.PersistentSubscriptionNakEventAction = require('./persistentSubscriptionNakEventAction');
|
||||||
// Expose loggers
|
// Expose loggers
|
||||||
exports.NoopLogger = require('./common/log/noopLogger');
|
exports.NoopLogger = require('./common/log/noopLogger');
|
||||||
exports.FileLogger = require('./common/log/fileLogger');
|
exports.FileLogger = require('./common/log/fileLogger');
|
||||||
|
|
|
@ -139,6 +139,7 @@ ProjectionsClient.prototype.request = function(method, _url, data, userCredentia
|
||||||
});
|
});
|
||||||
req.on('error', reject);
|
req.on('error', reject);
|
||||||
if (data) {
|
if (data) {
|
||||||
|
req.setHeader('Content-Length', data.length);
|
||||||
req.setHeader('Content-Type', 'application/json');
|
req.setHeader('Content-Type', 'application/json');
|
||||||
req.write(data);
|
req.write(data);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user