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 2.6.0 to 2.6.1

2

dist/cjs/spy.js

@@ -713,3 +713,3 @@ 'use strict';

if (!(method instanceof Function)) {
if (!(typeof method === 'function')) {
throw new Error(`The object attribute '${methodName}' ` + `was: ${serialize(method)}\n\n` + 'You should only spy on functions!');

@@ -716,0 +716,0 @@ }

@@ -709,3 +709,3 @@ function _defineProperty(obj, key, value) {

if (!(method instanceof Function)) {
if (!(typeof method === 'function')) {
throw new Error(`The object attribute '${methodName}' ` + `was: ${serialize(method)}\n\n` + 'You should only spy on functions!');

@@ -712,0 +712,0 @@ }

{
"name": "spy4js",
"version": "2.6.0",
"version": "2.6.1",
"description": "Smart, compact and powerful spy test framework",

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

@@ -756,3 +756,3 @@ /**

const method = obj[methodName];
if (!(method instanceof Function)) {
if (!(typeof method === 'function')) {
throw new Error(

@@ -759,0 +759,0 @@ `The object attribute '${methodName}' ` +

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