@mysticatea/spy
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -33,3 +33,2 @@ "use strict"; | ||
Object.defineProperties(spy, { | ||
length: descriptors.length(f ? f.length : 0), | ||
calls: descriptors.calls(calls), | ||
@@ -50,5 +49,2 @@ returnedCalls: descriptors.returnedCalls, | ||
var descriptors = { | ||
length: function (value) { | ||
return { value: value, configurable: true }; | ||
}, | ||
calls: function (value) { | ||
@@ -55,0 +51,0 @@ return { value: value, configurable: true }; |
{ | ||
"name": "@mysticatea/spy", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Just a spy library.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -5,3 +5,3 @@ # @mysticatea/spy | ||
[![Downloads/month](https://img.shields.io/npm/dm/@mysticatea/spy.svg)](http://www.npmtrends.com/@mysticatea/spy) | ||
[![Build Status](https://travis-ci.com/mysticatea/spy.svg?branch=master)](https://travis-ci.org/mysticatea/spy) | ||
[![Build Status](https://travis-ci.com/mysticatea/spy.svg?branch=master)](https://travis-ci.com/mysticatea/spy) | ||
[![Coverage Status](https://codecov.io/gh/mysticatea/spy/branch/master/graph/badge.svg)](https://codecov.io/gh/mysticatea/spy) | ||
@@ -89,2 +89,4 @@ [![Dependency Status](https://david-dm.org/mysticatea/spy.svg)](https://david-dm.org/mysticatea/spy) | ||
> The `length ` property of the spy function can be different to `func.length`. | ||
**Details:** | ||
@@ -180,3 +182,3 @@ | ||
## 🍻 Contributing | ||
## ❤️ Contributing | ||
@@ -183,0 +185,0 @@ Welcome contributing! |
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
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
193
17196
190