@faasjs/deep_merge 0.0.3-beta.85 → 0.0.3-beta.87
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +16 -0
- package/package.json +2 -2
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Deep merge two objects or arrays.
|
|
3
|
+
*
|
|
4
|
+
* Features:
|
|
5
|
+
* * All objects will be cloned before merging.
|
|
6
|
+
* * Merging order is from right to left.
|
|
7
|
+
* * If an array include same objects, it will be unique to one.
|
|
8
|
+
*
|
|
9
|
+
* ```ts
|
|
10
|
+
* deepMerge({ a: 1 }, { a: 2 }) // { a: 2 }
|
|
11
|
+
* deepMerge([1, 2], [2, 3]) // [1, 2, 3]
|
|
12
|
+
* ```
|
|
13
|
+
*/
|
|
14
|
+
declare function deepMerge(...sources: any[]): any;
|
|
15
|
+
|
|
16
|
+
export { deepMerge };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faasjs/deep_merge",
|
|
3
|
-
"version": "0.0.3-beta.
|
|
3
|
+
"version": "0.0.3-beta.87",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"funding": "https://github.com/sponsors/faasjs",
|
|
17
17
|
"scripts": {
|
|
18
|
-
"build": "tsup-node src/index.ts --
|
|
18
|
+
"build": "tsup-node src/index.ts --config ../../tsup.config.json"
|
|
19
19
|
},
|
|
20
20
|
"files": [
|
|
21
21
|
"dist"
|