@dxyl/utils 1.0.0 → 1.1.0
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.es.js +8985 -0
- package/dist/index.umd.js +28 -0
- package/lib/glslang/glslang.d.ts +14 -0
- package/lib/glslang/glslang.js +113 -0
- package/lib/glslang/glslang.wasm +0 -0
- package/lib/twgsl/twgsl.js +53 -0
- package/lib/twgsl/twgsl.wasm +0 -0
- package/package.json +27 -34
- package/readme.md +0 -0
- package/types/Color.d.ts +69 -0
- package/types/Options.d.ts +70 -0
- package/types/antv-util/color/arr2rgb.d.ts +12 -0
- package/types/antv-util/color/gradient.d.ts +6 -0
- package/types/antv-util/color/index.d.ts +4 -0
- package/types/antv-util/color/rgb2arr.d.ts +6 -0
- package/types/antv-util/color/tocssgradient.d.ts +1 -0
- package/types/antv-util/color/torgb.d.ts +6 -0
- package/types/antv-util/helper/index.d.ts +2 -0
- package/types/antv-util/helper/mod.d.ts +1 -0
- package/types/antv-util/helper/to-radian.d.ts +1 -0
- package/types/antv-util/index.d.ts +3 -0
- package/types/antv-util/matrix/index.d.ts +27 -0
- package/types/antv-util/path/convert/path-2-absolute.d.ts +2 -0
- package/types/antv-util/path/convert/path-2-curve.d.ts +2 -0
- package/types/antv-util/path/convert/path-2-string.d.ts +6 -0
- package/types/antv-util/path/index.d.ts +17 -0
- package/types/antv-util/path/parser/finalize-segment.d.ts +5 -0
- package/types/antv-util/path/parser/is-arc-command.d.ts +4 -0
- package/types/antv-util/path/parser/is-digit-start.d.ts +6 -0
- package/types/antv-util/path/parser/is-path-command.d.ts +4 -0
- package/types/antv-util/path/parser/is-space.d.ts +4 -0
- package/types/antv-util/path/parser/params-count.d.ts +13 -0
- package/types/antv-util/path/parser/params-parser.d.ts +10 -0
- package/types/antv-util/path/parser/parse-path-string.d.ts +6 -0
- package/types/antv-util/path/parser/path-parser.d.ts +16 -0
- package/types/antv-util/path/parser/scan-flag.d.ts +6 -0
- package/types/antv-util/path/parser/scan-param.d.ts +6 -0
- package/types/antv-util/path/parser/scan-segment.d.ts +6 -0
- package/types/antv-util/path/parser/skip-spaces.d.ts +7 -0
- package/types/antv-util/path/process/arc-2-cubic.d.ts +7 -0
- package/types/antv-util/path/process/clone-path.d.ts +2 -0
- package/types/antv-util/path/process/fix-arc.d.ts +2 -0
- package/types/antv-util/path/process/line-2-cubic.d.ts +1 -0
- package/types/antv-util/path/process/normalize-path.d.ts +8 -0
- package/types/antv-util/path/process/normalize-segment.d.ts +6 -0
- package/types/antv-util/path/process/quad-2-cubic.d.ts +1 -0
- package/types/antv-util/path/process/reverse-curve.d.ts +2 -0
- package/types/antv-util/path/process/round-path.d.ts +6 -0
- package/types/antv-util/path/process/segment-2-cubic.d.ts +2 -0
- package/types/antv-util/path/types.d.ts +122 -0
- package/types/antv-util/path/util/distance-square-root.d.ts +1 -0
- package/types/antv-util/path/util/equalize-segments.d.ts +2 -0
- package/types/antv-util/path/util/get-draw-direction.d.ts +2 -0
- package/types/antv-util/path/util/get-path-area.d.ts +8 -0
- package/types/antv-util/path/util/get-path-bbox-total-length.d.ts +5 -0
- package/types/antv-util/path/util/get-path-bbox.d.ts +5 -0
- package/types/antv-util/path/util/get-point-at-length.d.ts +5 -0
- package/types/antv-util/path/util/get-properties-at-length.d.ts +6 -0
- package/types/antv-util/path/util/get-properties-at-point.d.ts +7 -0
- package/types/antv-util/path/util/get-rotated-curve.d.ts +2 -0
- package/types/antv-util/path/util/get-total-length.d.ts +8 -0
- package/types/antv-util/path/util/is-absolute-array.d.ts +6 -0
- package/types/antv-util/path/util/is-curve-array.d.ts +9 -0
- package/types/antv-util/path/util/is-normalized-array.d.ts +7 -0
- package/types/antv-util/path/util/is-path-array.d.ts +5 -0
- package/types/antv-util/path/util/is-point-in-stroke.d.ts +5 -0
- package/types/antv-util/path/util/mid-point.d.ts +1 -0
- package/types/antv-util/path/util/path-length-factory.d.ts +7 -0
- package/types/antv-util/path/util/rotate-vector.d.ts +4 -0
- package/types/antv-util/path/util/segment-arc-factory.d.ts +6 -0
- package/types/antv-util/path/util/segment-cubic-factory.d.ts +6 -0
- package/types/antv-util/path/util/segment-line-factory.d.ts +6 -0
- package/types/antv-util/path/util/segment-quad-factory.d.ts +6 -0
- package/types/callbacks.d.ts +30 -0
- package/types/color/colord/src/colorModels/cmyk.d.ts +23 -0
- package/types/color/colord/src/colorModels/cmykString.d.ts +7 -0
- package/types/color/colord/src/colorModels/hex.d.ts +5 -0
- package/types/color/colord/src/colorModels/hsl.d.ts +8 -0
- package/types/color/colord/src/colorModels/hslString.d.ts +7 -0
- package/types/color/colord/src/colorModels/hsv.d.ts +6 -0
- package/types/color/colord/src/colorModels/hwb.d.ts +6 -0
- package/types/color/colord/src/colorModels/hwbString.d.ts +7 -0
- package/types/color/colord/src/colorModels/lab.d.ts +18 -0
- package/types/color/colord/src/colorModels/lch.d.ts +19 -0
- package/types/color/colord/src/colorModels/lchString.d.ts +7 -0
- package/types/color/colord/src/colorModels/rgb.d.ts +13 -0
- package/types/color/colord/src/colorModels/rgbString.d.ts +7 -0
- package/types/color/colord/src/colorModels/xyz.d.ts +30 -0
- package/types/color/colord/src/colord.d.ts +103 -0
- package/types/color/colord/src/constants.d.ts +10 -0
- package/types/color/colord/src/extend.d.ts +4 -0
- package/types/color/colord/src/get/getBrightness.d.ts +7 -0
- package/types/color/colord/src/get/getContrast.d.ts +6 -0
- package/types/color/colord/src/get/getLuminance.d.ts +6 -0
- package/types/color/colord/src/get/getPerceivedDifference.d.ts +24 -0
- package/types/color/colord/src/helpers.d.ts +20 -0
- package/types/color/colord/src/index.d.ts +5 -0
- package/types/color/colord/src/manipulate/changeAlpha.d.ts +2 -0
- package/types/color/colord/src/manipulate/invert.d.ts +2 -0
- package/types/color/colord/src/manipulate/lighten.d.ts +2 -0
- package/types/color/colord/src/manipulate/mix.d.ts +2 -0
- package/types/color/colord/src/manipulate/saturate.d.ts +2 -0
- package/types/color/colord/src/parse.d.ts +8 -0
- package/types/color/colord/src/plugins/a11y.d.ts +38 -0
- package/types/color/colord/src/plugins/cmyk.d.ts +24 -0
- package/types/color/colord/src/plugins/harmonies.d.ts +16 -0
- package/types/color/colord/src/plugins/hwb.d.ts +23 -0
- package/types/color/colord/src/plugins/lab.d.ts +23 -0
- package/types/color/colord/src/plugins/lch.d.ts +24 -0
- package/types/color/colord/src/plugins/minify.d.ts +20 -0
- package/types/color/colord/src/plugins/mix.d.ts +27 -0
- package/types/color/colord/src/plugins/names.d.ts +19 -0
- package/types/color/colord/src/plugins/xyz.d.ts +14 -0
- package/types/color/colord/src/random.d.ts +2 -0
- package/types/color/colord/src/types.d.ts +67 -0
- package/types/data/immer.d.ts +262 -0
- package/types/data/immutable.d.ts +5127 -0
- package/types/data/mobx.d.ts +154 -0
- package/types/data/reactivity.d.ts +755 -0
- package/types/data/signals.d.ts +144 -0
- package/types/deepmerge.d.ts +16 -0
- package/types/events/eventTarget.d.ts +93 -0
- package/types/events/event_emiter.d.ts +43 -0
- package/types/events/eventemitter3.d.ts +135 -0
- package/types/events/mitt.d.ts +21 -0
- package/types/fast-deep-equal.d.ts +1 -0
- package/types/index.d.ts +20 -0
- package/types/ismobilejs.d.ts +46 -0
- package/types/lodash/augment.d.ts +2 -0
- package/types/lodash/cache.d.ts +14 -0
- package/types/lodash/clamp.d.ts +2 -0
- package/types/lodash/clear-animation-frame.d.ts +1 -0
- package/types/lodash/clone.d.ts +2 -0
- package/types/lodash/contains.d.ts +2 -0
- package/types/lodash/debounce.d.ts +2 -0
- package/types/lodash/deep-mix.d.ts +2 -0
- package/types/lodash/difference.d.ts +11 -0
- package/types/lodash/each.d.ts +2 -0
- package/types/lodash/ends-with.d.ts +3 -0
- package/types/lodash/every.d.ts +7 -0
- package/types/lodash/extend.d.ts +2 -0
- package/types/lodash/filter.d.ts +2 -0
- package/types/lodash/find-index.d.ts +2 -0
- package/types/lodash/find.d.ts +3 -0
- package/types/lodash/first-value.d.ts +2 -0
- package/types/lodash/fixed-base.d.ts +2 -0
- package/types/lodash/flatten-deep.d.ts +12 -0
- package/types/lodash/flatten.d.ts +11 -0
- package/types/lodash/for-in.d.ts +2 -0
- package/types/lodash/get-range.d.ts +6 -0
- package/types/lodash/get-type.d.ts +2 -0
- package/types/lodash/get-wrap-behavior.d.ts +9 -0
- package/types/lodash/get.d.ts +8 -0
- package/types/lodash/group-by.d.ts +6 -0
- package/types/lodash/group-to-map.d.ts +8 -0
- package/types/lodash/group.d.ts +2 -0
- package/types/lodash/has-key.d.ts +2 -0
- package/types/lodash/has-value.d.ts +2 -0
- package/types/lodash/has.d.ts +2 -0
- package/types/lodash/head.d.ts +1 -0
- package/types/lodash/identity.d.ts +2 -0
- package/types/lodash/index-of.d.ts +2 -0
- package/types/lodash/index.d.ts +108 -0
- package/types/lodash/is-arguments.d.ts +2 -0
- package/types/lodash/is-array-like.d.ts +2 -0
- package/types/lodash/is-array.d.ts +2 -0
- package/types/lodash/is-boolean.d.ts +2 -0
- package/types/lodash/is-date.d.ts +2 -0
- package/types/lodash/is-decimal.d.ts +2 -0
- package/types/lodash/is-element.d.ts +6 -0
- package/types/lodash/is-empty.d.ts +2 -0
- package/types/lodash/is-equal-with.d.ts +24 -0
- package/types/lodash/is-equal.d.ts +2 -0
- package/types/lodash/is-error.d.ts +2 -0
- package/types/lodash/is-even.d.ts +2 -0
- package/types/lodash/is-finite.d.ts +1 -0
- package/types/lodash/is-function.d.ts +2 -0
- package/types/lodash/is-integer.d.ts +2 -0
- package/types/lodash/is-match.d.ts +2 -0
- package/types/lodash/is-negative.d.ts +2 -0
- package/types/lodash/is-nil.d.ts +2 -0
- package/types/lodash/is-null.d.ts +2 -0
- package/types/lodash/is-number-equal.d.ts +1 -0
- package/types/lodash/is-number.d.ts +2 -0
- package/types/lodash/is-object-like.d.ts +2 -0
- package/types/lodash/is-object.d.ts +2 -0
- package/types/lodash/is-odd.d.ts +2 -0
- package/types/lodash/is-plain-object.d.ts +2 -0
- package/types/lodash/is-positive.d.ts +2 -0
- package/types/lodash/is-prototype.d.ts +2 -0
- package/types/lodash/is-reg-exp.d.ts +2 -0
- package/types/lodash/is-segment-equal.d.ts +2 -0
- package/types/lodash/is-string.d.ts +2 -0
- package/types/lodash/is-type.d.ts +2 -0
- package/types/lodash/is-undefined.d.ts +2 -0
- package/types/lodash/keys.d.ts +2 -0
- package/types/lodash/last.d.ts +1 -0
- package/types/lodash/lower-case.d.ts +2 -0
- package/types/lodash/lower-first.d.ts +2 -0
- package/types/lodash/map-values.d.ts +6 -0
- package/types/lodash/map.d.ts +2 -0
- package/types/lodash/max-by.d.ts +16 -0
- package/types/lodash/max.d.ts +19 -0
- package/types/lodash/memoize.d.ts +11 -0
- package/types/lodash/merge.d.ts +7 -0
- package/types/lodash/min-by.d.ts +16 -0
- package/types/lodash/min.d.ts +19 -0
- package/types/lodash/mix.d.ts +1 -0
- package/types/lodash/mod.d.ts +2 -0
- package/types/lodash/noop.d.ts +2 -0
- package/types/lodash/number2color.d.ts +2 -0
- package/types/lodash/omit.d.ts +3 -0
- package/types/lodash/parse-radius.d.ts +9 -0
- package/types/lodash/pick.d.ts +16 -0
- package/types/lodash/pull-at.d.ts +2 -0
- package/types/lodash/pull.d.ts +2 -0
- package/types/lodash/reduce.d.ts +3 -0
- package/types/lodash/remove.d.ts +2 -0
- package/types/lodash/request-animation-frame.d.ts +1 -0
- package/types/lodash/set.d.ts +8 -0
- package/types/lodash/size.d.ts +1 -0
- package/types/lodash/some.d.ts +7 -0
- package/types/lodash/sort-by.d.ts +7 -0
- package/types/lodash/starts-with.d.ts +3 -0
- package/types/lodash/substitute.d.ts +5 -0
- package/types/lodash/throttle.d.ts +6 -0
- package/types/lodash/to-array.d.ts +2 -0
- package/types/lodash/to-degree.d.ts +2 -0
- package/types/lodash/to-integer.d.ts +1 -0
- package/types/lodash/to-radian.d.ts +2 -0
- package/types/lodash/to-string.d.ts +2 -0
- package/types/lodash/types/index.d.ts +3 -0
- package/types/lodash/union.d.ts +2 -0
- package/types/lodash/uniq.d.ts +1 -0
- package/types/lodash/unique-id.d.ts +2 -0
- package/types/lodash/upper-case.d.ts +2 -0
- package/types/lodash/upper-first.d.ts +2 -0
- package/types/lodash/values-of-key.d.ts +2 -0
- package/types/lodash/values.d.ts +2 -0
- package/types/lodash/wrap-behavior.d.ts +9 -0
- package/types/parse-svg-path.d.ts +19 -0
- package/types/priority_queue.d.ts +41 -0
- package/types/radash/array.d.ts +209 -0
- package/types/radash/async.d.ts +99 -0
- package/types/radash/curry.d.ts +113 -0
- package/types/radash/index.d.ts +10 -0
- package/types/radash/number.d.ts +27 -0
- package/types/radash/object.d.ts +112 -0
- package/types/radash/random.d.ts +11 -0
- package/types/radash/series.d.ts +13 -0
- package/types/radash/string.d.ts +71 -0
- package/types/radash/typed.d.ts +26 -0
- package/types/stats.module.d.ts +3 -0
- package/README.md +0 -1
- package/dist/cjs/index.js +0 -19
- package/dist/umd/index.js +0 -23
- package/esm/extend.js +0 -3
- package/esm/index.js +0 -3
- package/lib/extend.js +0 -6
- package/lib/index.js +0 -6
- package/src/extend.ts +0 -6
- package/src/index.ts +0 -6
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generates a random number between min and max
|
|
3
|
+
*/
|
|
4
|
+
export declare const random: (min: number, max: number) => number;
|
|
5
|
+
/**
|
|
6
|
+
* Draw a random item from a list. Returns
|
|
7
|
+
* null if the list is empty
|
|
8
|
+
*/
|
|
9
|
+
export declare const draw: <T>(array: readonly T[]) => T | null;
|
|
10
|
+
export declare const shuffle: <T>(array: readonly T[]) => T[];
|
|
11
|
+
export declare const uid: (length: number, specials?: string) => string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Creates a series object around a list of values
|
|
3
|
+
* that should be treated with order.
|
|
4
|
+
*/
|
|
5
|
+
export declare const series: <T>(items: T[], toKey?: (item: T) => string | symbol) => {
|
|
6
|
+
min: (a: T, b: T) => T;
|
|
7
|
+
max: (a: T, b: T) => T;
|
|
8
|
+
first: () => T;
|
|
9
|
+
last: () => T;
|
|
10
|
+
next: (current: T, defaultValue?: T) => T;
|
|
11
|
+
previous: (current: T, defaultValue?: T) => T;
|
|
12
|
+
spin: (current: T, num: number) => T;
|
|
13
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Capitalize the first word of the string
|
|
3
|
+
*
|
|
4
|
+
* capitalize('hello') -> 'Hello'
|
|
5
|
+
* capitalize('va va voom') -> 'Va va voom'
|
|
6
|
+
*/
|
|
7
|
+
export declare const capitalize: (str: string) => string;
|
|
8
|
+
/**
|
|
9
|
+
* Formats the given string in camel case fashion
|
|
10
|
+
*
|
|
11
|
+
* camel('hello world') -> 'helloWorld'
|
|
12
|
+
* camel('va va-VOOM') -> 'vaVaVoom'
|
|
13
|
+
* camel('helloWorld') -> 'helloWorld'
|
|
14
|
+
*/
|
|
15
|
+
export declare const camel: (str: string) => string;
|
|
16
|
+
/**
|
|
17
|
+
* Formats the given string in snake case fashion
|
|
18
|
+
*
|
|
19
|
+
* snake('hello world') -> 'hello_world'
|
|
20
|
+
* snake('va va-VOOM') -> 'va_va_voom'
|
|
21
|
+
* snake('helloWord') -> 'hello_world'
|
|
22
|
+
*/
|
|
23
|
+
export declare const snake: (str: string, options?: {
|
|
24
|
+
splitOnNumber?: boolean;
|
|
25
|
+
}) => string;
|
|
26
|
+
/**
|
|
27
|
+
* Formats the given string in dash case fashion
|
|
28
|
+
*
|
|
29
|
+
* dash('hello world') -> 'hello-world'
|
|
30
|
+
* dash('va va_VOOM') -> 'va-va-voom'
|
|
31
|
+
* dash('helloWord') -> 'hello-word'
|
|
32
|
+
*/
|
|
33
|
+
export declare const dash: (str: string) => string;
|
|
34
|
+
/**
|
|
35
|
+
* Formats the given string in pascal case fashion
|
|
36
|
+
*
|
|
37
|
+
* pascal('hello world') -> 'HelloWorld'
|
|
38
|
+
* pascal('va va boom') -> 'VaVaBoom'
|
|
39
|
+
*/
|
|
40
|
+
export declare const pascal: (str: string) => string;
|
|
41
|
+
/**
|
|
42
|
+
* Formats the given string in title case fashion
|
|
43
|
+
*
|
|
44
|
+
* title('hello world') -> 'Hello World'
|
|
45
|
+
* title('va_va_boom') -> 'Va Va Boom'
|
|
46
|
+
* title('root-hook') -> 'Root Hook'
|
|
47
|
+
* title('queryItems') -> 'Query Items'
|
|
48
|
+
*/
|
|
49
|
+
export declare const title: (str: string | null | undefined) => string;
|
|
50
|
+
/**
|
|
51
|
+
* template is used to replace data by name in template strings.
|
|
52
|
+
* The default expression looks for {{name}} to identify names.
|
|
53
|
+
*
|
|
54
|
+
* Ex. template('Hello, {{name}}', { name: 'ray' })
|
|
55
|
+
* Ex. template('Hello, <name>', { name: 'ray' }, /<(.+?)>/g)
|
|
56
|
+
*/
|
|
57
|
+
export declare const template: (str: string, data: Record<string, any>, regex?: RegExp) => string;
|
|
58
|
+
/**
|
|
59
|
+
* Trims all prefix and suffix characters from the given
|
|
60
|
+
* string. Like the builtin trim function but accepts
|
|
61
|
+
* other characters you would like to trim and trims
|
|
62
|
+
* multiple characters.
|
|
63
|
+
*
|
|
64
|
+
* ```typescript
|
|
65
|
+
* trim(' hello ') // => 'hello'
|
|
66
|
+
* trim('__hello__', '_') // => 'hello'
|
|
67
|
+
* trim('/repos/:owner/:repo/', '/') // => 'repos/:owner/:repo'
|
|
68
|
+
* trim('222222__hello__1111111', '12_') // => 'hello'
|
|
69
|
+
* ```
|
|
70
|
+
*/
|
|
71
|
+
export declare const trim: (str: string | null | undefined, charsToTrim?: string) => string;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare const isSymbol: (value: any) => value is symbol;
|
|
2
|
+
export declare const isArray: (arg: any) => arg is any[];
|
|
3
|
+
export declare const isObject: (value: any) => value is object;
|
|
4
|
+
/**
|
|
5
|
+
* Checks if the given value is primitive.
|
|
6
|
+
*
|
|
7
|
+
* Primitive Types: number , string , boolean , symbol, bigint, undefined, null
|
|
8
|
+
*
|
|
9
|
+
* @param {*} value value to check
|
|
10
|
+
* @returns {boolean} result
|
|
11
|
+
*/
|
|
12
|
+
export declare const isPrimitive: (value: any) => boolean;
|
|
13
|
+
export declare const isFunction: (value: any) => value is Function;
|
|
14
|
+
export declare const isString: (value: any) => value is string;
|
|
15
|
+
export declare const isInt: (value: any) => value is number;
|
|
16
|
+
export declare const isFloat: (value: any) => value is number;
|
|
17
|
+
export declare const isNumber: (value: any) => value is number;
|
|
18
|
+
export declare const isDate: (value: any) => value is Date;
|
|
19
|
+
/**
|
|
20
|
+
* This is really a _best guess_ promise checking. You
|
|
21
|
+
* should probably use Promise.resolve(value) to be 100%
|
|
22
|
+
* sure you're handling it correctly.
|
|
23
|
+
*/
|
|
24
|
+
export declare const isPromise: (value: any) => value is Promise<any>;
|
|
25
|
+
export declare const isEmpty: (value: any) => boolean;
|
|
26
|
+
export declare const isEqual: <TType>(x: TType, y: TType) => boolean;
|
package/README.md
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
# @dxyl/utils
|
package/dist/cjs/index.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/*@desc utils */
|
|
2
|
-
'use strict';
|
|
3
|
-
|
|
4
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
|
-
|
|
6
|
-
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
7
|
-
|
|
8
|
-
var lodash = _interopDefault(require('lodash'));
|
|
9
|
-
|
|
10
|
-
function extend() {
|
|
11
|
-
return 'f';
|
|
12
|
-
}
|
|
13
|
-
function getDef() {
|
|
14
|
-
return 'd';
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
exports._ = lodash;
|
|
18
|
-
exports.extend = extend;
|
|
19
|
-
exports.getDef = getDef;
|
package/dist/umd/index.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/*@desc utils */
|
|
2
|
-
(function (global, factory) {
|
|
3
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('lodash')) :
|
|
4
|
-
typeof define === 'function' && define.amd ? define(['exports', 'lodash'], factory) :
|
|
5
|
-
(global = global || self, factory((global.Dx = global.Dx || {}, global.Dx.utils = {}), global._));
|
|
6
|
-
}(this, (function (exports, lodash) { 'use strict';
|
|
7
|
-
|
|
8
|
-
lodash = lodash && Object.prototype.hasOwnProperty.call(lodash, 'default') ? lodash['default'] : lodash;
|
|
9
|
-
|
|
10
|
-
function extend() {
|
|
11
|
-
return 'f';
|
|
12
|
-
}
|
|
13
|
-
function getDef() {
|
|
14
|
-
return 'd';
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
exports._ = lodash;
|
|
18
|
-
exports.extend = extend;
|
|
19
|
-
exports.getDef = getDef;
|
|
20
|
-
|
|
21
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
22
|
-
|
|
23
|
-
})));
|
package/esm/extend.js
DELETED
package/esm/index.js
DELETED
package/lib/extend.js
DELETED
package/lib/index.js
DELETED
package/src/extend.ts
DELETED