Comparing version 1.2.1 to 1.3.0
@@ -401,2 +401,6 @@ ((typeof define === "function" && define.amd && function (m) { define("samsam", m); }) || | ||
if (isDate(matcher)) { | ||
return isDate(object) && object.getTime() === matcher.getTime(); | ||
} | ||
if (matcher && typeof matcher === "object") { | ||
@@ -403,0 +407,0 @@ if (matcher === object) { |
{ | ||
"name": "samsam", | ||
"version": "1.2.1", | ||
"version": "1.3.0", | ||
"description": "Value identification and comparison functions", | ||
@@ -5,0 +5,0 @@ "homepage": "http://docs.busterjs.org/en/latest/modules/samsam/", |
@@ -426,2 +426,8 @@ if (typeof module === "object" && typeof require === "function") { | ||
} | ||
var date = new Date(); | ||
var sameDate = new Date(date.getTime()); | ||
var anotherDate = new Date(date.getTime() - 10); | ||
pass("date objects with same date", date, sameDate); | ||
fail("date objects with different dates", date, anotherDate); | ||
}); | ||
@@ -428,0 +434,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
41351
828
1