Socket
Socket
Sign inDemoInstall

samsam

Package Overview
Dependencies
Maintainers
4
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

samsam - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

4

lib/samsam.js

@@ -136,3 +136,3 @@ ((typeof define === "function" && define.amd && function (m) { define("samsam", m); }) ||

for (var j = 0; j < values2.length; j++) {
if (compare(values1[i], values2[j])) {
if (compare(values2[j], values1[i])) {
includes = true;

@@ -426,3 +426,3 @@ break;

"function, a boolean or an object");
};
}

@@ -429,0 +429,0 @@ return {

{
"name": "samsam",
"version": "1.2.0",
"version": "1.2.1",
"description": "Value identification and comparison functions",

@@ -5,0 +5,0 @@ "homepage": "http://docs.busterjs.org/en/latest/modules/samsam/",

@@ -389,4 +389,39 @@ if (typeof module === "object" && typeof require === "function") {

fail("sets with different complex member", new Set([{id: 42}]), new Set([{id: 13}]));
pass(
"differently sorted complex objects",
new Set([{
end: "2019-08-07T18:00:00Z",
geoAvailability: {
resId: "http://id.nrk.no/2015/guri/IPRights/geoavailability/NORGE",
title: "NORGE"
},
resId: "http://id.nrk.no/2015/guri/68cc0a15-2be1-4666-984f-b421b415326d/publicationEvent/0",
start: "2015-04-03T14:00:00Z"
}, {
geoAvailability: {
resId: "http://id.nrk.no/2015/guri/IPRights/geoavailability/NRK",
title: "NRK"
},
resId: "x-test:pubEvent-1",
start: "2015-04-03T14:00:00Z"
}]),
new Set([{
geoAvailability: {
resId: "http://id.nrk.no/2015/guri/IPRights/geoavailability/NRK",
title: "NRK"
},
resId: "x-test:pubEvent-1",
start: "2015-04-03T14:00:00Z"
}, {
end: "2019-08-07T18:00:00Z",
geoAvailability: {
resId: "http://id.nrk.no/2015/guri/IPRights/geoavailability/NORGE",
title: "NORGE"
},
start: "2015-04-03T14:00:00Z"
}])
);
}
});

@@ -393,0 +428,0 @@

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