File tree Expand file tree Collapse file tree 4 files changed +8
-14
lines changed Expand file tree Collapse file tree 4 files changed +8
-14
lines changed Original file line number Diff line number Diff line change
1
+ import { version } from '../../defaults.js'
2
+
3
+ export const cdnHost = 'cdn.rollbar.com' ;
4
+ export const defaultRollbarJsUrl = `https://${ cdnHost } /rollbarjs/refs/tags/v${ version } /rollbar.min.js` ;
Original file line number Diff line number Diff line change 2
2
3
3
import * as Shim from '../shim.js' ;
4
4
import snippetCallback from '../snippet_callback.js' ;
5
- import { defaultRollbarJsUrl } from '.. /defaults.js' ;
5
+ import { defaultRollbarJsUrl } from './defaults.js' ;
6
6
7
7
_rollbarConfig = _rollbarConfig || { } ;
8
8
_rollbarConfig . rollbarJsUrl = _rollbarConfig . rollbarJsUrl || defaultRollbarJsUrl ;
Original file line number Diff line number Diff line change 1
1
/**
2
2
* Default browser options
3
3
*/
4
- import { version , commonScrubFields } from '../defaults.js' ;
4
+ import { commonScrubFields } from '../defaults.js' ;
5
5
6
6
export const scrubFields = [
7
7
...commonScrubFields ,
@@ -47,13 +47,5 @@ export const scrubFields = [
47
47
'ccyear' ,
48
48
] ;
49
49
50
- // CDN configuration for the snippet
51
- export const cdnHost = 'cdn.rollbar.com' ;
52
- export const defaultRollbarJsUrl = `https://${ cdnHost } /rollbarjs/refs/tags/v${ version } /rollbar.min.js` ;
53
-
54
- export const jqueryPluginVersion = '0.0.8' ;
55
-
56
50
// For compatibility with existing code that expects default export with scrubFields property
57
- export default {
58
- scrubFields,
59
- } ;
51
+ export default { scrubFields } ;
Original file line number Diff line number Diff line change 1
1
/* globals jQuery */
2
2
3
- import { jqueryPluginVersion } from '../defaults.js' ;
4
-
5
3
( function ( jQuery , window , document ) {
6
4
var rb = window . Rollbar ;
7
5
if ( ! rb ) {
8
6
return ;
9
7
}
10
8
11
- var JQUERY_PLUGIN_VERSION = jqueryPluginVersion ;
9
+ var JQUERY_PLUGIN_VERSION = '0.0.8' ;
12
10
13
11
rb . configure ( {
14
12
payload : {
You can’t perform that action at this time.
0 commit comments