unexpected
Advanced tools
Comparing version 10.22.1 to 10.22.2
/*global window*/ | ||
var defaultDepth = 3; | ||
if (typeof window !== 'undefined' && typeof window.location !== 'undefined') { | ||
var m = window.location.search.match(/[?&]depth=(\d+)(?:$|&)/); | ||
if (m) { | ||
defaultDepth = parseInt(m[1], 10); | ||
} | ||
var matchDepthParameter = | ||
typeof window !== 'undefined' && | ||
typeof window.location !== 'undefined' && | ||
window.location.search.match(/[?&]depth=(\d+)(?:$|&)/); | ||
if (matchDepthParameter) { | ||
defaultDepth = parseInt(matchDepthParameter[1], 10); | ||
} else if (typeof process !== 'undefined' && process.env.UNEXPECTED_DEPTH) { | ||
@@ -9,0 +11,0 @@ defaultDepth = parseInt(process.env.UNEXPECTED_DEPTH, 10); |
{ | ||
"name": "unexpected", | ||
"version": "10.22.1", | ||
"version": "10.22.2", | ||
"author": "Sune Sloth Simonsen <sune@we-knowhow.dk>", | ||
@@ -46,2 +46,3 @@ "keywords": [ | ||
"jasmine-core": "~2.2.0", | ||
"jest": "18.1.0", | ||
"minimist": "1.1.1", | ||
@@ -52,3 +53,2 @@ "mocha": "2.4.5", | ||
"nyc": "6.1.1", | ||
"proxyquire": "1.7.4", | ||
"rsvp": "3.0.18", | ||
@@ -69,3 +69,14 @@ "serve": "*", | ||
] | ||
}, | ||
"jest": { | ||
"setupFiles": [ | ||
"<rootDir>/test/promisePolyfill" | ||
], | ||
"setupTestFrameworkScriptFile": "<rootDir>/test/common.js", | ||
"testRegex": "test\\/.*\\.spec\\.js$", | ||
"transformIgnorePatterns": [ | ||
"/node_modules/", | ||
"/test/" | ||
] | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
774897
49
19382