forked from rollbar/rollbar.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
defaults.js
29 lines (27 loc) · 956 Bytes
/
defaults.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
var pkg = require('./package.json');
var version = pkg.version;
module.exports = {
__NOTIFIER_VERSION__: JSON.stringify(pkg.version),
__JQUERY_PLUGIN_VERSION__: JSON.stringify(pkg.plugins.jquery.version),
__DEFAULT_SERVER_SCRUB_FIELDS__: JSON.stringify(
pkg.defaults.server.scrubFields,
),
__DEFAULT_SERVER_SCRUB_HEADERS__: JSON.stringify(
pkg.defaults.server.scrubHeaders,
),
__DEFAULT_ENDPOINT__: JSON.stringify(pkg.defaults.endpoint),
__DEFAULT_LOG_LEVEL__: JSON.stringify(pkg.defaults.logLevel),
__DEFAULT_REPORT_LEVEL__: JSON.stringify(pkg.defaults.reportLevel),
__DEFAULT_UNCAUGHT_ERROR_LEVEL: JSON.stringify(
pkg.defaults.uncaughtErrorLevel,
),
__DEFAULT_ROLLBARJS_URL__: JSON.stringify(
'https://' +
pkg.cdn.host +
'/rollbarjs/refs/tags/v' +
version +
'/rollbar.min.js',
),
__DEFAULT_MAX_ITEMS__: pkg.defaults.maxItems,
__DEFAULT_ITEMS_PER_MIN__: pkg.defaults.itemsPerMin,
};