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.32.1 to 10.33.0

rollup.config.js

2

lib/types.js

@@ -999,3 +999,3 @@ var utils = require('./utils');

var constructorName = intOrUint + numBits + 'Array',
Constructor = this[constructorName];
Constructor = global[constructorName];
if (typeof Constructor !== 'undefined') {

@@ -1002,0 +1002,0 @@ expect.addType({

@@ -786,4 +786,3 @@ var createStandardErrorMessage = require('./createStandardErrorMessage');

if ((typeof plugin !== 'function' && (typeof plugin !== 'object' || typeof plugin.installInto !== 'function')) ||
(typeof plugin.name !== 'undefined' && typeof plugin.name !== 'string') ||
(typeof plugin.dependencies !== 'undefined' && !Array.isArray(plugin.dependencies))) {
(typeof plugin.name !== 'undefined' && typeof plugin.name !== 'string')) {
throw new Error(

@@ -794,3 +793,2 @@ 'Plugins must be functions or adhere to the following interface\n' +

' version: <an optional semver version string>,\n' +
' dependencies: <an optional list of dependencies>,\n' +
' installInto: <a function that will update the given expect instance>\n' +

@@ -832,24 +830,2 @@ '}'

if (plugin.dependencies) {
var installedPlugins = this.installedPlugins;
var instance = this.parent;
while (instance) {
Array.prototype.push.apply(installedPlugins, instance.installedPlugins);
instance = instance.parent;
}
var unfulfilledDependencies = plugin.dependencies.filter(function (dependency) {
return !installedPlugins.some(function (plugin) {
return getPluginName(plugin) === dependency;
});
});
if (unfulfilledDependencies.length === 1) {
throw new Error(pluginName + ' requires plugin ' + unfulfilledDependencies[0]);
} else if (unfulfilledDependencies.length > 1) {
throw new Error(pluginName + ' requires plugins ' +
unfulfilledDependencies.slice(0, -1).join(', ') +
' and ' + unfulfilledDependencies[unfulfilledDependencies.length - 1]);
}
}
this.installedPlugins.push(plugin);

@@ -856,0 +832,0 @@ if (typeof plugin === 'function') {

{
"name": "unexpected",
"version": "10.32.1",
"version": "10.33.0",
"author": "Sune Sloth Simonsen <sune@we-knowhow.dk>",

@@ -35,4 +35,2 @@ "keywords": [

"devDependencies": {
"browserify": "14.3.0",
"bundle-collapser": "1.2.1",
"chewbacca": "1.10.0",

@@ -53,2 +51,7 @@ "coveralls": "^2.11.9",

"nyc": "6.1.1",
"rollup": "0.45.2",
"rollup-plugin-commonjs": "8.0.2",
"rollup-plugin-node-globals": "1.1.0",
"rollup-plugin-node-resolve": "3.0.0",
"rollup-plugin-uglify": "2.0.1",
"rsvp": "3.0.18",

@@ -55,0 +58,0 @@ "serve": "*",

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