@elliemae/pui-app-sdk 5.20.0 → 5.20.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/cjs/utils/decorators/functionDecorators.js +1 -1
- package/dist/cjs/utils/decorators/index.js +2 -1
- package/dist/esm/utils/decorators/functionDecorators.js +1 -1
- package/dist/esm/utils/decorators/index.js +3 -1
- package/dist/types/lib/utils/decorators/index.d.ts +2 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -168,7 +168,7 @@ function AsyncSingleExecution(_target, _propertyKey, descriptor) {
|
|
|
168
168
|
const promise = originalMethod.apply(this, args);
|
|
169
169
|
if (promise instanceof Promise) {
|
|
170
170
|
promiseMap.set(key, promise);
|
|
171
|
-
promise.finally(() => {
|
|
171
|
+
promise.catch((e) => e).finally(() => {
|
|
172
172
|
promiseMap.delete(key);
|
|
173
173
|
});
|
|
174
174
|
}
|
|
@@ -35,6 +35,7 @@ const decorators = {
|
|
|
35
35
|
Memoize: import_functionDecorators.Memoize,
|
|
36
36
|
MemoizeAsync: import_functionDecorators.MemoizeAsync,
|
|
37
37
|
QueueTask: import_functionDecorators.QueueTask,
|
|
38
|
-
Throttle: import_functionDecorators.Throttle
|
|
38
|
+
Throttle: import_functionDecorators.Throttle,
|
|
39
|
+
AsyncSingleExecution: import_functionDecorators.AsyncSingleExecution
|
|
39
40
|
}
|
|
40
41
|
};
|
|
@@ -138,7 +138,7 @@ function AsyncSingleExecution(_target, _propertyKey, descriptor) {
|
|
|
138
138
|
const promise = originalMethod.apply(this, args);
|
|
139
139
|
if (promise instanceof Promise) {
|
|
140
140
|
promiseMap.set(key, promise);
|
|
141
|
-
promise.finally(() => {
|
|
141
|
+
promise.catch((e) => e).finally(() => {
|
|
142
142
|
promiseMap.delete(key);
|
|
143
143
|
});
|
|
144
144
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Mixins, Singleton } from "./classDecorators.js";
|
|
2
2
|
import {
|
|
3
|
+
AsyncSingleExecution,
|
|
3
4
|
CacheUntilResolved,
|
|
4
5
|
Debounce,
|
|
5
6
|
ImmutableArgs,
|
|
@@ -20,7 +21,8 @@ const decorators = {
|
|
|
20
21
|
Memoize,
|
|
21
22
|
MemoizeAsync,
|
|
22
23
|
QueueTask,
|
|
23
|
-
Throttle
|
|
24
|
+
Throttle,
|
|
25
|
+
AsyncSingleExecution
|
|
24
26
|
}
|
|
25
27
|
};
|
|
26
28
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Mixins, Singleton } from './classDecorators.js';
|
|
2
|
-
import { CacheUntilResolved, Debounce, ImmutableArgs, Memoize, MemoizeAsync, QueueTask, Throttle } from './functionDecorators.js';
|
|
2
|
+
import { AsyncSingleExecution, CacheUntilResolved, Debounce, ImmutableArgs, Memoize, MemoizeAsync, QueueTask, Throttle } from './functionDecorators.js';
|
|
3
3
|
declare const decorators: {
|
|
4
4
|
class: {
|
|
5
5
|
Mixins: typeof Mixins;
|
|
@@ -13,6 +13,7 @@ declare const decorators: {
|
|
|
13
13
|
MemoizeAsync: typeof MemoizeAsync;
|
|
14
14
|
QueueTask: typeof QueueTask;
|
|
15
15
|
Throttle: typeof Throttle;
|
|
16
|
+
AsyncSingleExecution: typeof AsyncSingleExecution;
|
|
16
17
|
};
|
|
17
18
|
};
|
|
18
19
|
export { decorators };
|