@fastify/deepmerge
Advanced tools
Comparing version 1.2.0 to 1.3.0
{ | ||
"name": "@fastify/deepmerge", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"description": "Merges the enumerable properties of two or more objects deeply.", | ||
@@ -11,3 +11,3 @@ "main": "index.js", | ||
"test": "npm run test:unit && npm run test:typescript", | ||
"test:unit": "tap -J test/*.test.js test/**/*.test.js", | ||
"test:unit": "tap", | ||
"test:typescript": "tsd" | ||
@@ -14,0 +14,0 @@ }, |
@@ -1,4 +0,1 @@ | ||
declare function deepmerge(options: Options & { all: true }): DeepMergeAllFn; | ||
declare function deepmerge(options?: Options): DeepMergeFn; | ||
type DeepMergeFn = <T1, T2>(target: T1, source: T2) => DeepMerge<T1, T2>; | ||
@@ -72,6 +69,13 @@ type DeepMergeAllFn = <T extends Array<any>>(...targets: T) => DeepMergeAll<{}, T>; | ||
export default deepmerge | ||
export { | ||
deepmerge, | ||
Options | ||
} | ||
type DeepmergeConstructor = typeof deepmerge | ||
declare namespace deepmerge { | ||
export { Options } | ||
export const deepmerge: DeepmergeConstructor | ||
export { deepmerge as default } | ||
} | ||
declare function deepmerge(options: Options & { all: true }): DeepMergeAllFn; | ||
declare function deepmerge(options?: Options): DeepMergeFn; | ||
export = deepmerge |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
14264
202
0