0.2.2 • Published 9 years ago

bug-report-sender v0.2.2

Weekly downloads
4
License
Apache-2.0
Repository
github
Last release
9 years ago

bug-report-sender

Build Status

send bugs to be analysed

install

npm install bug-report-sender --save

# dependency to inject
npm install request --save

usage

var bugSender = require('bug-report-sender');
var libs = {request: request};

var error_to_send = new Error('THIS IS AN ERROR');

var options = {
  err: error_to_send,
  extra_values: {
    extra1: 'EXTRA VALUE 1',
    extra2: 'EXTRA VALUE 2'
  },
  libs: {requestFunction: require('request')},
  url: 'SOME_URL',
};

bugSender.send(options)
.then(function(result) {
  // OK
});

Test

gulp

Test (with integration test)

to run integration test you need set ENTRYPOINT env

e.g.:

ENTRYPOINT=http://api.io/report/uruwhswaB0z3NMBnIxlPV8xXcy+98FBV gulp

Publish

npm run deploy <version>
0.2.2

9 years ago

0.2.1

9 years ago

0.2.0

9 years ago

0.1.16

9 years ago

0.1.15

9 years ago

0.1.14

9 years ago

0.1.13

9 years ago

0.1.12

9 years ago

0.1.11

9 years ago

0.1.10

9 years ago

0.1.9

9 years ago

0.1.8

9 years ago

0.1.7

9 years ago

0.1.6

9 years ago

0.1.5

9 years ago

0.1.4

9 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago