File tree Expand file tree Collapse file tree 3 files changed +15
-6
lines changed Expand file tree Collapse file tree 3 files changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ module.exports = function(grunt) {
7070 } ,
7171 core : {
7272 src : coreFiles . concat ( plugins ) ,
73- dest : 'build/<%= pkg.name %> .js'
73+ dest : 'build/raven .js'
7474 } ,
7575 all : {
7676 files : pluginConcatFiles
Original file line number Diff line number Diff line change 44// If there is no JSON, we no-op the core features of Raven
55// since JSON is required to encode the payload
66var _Raven = window . Raven ,
7- hasJSON = ! ! ( window . JSON && window . JSON . stringify ) ,
7+ hasJSON = ! ! ( isObject ( JSON ) && JSON . stringify ) ,
88 lastCapturedException ,
99 lastEventId ,
1010 globalServer ,
Original file line number Diff line number Diff line change 11// Expose Raven to the world
2- window . Raven = Raven ;
3-
4- // AMD
52if ( typeof define === 'function' && define . amd ) {
6- define ( 'raven' , [ ] , function ( ) { return Raven ; } ) ;
3+ // AMD
4+ define ( 'raven' , function ( Raven ) {
5+ return ( window . Raven = Raven ) ;
6+ } ) ;
7+ } else if ( isObject ( module ) ) {
8+ // browserify
9+ module . exports = Raven ;
10+ } else if ( isObject ( exports ) ) {
11+ // CommonJS
12+ exports = Raven ;
13+ } else {
14+ // Everything else
15+ window . Raven = Raven ;
716}
817
918} ) ( window ) ;
You can’t perform that action at this time.
0 commit comments