@faasjs/deep_merge 4.7.2 → 5.0.0-beta.2
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/package.json +4 -3
- package/dist/index.d.mts +0 -29
package/package.json
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faasjs/deep_merge",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0-beta.2",
|
|
4
4
|
"license": "MIT",
|
|
5
|
+
"type": "module",
|
|
5
6
|
"main": "dist/index.js",
|
|
6
7
|
"module": "dist/index.mjs",
|
|
7
8
|
"types": "dist/index.d.ts",
|
|
8
9
|
"exports": {
|
|
9
10
|
".": {
|
|
10
11
|
"import": {
|
|
11
|
-
"types": "./dist/index.d.
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
12
13
|
"default": "./dist/index.mjs"
|
|
13
14
|
},
|
|
14
15
|
"require": {
|
|
@@ -28,7 +29,7 @@
|
|
|
28
29
|
},
|
|
29
30
|
"funding": "https://github.com/sponsors/faasjs",
|
|
30
31
|
"scripts": {
|
|
31
|
-
"build": "tsup-node src/index.ts --config ../../tsup.config.
|
|
32
|
+
"build": "tsup-node src/index.ts --config ../../tsup.config.ts"
|
|
32
33
|
},
|
|
33
34
|
"files": [
|
|
34
35
|
"dist"
|
package/dist/index.d.mts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A helper function to deep merge objects and array.
|
|
3
|
-
*
|
|
4
|
-
* [](https://github.com/faasjs/faasjs/blob/main/packages/deep_merge/LICENSE)
|
|
5
|
-
* [](https://www.npmjs.com/package/@faasjs/deep_merge)
|
|
6
|
-
*
|
|
7
|
-
* ## Install
|
|
8
|
-
*
|
|
9
|
-
* ```sh
|
|
10
|
-
* npm install @faasjs/deep_merge
|
|
11
|
-
* ```
|
|
12
|
-
* @packageDocumentation
|
|
13
|
-
*/
|
|
14
|
-
/**
|
|
15
|
-
* Deep merge two objects or arrays.
|
|
16
|
-
*
|
|
17
|
-
* Features:
|
|
18
|
-
* * All objects will be cloned before merging.
|
|
19
|
-
* * Merging order is from right to left.
|
|
20
|
-
* * If an array include same objects, it will be unique to one.
|
|
21
|
-
*
|
|
22
|
-
* ```ts
|
|
23
|
-
* deepMerge({ a: 1 }, { a: 2 }) // { a: 2 }
|
|
24
|
-
* deepMerge([1, 2], [2, 3]) // [1, 2, 3]
|
|
25
|
-
* ```
|
|
26
|
-
*/
|
|
27
|
-
declare function deepMerge(...sources: any[]): any;
|
|
28
|
-
|
|
29
|
-
export { deepMerge };
|