Last active
February 2, 2016 18:06
-
-
Save jiangzhuo/9ed235719999dc2646ac to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var _http = require('http'); | |
var _http2 = _interopRequireDefault(_http); | |
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | |
var raven = require('raven'); | |
var client = new raven.Client('https://1eefdad8b79e4201817659347f1c0439:[email protected]/65733', { release: "abcdefg" }); | |
_http2.default.createServer(function (req, res) { | |
res.writeHead(200, { 'Content-Type': 'text/plain' }); | |
res.end('Hello World\n'); | |
client.captureError(new Error('Uh oh!!')); | |
}).listen(1337, '127.0.0.1'); | |
console.log('Server running at http://127.0.0.1:1337/'); | |
//# sourceMappingURL=index.js.map |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"version":3,"sources":["../../lib/index.js"],"names":[],"mappings":";;;;;;;;AAEA,IAAI,QAAQ,QAAQ,OAAR,CAAR;;AAEJ,IAAI,SAAS,IAAI,MAAM,MAAN,CAAa,iGAAjB,CAAT;;AAEJ,eAAK,YAAL,CAAkB,UAAC,GAAD,EAAM,GAAN,EAAc;AAC9B,MAAI,SAAJ,CAAc,GAAd,EAAmB,EAAC,gBAAgB,YAAhB,EAApB,EAD8B;AAE9B,MAAI,GAAJ,CAAQ,eAAR,EAF8B;;AAIhC,SAAO,YAAP,CAAoB,IAAI,KAAJ,CAAU,SAAV,CAApB,EAJgC;CAAd,CAAlB,CAKG,MALH,CAKU,IALV,EAKgB,WALhB;;AAOA,QAAQ,GAAR,CAAY,0CAAZ","file":"index.js","sourcesContent":["import http from 'http';\n\nvar raven = require('raven');\n\nvar client = new raven.Client('http://253eae208cad41b9aea8ddf4e29f9d66:[email protected]/17');\n\nhttp.createServer((req, res) => {\n res.writeHead(200, {'Content-Type': 'text/plain'});\n res.end('Hello World\\n');\n\nclient.captureError(new Error('Uh oh!!'));\n}).listen(1337, '127.0.0.1');\n\nconsole.log('Server running at http://127.0.0.1:1337/');\n"]} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment