@klyper/utils 0.2.0 → 0.2.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.cjs +6 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +6 -2
- package/package.json +5 -1
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @klyper/utils v0.2.
|
|
2
|
+
* @klyper/utils v0.2.2
|
|
3
3
|
* Utility helpers for the Klyper ecosystem.
|
|
4
4
|
* (c) 2026 Andrew Caires
|
|
5
5
|
* @license: MIT
|
|
@@ -12,5 +12,10 @@ function isNil(value) {
|
|
|
12
12
|
|
|
13
13
|
function noop() {}
|
|
14
14
|
|
|
15
|
+
function identity(value) {
|
|
16
|
+
return value;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
exports.identity = identity;
|
|
15
20
|
exports.isNil = isNil;
|
|
16
21
|
exports.noop = noop;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @klyper/utils v0.2.
|
|
2
|
+
* @klyper/utils v0.2.2
|
|
3
3
|
* Utility helpers for the Klyper ecosystem.
|
|
4
4
|
* (c) 2026 Andrew Caires
|
|
5
5
|
* @license: MIT
|
|
6
6
|
*/
|
|
7
7
|
export declare function isNil(value: unknown): value is null | undefined;
|
|
8
8
|
export declare function noop(): void;
|
|
9
|
+
export declare function identity<T>(value: T): T;
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @klyper/utils v0.2.
|
|
2
|
+
* @klyper/utils v0.2.2
|
|
3
3
|
* Utility helpers for the Klyper ecosystem.
|
|
4
4
|
* (c) 2026 Andrew Caires
|
|
5
5
|
* @license: MIT
|
|
@@ -10,4 +10,8 @@ function isNil(value) {
|
|
|
10
10
|
|
|
11
11
|
function noop() {}
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
function identity(value) {
|
|
14
|
+
return value;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export { identity, isNil, noop };
|
package/package.json
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@klyper/utils",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "Utility helpers for the Klyper ecosystem.",
|
|
5
5
|
"author": "Andrew Caires",
|
|
6
6
|
"license": "MIT",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/andrewcaires/klyper.git"
|
|
10
|
+
},
|
|
7
11
|
"type": "module",
|
|
8
12
|
"main": "./dist/index.cjs",
|
|
9
13
|
"module": "./dist/index.js",
|