Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

unexpected

Package Overview
Dependencies
Maintainers
3
Versions
330
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unexpected - npm Package Compare versions

Comparing version 10.22.1 to 10.22.2

externaltests/assertionSucceedsWhilePromiseIsPending.spec.js

12

lib/defaultDepth.js
/*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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc