From ef26ed636f290264d83aca407a9d6828922636d8 Mon Sep 17 00:00:00 2001 From: Jur Jean Date: Tue, 4 Dec 2018 14:05:44 +0100 Subject: [PATCH 1/2] Send Content-Length to eliminate missing Content-Type error in some cases --- src/projections/projectionsClient.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/projections/projectionsClient.js b/src/projections/projectionsClient.js index eecefc8..e30d7ae 100644 --- a/src/projections/projectionsClient.js +++ b/src/projections/projectionsClient.js @@ -139,6 +139,7 @@ ProjectionsClient.prototype.request = function(method, _url, data, userCredentia }); req.on('error', reject); if (data) { + req.setHeader('Content-Length', data.length); req.setHeader('Content-Type', 'application/json'); req.write(data); } From e9d86a3c4d07ed91944bfc38b212716d6d72460f Mon Sep 17 00:00:00 2001 From: Nicolas Dextraze Date: Thu, 17 Jan 2019 10:00:49 -0800 Subject: [PATCH 2/2] Fix issue #63 - export PersistentSubscriptionNakEventAction --- package.json | 2 +- src/client.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 96e9b25..5ee6acd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "node-eventstore-client", - "version": "0.2.5", + "version": "0.2.8", "description": "A port of the EventStore .Net ClientAPI to Node.js", "main": "index.js", "types": "index.d.ts", diff --git a/src/client.js b/src/client.js index d5efb9a..a4851f9 100644 --- a/src/client.js +++ b/src/client.js @@ -72,6 +72,8 @@ exports.streamPosition = streamPosition; exports.systemMetadata = require('./common/systemMetadata'); exports.eventReadStatus = results.EventReadStatus; exports.sliceReadStatus = require('./sliceReadStatus'); +exports.persistentSubscriptionNakEventAction = +exports.PersistentSubscriptionNakEventAction = require('./persistentSubscriptionNakEventAction'); // Expose loggers exports.NoopLogger = require('./common/log/noopLogger'); exports.FileLogger = require('./common/log/fileLogger');