to-assigned 2.0.0 → 2.0.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/dist/index.d.ts +3 -9
- package/dist/index.mjs +7 -1
- package/package.json +6 -5
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
declare const $assign: {
|
|
2
|
-
<T extends {}, U>(target: T, source: U): T & U;
|
|
3
|
-
<T extends {}, U, V>(target: T, source1: U, source2: V): T & U & V;
|
|
4
|
-
<T extends {}, U, V, W>(target: T, source1: U, source2: V, source3: W): T & U & V & W;
|
|
5
|
-
(target: object, ...sources: any[]): any;
|
|
6
|
-
};
|
|
7
1
|
declare const isObject: (v: unknown) => v is object;
|
|
8
2
|
/**
|
|
9
3
|
* ## Usage
|
|
@@ -17,13 +11,13 @@ declare const isObject: (v: unknown) => v is object;
|
|
|
17
11
|
* ## About
|
|
18
12
|
* @package ToAssigned
|
|
19
13
|
* @author KasukabeTsumugi <futami16237@gmail.com>
|
|
20
|
-
* @version 2.0.
|
|
14
|
+
* @version 2.0.2 (Last Update: 2026.02.17 18:56:18.158)
|
|
21
15
|
* @license MIT
|
|
22
|
-
* @link git+https://github.com/baendlorel/
|
|
16
|
+
* @link git+https://github.com/baendlorel/kt-packages.git
|
|
23
17
|
* @link https://baendlorel.github.io/ Welcome to my site!
|
|
24
18
|
* @description Like Object.assign but will return a new object and ignores non-object arguments.
|
|
25
19
|
* @copyright Copyright (c) 2026 KasukabeTsumugi. All rights reserved.
|
|
26
20
|
*/
|
|
27
21
|
declare function toAssigned(...sources: any[]): any;
|
|
28
22
|
|
|
29
|
-
export {
|
|
23
|
+
export { isObject, toAssigned };
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1,7 @@
|
|
|
1
|
-
const t=Object.assign,e=t=>null!==t&&"object"==typeof t;
|
|
1
|
+
const t = Object.assign, e = t => null !== t && "object" == typeof t;
|
|
2
|
+
|
|
3
|
+
function n(...n) {
|
|
4
|
+
return 0 === (n = n.filter(e)).length ? {} : t({}, ...n);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export { e as isObject, n as toAssigned };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "to-assigned",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "KasukabeTsumugi",
|
|
6
6
|
"email": "futami16237@gmail.com"
|
|
@@ -22,7 +22,8 @@
|
|
|
22
22
|
},
|
|
23
23
|
"repository": {
|
|
24
24
|
"type": "git",
|
|
25
|
-
"url": "git+https://github.com/baendlorel/
|
|
25
|
+
"url": "git+https://github.com/baendlorel/kt-packages.git",
|
|
26
|
+
"directory": "packages/to-assigned"
|
|
26
27
|
},
|
|
27
28
|
"keywords": [
|
|
28
29
|
"concat",
|
|
@@ -32,8 +33,8 @@
|
|
|
32
33
|
],
|
|
33
34
|
"license": "MIT",
|
|
34
35
|
"bugs": {
|
|
35
|
-
"url": "https://github.com/baendlorel/
|
|
36
|
+
"url": "https://github.com/baendlorel/kt-packages/issues"
|
|
36
37
|
},
|
|
37
|
-
"homepage": "https://github.com/baendlorel/to-assigned#readme",
|
|
38
|
+
"homepage": "https://github.com/baendlorel/kt-packages/tree/main/packages/to-assigned#readme",
|
|
38
39
|
"devDependencies": {}
|
|
39
|
-
}
|
|
40
|
+
}
|