From 83b88fc015b7ce213bae0e74f6a0878745f75062 Mon Sep 17 00:00:00 2001 From: Paul Date: Thu, 20 Apr 2017 19:40:09 -0700 Subject: [PATCH] Add optional require statement for client --- samples/simple.js | 1 + samples/store-event.js | 1 + samples/subscribe-all-events.js | 2 ++ samples/subscribe-catchup-all-events.js | 2 ++ 4 files changed, 6 insertions(+) diff --git a/samples/simple.js b/samples/simple.js index cc7381f..4a68699 100644 --- a/samples/simple.js +++ b/samples/simple.js @@ -1,3 +1,4 @@ +// const client = require('../src/client') const client = require("eventstore-node") const uuid = require("uuid") diff --git a/samples/store-event.js b/samples/store-event.js index 9373a93..07e9037 100644 --- a/samples/store-event.js +++ b/samples/store-event.js @@ -1,3 +1,4 @@ +// const client = require('../src/client') const client = require("eventstore-node") const uuid = require("uuid") diff --git a/samples/subscribe-all-events.js b/samples/subscribe-all-events.js index fb7c462..568f109 100644 --- a/samples/subscribe-all-events.js +++ b/samples/subscribe-all-events.js @@ -1,4 +1,6 @@ // Subscribe to all new events on the $all stream. Filter out any which aren"t about "user" aggregates. + +// const client = require('../src/client') const client = require("eventstore-node") const resolveLinkTos = false diff --git a/samples/subscribe-catchup-all-events.js b/samples/subscribe-catchup-all-events.js index 4e15079..38daa03 100644 --- a/samples/subscribe-catchup-all-events.js +++ b/samples/subscribe-catchup-all-events.js @@ -1,5 +1,7 @@ // Subscribe to all events on the $all stream. Catch up from the beginning, then listen for any new events as they occur. // This could be used for subscribers which populate read models. + +// const client = require('../src/client') const client = require("eventstore-node") const eventAppeared => (stream, event) =>