Socket
Socket
Sign inDemoInstall

chai

Package Overview
Dependencies
Maintainers
2
Versions
96
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chai - npm Package Compare versions

Comparing version 5.0.3 to 5.1.0

36

lib/chai.js

@@ -18,6 +18,3 @@ /*!

/*!
* Assertion Error
*/
// Assertion Error
export {AssertionError};

@@ -34,3 +31,2 @@

*/
export function use(fn) {

@@ -55,36 +51,18 @@ const exports = {

/*!
* Utility Functions
*/
// Utility Functions
export {util};
/*!
* Configuration
*/
// Configuration
export {config};
/*!
* Primary `Assertion` prototype
*/
// Primary `Assertion` prototype
export * from './chai/assertion.js';
/*!
* Expect interface
*/
// Expect interface
export * from './chai/interface/expect.js';
/*!
* Should interface
*/
// Should interface
export * from './chai/interface/should.js';
/*!
* Assert interface
*/
// Assert interface
export * from './chai/interface/assert.js';

5

lib/chai/assertion.js

@@ -12,3 +12,3 @@ /*!

/*!
/**
* Assertion Constructor

@@ -151,3 +151,3 @@ *

/*!
/**
* ### ._obj

@@ -159,3 +159,2 @@ *

*/
Object.defineProperty(Assertion.prototype, '_obj',

@@ -162,0 +161,0 @@ { get: function () {

@@ -16,2 +16,3 @@ /*!

export {expect};
/**

@@ -31,10 +32,9 @@ * ### .fail([message])

* @name fail
* @param {Mixed} actual
* @param {Mixed} expected
* @param {unknown} actual
* @param {unknown} expected
* @param {String} message
* @param {String} operator
* @namespace BDD
* @api public
* @namespace expect
* @public
*/
expect.fail = function (actual, expected, message, operator) {

@@ -41,0 +41,0 @@ if (arguments.length < 2) {

@@ -60,10 +60,9 @@ /*!

* @name fail
* @param {Mixed} actual
* @param {Mixed} expected
* @param {unknown} actual
* @param {unknown} expected
* @param {String} message
* @param {String} operator
* @namespace BDD
* @api public
* @public
*/
should.fail = function (actual, expected, message, operator) {

@@ -91,9 +90,8 @@ if (arguments.length < 2) {

* @name equal
* @param {Mixed} actual
* @param {Mixed} expected
* @param {unknown} actual
* @param {unknown} expected
* @param {String} message
* @namespace Should
* @api public
* @public
*/
should.equal = function (val1, val2, msg) {

@@ -124,5 +122,4 @@ new Assertion(val1, msg).to.equal(val2);

* @namespace Should
* @api public
* @public
*/
should.Throw = function (fn, errt, errs, msg) {

@@ -143,5 +140,4 @@ new Assertion(fn, msg).to.Throw(errt, errs);

* @namespace Should
* @api public
* @public
*/
should.exist = function (val, msg) {

@@ -162,9 +158,8 @@ new Assertion(val, msg).to.exist;

* @name not.equal
* @param {Mixed} actual
* @param {Mixed} expected
* @param {unknown} actual
* @param {unknown} expected
* @param {String} message
* @namespace Should
* @api public
* @public
*/
should.not.equal = function (val1, val2, msg) {

@@ -191,5 +186,4 @@ new Assertion(val1, msg).to.not.equal(val2);

* @namespace Should
* @api public
* @public
*/
should.not.Throw = function (fn, errt, errs, msg) {

@@ -210,5 +204,4 @@ new Assertion(fn, msg).to.not.Throw(errt, errs);

* @namespace Should
* @api public
* @public
*/
should.not.exist = function (val, msg) {

@@ -215,0 +208,0 @@ new Assertion(val, msg).to.not.exist;

@@ -7,6 +7,2 @@ /*!

/*!
* Module dependencies
*/
import {Assertion} from '../assertion.js';

@@ -18,3 +14,3 @@ import {addLengthGuard} from './addLengthGuard.js';

/*!
/**
* Module variables

@@ -21,0 +17,0 @@ */

@@ -7,6 +7,2 @@ /*!

/*!
* Module dependencies
*/
import {inspect} from './inspect.js';

@@ -13,0 +9,0 @@

@@ -7,6 +7,2 @@ /*!

/*!
* Module dependencies
*/
import {flag} from './flag.js';

@@ -13,0 +9,0 @@ import {getActual} from './getActual.js';

@@ -7,6 +7,2 @@ /*!

/*!
* Module dependencies
*/
import {getOwnEnumerablePropertySymbols} from './getOwnEnumerablePropertySymbols.js';

@@ -13,0 +9,0 @@

@@ -7,77 +7,39 @@ /*!

/*!
* Dependencies that are used for multiple exports are required here only once
*/
// Dependencies that are used for multiple exports are required here only once
import * as checkError from 'check-error';
/*!
* test utility
*/
// test utility
export {test} from './test.js';
/*!
* type utility
*/
// type utility
export {type} from './type-detect.js';
/*!
* expectTypes utility
*/
// expectTypes utility
export {expectTypes} from './expectTypes.js';
/*!
* message utility
*/
// message utility
export {getMessage} from './getMessage.js';
/*!
* actual utility
*/
// actual utility
export {getActual} from './getActual.js';
/*!
* Inspect util
*/
// Inspect util
export {inspect} from './inspect.js';
/*!
* Object Display util
*/
// Object Display util
export {objDisplay} from './objDisplay.js';
/*!
* Flag utility
*/
// Flag utility
export {flag} from './flag.js';
/*!
* Flag transferring utility
*/
// Flag transferring utility
export {transferFlags} from './transferFlags.js';
/*!
* Deep equal utility
*/
// Deep equal utility
export {default as eql} from 'deep-eql';
/*!
* Deep path info
*/
// Deep path info
export {getPathInfo, hasProperty} from 'pathval';
/*!
* Function name
*/
// Function name
export function getName(fn) {

@@ -87,90 +49,45 @@ return fn.name

/*!
* add Property
*/
// add Property
export {addProperty} from './addProperty.js';
/*!
* add Method
*/
// add Method
export {addMethod} from './addMethod.js';
/*!
* overwrite Property
*/
// overwrite Property
export {overwriteProperty} from './overwriteProperty.js';
/*!
* overwrite Method
*/
// overwrite Method
export {overwriteMethod} from './overwriteMethod.js';
/*!
* Add a chainable method
*/
// Add a chainable method
export {addChainableMethod} from './addChainableMethod.js';
/*!
* Overwrite chainable method
*/
// Overwrite chainable method
export {overwriteChainableMethod} from './overwriteChainableMethod.js';
/*!
* Compare by inspect method
*/
// Compare by inspect method
export {compareByInspect} from './compareByInspect.js';
/*!
* Get own enumerable property symbols method
*/
// Get own enumerable property symbols method
export {getOwnEnumerablePropertySymbols} from './getOwnEnumerablePropertySymbols.js';
/*!
* Get own enumerable properties method
*/
// Get own enumerable properties method
export {getOwnEnumerableProperties} from './getOwnEnumerableProperties.js';
/*!
* Checks error against a given set of criteria
*/
// Checks error against a given set of criteria
export {checkError};
/*!
* Proxify util
*/
// Proxify util
export {proxify} from './proxify.js';
/*!
* addLengthGuard util
*/
// addLengthGuard util
export {addLengthGuard} from './addLengthGuard.js';
/*!
* isProxyEnabled helper
*/
// isProxyEnabled helper
export {isProxyEnabled} from './isProxyEnabled.js';
/*!
* isNaN method
*/
// isNaN method
export {isNaN} from './isNaN.js';
/*!
* getOperator method
*/
// getOperator method
export {getOperator} from './getOperator.js';

@@ -7,6 +7,2 @@ /*!

/*!
* Module dependencies
*/
import {inspect} from './inspect.js';

@@ -13,0 +9,0 @@ import {config} from '../config.js';

@@ -7,6 +7,2 @@ /*!

/*!
* Module dependencies
*/
import {flag} from './flag.js';

@@ -13,0 +9,0 @@

@@ -21,3 +21,3 @@ {

],
"version": "5.0.3",
"version": "5.1.0",
"repository": {

@@ -24,0 +24,0 @@ "type": "git",

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

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

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