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 22
33import * as Shim from '../shim.js' ;
44import snippetCallback from '../snippet_callback.js' ;
5- import { defaultRollbarJsUrl } from '.. /defaults.js' ;
5+ import { defaultRollbarJsUrl } from './defaults.js' ;
66
77_rollbarConfig = _rollbarConfig || { } ;
88_rollbarConfig . rollbarJsUrl = _rollbarConfig . rollbarJsUrl || defaultRollbarJsUrl ;
Original file line number Diff line number Diff line change 11/**
22 * Default browser options
33 */
4- import { version , commonScrubFields } from '../defaults.js' ;
4+ import { commonScrubFields } from '../defaults.js' ;
55
66export const scrubFields = [
77 ...commonScrubFields ,
@@ -47,13 +47,5 @@ export const scrubFields = [
4747 'ccyear' ,
4848] ;
4949
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-
5650// 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 11/* globals jQuery */
22
3- import { jqueryPluginVersion } from '../defaults.js' ;
4-
53( function ( jQuery , window , document ) {
64 var rb = window . Rollbar ;
75 if ( ! rb ) {
86 return ;
97 }
108
11- var JQUERY_PLUGIN_VERSION = jqueryPluginVersion ;
9+ var JQUERY_PLUGIN_VERSION = '0.0.8' ;
1210
1311 rb . configure ( {
1412 payload : {
You can’t perform that action at this time.
0 commit comments