New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

chai-changes

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chai-changes - npm Package Compare versions

Comparing version 1.3.1 to 1.3.2

27

chai-changes.js

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

// Generated by CoffeeScript 1.3.3
// Generated by CoffeeScript 1.6.3
(function() {
(function(chaiChanges) {

@@ -15,3 +14,3 @@ if (typeof require === "function" && typeof exports === "object" && typeof module === "object") {

})(function(chai, utils) {
var byAtLeast, byAtMost, changeBy, changeByAssert, changeFrom, changeFromAssert, changeFromBeginAssert, changeTo, changeToAssert, changeToBeginAssert, flag, formatFunction, inspect, noChangeAssert;
var byAtLeast, byAtMost, changeBy, changeByAssert, changeFrom, changeFromAssert, changeFromBeginAssert, changeTo, changeToAssert, changeToBeginAssert, clone, flag, formatFunction, inspect, noChangeAssert;
inspect = utils.inspect;

@@ -42,3 +41,3 @@ flag = utils.flag;

promiseCallback = function() {
var _j, _len1;
var error, _j, _len1;
try {

@@ -52,3 +51,4 @@ for (_j = 0, _len1 = definedActions.length; _j < _len1; _j++) {

return done();
} catch (error) {
} catch (_error) {
error = _error;
done(error);

@@ -96,2 +96,17 @@ throw error;

};
clone = function(obj) {
var key, result, value;
if (obj !== Object(obj)) {
return obj;
}
if (Array.isArray(obj)) {
return obj.slice();
}
result = {};
for (key in obj) {
value = obj[key];
result[key] = value;
}
return result;
};
changeToBeginAssert = function(context) {

@@ -103,3 +118,3 @@ var negate, object, result, startValue;

startValue = object();
flag(context, 'changeToStart', startValue);
flag(context, 'changeToStart', clone(startValue));
result = !utils.eql(startValue, this.expectedEndValue);

@@ -106,0 +121,0 @@ if (negate) {

@@ -6,3 +6,3 @@ {

"keywords": [ "test", "assertion", "assert", "testing", "changes", "promises" ],
"version": "1.3.1",
"version": "1.3.2",
"repository": {

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

Sorry, the diff of this file is not supported yet

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