Comparing version 1.3.1 to 1.4.0
@@ -8,2 +8,2 @@ export declare const merge: { | ||
}; | ||
export declare const mergeCustomizer: (_object: any, srcVal: any) => any[] | undefined; | ||
export declare const mergeCustomizer: (objValue: any, srcVal: any, key: 'string', object: any) => any[] | undefined; |
@@ -9,6 +9,9 @@ "use strict"; | ||
exports.merge = lodash_mergewith_1.default; | ||
exports.mergeCustomizer = function (_object, srcVal) { | ||
exports.mergeCustomizer = function (objValue, srcVal, key, object) { | ||
if (Array.isArray(srcVal)) { | ||
return srcVal; | ||
} | ||
else if (srcVal === undefined) { | ||
object[key] = srcVal; | ||
} | ||
}; |
{ | ||
"name": "fishery", | ||
"version": "1.3.1", | ||
"version": "1.4.0", | ||
"description": "A library for setting up JavaScript factories to help build objects as test data, with full TypeScript support", | ||
@@ -22,5 +22,6 @@ "keywords": [ | ||
"test": "jest", | ||
"test:all": "yarn test && yarn pretty:check", | ||
"testinit": "jest --init", | ||
"pretty": "prettier --write '{*,.*,lib/**/*}.{ts,json,md}'", | ||
"verifyPretty": "prettier --check '{*,.*,lib/**/*}.{ts,json,md}'" | ||
"pretty:check": "prettier --check '{*,.*,lib/**/*}.{ts,json,md}'" | ||
}, | ||
@@ -27,0 +28,0 @@ "repository": { |
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
37609
472