File tree Expand file tree Collapse file tree 6 files changed +63
-19
lines changed Expand file tree Collapse file tree 6 files changed +63
-19
lines changed Original file line number Diff line number Diff line change 1+ version : 2
2+
3+ workflows :
4+ version : 2
5+ test :
6+ jobs :
7+ - oldest-long-term-support-release
8+ - current-release
9+
10+ node-template : &node-template
11+ steps :
12+ - checkout
13+ - run : echo "Node version:" `node --version`
14+ - run : npm install
15+ - run :
16+ command : npm test
17+ environment :
18+ JEST_JUNIT_OUTPUT : " reports/junit/js-test-results.xml"
19+ - run : |
20+ if [[ $CIRCLE_JOB == current-release ]]; then
21+ npm audit
22+ fi
23+ - store_test_results :
24+ path : reports/junit
25+ - store_artifacts :
26+ path : reports/junit
27+
28+ jobs :
29+ oldest-long-term-support-release :
30+ << : *node-template
31+ docker :
32+ - image : circleci/node:6
33+ - image : redis
34+
35+ current-release :
36+ << : *node-template
37+ docker :
38+ - image : circleci/node:latest
39+ - image : redis
Original file line number Diff line number Diff line change @@ -4,3 +4,4 @@ npm-debug.log
44yarn.lock
55.nyc_output
66/coverage
7+ package-lock.json
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ # Change log
2+
3+ All notable changes to this package will be documented in this file.
4+ This project adheres to [ Semantic Versioning] ( http://semver.org ) .
5+
6+ ## [ 1.0.8] - 2019-01-29
7+ First release from this fork. Changes from the 1.0.7 release of the upstream code are as follows:
8+
9+ ### Added:
10+ - The optional ` method ` and ` body ` properties of the constructor options allow you to specify a different HTTP method from the default of ` GET ` , and to provide a request body if the specified method allows a body.
Original file line number Diff line number Diff line change 1- # EventSource [ ![ npm version] ( http://img.shields.io/npm/v/eventsource.svg?style=flat-square )] ( http://browsenpm.org/package/eventsource ) [ ![ Build Status] ( http://img.shields.io/travis/EventSource/ eventsource/master.svg?style=flat-square )] ( https://travis-ci.org/EventSource/ eventsource ) [ ![ NPM Downloads] ( https://img.shields.io/npm/dm/eventsource.svg?style=flat-square )] ( http://npm-stat.com/charts.html?package=eventsource&from=2015-09-01 ) [ ![ Dependencies] ( https://img.shields.io/david/EventSource/ eventsource.svg?style=flat-square )] ( https://david-dm.org/EventSource/ eventsource )
1+ # EventSource [ ![ npm version] ( http://img.shields.io/npm/v/launchdarkly- eventsource.svg?style=flat-square )] ( http://browsenpm.org/package/launchdarkly- eventsource ) [ ![ Build Status] ( http://img.shields.io/travis/launchdarkly/js- eventsource/master.svg?style=flat-square )] ( https://travis-ci.org/launchdarkly/js- eventsource ) [ ![ NPM Downloads] ( https://img.shields.io/npm/dm/laumchdarkly- eventsource.svg?style=flat-square )] ( http://npm-stat.com/charts.html?package=launchdarkly- eventsource&from=2015-09-01 ) [ ![ Dependencies] ( https://img.shields.io/david/launchdarkly/js- eventsource.svg?style=flat-square )] ( https://david-dm.org/launchdarkly/js- eventsource )
22
33This library is a pure JavaScript implementation of the [ EventSource] ( https://html.spec.whatwg.org/multipage/server-sent-events.html#server-sent-events ) client. The API aims to be W3C compatible.
44
55You can use it with Node.js or as a browser polyfill for
66[ browsers that don't have native ` EventSource ` support] ( http://caniuse.com/#feat=eventsource ) .
77
8+ This is a fork of the original [ EventSource] ( https://github.com/EventSource/eventsource ) project by Aslak Hellesøy, with minimal additions to support the requirements of the LaunchDarkly Node and Electron SDKs.
9+
810## Install
911
10- npm install eventsource
12+ npm install launchdarkly- eventsource
1113
1214## Example
1315
Original file line number Diff line number Diff line change 11{
2- "name" : " eventsource" ,
3- "version" : " 1.0.7 " ,
4- "description" : " W3C compliant EventSource client for Node.js and browser (polyfill)" ,
2+ "name" : " launchdarkly- eventsource" ,
3+ "version" : " 1.0.8 " ,
4+ "description" : " Fork of eventsource package - W3C compliant EventSource client for Node.js and browser (polyfill)" ,
55 "keywords" : [
66 " eventsource" ,
77 " http" ,
88 " streaming" ,
99 " sse" ,
1010 " polyfill"
1111 ],
12- "homepage" : " http://github.com/EventSource/ eventsource" ,
12+ "homepage" : " http://github.com/launchdarkly/js- eventsource" ,
1313 "author" : " Aslak Hellesøy <aslak.hellesoy@gmail.com>" ,
1414 "repository" : {
1515 "type" : " git" ,
16- "url" : " git://github.com/EventSource/ eventsource.git"
16+ "url" : " git://github.com/launchdarkly/js- eventsource.git"
1717 },
1818 "bugs" : {
19- "url" : " http://github.com/EventSource/ eventsource/issues"
19+ "url" : " http://github.com/launchdarkly/js- eventsource/issues"
2020 },
2121 "directories" : {
2222 "lib" : " ./lib"
2626 "licenses" : [
2727 {
2828 "type" : " MIT" ,
29- "url" : " http://github.com/EventSource/ eventsource/raw/master/LICENSE"
29+ "url" : " http://github.com/launchdarkly/js- eventsource/raw/master/LICENSE"
3030 }
3131 ],
3232 "devDependencies" : {
3333 "buffer-from" : " ^1.1.1" ,
3434 "express" : " ^4.15.3" ,
35- "mocha" : " ^3.5.3 " ,
35+ "mocha" : " 5.2.0 " ,
3636 "nyc" : " ^11.2.1" ,
3737 "serve-static" : " ^1.12.3" ,
3838 "ssestream" : " ^1.0.0" ,
3939 "standard" : " ^10.0.2" ,
4040 "webpack" : " ^3.5.6"
4141 },
4242 "scripts" : {
43- "test" : " mocha --reporter spec && standard" ,
43+ "test" : " mocha --reporter spec --exit && standard" ,
4444 "polyfill" : " webpack lib/eventsource-polyfill.js example/eventsource-polyfill.js" ,
4545 "postpublish" : " git push && git push --tags" ,
4646 "coverage" : " nyc --reporter=html --reporter=text _mocha --reporter spec"
You can’t perform that action at this time.
0 commit comments