Skip to content

surface exposed null types (undefined, NaN, [Object object]) and report with raven-js

License

Notifications You must be signed in to change notification settings

MaxBittker/raven-js-exposed-null

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Exposed Null Checker

This plugin allows Raven-js to report when and where a null type may have been rendered into the DOM. By default, it looks for occurrences of: "NaN", "undefined", and "[object Object]".

why? Because javascript is perfectly happy to let you do this: spotify-undefined NaN

without raising exceptions. Usage: npm i raven-js-exposed-null -S

var Raven = require('raven-js') ;
Raven
    .config('https://YOURDSN@sentry.io/*******')
    .install();

var exposedNullCheck = require('raven-js-exposed-null');
exposedNullCheck(Raven);

nyt-NaN paypall-object object paypall-undefined

About

surface exposed null types (undefined, NaN, [Object object]) and report with raven-js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published