collect.js
Advanced tools
Comparing version 4.0.7 to 4.0.8
@@ -10,5 +10,6 @@ module.exports = { | ||
rules: { | ||
'no-console': 0, | ||
'newline-before-return': 2, | ||
'no-console': 'error', | ||
'newline-before-return': 'error', | ||
'no-ternary': 'error', | ||
}, | ||
}; |
@@ -520,2 +520,3 @@ var collect = | ||
module.exports = function dd() { | ||
// eslint-disable-next-line | ||
console.log(this.all()); | ||
@@ -802,2 +803,3 @@ | ||
module.exports = function dump() { | ||
// eslint-disable-next-line | ||
console.log(this); | ||
@@ -1000,3 +1002,7 @@ | ||
return typeof defaultValue === 'function' ? defaultValue() : defaultValue; | ||
if (typeof defaultValue === 'function') { | ||
return defaultValue(); | ||
} | ||
return defaultValue; | ||
}; | ||
@@ -1003,0 +1009,0 @@ |
'use strict'; | ||
module.exports = function dd() { | ||
// eslint-disable-next-line | ||
console.log(this.all()); | ||
@@ -5,0 +6,0 @@ |
'use strict'; | ||
module.exports = function dump() { | ||
// eslint-disable-next-line | ||
console.log(this); | ||
@@ -5,0 +6,0 @@ |
@@ -29,3 +29,7 @@ 'use strict'; | ||
return typeof defaultValue === 'function' ? defaultValue() : defaultValue; | ||
if (typeof defaultValue === 'function') { | ||
return defaultValue(); | ||
} | ||
return defaultValue; | ||
}; |
{ | ||
"name": "collect.js", | ||
"version": "4.0.7", | ||
"version": "4.0.8", | ||
"description": "Convenient and dependency free wrapper for working with arrays and objects.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
'use strict'; | ||
module.exports = function dd() { | ||
// eslint-disable-next-line | ||
console.log(this.all()); | ||
@@ -5,0 +6,0 @@ |
'use strict'; | ||
module.exports = function dump() { | ||
// eslint-disable-next-line | ||
console.log(this); | ||
@@ -5,0 +6,0 @@ |
@@ -29,3 +29,7 @@ 'use strict'; | ||
return (typeof defaultValue === 'function' ? defaultValue() : defaultValue); | ||
if (typeof defaultValue === 'function') { | ||
return defaultValue(); | ||
} | ||
return defaultValue; | ||
}; |
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
366980
5150