keep-func-props
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -0,1 +1,7 @@ | ||
# 3.0.1 | ||
## Bug fixes | ||
- Fixes support in React Native | ||
# 3.0.0 | ||
@@ -2,0 +8,0 @@ |
@@ -16,3 +16,3 @@ // Demo of the main usage. | ||
// Any function wrapper works | ||
const wrapper = function(anyFunction) { | ||
const wrapper = function (anyFunction) { | ||
return (...args) => anyFunction(...args) | ||
@@ -19,0 +19,0 @@ } |
@@ -14,3 +14,3 @@ // Ignore this file, this is only needed for internal purposes. | ||
// eslint-disable-next-line fp/no-mutation, func-names | ||
Module.prototype.require = function(moduleName, ...args) { | ||
Module.prototype.require = function (moduleName, ...args) { | ||
const moduleNameA = getMockedName(moduleName) | ||
@@ -21,3 +21,3 @@ // eslint-disable-next-line fp/no-this | ||
const getMockedName = function(moduleName) { | ||
const getMockedName = function (moduleName) { | ||
if (moduleName !== name && !moduleName.startsWith(`${name}/`)) { | ||
@@ -24,0 +24,0 @@ return moduleName |
{ | ||
"name": "keep-func-props", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"main": "build/src/main.js", | ||
@@ -8,3 +8,3 @@ "files": [ | ||
"examples", | ||
"!~" | ||
"!*~" | ||
], | ||
@@ -16,3 +16,3 @@ "scripts": { | ||
"hooks": { | ||
"pre-push": "gulp check --full" | ||
"pre-push": "gulp -LL check --full" | ||
} | ||
@@ -44,10 +44,10 @@ }, | ||
"dependencies": { | ||
"mimic-fn": "^3.0.0" | ||
"mimic-fn": "^3.1.0" | ||
}, | ||
"devDependencies": { | ||
"@ehmicky/dev-tasks": "^0.30.71", | ||
"ava": "^2.4.0", | ||
"@ehmicky/dev-tasks": "^0.31.52", | ||
"ava": "^3.10.1", | ||
"gulp": "^4.0.2", | ||
"husky": "^3.1.0", | ||
"sinon": "^7.5.0" | ||
"husky": "^4.2.5", | ||
"sinon": "^9.0.2" | ||
}, | ||
@@ -54,0 +54,0 @@ "engines": { |
<img src="https://raw.githubusercontent.com/ehmicky/design/master/keep-func-props/keep-func-props.svg?sanitize=true" width="700"/> | ||
[![Codecov](https://img.shields.io/codecov/c/github/ehmicky/keep-func-props.svg?label=tested&logo=codecov)](https://codecov.io/gh/ehmicky/keep-func-props) | ||
[![Travis](https://img.shields.io/badge/cross-platform-4cc61e.svg?logo=travis)](https://travis-ci.org/ehmicky/keep-func-props) | ||
[![Build](https://github.com/ehmicky/keep-func-props/workflows/Build/badge.svg)](https://github.com/ehmicky/keep-func-props/actions) | ||
[![Node](https://img.shields.io/node/v/keep-func-props.svg?logo=node.js)](https://www.npmjs.com/package/keep-func-props) | ||
@@ -73,3 +73,3 @@ [![Gitter](https://img.shields.io/gitter/room/ehmicky/keep-func-props.svg?logo=gitter)](https://gitter.im/ehmicky/keep-func-props) | ||
// Any function wrapper works | ||
const wrapper = function(anyFunction) { | ||
const wrapper = function (anyFunction) { | ||
return (...args) => anyFunction(...args) | ||
@@ -76,0 +76,0 @@ } |
Sorry, the diff of this file is not supported yet
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
21997
Updatedmimic-fn@^3.1.0