@jscrpt/common 2.3.0 → 3.0.0-beta.20220907063712
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/changelog.md +36 -0
- package/es/rxjs/src/utils/async.js.map +1 -1
- package/es/rxjs/src/utils/async.mjs +10 -4
- package/es/src/decorators/bindThis.decorator.js.map +1 -1
- package/es/src/decorators/callOnce.decorator.js.map +1 -1
- package/es/src/decorators/callOnce.decorator.mjs +13 -6
- package/es/src/decorators/debounceCall.decorator.js.map +1 -1
- package/es/src/decorators/debounceCall.decorator.mjs +34 -6
- package/es/src/decorators/withSync.decorator.js.map +1 -0
- package/es/src/decorators/withSync.decorator.mjs +33 -0
- package/es/src/index.js.map +1 -1
- package/es/src/index.mjs +2 -1
- package/es/src/types/dictionaries.js.map +1 -1
- package/es/src/types/functions.js.map +1 -1
- package/es/src/types/invalidatable.js.map +1 -0
- package/es/src/types/invalidatable.mjs +2 -0
- package/es/src/utils/common.js.map +1 -1
- package/es2015/rxjs/src/utils/async.js +10 -4
- package/es2015/rxjs/src/utils/async.js.map +1 -1
- package/es2015/src/decorators/bindThis.decorator.js.map +1 -1
- package/es2015/src/decorators/callOnce.decorator.js +13 -6
- package/es2015/src/decorators/callOnce.decorator.js.map +1 -1
- package/es2015/src/decorators/debounceCall.decorator.js +34 -6
- package/es2015/src/decorators/debounceCall.decorator.js.map +1 -1
- package/es2015/src/decorators/withSync.decorator.js +33 -0
- package/es2015/src/decorators/withSync.decorator.js.map +1 -0
- package/es2015/src/index.js +2 -1
- package/es2015/src/index.js.map +1 -1
- package/es2015/src/types/dictionaries.js.map +1 -1
- package/es2015/src/types/functions.js.map +1 -1
- package/es2015/src/types/invalidatable.js +2 -0
- package/es2015/src/types/invalidatable.js.map +1 -0
- package/es2015/src/utils/common.js.map +1 -1
- package/es2020/rxjs/src/utils/async.js +10 -4
- package/es2020/rxjs/src/utils/async.js.map +1 -1
- package/es2020/src/decorators/callOnce.decorator.js +13 -6
- package/es2020/src/decorators/callOnce.decorator.js.map +1 -1
- package/es2020/src/decorators/debounceCall.decorator.js +32 -5
- package/es2020/src/decorators/debounceCall.decorator.js.map +1 -1
- package/es2020/src/decorators/withSync.decorator.js +29 -0
- package/es2020/src/decorators/withSync.decorator.js.map +1 -0
- package/es2020/src/index.js +2 -1
- package/es2020/src/index.js.map +1 -1
- package/es2020/src/types/dictionaries.js.map +1 -1
- package/es2020/src/types/functions.js.map +1 -1
- package/es2020/src/types/invalidatable.js +2 -0
- package/es2020/src/types/invalidatable.js.map +1 -0
- package/es2020/src/utils/common.js.map +1 -1
- package/es5/rxjs/src/utils/async.js +10 -4
- package/es5/rxjs/src/utils/async.js.map +1 -1
- package/es5/src/decorators/bindThis.decorator.js.map +1 -1
- package/es5/src/decorators/callOnce.decorator.js +14 -6
- package/es5/src/decorators/callOnce.decorator.js.map +1 -1
- package/es5/src/decorators/debounceCall.decorator.js +45 -6
- package/es5/src/decorators/debounceCall.decorator.js.map +1 -1
- package/es5/src/decorators/withSync.decorator.js +47 -0
- package/es5/src/decorators/withSync.decorator.js.map +1 -0
- package/es5/src/index.js +2 -1
- package/es5/src/index.js.map +1 -1
- package/es5/src/types/dictionaries.js.map +1 -1
- package/es5/src/types/functions.js.map +1 -1
- package/es5/src/types/invalidatable.js +2 -0
- package/es5/src/types/invalidatable.js.map +1 -0
- package/es5/src/utils/common.js.map +1 -1
- package/module/rxjs/src/index.cjs +2 -2
- package/module/rxjs/src/index.js.map +1 -1
- package/module/rxjs/src/utils/async.cjs +9 -3
- package/module/rxjs/src/utils/async.js.map +1 -1
- package/module/src/decorators/bindThis.decorator.js.map +1 -1
- package/module/src/decorators/callOnce.decorator.cjs +13 -6
- package/module/src/decorators/callOnce.decorator.js.map +1 -1
- package/module/src/decorators/debounceCall.decorator.cjs +34 -6
- package/module/src/decorators/debounceCall.decorator.js.map +1 -1
- package/module/src/decorators/withSync.decorator.cjs +37 -0
- package/module/src/decorators/withSync.decorator.js.map +1 -0
- package/module/src/index.cjs +22 -21
- package/module/src/index.js.map +1 -1
- package/module/src/indexNode.cjs +1 -1
- package/module/src/indexNode.js.map +1 -1
- package/module/src/types/dictionaries.js.map +1 -1
- package/module/src/types/functions.js.map +1 -1
- package/module/src/types/invalidatable.cjs +3 -0
- package/module/src/types/invalidatable.js.map +1 -0
- package/module/src/utils/common.cjs +1 -1
- package/module/src/utils/common.js.map +1 -1
- package/package.json +8 -8
- package/rxjs/src/utils/async.d.ts.map +1 -1
- package/src/decorators/callOnce.decorator.d.ts.map +1 -1
- package/src/decorators/debounceCall.decorator.d.ts.map +1 -1
- package/src/decorators/withSync.decorator.d.ts +5 -0
- package/src/decorators/withSync.decorator.d.ts.map +1 -0
- package/src/index.d.ts +2 -1
- package/src/index.d.ts.map +1 -1
- package/src/types/dictionaries.d.ts +2 -2
- package/src/types/dictionaries.d.ts.map +1 -1
- package/src/types/functions.d.ts +75 -0
- package/src/types/functions.d.ts.map +1 -1
- package/src/types/invalidatable.d.ts +10 -0
- package/src/types/invalidatable.d.ts.map +1 -0
- package/src/utils/common.d.ts +1 -1
- package/src/utils/common.d.ts.map +1 -1
- package/version.bak +1 -1
- package/es/src/utils/async.js.map +0 -1
- package/es/src/utils/async.mjs +0 -14
- package/es2015/src/utils/async.js +0 -14
- package/es2015/src/utils/async.js.map +0 -1
- package/es2020/src/utils/async.js +0 -11
- package/es2020/src/utils/async.js.map +0 -1
- package/es5/src/utils/async.js +0 -19
- package/es5/src/utils/async.js.map +0 -1
- package/module/src/utils/async.cjs +0 -18
- package/module/src/utils/async.js.map +0 -1
- package/src/utils/async.d.ts +0 -7
- package/src/utils/async.d.ts.map +0 -1
package/src/types/functions.d.ts
CHANGED
|
@@ -11,10 +11,85 @@ export declare type NoopAction = () => void;
|
|
|
11
11
|
* @typeParam TArgs - Type parameters for function
|
|
12
12
|
*/
|
|
13
13
|
export declare type Action<TArgs extends Array<unknown> = unknown[]> = (...args: TArgs) => void;
|
|
14
|
+
/**
|
|
15
|
+
* Function definition with one argument and no return type
|
|
16
|
+
* @typeParam TArg1 - Type of first parameter
|
|
17
|
+
*/
|
|
18
|
+
export declare type Action1<TArg1 = unknown> = (arg1: TArg1) => void;
|
|
19
|
+
/**
|
|
20
|
+
* Function definition with two arguments and no return type
|
|
21
|
+
* @typeParam TArg1 - Type of first parameter
|
|
22
|
+
* @typeParam TArg2 - Type of second parameter
|
|
23
|
+
*/
|
|
24
|
+
export declare type Action2<TArg1 = unknown, TArg2 = unknown> = (arg1: TArg1, arg2: TArg2) => void;
|
|
25
|
+
/**
|
|
26
|
+
* Function definition with three arguments and no return type
|
|
27
|
+
* @typeParam TArg1 - Type of first parameter
|
|
28
|
+
* @typeParam TArg2 - Type of second parameter
|
|
29
|
+
* @typeParam TArg3 - Type of third parameter
|
|
30
|
+
*/
|
|
31
|
+
export declare type Action3<TArg1 = unknown, TArg2 = unknown, TArg3 = unknown> = (arg1: TArg1, arg2: TArg2, arg3: TArg3) => void;
|
|
32
|
+
/**
|
|
33
|
+
* Function definition with four arguments and no return type
|
|
34
|
+
* @typeParam TArg1 - Type of first parameter
|
|
35
|
+
* @typeParam TArg2 - Type of second parameter
|
|
36
|
+
* @typeParam TArg3 - Type of third parameter
|
|
37
|
+
* @typeParam TArg4 - Type of fourth parameter
|
|
38
|
+
*/
|
|
39
|
+
export declare type Action4<TArg1 = unknown, TArg2 = unknown, TArg3 = unknown, TArg4 = unknown> = (arg1: TArg1, arg2: TArg2, arg3: TArg3, arg4: TArg4) => void;
|
|
40
|
+
/**
|
|
41
|
+
* Function definition with five arguments and no return type
|
|
42
|
+
* @typeParam TArg1 - Type of first parameter
|
|
43
|
+
* @typeParam TArg2 - Type of second parameter
|
|
44
|
+
* @typeParam TArg3 - Type of third parameter
|
|
45
|
+
* @typeParam TArg4 - Type of fourth parameter
|
|
46
|
+
* @typeParam TArg5 - Type of fifth parameter
|
|
47
|
+
*/
|
|
48
|
+
export declare type Action5<TArg1 = unknown, TArg2 = unknown, TArg3 = unknown, TArg4 = unknown, TArg5 = unknown> = (arg1: TArg1, arg2: TArg2, arg3: TArg3, arg4: TArg4, arg5: TArg5) => void;
|
|
14
49
|
/**
|
|
15
50
|
* Function definition with variable arguments and return type
|
|
16
51
|
* @typeParam TResult - Return type of function
|
|
17
52
|
* @typeParam TArgs - Type parameters for function
|
|
18
53
|
*/
|
|
19
54
|
export declare type Func<TResult = unknown, TArgs extends Array<unknown> = unknown[]> = (...args: TArgs) => TResult;
|
|
55
|
+
/**
|
|
56
|
+
* Function definition with one argument and return type
|
|
57
|
+
* @typeParam TResult - Return type of function
|
|
58
|
+
* @typeParam TArg1 - Type of first parameter
|
|
59
|
+
*/
|
|
60
|
+
export declare type Func1<TResult = unknown, TArg1 = unknown> = (arg1: TArg1) => TResult;
|
|
61
|
+
/**
|
|
62
|
+
* Function definition with two arguments and return type
|
|
63
|
+
* @typeParam TResult - Return type of function
|
|
64
|
+
* @typeParam TArg1 - Type of first parameter
|
|
65
|
+
* @typeParam TArg2 - Type of second parameter
|
|
66
|
+
*/
|
|
67
|
+
export declare type Func2<TResult = unknown, TArg1 = unknown, TArg2 = unknown> = (arg1: TArg1, arg2: TArg2) => TResult;
|
|
68
|
+
/**
|
|
69
|
+
* Function definition with three arguments and return type
|
|
70
|
+
* @typeParam TResult - Return type of function
|
|
71
|
+
* @typeParam TArg1 - Type of first parameter
|
|
72
|
+
* @typeParam TArg2 - Type of second parameter
|
|
73
|
+
* @typeParam TArg3 - Type of third parameter
|
|
74
|
+
*/
|
|
75
|
+
export declare type Func3<TResult = unknown, TArg1 = unknown, TArg2 = unknown, TArg3 = unknown> = (arg1: TArg1, arg2: TArg2, arg3: TArg3) => TResult;
|
|
76
|
+
/**
|
|
77
|
+
* Function definition with four arguments and return type
|
|
78
|
+
* @typeParam TResult - Return type of function
|
|
79
|
+
* @typeParam TArg1 - Type of first parameter
|
|
80
|
+
* @typeParam TArg2 - Type of second parameter
|
|
81
|
+
* @typeParam TArg3 - Type of third parameter
|
|
82
|
+
* @typeParam TArg4 - Type of fourth parameter
|
|
83
|
+
*/
|
|
84
|
+
export declare type Func4<TResult = unknown, TArg1 = unknown, TArg2 = unknown, TArg3 = unknown, TArg4 = unknown> = (arg1: TArg1, arg2: TArg2, arg3: TArg3, arg4: TArg4) => TResult;
|
|
85
|
+
/**
|
|
86
|
+
* Function definition with five arguments and return type
|
|
87
|
+
* @typeParam TResult - Return type of function
|
|
88
|
+
* @typeParam TArg1 - Type of first parameter
|
|
89
|
+
* @typeParam TArg2 - Type of second parameter
|
|
90
|
+
* @typeParam TArg3 - Type of third parameter
|
|
91
|
+
* @typeParam TArg4 - Type of fourth parameter
|
|
92
|
+
* @typeParam TArg5 - Type of fifth parameter
|
|
93
|
+
*/
|
|
94
|
+
export declare type Func5<TResult = unknown, TArg1 = unknown, TArg2 = unknown, TArg3 = unknown, TArg4 = unknown, TArg5 = unknown> = (arg1: TArg1, arg2: TArg2, arg3: TArg3, arg4: TArg4, arg5: TArg5) => TResult;
|
|
20
95
|
//# sourceMappingURL=functions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"functions.d.ts","sourceRoot":"","sources":["functions.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,aAAa,CAAC,OAAO,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,KAAK,GAAG,IAAI,OAAO,SAAS,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC,KAAK,MAAM,CAAC,GAAG,CAAC,GAAG,IAAI,EAAE,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC;AAE7I;;GAEG;AACH,oBAAY,UAAU,GAAG,MAAM,IAAI,CAAC;AAEpC;;;GAGG;AACH,oBAAY,MAAM,CAAC,KAAK,SAAS,KAAK,CAAC,OAAO,CAAC,GAAG,OAAO,EAAE,IAAI,CAAC,GAAG,IAAI,EAAE,KAAK,KAAK,IAAI,CAAC;AAExF;;;;GAIG;AACH,oBAAY,IAAI,CAAC,OAAO,GAAG,OAAO,EAAE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EAAE,KAAK,GAAG,OAAO,EAAE,KAAK,GAAG,OAAO,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,KAAK,OAAO,CAAC;AAE3K;;;;;;;;GAQG;AACH,oBAAY,KAAK,CAAC,OAAO,GAAG,OAAO,EAAE,KAAK,GAAG,OAAO,EAAE,KAAK,GAAG,OAAO,EAAE,KAAK,GAAG,OAAO,EAAE,KAAK,GAAG,OAAO,EAAE,KAAK,GAAG,OAAO,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,KAAK,OAAO,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents type that can be visualy invalidated
|
|
3
|
+
*/
|
|
4
|
+
export interface Invalidatable {
|
|
5
|
+
/**
|
|
6
|
+
* Explicitly runs invalidation of content (change detection), which redraws contents
|
|
7
|
+
*/
|
|
8
|
+
invalidateVisuals(): void;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=invalidatable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invalidatable.d.ts","sourceRoot":"","sources":["invalidatable.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,aAAa;IAI1B;;OAEG;IACH,iBAAiB,IAAI,IAAI,CAAC;CAC7B"}
|
package/src/utils/common.d.ts
CHANGED
|
@@ -187,7 +187,7 @@ export declare function asDictionary<TType>(instance: TType): AsDictionary<TType
|
|
|
187
187
|
* @param value - Object holding values that will be used for filling
|
|
188
188
|
* @param all - Indication whether map only existing properties or everything
|
|
189
189
|
*/
|
|
190
|
-
export declare function mapValuesToThis(this: Dictionary<any>, value: Dictionary<any
|
|
190
|
+
export declare function mapValuesToThis(this: Dictionary<any>, value: Dictionary<any> | undefined | null, all?: boolean): void;
|
|
191
191
|
/**
|
|
192
192
|
* Briefly shows simple notification with simple text
|
|
193
193
|
* @param show - Indication whether show notification
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["common.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,YAAY,EAAE,UAAU,EAAE,gBAAgB,EAAC,MAAM,uBAAuB,CAAC;AACjF,OAAO,EAAC,IAAI,EAAC,MAAM,gBAAgB,CAAC;AACpC,OAAO,EAAC,aAAa,EAAC,MAAM,wBAAwB,CAAC;AAGrD;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAGjD;AAED;;;;;GAKG;AACH,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AACzE;;;;;;GAMG;AACH,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAC7F;;;;;;;GAOG;AACH,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAChH;;;;;;;;GAQG;AACH,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,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BAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAGrD;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,QAAQ,EAAE,KAAK,GAAG,YAAY,CAAC,KAAK,CAAC,CAGxE;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,UAAU,CAAC,GAAG,CAAC,EAAE,KAAK,EAAE,UAAU,CAAC,GAAG,CAAC,GAAC,SAAS,GAAC,IAAI,EAAE,GAAG,GAAE,OAAe,GAAG,IAAI,CAcxH;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,GAAE,MAAqC,GAAG,IAAI,CAsCnG"}
|
package/version.bak
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
3.0.0-beta.20220907063712
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"async.mjs","sourceRoot":"","sources":["../../../src/utils/async.ts"],"names":[],"mappings":";AAEA;;;GAGG;AACH,MAAM,UAAgB,gBAAgB,CAAU,KAAyB;;QAErE,IAAG,KAAK,YAAY,OAAO,EAC3B;YACI,OAAO,MAAM,KAAK,CAAC;SACtB;QAED,OAAO,KAAK,CAAC;IACjB,CAAC;CAAA","sourcesContent":["import {PromiseOr} from '../types/async';\n\n/**\n * Resolves `PromiseOr` value\n * @param value - Value to be solved\n */\nexport async function resolvePromiseOr<TResult>(value: PromiseOr<TResult>): Promise<TResult>\n{\n if(value instanceof Promise)\n {\n return await value;\n }\n\n return value;\n}\n"]}
|
package/es/src/utils/async.mjs
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { __awaiter } from "tslib";
|
|
2
|
-
/**
|
|
3
|
-
* Resolves `PromiseOr` value
|
|
4
|
-
* @param value - Value to be solved
|
|
5
|
-
*/
|
|
6
|
-
export function resolvePromiseOr(value) {
|
|
7
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
8
|
-
if (value instanceof Promise) {
|
|
9
|
-
return yield value;
|
|
10
|
-
}
|
|
11
|
-
return value;
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=async.js.map
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { __awaiter } from "tslib";
|
|
2
|
-
/**
|
|
3
|
-
* Resolves `PromiseOr` value
|
|
4
|
-
* @param value - Value to be solved
|
|
5
|
-
*/
|
|
6
|
-
export function resolvePromiseOr(value) {
|
|
7
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
8
|
-
if (value instanceof Promise) {
|
|
9
|
-
return yield value;
|
|
10
|
-
}
|
|
11
|
-
return value;
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=async.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"async.js","sourceRoot":"","sources":["../../../src/utils/async.ts"],"names":[],"mappings":";AAEA;;;GAGG;AACH,MAAM,UAAgB,gBAAgB,CAAU,KAAyB;;QAErE,IAAG,KAAK,YAAY,OAAO,EAC3B;YACI,OAAO,MAAM,KAAK,CAAC;SACtB;QAED,OAAO,KAAK,CAAC;IACjB,CAAC;CAAA","sourcesContent":["import {PromiseOr} from '../types/async';\n\n/**\n * Resolves `PromiseOr` value\n * @param value - Value to be solved\n */\nexport async function resolvePromiseOr<TResult>(value: PromiseOr<TResult>): Promise<TResult>\n{\n if(value instanceof Promise)\n {\n return await value;\n }\n\n return value;\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"async.js","sourceRoot":"","sources":["../../../src/utils/async.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,gBAAgB,CAAU,KAAyB;IAErE,IAAG,KAAK,YAAY,OAAO,EAC3B;QACI,OAAO,MAAM,KAAK,CAAC;KACtB;IAED,OAAO,KAAK,CAAC;AACjB,CAAC","sourcesContent":["import {PromiseOr} from '../types/async';\n\n/**\n * Resolves `PromiseOr` value\n * @param value - Value to be solved\n */\nexport async function resolvePromiseOr<TResult>(value: PromiseOr<TResult>): Promise<TResult>\n{\n if(value instanceof Promise)\n {\n return await value;\n }\n\n return value;\n}\n"]}
|
package/es5/src/utils/async.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { __awaiter, __generator } from "tslib";
|
|
2
|
-
/**
|
|
3
|
-
* Resolves `PromiseOr` value
|
|
4
|
-
* @param value - Value to be solved
|
|
5
|
-
*/
|
|
6
|
-
export function resolvePromiseOr(value) {
|
|
7
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
8
|
-
return __generator(this, function (_a) {
|
|
9
|
-
switch (_a.label) {
|
|
10
|
-
case 0:
|
|
11
|
-
if (!(value instanceof Promise)) return [3 /*break*/, 2];
|
|
12
|
-
return [4 /*yield*/, value];
|
|
13
|
-
case 1: return [2 /*return*/, _a.sent()];
|
|
14
|
-
case 2: return [2 /*return*/, value];
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=async.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"async.js","sourceRoot":"","sources":["../../../src/utils/async.ts"],"names":[],"mappings":";AAEA;;;GAGG;AACH,MAAM,UAAgB,gBAAgB,CAAU,KAAyB;;;;;yBAElE,CAAA,KAAK,YAAY,OAAO,CAAA,EAAxB,wBAAwB;oBAEhB,qBAAM,KAAK,EAAA;wBAAlB,sBAAO,SAAW,EAAC;wBAGvB,sBAAO,KAAK,EAAC;;;;CAChB","sourcesContent":["import {PromiseOr} from '../types/async';\n\n/**\n * Resolves `PromiseOr` value\n * @param value - Value to be solved\n */\nexport async function resolvePromiseOr<TResult>(value: PromiseOr<TResult>): Promise<TResult>\n{\n if(value instanceof Promise)\n {\n return await value;\n }\n\n return value;\n}\n"]}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.resolvePromiseOr = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
/**
|
|
6
|
-
* Resolves `PromiseOr` value
|
|
7
|
-
* @param value - Value to be solved
|
|
8
|
-
*/
|
|
9
|
-
function resolvePromiseOr(value) {
|
|
10
|
-
return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
|
|
11
|
-
if (value instanceof Promise) {
|
|
12
|
-
return yield value;
|
|
13
|
-
}
|
|
14
|
-
return value;
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
exports.resolvePromiseOr = resolvePromiseOr;
|
|
18
|
-
//# sourceMappingURL=async.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"async.cjs","sourceRoot":"","sources":["../../../src/utils/async.ts"],"names":[],"mappings":";;;;AAEA;;;GAGG;AACH,SAAsB,gBAAgB,CAAU,KAAyB;;QAErE,IAAG,KAAK,YAAY,OAAO,EAC3B;YACI,OAAO,MAAM,KAAK,CAAC;SACtB;QAED,OAAO,KAAK,CAAC;IACjB,CAAC;CAAA;AARD,4CAQC","sourcesContent":["import {PromiseOr} from '../types/async';\n\n/**\n * Resolves `PromiseOr` value\n * @param value - Value to be solved\n */\nexport async function resolvePromiseOr<TResult>(value: PromiseOr<TResult>): Promise<TResult>\n{\n if(value instanceof Promise)\n {\n return await value;\n }\n\n return value;\n}\n"]}
|
package/src/utils/async.d.ts
DELETED
package/src/utils/async.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"async.d.ts","sourceRoot":"","sources":["async.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAEzC;;;GAGG;AACH,wBAAsB,gBAAgB,CAAC,OAAO,EAAE,KAAK,EAAE,SAAS,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC,OAAO,CAAC,CAQ3F"}
|