@naturalcycles/js-lib 15.71.0 → 15.71.1

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.
@@ -46,5 +46,6 @@ declare class AsyncManagerImpl {
46
46
  * @experimental
47
47
  */
48
48
  export declare const AsyncManager: AsyncManagerImpl;
49
+ export declare const runInBackground: (promise: Promise<unknown>) => void;
49
50
  export type OnErrorHook = (err: Error) => any;
50
51
  export {};
@@ -81,3 +81,5 @@ class AsyncManagerImpl {
81
81
  * @experimental
82
82
  */
83
83
  export const AsyncManager = new AsyncManagerImpl();
84
+ // Shorthand alias
85
+ export const runInBackground = AsyncManager.runInBackground.bind(AsyncManager);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@naturalcycles/js-lib",
3
3
  "type": "module",
4
- "version": "15.71.0",
4
+ "version": "15.71.1",
5
5
  "dependencies": {
6
6
  "tslib": "^2"
7
7
  },
@@ -93,4 +93,7 @@ class AsyncManagerImpl {
93
93
  */
94
94
  export const AsyncManager = new AsyncManagerImpl()
95
95
 
96
+ // Shorthand alias
97
+ export const runInBackground = AsyncManager.runInBackground.bind(AsyncManager)
98
+
96
99
  export type OnErrorHook = (err: Error) => any