@pie-element/shared-lodash 0.1.1-next.0 → 0.1.1-next.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 +1 -1
- package/dist/index.js +6 -2
- package/package.json +2 -8
package/dist/index.d.ts
CHANGED
|
@@ -63,7 +63,7 @@ export declare function throttle<T extends AnyFn>(fn: T, wait?: number, options?
|
|
|
63
63
|
}): CancelableFunction<T>;
|
|
64
64
|
export declare function times<T = number>(count: number, iteratee?: (index: number) => T): T[];
|
|
65
65
|
export declare function uniqueId(prefix?: string): string;
|
|
66
|
-
export declare function uniq<T>(array: T
|
|
66
|
+
export declare function uniq<T>(array: ArrayLike<T> | null | undefined): T[];
|
|
67
67
|
export declare function uniqWith<T>(array: T[] | null | undefined, comparator: (a: T, b: T) => boolean): T[];
|
|
68
68
|
export declare function zip(...arrays: unknown[][]): unknown[][];
|
|
69
69
|
declare const lodash: {
|
package/dist/index.js
CHANGED
|
@@ -101,6 +101,10 @@ function b(e, t) {
|
|
|
101
101
|
return e;
|
|
102
102
|
}
|
|
103
103
|
function x(e, t, r) {
|
|
104
|
+
if (!Array.isArray(t) && e != null && Object.prototype.hasOwnProperty.call(Object(e), t)) {
|
|
105
|
+
let n = e[t];
|
|
106
|
+
return n === void 0 ? r : n;
|
|
107
|
+
}
|
|
104
108
|
let i = e;
|
|
105
109
|
for (let e of n(t)) {
|
|
106
110
|
if (i == null) return r;
|
|
@@ -132,7 +136,7 @@ function D(e) {
|
|
|
132
136
|
return Array.isArray(e);
|
|
133
137
|
}
|
|
134
138
|
function O(e) {
|
|
135
|
-
return e == null ? !0 : typeof e == "string" || Array.isArray(e) ? e.length === 0 : e instanceof Map || e instanceof Set ? e.size === 0 : t(e)
|
|
139
|
+
return e == null ? !0 : typeof e == "string" || Array.isArray(e) ? e.length === 0 : e instanceof Map || e instanceof Set ? e.size === 0 : !t(e) || Object.keys(e).length === 0;
|
|
136
140
|
}
|
|
137
141
|
function k(n, r, i) {
|
|
138
142
|
let a = i?.(n, r);
|
|
@@ -256,7 +260,7 @@ function ie(e = "") {
|
|
|
256
260
|
return re += 1, `${e}${re}`;
|
|
257
261
|
}
|
|
258
262
|
function $(e) {
|
|
259
|
-
return Array.from(new Set(e
|
|
263
|
+
return e != null && e.length ? Array.from(new Set(Array.from(e))) : [];
|
|
260
264
|
}
|
|
261
265
|
function ae(e, t) {
|
|
262
266
|
let n = [];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/shared-lodash",
|
|
3
|
-
"version": "0.1.1-next.
|
|
3
|
+
"version": "0.1.1-next.2",
|
|
4
4
|
"description": "Vendored lodash helper subset for PIE elements",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -20,19 +20,13 @@
|
|
|
20
20
|
"test": "vitest",
|
|
21
21
|
"clean": "rm -rf dist"
|
|
22
22
|
},
|
|
23
|
-
"devDependencies": {
|
|
24
|
-
"@types/bun": "latest",
|
|
25
|
-
"typescript": "^5.9.3",
|
|
26
|
-
"vite": "^8.0.1",
|
|
27
|
-
"vitest": "^4.1.0"
|
|
28
|
-
},
|
|
29
23
|
"publishConfig": {
|
|
30
24
|
"access": "public"
|
|
31
25
|
},
|
|
32
26
|
"license": "MIT",
|
|
33
27
|
"repository": {
|
|
34
28
|
"type": "git",
|
|
35
|
-
"url": "https://github.com/pie-framework/pie-elements-ng.git",
|
|
29
|
+
"url": "git+https://github.com/pie-framework/pie-elements-ng.git",
|
|
36
30
|
"directory": "packages/shared/lodash"
|
|
37
31
|
},
|
|
38
32
|
"homepage": "https://github.com/pie-framework/pie-elements-ng#readme",
|