@sinonjs/samsam
Advanced tools
Comparing version 4.1.0 to 4.2.0
@@ -140,26 +140,26 @@ (function (global, factory) { | ||
/** | ||
* Returns `true` when `value` is an instance of Date | ||
* Returns `true` when `value` is a Map | ||
* | ||
* @param {*} value A value to examine | ||
* @returns {boolean} `true` when `value` is an instance of `Map`, `false` otherwise | ||
* @private | ||
* @param {Date} value The value to examine | ||
* @returns {boolean} `true` when `value` is an instance of Date | ||
*/ | ||
function isDate(value) { | ||
return value instanceof Date; | ||
function isMap(value) { | ||
return typeof Map !== "undefined" && value instanceof Map; | ||
} | ||
var isDate_1 = isDate; | ||
var isMap_1 = isMap; | ||
/** | ||
* Returns `true` when `value` is a Map | ||
* Returns `true` when `value` is an instance of Date | ||
* | ||
* @param {*} value A value to examine | ||
* @returns {boolean} `true` when `value` is an instance of `Map`, `false` otherwise | ||
* @private | ||
* @param {Date} value The value to examine | ||
* @returns {boolean} `true` when `value` is an instance of Date | ||
*/ | ||
function isMap(value) { | ||
return typeof Map !== "undefined" && value instanceof Map; | ||
function isDate(value) { | ||
return value instanceof Date; | ||
} | ||
var isMap_1 = isMap; | ||
var isDate_1 = isDate; | ||
@@ -475,3 +475,3 @@ /** | ||
deepEqualCyclic.use = function(match) { | ||
return function(a, b) { | ||
return function deepEqual(a, b) { | ||
return deepEqualCyclic(a, b, match); | ||
@@ -1228,2 +1228,6 @@ }; | ||
if (typeof matcherOrValue === "symbol") { | ||
return matcherOrValue === object; | ||
} | ||
if (matcherOrValue === null) { | ||
@@ -1303,2 +1307,3 @@ return object === null; | ||
var deepEqualCyclic$1 = deepEqual.use(match_1); | ||
@@ -1313,2 +1318,3 @@ | ||
isElement: isElement_1, | ||
isMap: isMap_1, | ||
isNegZero: isNegZero_1, | ||
@@ -1323,5 +1329,6 @@ isSet: isSet_1, | ||
var samsam_5 = samsam.isElement; | ||
var samsam_6 = samsam.isNegZero; | ||
var samsam_7 = samsam.isSet; | ||
var samsam_8 = samsam.match; | ||
var samsam_6 = samsam.isMap; | ||
var samsam_7 = samsam.isNegZero; | ||
var samsam_8 = samsam.isSet; | ||
var samsam_9 = samsam.match; | ||
@@ -1334,5 +1341,6 @@ exports.createMatcher = samsam_1; | ||
exports.isElement = samsam_5; | ||
exports.isNegZero = samsam_6; | ||
exports.isSet = samsam_7; | ||
exports.match = samsam_8; | ||
exports.isMap = samsam_6; | ||
exports.isNegZero = samsam_7; | ||
exports.isSet = samsam_8; | ||
exports.match = samsam_9; | ||
@@ -1339,0 +1347,0 @@ Object.defineProperty(exports, '__esModule', { value: true }); |
@@ -253,3 +253,3 @@ "use strict"; | ||
deepEqualCyclic.use = function(match) { | ||
return function(a, b) { | ||
return function deepEqual(a, b) { | ||
return deepEqualCyclic(a, b, match); | ||
@@ -256,0 +256,0 @@ }; |
@@ -90,2 +90,6 @@ "use strict"; | ||
if (typeof matcherOrValue === "symbol") { | ||
return matcherOrValue === object; | ||
} | ||
if (matcherOrValue === null) { | ||
@@ -92,0 +96,0 @@ return object === null; |
@@ -11,2 +11,3 @@ "use strict"; | ||
var isSet = require("./is-set"); | ||
var isMap = require("./is-map"); | ||
var match = require("./match"); | ||
@@ -22,2 +23,3 @@ var deepEqualCyclic = require("./deep-equal").use(match); | ||
isElement: isElement, | ||
isMap: isMap, | ||
isNegZero: isNegZero, | ||
@@ -24,0 +26,0 @@ isSet: isSet, |
{ | ||
"name": "@sinonjs/samsam", | ||
"version": "4.1.0", | ||
"version": "4.2.0", | ||
"description": "Value identification and comparison functions", | ||
@@ -5,0 +5,0 @@ "homepage": "http://sinonjs.github.io/samsam/", |
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
113709
2400