@my-devkit/core 1.0.19 → 1.0.20
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/my-devkit-core-1.0.20.tgz +0 -0
- package/package.json +1 -1
- package/vendors/lodash.d.ts +16 -1
- package/vendors/lodash.js +1 -0
- package/vendors/lodash.js.map +1 -1
- package/my-devkit-core-1.0.19.tgz +0 -0
|
Binary file
|
package/package.json
CHANGED
package/vendors/lodash.d.ts
CHANGED
|
@@ -1,4 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
declare type List<T> = ArrayLike<T>;
|
|
2
|
+
interface Dictionary<T> {
|
|
3
|
+
[index: string]: T;
|
|
4
|
+
}
|
|
5
|
+
declare type NotVoid = unknown;
|
|
6
|
+
declare type PropertyName = string | number | symbol;
|
|
7
|
+
declare type PartialShallow<T> = {
|
|
8
|
+
[P in keyof T]?: T[P] extends object ? object : T[P];
|
|
9
|
+
};
|
|
10
|
+
declare type IterateeShorthand<T> = PropertyName | [PropertyName, any] | PartialShallow<T>;
|
|
11
|
+
declare type Many<T> = T | ReadonlyArray<T>;
|
|
12
|
+
declare type ValueIteratee<T> = ((value: T) => NotVoid) | IterateeShorthand<T>;
|
|
13
|
+
declare type RecursiveArray<T> = Array<T | RecursiveArray<T>>;
|
|
14
|
+
declare type ListOfRecursiveArraysOrValues<T> = List<T | RecursiveArray<T>>;
|
|
15
|
+
declare type Flat<T> = T extends string ? T : (T extends List<any> ? never : T);
|
|
2
16
|
export declare const _uniq: <T>(array: List<T> | null | undefined) => T[];
|
|
3
17
|
export declare const _flatten: <T>(array: List<Many<T>>) => T[];
|
|
4
18
|
export declare const _flattenDeep: <T>(array: ListOfRecursiveArraysOrValues<T>) => Flat<T>[];
|
|
@@ -21,3 +35,4 @@ export declare const _maxBy: <T>(collection: List<T>, iteratee?: ValueIteratee<T
|
|
|
21
35
|
export declare const _minBy: <T>(collection: List<T>, iteratee?: ValueIteratee<T>) => T;
|
|
22
36
|
export declare const _first: <T>(array: List<T>) => T;
|
|
23
37
|
export declare const _last: <T>(array: List<T>) => T;
|
|
38
|
+
export {};
|
package/vendors/lodash.js
CHANGED
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports._last = exports._first = exports._minBy = exports._maxBy = exports._cloneDeep = exports._groupBy = exports._shuffle = exports._kebabCase = exports._deburr = exports._isEqual = exports._words = exports._sum = exports._sumBy = exports._flattenDeep = exports._flatten = exports._uniq = void 0;
|
|
4
4
|
/* eslint-disable @typescript-eslint/ban-types */
|
|
5
5
|
var lodash_1 = require("lodash");
|
|
6
|
+
// Export functions with proper type
|
|
6
7
|
exports._uniq = lodash_1.uniq;
|
|
7
8
|
exports._flatten = lodash_1.flatten;
|
|
8
9
|
exports._flattenDeep = lodash_1.flattenDeep;
|
package/vendors/lodash.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lodash.js","sourceRoot":"","sources":["../../src/vendors/lodash.ts"],"names":[],"mappings":";;;AAAA,iDAAiD;AACjD,
|
|
1
|
+
{"version":3,"file":"lodash.js","sourceRoot":"","sources":["../../src/vendors/lodash.ts"],"names":[],"mappings":";;;AAAA,iDAAiD;AACjD,iCAA2J;AAe3J,oCAAoC;AACvB,QAAA,KAAK,GAAkD,aAAI,CAAC;AAC5D,QAAA,QAAQ,GAAqC,gBAAO,CAAC;AACrD,QAAA,YAAY,GAA8D,oBAAW,CAAC;AACtF,QAAA,MAAM,GAAmF,cAAK,CAAC;AAC/F,QAAA,IAAI,GAAsC,YAAG,CAAC;AAC9C,QAAA,MAAM,GAGf,cAAK,CAAC;AACG,QAAA,QAAQ,GAAwC,gBAAO,CAAC;AACxD,QAAA,OAAO,GAAgC,eAAM,CAAC;AAC9C,QAAA,UAAU,GAAgC,kBAAS,CAAC;AACpD,QAAA,QAAQ,GAGjB,gBAAO,CAAC;AACC,QAAA,QAAQ,GAA6E,gBAAO,CAAC;AAC7F,QAAA,UAAU,GAAuB,kBAAS,CAAC;AAC3C,QAAA,MAAM,GAA+D,cAAK,CAAC;AAC3E,QAAA,MAAM,GAA+D,cAAK,CAAC;AAC3E,QAAA,MAAM,GAA6B,cAAK,CAAC;AACzC,QAAA,KAAK,GAA6B,aAAI,CAAC"}
|
|
Binary file
|