Comparing version 1.2.0 to 1.2.1
@@ -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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
41039
820