21 lines
547 B
JavaScript
21 lines
547 B
JavaScript
'use strict';
|
|
|
|
var isBrowser = typeof window == 'object';
|
|
var fullTest = isBrowser || !process.env.AJV_FAST_TEST;
|
|
|
|
var options = fullTest
|
|
? {
|
|
allErrors: true,
|
|
verbose: true,
|
|
format: 'full',
|
|
extendRefs: 'ignore',
|
|
inlineRefs: false,
|
|
jsonPointers: true
|
|
}
|
|
: { allErrors: true };
|
|
|
|
if (fullTest && !isBrowser)
|
|
options.processCode = require('js-beautify').js_beautify;
|
|
|
|
module.exports = options;
|