Socket
Socket
Sign inDemoInstall

spy4js

Package Overview
Dependencies
1
Maintainers
1
Versions
75
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.1 to 3.0.2

5

dist/cjs/index.js

@@ -171,4 +171,9 @@ 'use strict';

* nested objects.
*
* Returning "any" because this return value should be usable anywhere.
*/
const COMPARE = (comparator) => new SpyComparator(comparator);
/**
* Returning "any" because this return value should be usable anywhere.
*/
const MAPPER = (from, to) => new SpyComparator((mapper) => {

@@ -175,0 +180,0 @@ const result = mapper(...(Array.isArray(from) ? from : [from]));

@@ -167,4 +167,9 @@ const NOP = () => {};

* nested objects.
*
* Returning "any" because this return value should be usable anywhere.
*/
const COMPARE = (comparator) => new SpyComparator(comparator);
/**
* Returning "any" because this return value should be usable anywhere.
*/
const MAPPER = (from, to) => new SpyComparator((mapper) => {

@@ -171,0 +176,0 @@ const result = mapper(...(Array.isArray(from) ? from : [from]));

2

package.json
{
"name": "spy4js",
"version": "3.0.1",
"version": "3.0.2",
"description": "Smart, compact and powerful spy test framework",

@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js",

@@ -32,6 +32,11 @@ /**

* nested objects.
*
* Returning "any" because this return value should be usable anywhere.
*/
const COMPARE = (comparator: Comparator): SpyComparator => new SpyComparator(comparator);
const COMPARE = (comparator: Comparator): any => new SpyComparator(comparator);
const MAPPER = (from: any | any[], to: any) =>
/**
* Returning "any" because this return value should be usable anywhere.
*/
const MAPPER = (from: any | any[], to: any): any =>
new SpyComparator((mapper: Function) => {

@@ -38,0 +43,0 @@ const result = mapper(...(Array.isArray(from) ? from : [from]));

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc