Skip to content

Commit

Permalink
chore: update example
Browse files Browse the repository at this point in the history
  • Loading branch information
uetchy committed Sep 1, 2020
1 parent 8584849 commit e24ca90
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 266 deletions.
11 changes: 1 addition & 10 deletions example/cli.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,8 @@
#!/usr/bin/env node

const handleErrors = require('epicfail').default;
const Sentry = require('@sentry/node');
const fs = require('fs');

Sentry.init({
dsn: process.env.SENTRY_DSN,
defaultIntegrations: false,
});

handleErrors({
showStackTrace: false,
onError: Sentry.captureException, // will returns event_id issued at Sentry
});
handleErrors();

fs.readFileSync('foo');
9 changes: 5 additions & 4 deletions example/package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"name": "example",
"version": "0.0.0",
"author": "Yasuaki Uechi <[email protected]> (https://uechi.io)",
"scripts": {
"start": "node cli.js"
},
"main": "index.js",
"dependencies": {
"@sentry/node": "^5.19.2",
"epicfail": "link:..",
"esm": "^3.2.25"
"epicfail": "link:.."
},
"main": "index.js",
"bugs": "https://github.com/uetchy/epicfail/issues"
}
252 changes: 0 additions & 252 deletions example/yarn.lock

This file was deleted.

0 comments on commit e24ca90

Please sign in to comment.