Socket
Socket
Sign inDemoInstall

samsam

Package Overview
Dependencies
Maintainers
5
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.1 to 1.3.0

4

lib/samsam.js

@@ -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) {

2

package.json
{
"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

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