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.33.2 to 10.34.0

.babelrc

2

externaltests/assertionSucceedsWhilePromiseIsPending.spec.js

@@ -1,2 +0,2 @@

var expect = require('../');
var expect = require('../lib');

@@ -3,0 +3,0 @@ expect.addAssertion('<any> to bar', function (expect, subject) {

@@ -1,2 +0,2 @@

var expect = require('../');
var expect = require('../lib');
it('should not dot out the object in the diff', function () {

@@ -3,0 +3,0 @@ expect(function () {

@@ -1,2 +0,2 @@

var expect = require('../');
var expect = require('../lib');

@@ -3,0 +3,0 @@ expect.addAssertion('<any> when delayed a little bit <assertion?>', function (expect, subject) {

@@ -1,2 +0,2 @@

var expect = require('../');
var expect = require('../lib');

@@ -3,0 +3,0 @@ it('should call the callback', function () {

@@ -1,2 +0,2 @@

var expect = require('../');
var expect = require('../lib');

@@ -3,0 +3,0 @@ it('should call the callback', function () {

@@ -1,2 +0,2 @@

var expect = require('../');
var expect = require('../lib');

@@ -3,0 +3,0 @@ it('should call the callback', function () {

@@ -1,2 +0,2 @@

var expect = require('../');
var expect = require('../lib');

@@ -3,0 +3,0 @@ it('should fail', function () {

@@ -1,2 +0,2 @@

var expect = require('../').clone().use(require('./node_modules/unexpected-bogus/index.js'));
var expect = require('../lib').clone().use(require('./node_modules/unexpected-bogus/index.js'));

@@ -3,0 +3,0 @@ it('should fail with a full trace', function () {

@@ -1,2 +0,2 @@

var expect = require('../');
var expect = require('../lib');

@@ -3,0 +3,0 @@ it('should foo', function () {

@@ -1,2 +0,2 @@

var expect = require('../');
var expect = require('../lib');

@@ -3,0 +3,0 @@ it('should call the callback', function () {

@@ -1,4 +0,3 @@

module.exports = function addAdditionalPromiseMethods(promise, expect, subject) {
promise.and = function () { // ...
var args = Array.prototype.slice.call(arguments);
function addAdditionalPromiseMethods(promise, expect, subject) {
promise.and = function (...args) {
function executeAnd() {

@@ -21,1 +20,3 @@ if (expect.findTypeOf(args[0]).is('expect.it')) {

};
module.exports = addAdditionalPromiseMethods;

@@ -1,2 +0,2 @@

module.exports = function throwIfNonUnexpectedError(err) {
function throwIfNonUnexpectedError(err) {
if (err && err.message === 'aggregate error') {

@@ -10,1 +10,3 @@ for (var i = 0 ; i < err.length ; i += 1) {

};
module.exports = throwIfNonUnexpectedError;

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

var that = this;
var printOutput = function (obj, currentDepth, output) {
function printOutput(obj, currentDepth, output) {
var objType = that.findTypeOf(obj);

@@ -856,5 +856,5 @@ if (currentDepth <= 0 && objType.is('object') && !objType.is('expect.it')) {

expect.findTypeOf = unexpected.findTypeOf; // Already bound
expect.fail = function () {
expect.fail = function (...args) {
try {
unexpected.fail.apply(unexpected, arguments);
unexpected.fail(...args);
} catch (e) {

@@ -861,0 +861,0 @@ if (e && e._isUnexpected) {

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

@@ -23,3 +23,3 @@ "keywords": [

},
"main": "./lib/index.js",
"main": "./build/lib/index.js",
"dependencies": {

@@ -36,3 +36,4 @@ "array-changes": "2.0.0",

"devDependencies": {
"chewbacca": "1.10.0",
"babel-cli": "6.26.0",
"babel-preset-es2015-without-strict": "0.0.4",
"coveralls": "^2.11.9",

@@ -43,2 +44,3 @@ "es5-shim": "4.0.5",

"eslint-plugin-import": "1.16.0",
"find-node-modules": "1.0.4",
"istanbul": "0.3.16",

@@ -52,3 +54,4 @@ "jasmine": "2.2.1",

"mocha-slow-reporter": "*",
"nyc": "6.1.1",
"node-version-check": "2.2.0",
"nyc": "10.3.2",
"rollup": "0.45.2",

@@ -61,5 +64,5 @@ "rollup-plugin-commonjs": "8.0.2",

"serve": "*",
"unexpected-documentation-site-generator": "^4.4.0",
"unexpected-documentation-site-generator": "^4.6.1",
"unexpected-magicpen": "0.2.1",
"unexpected-markdown": "^1.7.2"
"unexpected-markdown": "^1.7.4"
},

@@ -71,7 +74,2 @@ "jspm": {

},
"nyc": {
"include": [
"lib/**"
]
},
"jest": {

@@ -82,8 +80,4 @@ "setupFiles": [

"setupTestFrameworkScriptFile": "<rootDir>/test/common.js",
"testRegex": "test\\/.*\\.spec\\.js$",
"transformIgnorePatterns": [
"/node_modules/",
"/test/"
]
"testRegex": "<rootDir>/test\\/.*\\.spec\\.js$"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

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