@travi/any
Advanced tools
Comparing version 2.0.19 to 2.0.20
@@ -18,10 +18,5 @@ 'use strict'; | ||
var symbols = Object.getOwnPropertySymbols(object); | ||
if (enumerableOnly) { | ||
symbols = symbols.filter(function (sym) { | ||
return Object.getOwnPropertyDescriptor(object, sym).enumerable; | ||
}); | ||
} | ||
keys.push.apply(keys, symbols); | ||
enumerableOnly && (symbols = symbols.filter(function (sym) { | ||
return Object.getOwnPropertyDescriptor(object, sym).enumerable; | ||
})), keys.push.apply(keys, symbols); | ||
} | ||
@@ -34,15 +29,8 @@ | ||
for (var i = 1; i < arguments.length; i++) { | ||
var source = arguments[i] != null ? arguments[i] : {}; | ||
if (i % 2) { | ||
ownKeys(Object(source), true).forEach(function (key) { | ||
_defineProperty(target, key, source[key]); | ||
}); | ||
} else if (Object.getOwnPropertyDescriptors) { | ||
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); | ||
} else { | ||
ownKeys(Object(source)).forEach(function (key) { | ||
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); | ||
}); | ||
} | ||
var source = null != arguments[i] ? arguments[i] : {}; | ||
i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { | ||
_defineProperty(target, key, source[key]); | ||
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { | ||
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); | ||
}); | ||
} | ||
@@ -49,0 +37,0 @@ |
@@ -10,10 +10,5 @@ import Chance from 'chance'; | ||
var symbols = Object.getOwnPropertySymbols(object); | ||
if (enumerableOnly) { | ||
symbols = symbols.filter(function (sym) { | ||
return Object.getOwnPropertyDescriptor(object, sym).enumerable; | ||
}); | ||
} | ||
keys.push.apply(keys, symbols); | ||
enumerableOnly && (symbols = symbols.filter(function (sym) { | ||
return Object.getOwnPropertyDescriptor(object, sym).enumerable; | ||
})), keys.push.apply(keys, symbols); | ||
} | ||
@@ -26,15 +21,8 @@ | ||
for (var i = 1; i < arguments.length; i++) { | ||
var source = arguments[i] != null ? arguments[i] : {}; | ||
if (i % 2) { | ||
ownKeys(Object(source), true).forEach(function (key) { | ||
_defineProperty(target, key, source[key]); | ||
}); | ||
} else if (Object.getOwnPropertyDescriptors) { | ||
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); | ||
} else { | ||
ownKeys(Object(source)).forEach(function (key) { | ||
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); | ||
}); | ||
} | ||
var source = null != arguments[i] ? arguments[i] : {}; | ||
i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { | ||
_defineProperty(target, key, source[key]); | ||
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { | ||
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); | ||
}); | ||
} | ||
@@ -41,0 +29,0 @@ |
{ | ||
"name": "@travi/any", | ||
"version": "2.0.19", | ||
"version": "2.0.20", | ||
"description": "random data generator for when test data is insignificant", | ||
@@ -55,3 +55,3 @@ "main": "lib/any.cjs.js", | ||
"chance": "1.1.8", | ||
"debug": "4.3.3", | ||
"debug": "4.3.4", | ||
"lodash": "4.17.21", | ||
@@ -61,9 +61,9 @@ "mersenne-twister": "1.1.0" | ||
"devDependencies": { | ||
"@babel/plugin-transform-exponentiation-operator": "7.16.0", | ||
"@babel/register": "7.16.0", | ||
"@travi/babel-preset": "3.0.69", | ||
"@travi/eslint-config": "1.0.89", | ||
"@travi/eslint-config-mocha": "1.0.12", | ||
"chai": "4.3.4", | ||
"commitlint-config-travi": "1.4.3", | ||
"@babel/plugin-transform-exponentiation-operator": "7.16.7", | ||
"@babel/register": "7.17.7", | ||
"@travi/babel-preset": "3.0.81", | ||
"@travi/eslint-config": "1.0.94", | ||
"@travi/eslint-config-mocha": "1.0.16", | ||
"chai": "4.3.6", | ||
"commitlint-config-travi": "1.4.10", | ||
"coveralls": "3.1.1", | ||
@@ -74,3 +74,3 @@ "cz-conventional-changelog": "3.3.0", | ||
"husky": "7.0.4", | ||
"mocha": "9.1.3", | ||
"mocha": "9.2.2", | ||
"npm-run-all": "4.1.5", | ||
@@ -82,9 +82,9 @@ "nyc": "15.1.0", | ||
"remark-cli": "10.0.1", | ||
"remark-preset-lint-travi": "2.0.8", | ||
"remark-preset-lint-travi": "2.0.9", | ||
"remark-toc": "8.0.1", | ||
"rimraf": "3.0.2", | ||
"rollup": "2.60.1", | ||
"rollup": "2.70.1", | ||
"rollup-plugin-auto-external": "2.0.0", | ||
"rollup-plugin-babel": "4.4.0", | ||
"sinon": "12.0.1" | ||
"sinon": "13.0.1" | ||
}, | ||
@@ -91,0 +91,0 @@ "config": { |
Sorry, the diff of this file is not supported yet
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
45839
270
+ Addeddebug@4.3.4(transitive)
- Removeddebug@4.3.3(transitive)
Updateddebug@4.3.4