Skip to content
This repository has been archived by the owner on May 30, 2024. It is now read-only.

Commit

Permalink
Merge pull request #82 from launchdarkly/eb/ch18978/fix-dependency
Browse files Browse the repository at this point in the history
remove problematic dependency used by EventSource
  • Loading branch information
eli-darkly committed Jun 15, 2018
2 parents 78bcb09 + 1097f2b commit 1e48011
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 32 deletions.
7 changes: 3 additions & 4 deletions eventsource.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// taken from https://github.com/aslakhellesoy/eventsource-node/blob/v0.1.6/package.json

var original = require('original')
, parse = require('url').parse
var parse = require('url').parse
, events = require('events')
, https = require('https')
, http = require('http')
Expand Down Expand Up @@ -206,8 +205,8 @@ function EventSource(url, eventSourceInitDict) {
var type = eventName || 'message';
_emit(type, new MessageEvent(type, {
data: data.slice(0, -1), // remove trailing newline
lastEventId: lastEventId,
origin: original(url)
lastEventId: lastEventId
//origin: original(url) // we're not using this - removed it so we can drop the dependency on "original"
}));
data = '';
}
Expand Down
27 changes: 0 additions & 27 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
"lrucache": "^1.0.3",
"node-cache": "^3.2.1",
"node-sha1": "0.0.1",
"original": "~0.0.8",
"redis": "^2.6.0-2",
"request": "2.85.0",
"request-etag": "^2.0.3",
Expand Down

0 comments on commit 1e48011

Please sign in to comment.