push neon reactor

This commit is contained in:
Lago committed 2026-07-12 15:11:38 +02:00
1 parent 172e72dbcd
commit aeab5f7820
9597 files changed
+2407488

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2022 NevWare21 Solutions LLC
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
+220
View File
@@ -0,0 +1,220 @@
<h1 align="center">@nevware21/ts-async</h1>
<h2 align="center">Promise support implementations and helpers for TypeScript built for minification</h2>
![GitHub Workflow Status (main)](https://img.shields.io/github/actions/workflow/status/nevware21/ts-async/ci.yml?branch=main)
[![codecov](https://codecov.io/gh/nevware21/ts-async/branch/main/graph/badge.svg?token=KA05820FMO)](https://codecov.io/gh/nevware21/ts-async)
[![npm version](https://badge.fury.io/js/%40nevware21%2Fts-async.svg)](https://badge.fury.io/js/%40nevware21%2Fts-async)
[![downloads](https://img.shields.io/npm/dt/%40nevware21/ts-async.svg)](https://www.npmjs.com/package/%40nevware21/ts-async)
[![downloads](https://img.shields.io/npm/dm/%40nevware21/ts-async.svg)](https://www.npmjs.com/package/%40nevware21/ts-async)
## Description
This package provides support for asynchronous development with a Promise based task Scheduler, several different Promise implementations (synchronous, idle, asynchronous and native runtime wrappers), await helpers, and aliases all built and tested using TypeScript.
One of the primary focuses of this package is to provide support for the creation of code that can be better minified, resulting in a smaller runtime payload which can directly assist with Page Load performance.
The Promise based Task Scheduler supports the serialized execution of tasks using promises to control when the next task should be executed (after the previous task completes), this leverages the supplied Promise implementations so that you can easily create an Idle Task Scheduler which executes the tasks using `requestIdleCallback` when using the `createIdlePromise` implementation.
> All of the provided Promise implementations support usage patterns via either `await` or with the included helper functions (`doAwait`, `doFinally`, `doAwaitresponse`), you can also mix and match them (use both helper and `await`) as required by your use cases.
### Test Environments
- Node (18, 20, 22, 24)
- Browser (Chromium - headless)
- Web Worker (Chromium - headless)
### Documentation and details
See the documentation [generated from source code](https://nevware21.github.io/ts-async/typedoc/index.html) via typedoc for a full list and details of all of the available types, functions, interfaces with included examples.
See [Browser Support](#browser-support) for details on the supported browser environments.
| Type / Function | Since | Details
|-----------------------|-------|-----------------------
| **Promise based Scheduler**
| [`createTaskScheduler`](https://nevware21.github.io/ts-async/typedoc/functions/createTaskScheduler.html) | |Create a Task Scheduler using the optional promise implementation and scheduler name. The newPromise can be any value promise creation function, where the execution of the queued tasks will be processed based on how the promise implementation processes it's chained promises (asynchrounsly; synchronously; idle processing, etc)<br />There is no limit on the number of schedulers that you can create, when using more than one scheduler it is recommended that you provide a `name` to each scheduler to help identify / group promises during debugging.
| [`ITaskScheduler`](https://nevware21.github.io/ts-async/typedoc/interfaces/ITaskScheduler.html) | 0.2.0 |Defines a Task Scheduler that uses IPromise implementations to serialize the execution of the tasks. Each added task will not get executed until the previous task has completed.
| [`StartQueuedTaskFn`](https://nevware21.github.io/ts-async/typedoc/types/StartQueuedTaskFn.html) | 0.2.0 | Identifies the function to call to start and execute the task when its ready to be executed.
| **Interfaces**
| [`IPromise`](https://nevware21.github.io/ts-async/typedoc/interfaces/IPromise.html) | |This package uses and exports the `IPromise<T>` interface which extends both the `PromiseLike<T>` and `Promise<T>` to provide type compatibility when passing the Promises created with this package to any function that expects a `Promise` (including returning from an `async function`). As part of it's definition it exposes an [optional] string `status` to represent the current state of the `Promise`. These values include `pending`, `resolved` `rejected` and `resolving` which is a special case when a Promise is being `resolved` via another Promise returned via the `thenable` onResolved / onRejected functions.
| [`AwaitResponse`](https://nevware21.github.io/ts-async/typedoc/interfaces/AwaitResponse.html) | |This interface is used to represent the result whether resolved or rejected when using the [`doAwaitResponse`](https://nevware21.github.io/ts-async/typedoc/functions/doAwaitResponse.html), this function is useful when you want to avoid creating both a `resolved` and `rejected` functions, as this function only requires a single callback function to be used which will receive an object that conforms to this interface.
| [`IWhileState`](https://nevware21.github.io/ts-async/typedoc/interfaces/IWhileState.html) | 0.5.0| The current state of the while loop while processing the callback function, this is passed to eht callback function.
| [`IPromiseResult`](https://nevware21.github.io/ts-async/typedoc/interfaces/IPromiseResult.html) | 0.5.0 |The result of a promise. It can either be fulfilled with a value, or rejected with a reason.
| **Alias**
| [`createPromise`](https://nevware21.github.io/ts-async/typedoc/functions/createPromise.html)<br/> [`createAllPromise`](https://nevware21.github.io/ts-async/typedoc/functions/createAllPromise.html) <br/> [`createAllSettledPromise`](https://nevware21.github.io/ts-async/typedoc/functions/createAllSettledPromise.html) <br/> [`createAnyPromise`](https://nevware21.github.io/ts-async/typedoc/functions/createAnyPromise.html) <br/> [`createRacePromise`](https://nevware21.github.io/ts-async/typedoc/functions/createRacePromise.html) <br/> [`createRejectedPromise`](https://nevware21.github.io/ts-async/typedoc/functions/createRejectedPromise.html) <br/> [`createResolvedPromise`](https://nevware21.github.io/ts-async/typedoc/functions/createResolvedPromise.html) <br /> <br/> [`setCreatePromiseImpl`](https://nevware21.github.io/ts-async/typedoc/functions/setCreatePromiseImpl.html) | <br /> <br /> 0.5.0 <br /> 0.5.0 <br /> 0.5.0 <br /> <br /> <br /> <br /> <br /> | These function use the current promise creator implementation that can be set via <code>[`setCreatePromiseImpl`](https://nevware21.github.io/ts-async/typedoc/functions/setCreatePromiseImpl.html)(creator: &lt;T&gt;(executor: PromiseExecutor&lt;T&gt;, timeout?: number) => IPromise&lt;T&gt;): void</code> <br/>Unless otherwise set this defaults to the `createNativePromise` implementation, to provide a simplified wrapper around any native runtime Promise support. <br/>Available implementation: <ul><li>[`createNativePromise`](https://nevware21.github.io/ts-async/typedoc/functions/createNativePromise.html) <li>[`createAsyncPromise`](https://nevware21.github.io/ts-async/typedoc/functions/createAsyncPromise.html) <li>[`createSyncPromise`](https://nevware21.github.io/ts-async/typedoc/functions/createSyncPromise.html) <li>[`createIdlePromise`](https://nevware21.github.io/ts-async/typedoc/functions/createIdlePromise.html) </ul> By using these aliases, it's possible to switch between any of these implementations as needed without duplicating your code. This will not change any existing promises, it only affects new promises.
| [`createNativePromise`](https://nevware21.github.io/ts-async/typedoc/functions/createNativePromise.html) <br/> [`createNativeAllPromise`](https://nevware21.github.io/ts-async/typedoc/functions/createNativeAllPromise.html) <br/> [`createNativeAllSettledPromise`](https://nevware21.github.io/ts-async/typedoc/functions/createNativeAllSettledPromise.html) <br/> [`createNativeAnyPromise`](https://nevware21.github.io/ts-async/typedoc/functions/createNativeAnyPromise.html) <br/> [`createNativeRacePromise`](https://nevware21.github.io/ts-async/typedoc/functions/createNativeRacePromise.html) <br/> [`createNativeRejectedPromise`](https://nevware21.github.io/ts-async/typedoc/functions/createNativeRejectedPromise.html) <br/> [`createNativeResolvedPromise`](https://nevware21.github.io/ts-async/typedoc/functions/createNativeResolvedPromise.html) | <br /> <br /> 0.5.0 <br /> 0.5.0 <br /> 0.5.0 <br /> <br /> <br /> | These are effectively wrappers around the runtime `Promise` class, so this is effectivly the same as `new Promise(...)` but as a non-global class name it can be heavily minified to something like `a(...)`. These wrappers also add an accessible `status` property for identifying the current status of this promise. However, the `status` property is NOT available on any returned chained Promise (from calling `then`, `catch` or `finally`)
| **Asynchronous Promise**
| [`createAsyncPromise`](https://nevware21.github.io/ts-async/typedoc/functions/createAsyncPromise.html) <br/> [`createAsyncAllPromise`](https://nevware21.github.io/ts-async/typedoc/functions/createAsyncAllPromise.html) <br/> [`createAsyncAllSettledPromise`](https://nevware21.github.io/ts-async/typedoc/functions/createAsyncAllSettledPromise.html) <br/> [`createAsyncAnyPromise`](https://nevware21.github.io/ts-async/typedoc/functions/createAsyncAnyPromise.html) <br/> [`createAsyncRacePromise`](https://nevware21.github.io/ts-async/typedoc/functions/createAsyncRacePromise.html) <br/> [`createAsyncRejectedPromise`](https://nevware21.github.io/ts-async/typedoc/functions/createAsyncRejectedPromise.html) <br/> [`createAsyncResolvedPromise`](https://nevware21.github.io/ts-async/typedoc/functions/createAsyncResolvedPromise.html) | <br /> <br /> 0.5.0 <br /> 0.5.0 <br /> 0.5.0 <br /> <br /> <br /> | Provides an implementation of the `Promise` contract that uses timeouts to process any chained promises (returned by `then(...)`, `catch(...)`, `finally(...)`), when creating the initial promise you can also provide (override) the default duration of the timeout (defaults to 0ms) to further delay the execution of the chained Promises.<br/>, but can also be provided) to process any chained promises (of any type)
| **Synchronous Promise**
| [`createSyncPromise`](https://nevware21.github.io/ts-async/typedoc/functions/createSyncPromise.html) <br/> [`createSyncAllPromise`](https://nevware21.github.io/ts-async/typedoc/functions/createSyncAllPromise.html) <br/> [`createSyncAllSettledPromise`](https://nevware21.github.io/ts-async/typedoc/functions/createSyncAllSettledPromise.html) <br/> [`createSyncAnyPromise`](https://nevware21.github.io/ts-async/typedoc/functions/createSyncAnyPromise.html) <br/> [`createSyncRacePromise`](https://nevware21.github.io/ts-async/typedoc/functions/createSyncRacePromise.html) <br/> [`createSyncRejectedPromise`](https://nevware21.github.io/ts-async/typedoc/functions/createSyncRejectedPromise.html) <br/> [`createSyncResolvedPromise`](https://nevware21.github.io/ts-async/typedoc/functions/createSyncResolvedPromise.html) | <br /> <br /> 0.5.0 <br /> 0.5.0 <br /> 0.5.0 <br /> <br /> <br /> | Also implements the `Promise` contract but will immediately execute any chained promises at the point of the original promise getting resolved or rejected, or if already resolved, rejected then at the point of registering the `then`, `catch` or `finally`
| **Idle Promise**
| [`createIdlePromise`](https://nevware21.github.io/ts-async/typedoc/functions/createIdlePromise.html) <br/> [`createIdleAllPromise`](https://nevware21.github.io/ts-async/typedoc/functions/createIdleAllPromise.html) <br/> [`createIdleAllSettledPromise`](https://nevware21.github.io/ts-async/typedoc/functions/createIdleAllSettledPromise.html) <br/> [`createIdleAnyPromise`](https://nevware21.github.io/ts-async/typedoc/functions/createIdleAnyPromise.html) <br/> [`createIdleRacePromise`](https://nevware21.github.io/ts-async/typedoc/functions/createIdleRacePromise.html) <br/> [`createIdleRejectedPromise`](https://nevware21.github.io/ts-async/typedoc/functions/createIdleRejectedPromise.html) <br/> [`createIdleResolvedPromise`](https://nevware21.github.io/ts-async/typedoc/functions/createIdleResolvedPromise.html) | <br /> <br /> 0.5.0 <br /> 0.5.0 <br /> 0.5.0 <br /> <br /> <br /> | Implements the `Promise` contract and will process any chained promises using the available `requestIdleCallback` (with no timeout by default - but can also be changes by `setDetaultIdlePromiseTimeout`). And when `requestIdleCallback` is not supported this will default to using a timeout via the [`scheduleIdleCallback` from `@nevware21/ts-utils`](https://nevware21.github.io/ts-utils/typedoc/functions/scheduleIdleCallback.html)
| **Timeout**
| [`createTimeoutPromise`](https://nevware21.github.io/ts-async/typedoc/functions/createTimeoutPromise.html) | | Creates a Promise instance that resolve or reject after the specified timeout.
| **Helpers**
| [`createTimeoutPromise`](https://nevware21.github.io/ts-async/typedoc/functions/createTimeoutPromise.html) | 0.5.0 | Creates a Promise instance that resolve or reject after the specified timeout.
| [`doAwait`](https://nevware21.github.io/ts-async/typedoc/functions/doAwait.html) | | Helper which handles `await` "handling" via callback functions to avoid the TypeScript boilerplate code that is added for multiple branches. Internal it handles being passed an `IPromise` or a result value so you avoid needing to test whether the result you have is also a `Promise`.<br />It takes three (3) optional callback functions for `resolved`, `rejected` and `finally`.
| [`doAwaitResponse`](https://nevware21.github.io/ts-async/typedoc/functions/doAwaitResponse.html) | | Helper which handles `await` "handling" via a single callback where `resolved` and `rejected` cases are handled by the same callback, this receives an `AwaitResponse` object that provides the `value` or `reason` and a flag indicating whether the Promise was `rejected`
| [`doFinally`](https://nevware21.github.io/ts-async/typedoc/functions/doFinally.html) | | Helper to provide `finally` handling for any promise using a callback implementation, analogous to using `try` / `finally` around an `await` function or using the `finally` on the promise directly
| [`arrForEachAsync`](https://nevware21.github.io/ts-async/typedoc/functions/arrForEachAsync.html) | 0.5.0 | Performs an asynchronous for loop where the calling function may return an [`IPromise`](https://nevware21.github.io/ts-async/typedoc/interfaces/IPromise.html) which must be fulfilled before the next iteration is called.
| [`doWhileAsync`](https://nevware21.github.io/ts-async/typedoc/functions/doWhileAsync.html) | 0.5.0 | Performs a while loop where the calling function may return an [`IPromise`](https://nevware21.github.io/ts-async/typedoc/interfaces/IPromise.html) which must be fulfilled before the next iteration is called.
| [`iterForOfAsync`](https://nevware21.github.io/ts-async/typedoc/functions/iterForOfAsync.html) | 0.5.0 | Iterates over the iterator where the calling function may return an [`IPromise`](https://nevware21.github.io/ts-async/typedoc/interfaces/IPromise.html) which must be fulfilled before the next iteration is called.
| **Polyfill**
| [`PolyPromise`](https://nevware21.github.io/ts-async/typedoc/classes/PolyPromise.html) | 0.5.0 | A full polyfill for the Promise class
All promise implementations are validated using TypeScript with `async` / `await` and the internal helper functions `doAwait`, `doFinally` and `doAwaitResponse` helpers. Usage of the `doAwait` or `doAwaitResponse` is recommended as this avoids the additional boiler plate code that is added by TypeScript when handling the branches in an `async` / `await` operations, this does however, mean that your calling functions will also need to handle this `async` operations via callbacks rather than just causing the code path to "halt" at the `await` and can therefore may be a little more complex (depending on your implementation).
> However, you are NOT restricted to only using `await` OR `doAwait` they can be used together. For example your public API can still be defined as asynchronous, but internally you could use `doAwait`
```ts
async function myApi()
{
await doAwait(thePromise, (result) => { ... }, (reason) => { ... });
}
```
### Unhandled Promise Rejection Event
All implementations will "emit/dispatch" the unhandled promise rejections event (`unhandledRejection` (node) or `unhandledrejection`) (if supported by the runtime) using the standard runtime mechanisms. So any existing handlers for native (`new Promise`) unhandled rejections will also receive them from the `idle`, `sync` and `async` implementations. The only exception to this is when the runtime (like IE) doesn't support this event in those cases "if" an `onunhandledrejection` function is registered it will be called and if that also doesn't exist it will logged to the console (if possible).
### Pollyfill
The package provides a simple polyfill wrapper which is built around the `asynchronous` promise implementation which is tested and validated against the standard native (`Promise()`) implementations for node, browser and web-worker to ensure compatibility.
## Language ECMAScript Support
### ES5
This library plans to maintain ES5 compatibility for all versions of v0.x and v1.x releases
### TypeScript Type Definitions
The published type definitions (`.d.ts`) include a `/// <reference lib="es2018" />` directive. This means TypeScript will automatically load ES2018 type definitions when consuming this package. This is a **type-level requirement only** — no ES2018 runtime features are needed because the library provides its own internal polyfills/shims for environments that lack them.
If your project explicitly sets `"lib"` in `tsconfig.json`, ensure it includes at least `"es2018"` (or the individual libs `"es2015.promise"` and `"es2018.asynciterable"`):
```json
{
"compilerOptions": {
"lib": ["es2018", "dom"]
}
}
```
> Projects that omit the `"lib"` field entirely (defaulting to the libs implied by `"target"`) may need to add it explicitly if targeting ES5.
### ES(future [6 next, etc])
Future versions of this library starting at version 2.x are planned to lift and remove the internal polyfills to support the new targetted baseline once it is defined.
ie. It may or may not be ES6 depending on the runtime landscape and requests received.
When we release v2.x the supported browser matrix will also shift as required to match the defined language level supported at that time.
## Quickstart
Install the npm packare: `npm install @nevware21/ts-async --save`
> It is suggested / recommended that you use the following definition in your `package.json` so that you are compatible with any future releases as they become available
> we do not intend to make ANY known breaking changes moving forward until v2.x
> ```json
> "@nevware21/ts-async": ">= 0.6.1 < 2.x"
> ```
And then just import the helpers and use them.
### Simple Examples
#### Using Task Scheduler
```ts
import { createTaskScheduler } from "@nevware21/ts-async";
import { scheduleTimeout } from "@nevware21/ts-utils";
let scheduler = createTaskScheduler();
// Schedule (and start) task 1 using native promise
// Because this is a new scheduler there are no other
// pending tasks so this will be started synchronously
let task1 = scheduler.queue(() => {
return new Promise((resolve) => {
setTimeout(() => {
resolve(42);
}, 100);
});
});
// task1.status; => "pending" (and running)
// Schedule task 2 using helper function
// The startTask function for task2 will not be called
// until task1 has completed
let task2 = scheduler.queue(() => {
return createPromise((resolve) => {
scheduleTimeout(() => {
resolve(21);
}, 100);
});
});
// task2.status; => "pending" (not running)
await task1;
// task1.status => "resolved"
// task2.status => "pending" (but running)
```
#### Using Promise Helpers
```ts
import { createPromise } from "@nevware21/ts-async";
import { scheduleTimeout } from "@nevware21/ts-utils";
const myPromise = createPromise((resolve, reject) => {
scheduleTimeout(() => {
resolve("foo");
}, 300);
});
myPromise
.then(handleFulfilledA, handleRejectedA)
.then(handleFulfilledB, handleRejectedB)
.then(handleFulfilledC, handleRejectedC)
.catch(handleRejectedAny);
// Create a new promise that resolves with an inner promise that will auto resolve after 1 second
createPromise((resolveOuter) => {
resolveOuter(
createPromise((resolveInner) => {
scheduleTimeout(resolveInner, 1000);
})
);
});
doAwait(myPromise, (result) => {
// Handle the result this would normally be
// let result = await myPromise;
}, (reason) => {
// Handle cases when the `myPromise` is rejected
// Using await you would handle this via try / catch
});
```
While the examples above are using the `createPromise` you can directly use the `createSyncPromise`, `createAsyncPromise`, `createIdlePromise` or `createNativePromise`, you can also mix and match them (ie. they don't all have to be the same implementation). The `createPromise` alias is provided to enable switching the underlying Promise implementation without changing any of your code.
## Release Notes
- [Releases](https://github.com/nevware21/ts-async/releases)
- [Changelist Notes](./CHANGELIST.md)
## Browser Support
General support is currently set to ES5 supported runtimes and higher.
Internal polyfills are used to backfill ES5 functionality which is not provided by older browsers.
![Chrome](https://raw.githubusercontent.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png) | ![Firefox](https://raw.githubusercontent.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png) | ![IE](https://raw.githubusercontent.com/alrra/browser-logos/master/src/edge/edge_48x48.png) | ![Opera](https://raw.githubusercontent.com/alrra/browser-logos/master/src/opera/opera_48x48.png) | ![Safari](https://raw.githubusercontent.com/alrra/browser-logos/master/src/safari/safari_48x48.png)
--- | --- | --- | --- | --- |
Latest ✔ | Latest ✔ | <center>9+ ✔</center> | Latest ✔ | Latest ✔ |
> Note: A PolyFill `PolyPromise` provides the standard promise implementations for IE and ES5+ environments.
## Contributing
Read our [contributing guide](./CONTRIBUTING.md) to learn about our development process, how to propose bugfixes and improvements, and how to build and test your changes.
File diff suppressed because it is too large. Load diff
@@ -0,0 +1 @@
{"version":3,"file":"ts-async.js","sources":["https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/treeshake_helpers.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/constants.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/poly_helpers.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/safe.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/base.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/stubs.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/string/as_string.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/diagnostics.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/throw.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/throwIf.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/has_own_prop.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/has_own.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/for_each_key.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/array/forEach.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/unwrapFunction.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/define.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/map.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/object.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/enum.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/symbol/well_known.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/global.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/poly_utils.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/create.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/date.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/funcs/funcs.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/lazy.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/math/random.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/instance.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/polyfills/symbol.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/cache.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/environment.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/symbol/symbol.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/iterator/iterator.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/iterator/forOf.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/array/indexOf.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/array/slice.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/length.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/set_proto.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/customError.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/perf.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/handler.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/timeout.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/idle.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/microtasks/cancellableTask.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/microtasks/runMicrotask.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/microtasks/taskQueue.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/microtasks/promiseQueue.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/microtasks/resolveScheduleFn.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/microtasks/timerQueue.ts","https://raw.gitLine truncated
@@ -0,0 +1,8 @@
/*!
* NevWare21 Solutions LLC - ts-async, 0.6.1
* https://github.com/nevware21/ts-async
* Copyright (c) NevWare21 Solutions LLC and contributors. All rights reserved.
* Licensed under the MIT license.
*/
function n(n,t){return n||t}function t(n,t){return null!=n?n[t]:void 0}function S(n,t){try{return{v:n.apply(this,t)}}catch(n){return{e:n}}}function x(t){return function(n){return typeof n===t}}function A(n){return typeof n===f||n===f}function C(n){return n===a}function o(n){return n===s||n===a}function j(n){return n&&n.then&&z(n.then)}function F(){}function q(n,t){var e=Gn,r=tt[nt][d](n);r===it&&(n={stack:g(n.stack),message:g(n.message),name:g(n.name)});try{e=((e=JSON.stringify(n,s,t?"number"==typeof t?t:4:a))?e.replace(/"(\w+)"\s*:\s{0,1}/g,"$1: "):s)||g(n)}catch(n){e=" - "+q(n,t)}return r+": "+e}function R(n){throw new TypeError(n)}function M(n){o(n)&&R("Cannot convert undefined or null to object")}function J(n,t){return M(n),!!n&&tt.hasOwnProperty[d](n,t)||!!ot(n,t)}function W(n,t,e){if(n&&((n||n!==s&&!A(n))&&n&&typeof n===Kn||z(n)))for(var r in n)if(ct(n,r)&&-1===t[d](o(e)?n:e,r,n[r]))break}function H(n,t,e){if(n)for(var r=n[Yn]>>>0,u=0;u<r&&!(u in n&&-1===t[d](o(e)?n:e,n[u],u,n));u++);}function L(r,n,u){var i=n?n[r]:s;return function(n){var t,e=(n?n[r]:s)||i;if(e||u)return t=arguments,(e||u).apply(n,e?h[d](t,1):t);R('"'+g(r)+'" not defined for '+q(n))}}function U(t){return function(n){return n[t]}}function I(n,t,e){return N(n,t,(r=e,(u={})[at.c]=!0,u[at.e]=!0,r.l&&(u.get=function(){return r.l.v},n=ft(r.l,"v"))&&n.set&&(u.set=function(n){r.l.v=n}),W(r,function(n,t){u[at[n]]=C(t)?u[at[n]]:t}),u));var r,u}function B(n,t,e){N(n,t,{value:e,enumerable:!0,writable:!1})}function G(n){return n}function K(n){return M(n),n[Qn]||s}function Q(n){return t=st,e={},W(n,function(n,t){B(e,n,n),B(e,t,n)}),t?t(e):e;var t,e}function V(){var n;return(n=(n=(n=typeof globalThis!==f?globalThis:n)||typeof self===f?n:self)||typeof window===f?n:window)||typeof global===f?n:global}function X(){var n;return dt||(n=S(V).v||{},dt=n[yt]=n[yt]||{}),dt}function Y(n,t){var e;function r(){}return e=o(n)?{}:((e=typeof n)!==Kn&&"function"!=e&&R("Prototype must be an Object or function: "+q(n)),r[v]=n,S(function(){r[Qn]=n}),new r),t&&S(lt,[e,t]),e}function y(){return(Date.now||Z)()}function Z(){return(new Date).getTime()}function nn(n,t,e){return n.apply(t,e)}function T(){$=X()}function tn(t,e){var r={};return $||T(),r.b=$.lzy,N(r,"v",{configurable:!0,get:function(){var n=nn(t,null,e);return $.lzy||N(r,"v",{value:n}),r.b=$.lzy,n}}),r}function _(n){return N({toJSON:function(){return n}},"v",{value:n})}function en(n,t){var e;return function(){return $||T(),(e=e&&!$.lzy?e:_(S(n,t).v)).v}}function rn(n){return $||T(),(St=St&&!1!==n&&!$.lzy?St:_(S(V).v||s)).v}function E(n,t){t=St&&!1!==t?St.v:rn(t);if(t&&t[n])return t[n];if(n===At)try{return window}catch(n){}return s}function un(){return jt=_(S(E,[Xn]).v)}function on(n){var t,e,r,u,i=ht[n],o=($||T(),($.lzy?0:jt)||un());return o.v?o.v[i||n]:(gt=gt||{},(o=ht[n])?gt[o]=gt[o]||(i=Xn+"."+o,t="_"+bt+++"_"+Pt.v,e=Xn+"("+i+")",u=mt(null),c("description",g(i)),c(nt,function(){return e+wt+t}),c("valueOf",function(){return u}),c("v",e),c("_uid",t),(r=u)&&(S(function(){r[et]=!0,r[rt]="symbol"}),S(I,[r,et,{v:!0,w:!1,e:!1}]),S(I,[r,rt,{v:"symbol",w:!1,e:!1}])),r):void 0);function c(n,t){I(u,n,{v:t,e:!1,w:!1})}}function cn(n){return n&&z(n.next)}function fn(n){return!o(n)&&z(n[on(3)])}function an(t,n,e){if(t&&(cn(t)||(t=t[(Rt=Rt||_(on(3))).v]?t[Rt.v]():s),cn(t))){var r=a,u=a;try{for(var i=0;!(u=t.next()).done&&-1!==n[d](o(e)?t:e,u.value,i,t);)i++}catch(n){r={e:n},t.throw&&(u=s,t.throw(r))}finally{try{u&&!u.done&&t.return&&t.return(u)}finally{if(r)throw r.e}}}}function O(n){return((n?n.slice:s)||h).apply(n,h[d](arguments,1))}function ln(e,n){var t;return(Dt=Dt||_(((t={})[Qn]=[],t instanceof Array))).v?e[Qn]=n:W(n,function(n,t){return e[n]=t}),e}function sn(n,t){t&&(n[Zn]=t)}function vn(u,i,n,o){var t,e,c=Error,f=c[v][Zn],a=Error.captureStackTrace,r=c;return S(I,[e=function(){var n=this,t=arguments;try{S(sn,[c,u]);var e,r=nn(c,n,o?o(t):h[d](t))||n;return r!==n&&(e=vt(n))!==vt(r)&&zt(r,e),a&&a(r,n[Vn]),i&&i(r,t),r}finally{S(sn,[c,f])}},Zn,{v:t=u,c:!0,e:!1}]),(e=zt(e,r))[v]=r===s?mt(r):(l[v]=r[v],new l),e;function l(){this[Vn]=e,S(I,[this,Zn,{v:t,c:!0,e:!1}])}}function dn(){$||T();var n=(kt=kt&&!$.lzy?kt:_(S(E,["performance"]).v)).v;return n&&n.now?n.now():y()}function hn(n,t,e){var r,u=!0,i=n?t(s):s;function o(){return u=!1,i&&i[Ft]&&i[Ft](),r}function c(){i&&e(i),i=s}function f(){return i=t(i),u||o(),r}return(r={cancel:c,refresh:f})[qt]=function(){return i&&i[qt]?i[qt]():u},r[Ct]=function(){return u=!0,i&&i[Ct]&&i[Ct](),r},r[Ft]=o,{h:r=N(r,Mt,{get:function(){return!!i},set:function(n){!n&&i&&c(),n&&!i&&f()}}),dn:function(){i=s}}}function D(){return n=a,t=h[d](arguments),r=0<(u=(r=l(n))?n.length:0)?n[0]:r?a:n,(r=z(r)?r:Nt)||(e=X().tmOut||[],l(e)&&0<e.length&&z(e[0])&&(r=e[0])),i=r||setTimeout,e=1<u?n[1]:a,(r=z(e)?e:$t)||(u=X().tmOut||[],l(u)&&1<u.length&&z(u[1])&&(r=u[1])),o=r||clearTimeout,c=t[0],t[0]=function(){var n=xt;n&&(xt=a,n()),f.dn(),nn(c,a,h[d](arguments))},(f=hn(!0,function(n){if(n){if(n.refresh)returnLine truncated
//# sourceMappingURL=ts-async.min.js.map
@@ -0,0 +1 @@
{"version":3,"file":"ts-async.min.js","sources":["https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/treeshake_helpers.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/safe.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/base.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/stubs.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/diagnostics.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/throw.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/throwIf.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/has_own.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/has_own_prop.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/for_each_key.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/array/forEach.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/unwrapFunction.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/define.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/map.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/object.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/enum.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/global.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/create.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/constants.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/date.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/funcs/funcs.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/lazy.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/cache.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/environment.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/symbol/symbol.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/polyfills/symbol.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/poly_utils.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/iterator/iterator.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/iterator/forOf.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/array/slice.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/set_proto.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/customError.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/perf.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/handler.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/timeout.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/microtasks/taskQueue.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/microtasks/runMicrotask.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/microtasks/timerQueue.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/promise/await.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/internal/treeshake_helpers.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/promise/event.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/promise/base.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/promise/debug.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/internal/timeout_helpers.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/promise/itemProcessor.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/microtasks/cancellableTask.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/microtasks/resolveScheduleFn.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/microtasks/promiseQueue.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/microtask.ts","Line truncated
File diff suppressed because it is too large. Load diff
@@ -0,0 +1 @@
{"version":3,"file":"ts-polyfills-async.js","sources":["https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/treeshake_helpers.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/constants.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/poly_helpers.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/safe.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/base.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/stubs.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/string/as_string.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/diagnostics.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/throw.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/throwIf.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/has_own_prop.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/has_own.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/for_each_key.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/array/forEach.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/define.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/map.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/object.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/enum.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/symbol/well_known.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/global.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/poly_utils.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/create.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/date.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/funcs/funcs.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/lazy.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/math/random.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/instance.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/polyfills/symbol.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/cache.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/environment.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/symbol/symbol.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/iterator/iterator.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/iterator/forOf.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/array/slice.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/set_proto.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/customError.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/handler.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/timeout.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/microtasks/cancellableTask.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/microtasks/runMicrotask.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/microtasks/taskQueue.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/microtasks/promiseQueue.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/microtasks/resolveScheduleFn.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/microtasks/timerQueue.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/microtask.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/internal/constants.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/promise/await.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/internal/state.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/promise/event.ts","https://Line truncated
@@ -0,0 +1,8 @@
/*!
* NevWare21 Solutions LLC - ts-async, 0.6.1
* https://github.com/nevware21/ts-async
* Copyright (c) NevWare21 Solutions LLC and contributors. All rights reserved.
* Licensed under the MIT license.
*/
function n(n,t){return n||t}function t(n,t){return null!=n?n[t]:void 0}function m(n,t){try{return{v:n.apply(this,t)}}catch(n){return{e:n}}}function D(t){return function(n){return typeof n===t}}function M(n){return typeof n===h||n===h}function q(n){return n===v}function i(n){return n===s||n===v}function w(n){return n&&n.then&&I(n.then)}function F(){}function b(n,t){var r=Bn,e=nt[Yn][y](n);e===ot&&(n={stack:C(n.stack),message:C(n.message),name:C(n.name)});try{r=((r=JSON.stringify(n,s,t?"number"==typeof t?t:4:v))?r.replace(/"(\w+)"\s*:\s{0,1}/g,"$1: "):s)||C(n)}catch(n){r=" - "+b(n,t)}return e+": "+r}function _(n){throw new TypeError(n)}function J(n){i(n)&&_("Cannot convert undefined or null to object")}function N(n,t){return J(n),!!n&&nt.hasOwnProperty[y](n,t)||!!it(n,t)}function o(n,t,r){if(n&&((n||n!==s&&!M(n))&&n&&typeof n===Hn||I(n)))for(var e in n)if(ct(n,e)&&-1===t[y](i(r)?n:r,e,n[e]))break}function d(n,t,r){if(n)for(var e=n[Wn]>>>0,u=0;u<e&&!(u in n&&-1===t[y](i(r)?n:r,n[u],u,n));u++);}function E(n,t,r){return R(n,t,(e=r,(u={})[at.c]=!0,u[at.e]=!0,e.l&&(u.get=function(){return e.l.v},n=ft(e.l,"v"))&&n.set&&(u.set=function(n){e.l.v=n}),o(e,function(n,t){u[at[n]]=q(t)?u[at[n]]:t}),u));var e,u}function L(n,t,r){R(n,t,{value:r,enumerable:!0,writable:!1})}function U(n){return n}function B(n){return J(n),n[Kn]||s}function G(n){return t=vt,r={},o(n,function(n,t){L(r,n,n),L(r,t,n)}),t?t(r):r;var t,r}function H(){var n;return(n=(n=(n=typeof globalThis!==h?globalThis:n)||typeof self===h?n:self)||typeof window===h?n:window)||typeof global===h?n:global}function K(){var n;return Pn||(n=m(H).v||{},Pn=n[yt]=n[yt]||{}),Pn}function Q(n,t){var r;function e(){}return r=i(n)?{}:((r=typeof n)!==Hn&&r!=Gn&&_("Prototype must be an Object or function: "+b(n)),e[l]=n,m(function(){e[Kn]=n}),new e),t&&m(lt,[r,t]),r}function a(n,t,r){return n.apply(t,r)}function P(){z=K()}function V(t,r){var e={};return z||P(),e.b=z.lzy,R(e,"v",{configurable:!0,get:function(){var n=a(t,null,r);return z.lzy||R(e,"v",{value:n}),e.b=z.lzy,n}}),e}function j(n){return R({toJSON:function(){return n}},"v",{value:n})}function r(n,t){var r;return function(){return z||P(),(r=r&&!z.lzy?r:j(m(n,t).v)).v}}function W(n){return z||P(),(c=c&&!1!==n&&!z.lzy?c:j(m(H).v||s)).v}function S(n,t){t=c&&!1!==t?c.v:W(t);if(t&&t[n])return t[n];if(n===Sn)try{return window}catch(n){}return s}function X(){return On=j(m(S,[Vn]).v)}function Y(n){var t,r,e,u,o=ht[n],i=(z||P(),(z.lzy?0:On)||X());return i.v?i.v[o||n]:(jn=jn||{},(i=ht[n])?jn[i]=jn[i]||(t="_"+wt+++"_"+pt.v,r=Vn+"("+(o=Vn+"."+i)+")",u=dt(null),c("description",C(o)),c(Yn,function(){return r+mt+t}),c("valueOf",function(){return u}),c("v",r),c("_uid",t),(e=u)&&(m(function(){e[rt]=!0,e[et]="symbol"}),m(E,[e,rt,{v:!0,w:!1,e:!1}]),m(E,[e,et,{v:"symbol",w:!1,e:!1}])),e):void 0);function c(n,t){E(u,n,{v:t,e:!1,w:!1})}}function Z(n){return n&&I(n.next)}function nn(n){return!i(n)&&I(n[Y(3)])}function tn(t,n,r){if(t&&(Z(t)||(t=t[(Tn=Tn||j(Y(3))).v]?t[Tn.v]():s),Z(t))){var e=v,u=v;try{for(var o=0;!(u=t.next()).done&&-1!==n[y](i(r)?t:r,u.value,o,t);)o++}catch(n){e={e:n},t.throw&&(u=s,t.throw(e))}finally{try{u&&!u.done&&t.return&&t.return(u)}finally{if(e)throw e.e}}}}function O(n){return((n?n.slice:s)||A).apply(n,A[y](arguments,1))}function rn(r,n){var t;return(zn=zn||j(((t={})[Kn]=[],t instanceof Array))).v?r[Kn]=n:o(n,function(n,t){return r[n]=t}),r}function en(n,t){t&&(n[Xn]=t)}function un(n,t,r){var e,u=!0,o=n?t(s):s;function i(){return u=!1,o&&o[Ot]&&o[Ot](),e}function c(){o&&r(o),o=s}function f(){return o=t(o),u||i(),e}return(e={cancel:c,refresh:f})[Tt]=function(){return o&&o[Tt]?o[Tt]():u},e[St]=function(){return u=!0,o&&o[St]&&o[St](),e},e[Ot]=i,{h:e=R(e,In,{get:function(){return!!o},set:function(n){!n&&o&&c(),n&&!o&&f()}}),dn:function(){o=s}}}function T(){return n=v,t=A[y](arguments),e=0<(u=(e=x(n))?n.length:0)?n[0]:e?v:n,(e=I(e)?e:$n)||(r=K().tmOut||[],x(r)&&0<r.length&&I(r[0])&&(e=r[0])),o=e||setTimeout,r=1<u?n[1]:v,(e=I(r)?r:kn)||(u=K().tmOut||[],x(u)&&1<u.length&&I(u[1])&&(e=u[1])),i=e||clearTimeout,c=t[0],t[0]=function(){var n=An;n&&(An=v,n()),f.dn(),a(c,v,A[y](arguments))},(f=un(!0,function(n){if(n){if(n.refresh)return n.refresh(),n;a(i,v,[n])}return a(o,v,t)},function(n){a(i,v,[n])})).h;var n,t,r,e,u,o,i,c,f}function on(){f&&(f[1]&&cn(1),f[0])&&cn(0)}function cn(n){if(f){for(var t=f[n],r=0;t&&t.length>r;){var e=void 0,e=t[r++];try{e&&e()}catch(n){T(function(){throw n},0)}0===n&&f[1]&&cn(1)}f[n]=v}}function fn(n,t,r){var e=(f=f||{})[n];if(e||(f[n]=e=[]),q(r)||0===r||e.length<r)return e.push(t),!0;throw new RangeError("scheduleMicrotask() queue depth exceeded ["+r+"]")}function an(){try{zt=!0,on()}finally{zt=!1}}function ln(n,t){n=fn(0,n,t);return n&&!zt&&(t=an,!An&&I(t)&&(An=t),(t=xn)?t.enabled||t.refresh():xn=T(F,0)),n}function vn(n,t){sn(n,function(n){return t?t({status:"fulfilled",rejected:!1,value:n}):n},function(n){return t?t({status:Rn,rejected:!0,reason:n}):n})}function sn(n,t,r){var e=n;if(w(n))(t||r)&&(e=nLine truncated
//# sourceMappingURL=ts-polyfills-async.min.js.map
@@ -0,0 +1 @@
{"version":3,"file":"ts-polyfills-async.min.js","sources":["https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/treeshake_helpers.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/safe.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/base.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/stubs.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/diagnostics.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/throw.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/throwIf.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/has_own.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/has_own_prop.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/for_each_key.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/array/forEach.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/define.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/map.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/object.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/enum.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/global.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/create.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/funcs/funcs.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/lazy.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/cache.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/environment.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/symbol/symbol.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/polyfills/symbol.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/poly_utils.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/iterator/iterator.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/iterator/forOf.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/array/slice.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/set_proto.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/customError.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/handler.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/timeout.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/microtasks/taskQueue.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/microtasks/runMicrotask.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/microtasks/timerQueue.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/promise/await.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/promise/event.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/promise/base.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/promise/itemProcessor.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/internal/timeout_helpers.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/microtasks/cancellableTask.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/microtasks/resolveScheduleFn.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/microtasks/promiseQueue.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/microtask.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/promise/asyncPromise.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/constants.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/internal/constants.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/polyfills.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/poly_helpers.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/string/as_strinLine truncated
File diff suppressed because it is too large. Load diff
@@ -0,0 +1 @@
{"version":3,"file":"ts-async.js","sources":["https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/treeshake_helpers.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/constants.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/poly_helpers.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/safe.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/base.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/stubs.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/string/as_string.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/diagnostics.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/throw.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/throwIf.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/has_own_prop.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/has_own.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/for_each_key.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/array/forEach.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/unwrapFunction.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/define.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/map.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/object.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/enum.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/symbol/well_known.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/global.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/poly_utils.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/create.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/date.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/funcs/funcs.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/lazy.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/math/random.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/instance.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/polyfills/symbol.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/cache.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/environment.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/symbol/symbol.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/iterator/iterator.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/iterator/forOf.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/array/indexOf.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/array/slice.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/length.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/set_proto.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/customError.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/perf.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/handler.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/timeout.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/idle.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/microtasks/cancellableTask.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/microtasks/runMicrotask.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/microtasks/taskQueue.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/microtasks/promiseQueue.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/microtasks/resolveScheduleFn.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/microtasks/timerQueue.ts","https://raw.gitLine truncated
@@ -0,0 +1,8 @@
/*!
* NevWare21 Solutions LLC - ts-async, 0.6.1
* https://github.com/nevware21/ts-async
* Copyright (c) NevWare21 Solutions LLC and contributors. All rights reserved.
* Licensed under the MIT license.
*/
function n(n){function t(n,t){return n||t}function e(n,t){return null!=n?n[t]:void 0}var a=void 0,s=null,$="",C="function",F="object",v="prototype",q="__proto__",r="undefined",M="constructor",J="Symbol",W="length",H="name",d="call",L="toString",U="getOwnPropertyDescriptor",B=e(P=t(Object),v),G=t(Math),y=e(Ie=e(Se=t(Array),v),"slice"),K="_polyfill",Q="__nw21$polytype__";function S(n,t){try{return{v:n.apply(this,t)}}catch(n){return{e:n}}}function V(t){return function(n){return typeof n===t}}function A(n){return typeof n===r||n===r}function X(n){return n===a}function i(n){return n===s||n===a}var j=V(C),l=e(Se,"isArray"),Y=V("number");function R(n){return n&&n.then&&j(n.then)}function Z(){}var f=t(t(String)),nn="[object Error]";function tn(n,t){var e=$,r=B[L][d](n);r===nn&&(n={stack:f(n.stack),message:f(n.message),name:f(n.name)});try{e=((e=JSON.stringify(n,s,t?"number"==typeof t?t:4:a))?e.replace(/"(\w+)"\s*:\s{0,1}/g,"$1: "):s)||f(n)}catch(n){e=" - "+tn(n,t)}return r+": "+e}function T(n){throw new TypeError(n)}function en(n){i(n)&&T("Cannot convert undefined or null to object")}var rn=t(e(P,U),Z),un=t(e(P,"hasOwn"),on);function on(n,t){return en(n),!!n&&B.hasOwnProperty[d](n,t)||!!rn(n,t)}function cn(n,t,e){if(n&&((n||n!==s&&!A(n))&&n&&typeof n===F||j(n)))for(var r in n)if(un(n,r)&&-1===t[d](i(e)?n:e,r,n[r]))break}function fn(n,t,e){if(n)for(var r=n[W]>>>0,u=0;u<r&&!(u in n&&-1===t[d](i(e)?n:e,n[u],u,n));u++);}function an(r,n,u){var o=n?n[r]:s;return function(n){var t,e=(n?n[r]:s)||o;if(e||u)return t=arguments,(e||u).apply(n,e?y[d](t,1):t);T('"'+f(r)+'" not defined for '+tn(n))}}function ln(t){return function(n){return n[t]}}var sn=t(e(P,U),Z),vn={e:"enumerable",c:"configurable",v:"value",w:"writable",g:"get",s:"set"},I=e(P,"defineProperty"),dn=e(P,"defineProperties");function _(n,t,e){return I(n,t,(r=e,(u={})[vn.c]=!0,u[vn.e]=!0,r.l&&(u.get=function(){return r.l.v},n=sn(r.l,"v"))&&n.set&&(u.set=function(n){r.l.v=n}),cn(r,function(n,t){u[vn[n]]=X(t)?u[vn[n]]:t}),u));var r,u}function yn(n,t,e){I(n,t,{value:e,enumerable:!0,writable:!1})}function hn(n){return n}function mn(n){return en(n),n[q]||s}var pn=t(e(P,"freeze"),hn),gn=t(e(P,"getPrototypeOf"),mn);function Pn(n){return t=pn,e={},cn(n,function(n,t){yn(e,n,n),yn(e,t,n)}),t?t(e):e;var t,e}var wn,bn=Pn({asyncIterator:0,hasInstance:1,isConcatSpreadable:2,iterator:3,match:4,matchAll:5,replace:6,search:7,species:8,split:9,toPrimitive:10,toStringTag:11,unscopables:12}),Sn="__tsUtils$gblCfg";function An(){var n;return(n=(n=(n=typeof globalThis!==r?globalThis:n)||typeof self===r?n:self)||typeof window===r?n:window)||typeof global===r?n:global}function jn(){var n;return wn||(n=S(An).v||{},wn=n[Sn]=n[Sn]||{}),wn}var E,Rn=t(e(P,"create"),Tn);function Tn(n,t){var e;function r(){}return e=i(n)?{}:((e=typeof n)!==F&&e!=C&&T("Prototype must be an Object or function: "+tn(n)),r[v]=n,S(function(){r[q]=n}),new r),t&&S(dn,[e,t]),e}function h(){return(Date.now||In)()}function In(){return(new Date).getTime()}function _n(n,t,e){return n.apply(t,e)}function O(){E=jn()}function En(t,e){var r={};return E||O(),r.b=E.lzy,I(r,"v",{configurable:!0,get:function(){var n=_n(t,null,e);return E.lzy||I(r,"v",{value:n}),r.b=E.lzy,n}}),r}var On,kn=e(G,"random"),Dn=En(function(){for(var n=h().toString(36).slice(2);n.length<16;)n+=kn().toString(36).slice(2);return n.substring(0,16)}),xn="$nw21sym",zn=0;function k(n){return I({toJSON:function(){return n}},"v",{value:n})}var Nn,$n="window";function Cn(n,t){var e;return function(){return E||O(),(e=e&&!E.lzy?e:k(S(n,t).v)).v}}function Fn(n){return E||O(),(Nn=Nn&&!1!==n&&!E.lzy?Nn:k(S(An).v||s)).v}function D(n,t){t=Nn&&!1!==t?Nn.v:Fn(t);if(t&&t[n])return t[n];if(n===$n)try{return window}catch(n){}return s}var qn,Mn,Jn=Cn(D,["document"]),Wn=Cn(D,[$n]),Hn=Cn(function(){return!!S(function(){var n=D("process");return n&&(n.versions||{}).node}).v}),Ln=Cn(D,["queueMicrotask"]);function Un(){return qn=k(S(D,[J]).v)}function Bn(n){var t,e,r,u,o=bn[n],i=(E||O(),(E.lzy?0:qn)||Un());return i.v?i.v[o||n]:(On=On||{},(i=bn[n])?On[i]=On[i]||(t="_"+zn+++"_"+Dn.v,e=J+"("+(o=J+"."+i)+")",u=Rn(null),c("description",f(o)),c(L,function(){return e+xn+t}),c("valueOf",function(){return u}),c("v",e),c("_uid",t),(r=u)&&(S(function(){r[K]=!0,r[Q]="symbol"}),S(_,[r,K,{v:!0,w:!1,e:!1}]),S(_,[r,Q,{v:"symbol",w:!1,e:!1}])),r):void 0);function c(n,t){_(u,n,{v:t,e:!1,w:!1})}}function Gn(n){return n&&j(n.next)}function Kn(n){return!i(n)&&j(n[Bn(3)])}function Qn(t,n,e){if(t&&(Gn(t)||(t=t[(Mn=Mn||k(Bn(3))).v]?t[Mn.v]():s),Gn(t))){var r=a,u=a;try{for(var o=0;!(u=t.next()).done&&-1!==n[d](i(e)?t:e,u.value,o,t);)o++}catch(n){r={e:n},t.throw&&(u=s,t.throw(r))}finally{try{u&&!u.done&&t.return&&t.return(u)}finally{if(r)throw r.e}}}}var Vn=an("indexOf",Ie);function x(n){return((n?n.slice:s)||y).apply(n,y[d](arguments,1))}var Xn,Yn,m=ln(W),Zn=t(e(P,"setPrototypeOf"),nt);function nt(e,n){var t;return(Xn=Xn||k(((t={})[q]=[],t instanceof Array))).v?e[q]=n:cn(n,function(n,t){return e[n]=t}),e}funcLine truncated
//# sourceMappingURL=ts-async.min.js.map
@@ -0,0 +1 @@
{"version":3,"file":"ts-async.min.js","sources":["https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/treeshake_helpers.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/constants.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/poly_helpers.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/safe.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/base.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/stubs.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/string/as_string.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/diagnostics.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/throw.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/throwIf.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/has_own.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/has_own_prop.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/for_each_key.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/array/forEach.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/unwrapFunction.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/define.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/map.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/object.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/enum.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/symbol/well_known.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/global.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/create.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/lazy.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/date.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/funcs/funcs.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/math/random.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/polyfills/symbol.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/instance.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/cache.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/environment.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/symbol/symbol.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/iterator/forOf.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/poly_utils.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/iterator/iterator.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/array/indexOf.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/array/slice.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/length.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/set_proto.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/perf.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/customError.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/handler.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/timeout.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/idle.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/microtasks/taskQueue.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/microtasks/promiseQueue.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/microtasks/runMicrotask.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/microtasks/timerQueue.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/microtask.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/internal/constants.ts","https://raw.githubusercontent.com/nevware21/tLine truncated
File diff suppressed because it is too large. Load diff
@@ -0,0 +1 @@
{"version":3,"file":"ts-async.js","sources":["https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/treeshake_helpers.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/constants.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/poly_helpers.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/safe.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/base.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/stubs.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/string/as_string.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/diagnostics.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/throw.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/throwIf.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/has_own_prop.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/has_own.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/for_each_key.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/array/forEach.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/unwrapFunction.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/define.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/map.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/object.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/enum.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/symbol/well_known.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/global.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/poly_utils.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/create.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/date.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/funcs/funcs.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/lazy.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/math/random.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/instance.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/polyfills/symbol.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/cache.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/environment.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/symbol/symbol.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/iterator/iterator.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/iterator/forOf.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/array/indexOf.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/array/slice.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/length.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/set_proto.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/customError.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/perf.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/handler.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/timeout.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/idle.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/microtasks/cancellableTask.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/microtasks/runMicrotask.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/microtasks/taskQueue.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/microtasks/promiseQueue.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/microtasks/resolveScheduleFn.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/microtasks/timerQueue.ts","https://raw.gitLine truncated
@@ -0,0 +1,8 @@
/*!
* NevWare21 Solutions LLC - ts-async, 0.6.1
* https://github.com/nevware21/ts-async
* Copyright (c) NevWare21 Solutions LLC and contributors. All rights reserved.
* Licensed under the MIT license.
*/
this.nevware21=this.nevware21||{},this.nevware21["ts-async"]=(t=>{function e(t,e){return t||e}function n(t,e){return null!=t?t[e]:void 0}var l=void 0,s=null,S="",C="function",F="object",v="prototype",q="__proto__",r="undefined",M="constructor",J="Symbol",W="length",H="name",d="call",L="toString",U="getOwnPropertyDescriptor",i=e(Object),B=n(i,v),G=e(Math),K=e(Array),Q=n(K,v),h=n(Q,"slice"),V="_polyfill",X="__nw21$polytype__";function A(t,e){try{return{v:t.apply(this,e)}}catch(t){return{e:t}}}function Y(e){return function(t){return typeof t===e}}function j(t){return typeof t===r||t===r}function Z(t){return t===l}function o(t){return t===s||t===l}var R=Y(C),f=n(K,"isArray"),tt=Y("number");function I(t){return t&&t.then&&R(t.then)}function et(){}var nt=e(e(String)),rt="[object Error]";function it(t,e){var n=S,r=B[L][d](t);r===rt&&(t={stack:nt(t.stack),message:nt(t.message),name:nt(t.name)});try{n=((n=JSON.stringify(t,s,e?"number"==typeof e?e:4:l))?n.replace(/"(\w+)"\s*:\s{0,1}/g,"$1: "):s)||nt(t)}catch(t){n=" - "+it(t,e)}return r+": "+n}function T(t){throw new TypeError(t)}function ut(t){o(t)&&T("Cannot convert undefined or null to object")}var ot=e(n(i,U),et),ct=e(n(i,"hasOwn"),at);function at(t,e){return ut(t),!!t&&B.hasOwnProperty[d](t,e)||!!ot(t,e)}function lt(t,e,n){if(t&&((t||t!==s&&!j(t))&&t&&typeof t===F||R(t)))for(var r in t)if(ct(t,r)&&-1===e[d](o(n)?t:n,r,t[r]))break}function ft(t,e,n){if(t)for(var r=t[W]>>>0,i=0;i<r&&!(i in t&&-1===e[d](o(n)?t:n,t[i],i,t));i++);}function st(r,t,i){var u=t?t[r]:s;return function(t){var e,n=(t?t[r]:s)||u;if(n||i)return e=arguments,(n||i).apply(t,n?h[d](e,1):e);T('"'+nt(r)+'" not defined for '+it(t))}}function vt(e){return function(t){return t[e]}}var dt=e(n(i,U),et),ht={e:"enumerable",c:"configurable",v:"value",w:"writable",g:"get",s:"set"},_=n(i,"defineProperty"),yt=n(i,"defineProperties");function E(t,e,n){return _(t,e,(r=n,(i={})[ht.c]=!0,i[ht.e]=!0,r.l&&(i.get=function(){return r.l.v},t=dt(r.l,"v"))&&t.set&&(i.set=function(t){r.l.v=t}),lt(r,function(t,e){i[ht[t]]=Z(e)?i[ht[t]]:e}),i));var r,i}function mt(t,e,n){_(t,e,{value:n,enumerable:!0,writable:!1})}function gt(t){return t}function pt(t){return ut(t),t[q]||s}var Pt=e(n(i,"freeze"),gt),wt=e(n(i,"getPrototypeOf"),pt);function bt(t){return e=Pt,n={},lt(t,function(t,e){mt(n,t,t),mt(n,e,t)}),e?e(n):n;var e,n}var St,At=bt({asyncIterator:0,hasInstance:1,isConcatSpreadable:2,iterator:3,match:4,matchAll:5,replace:6,search:7,species:8,split:9,toPrimitive:10,toStringTag:11,unscopables:12}),jt="__tsUtils$gblCfg";function Rt(){var t;return(t=(t=(t=typeof globalThis!==r?globalThis:t)||typeof self===r?t:self)||typeof window===r?t:window)||typeof global===r?t:global}function It(){var t;return St||(t=A(Rt).v||{},St=t[jt]=t[jt]||{}),St}var O,Tt=e(n(i,"create"),_t);function _t(t,e){var n;function r(){}return n=o(t)?{}:((n=typeof t)!==F&&n!=C&&T("Prototype must be an Object or function: "+it(t)),r[v]=t,A(function(){r[q]=t}),new r),e&&A(yt,[n,e]),n}function g(){return(Date.now||Et)()}function Et(){return(new Date).getTime()}function Ot(t,e,n){return t.apply(e,n)}function k(){O=It()}function kt(e,n){var r={};return O||k(),r.b=O.lzy,_(r,"v",{configurable:!0,get:function(){var t=Ot(e,null,n);return O.lzy||_(r,"v",{value:t}),r.b=O.lzy,t}}),r}var Dt,$t=n(G,"random"),zt=kt(function(){for(var t=g().toString(36).slice(2);t.length<16;)t+=$t().toString(36).slice(2);return t.substring(0,16)}),Nt="$nw21sym",xt=0;function D(t){return _({toJSON:function(){return t}},"v",{value:t})}var Ct,Ft="window";function qt(t,e){var n;return function(){return O||k(),(n=n&&!O.lzy?n:D(A(t,e).v)).v}}function Mt(t){return O||k(),(Ct=Ct&&!1!==t&&!O.lzy?Ct:D(A(Rt).v||s)).v}function $(t,e){e=Ct&&!1!==e?Ct.v:Mt(e);if(e&&e[t])return e[t];if(t===Ft)try{return window}catch(t){}return s}var Jt,Wt,Ht=qt($,["document"]),Lt=qt($,[Ft]),Ut=qt(function(){return!!A(function(){var t=$("process");return t&&(t.versions||{}).node}).v}),Bt=qt($,["queueMicrotask"]);function Gt(){return Jt=D(A($,[J]).v)}function Kt(t){var e,n,r,i,u=At[t],o=(O||k(),(O.lzy?0:Jt)||Gt());return o.v?o.v[u||t]:(Dt=Dt||{},(o=At[t])?Dt[o]=Dt[o]||(e="_"+xt+++"_"+zt.v,n=J+"("+(u=J+"."+o)+")",i=Tt(null),c("description",nt(u)),c(L,function(){return n+Nt+e}),c("valueOf",function(){return i}),c("v",n),c("_uid",e),(r=i)&&(A(function(){r[V]=!0,r[X]="symbol"}),A(E,[r,V,{v:!0,w:!1,e:!1}]),A(E,[r,X,{v:"symbol",w:!1,e:!1}])),r):void 0);function c(t,e){E(i,t,{v:e,e:!1,w:!1})}}function Qt(t){return t&&R(t.next)}function Vt(t){return!o(t)&&R(t[Kt(3)])}function Xt(e,t,n){if(e&&(Qt(e)||(e=e[(Wt=Wt||D(Kt(3))).v]?e[Wt.v]():s),Qt(e))){var r=l,i=l;try{for(var u=0;!(i=e.next()).done&&-1!==t[d](o(n)?e:n,i.value,u,e);)u++}catch(t){r={e:t},e.throw&&(i=s,e.throw(r))}finally{try{i&&!i.done&&e.return&&e.return(i)}finally{if(r)throw r.e}}}}var Yt=st("indexOf",Q);function z(t){return((t?t.slice:s)||h).apply(t,h[d](arguments,1))}var Zt,te,p=vt(W),ee=e(n(i,"setPrototypeOf"),ne);function ne(n,t){var e;return(Zt=Zt||D(((e={})[q]=[],e instaLine truncated
//# sourceMappingURL=ts-async.min.js.map
@@ -0,0 +1 @@
{"version":3,"file":"ts-async.min.js","sources":["https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/treeshake_helpers.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/constants.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/poly_helpers.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/safe.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/base.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/stubs.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/string/as_string.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/diagnostics.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/throw.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/throwIf.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/has_own.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/has_own_prop.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/for_each_key.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/array/forEach.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/unwrapFunction.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/define.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/map.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/object.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/enum.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/symbol/well_known.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/global.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/create.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/lazy.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/date.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/funcs/funcs.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/math/random.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/polyfills/symbol.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/instance.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/cache.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/environment.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/symbol/symbol.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/iterator/forOf.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/poly_utils.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/iterator/iterator.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/array/indexOf.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/array/slice.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/length.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/set_proto.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/perf.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/customError.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/handler.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/timeout.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/idle.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/microtasks/taskQueue.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/microtasks/promiseQueue.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/microtasks/runMicrotask.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/microtasks/timerQueue.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/microtask.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/internal/constants.ts","https://raw.githubusercontent.com/nevware21/tLine truncated
File diff suppressed because it is too large. Load diff
@@ -0,0 +1 @@
{"version":3,"file":"ts-async.js","sources":["https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/treeshake_helpers.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/constants.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/poly_helpers.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/safe.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/base.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/stubs.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/string/as_string.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/diagnostics.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/throw.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/throwIf.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/has_own_prop.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/has_own.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/for_each_key.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/array/forEach.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/unwrapFunction.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/define.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/map.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/object.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/enum.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/symbol/well_known.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/global.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/poly_utils.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/create.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/date.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/funcs/funcs.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/lazy.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/math/random.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/instance.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/polyfills/symbol.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/cache.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/environment.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/symbol/symbol.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/iterator/iterator.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/iterator/forOf.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/array/indexOf.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/array/slice.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/length.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/set_proto.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/customError.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/perf.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/handler.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/timeout.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/idle.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/microtasks/cancellableTask.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/microtasks/runMicrotask.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/microtasks/taskQueue.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/microtasks/promiseQueue.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/microtasks/resolveScheduleFn.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/microtasks/timerQueue.ts","https://raw.gitLine truncated
@@ -0,0 +1,8 @@
/*!
* NevWare21 Solutions LLC - ts-async, 0.6.1
* https://github.com/nevware21/ts-async
* Copyright (c) NevWare21 Solutions LLC and contributors. All rights reserved.
* Licensed under the MIT license.
*/
function e(e){function t(e,t){return e||t}function n(e,t){return null!=e?e[t]:void 0}var l=void 0,s=null,S="",C="function",F="object",v="prototype",q="__proto__",r="undefined",M="constructor",J="Symbol",W="length",H="name",d="call",L="toString",U="getOwnPropertyDescriptor",B=n(w=t(Object),v),G=t(Math),K=t(Array),Q=n(K,v),y=n(Q,"slice"),V="_polyfill",X="__nw21$polytype__";function A(e,t){try{return{v:e.apply(this,t)}}catch(e){return{e:e}}}function Y(t){return function(e){return typeof e===t}}function j(e){return typeof e===r||e===r}function Z(e){return e===l}function u(e){return e===s||e===l}var R=Y(C),f=n(K,"isArray"),ee=Y("number");function T(e){return e&&e.then&&R(e.then)}function te(){}var ne=t(t(String)),re="[object Error]";function ie(e,t){var n=S,r=B[L][d](e);r===re&&(e={stack:ne(e.stack),message:ne(e.message),name:ne(e.name)});try{n=((n=JSON.stringify(e,s,t?"number"==typeof t?t:4:l))?n.replace(/"(\w+)"\s*:\s{0,1}/g,"$1: "):s)||ne(e)}catch(e){n=" - "+ie(e,t)}return r+": "+n}function I(e){throw new TypeError(e)}function oe(e){u(e)&&I("Cannot convert undefined or null to object")}var ue=t(n(w,U),te),ce=t(n(w,"hasOwn"),ae);function ae(e,t){return oe(e),!!e&&B.hasOwnProperty[d](e,t)||!!ue(e,t)}function le(e,t,n){if(e&&((e||e!==s&&!j(e))&&e&&typeof e===F||R(e)))for(var r in e)if(ce(e,r)&&-1===t[d](u(n)?e:n,r,e[r]))break}function fe(e,t,n){if(e)for(var r=e[W]>>>0,i=0;i<r&&!(i in e&&-1===t[d](u(n)?e:n,e[i],i,e));i++);}function se(r,e,i){var o=e?e[r]:s;return function(e){var t,n=(e?e[r]:s)||o;if(n||i)return t=arguments,(n||i).apply(e,n?y[d](t,1):t);I('"'+ne(r)+'" not defined for '+ie(e))}}function ve(t){return function(e){return e[t]}}var de=t(n(w,U),te),ye={e:"enumerable",c:"configurable",v:"value",w:"writable",g:"get",s:"set"},_=n(w,"defineProperty"),he=n(w,"defineProperties");function E(e,t,n){return _(e,t,(r=n,(i={})[ye.c]=!0,i[ye.e]=!0,r.l&&(i.get=function(){return r.l.v},e=de(r.l,"v"))&&e.set&&(i.set=function(e){r.l.v=e}),le(r,function(e,t){i[ye[e]]=Z(t)?i[ye[e]]:t}),i));var r,i}function me(e,t,n){_(e,t,{value:n,enumerable:!0,writable:!1})}function pe(e){return e}function ge(e){return oe(e),e[q]||s}var Pe=t(n(w,"freeze"),pe),we=t(n(w,"getPrototypeOf"),ge);function be(e){return t=Pe,n={},le(e,function(e,t){me(n,e,e),me(n,t,e)}),t?t(n):n;var t,n}var Se,Ae=be({asyncIterator:0,hasInstance:1,isConcatSpreadable:2,iterator:3,match:4,matchAll:5,replace:6,search:7,species:8,split:9,toPrimitive:10,toStringTag:11,unscopables:12}),je="__tsUtils$gblCfg";function Re(){var e;return(e=(e=(e=typeof globalThis!==r?globalThis:e)||typeof self===r?e:self)||typeof window===r?e:window)||typeof global===r?e:global}function Te(){var e;return Se||(e=A(Re).v||{},Se=e[je]=e[je]||{}),Se}var O,Ie=t(n(w,"create"),_e);function _e(e,t){var n;function r(){}return n=u(e)?{}:((n=typeof e)!==F&&n!=C&&I("Prototype must be an Object or function: "+ie(e)),r[v]=e,A(function(){r[q]=e}),new r),t&&A(he,[n,t]),n}function p(){return(Date.now||Ee)()}function Ee(){return(new Date).getTime()}function Oe(e,t,n){return e.apply(t,n)}function k(){O=Te()}function ke(t,n){var r={};return O||k(),r.b=O.lzy,_(r,"v",{configurable:!0,get:function(){var e=Oe(t,null,n);return O.lzy||_(r,"v",{value:e}),r.b=O.lzy,e}}),r}var De,$e=n(G,"random"),xe=ke(function(){for(var e=p().toString(36).slice(2);e.length<16;)e+=$e().toString(36).slice(2);return e.substring(0,16)}),ze="$nw21sym",Ne=0;function D(e){return _({toJSON:function(){return e}},"v",{value:e})}var Ce,Fe="window";function qe(e,t){var n;return function(){return O||k(),(n=n&&!O.lzy?n:D(A(e,t).v)).v}}function Me(e){return O||k(),(Ce=Ce&&!1!==e&&!O.lzy?Ce:D(A(Re).v||s)).v}function $(e,t){t=Ce&&!1!==t?Ce.v:Me(t);if(t&&t[e])return t[e];if(e===Fe)try{return window}catch(e){}return s}var Je,We,He=qe($,["document"]),Le=qe($,[Fe]),Ue=qe(function(){return!!A(function(){var e=$("process");return e&&(e.versions||{}).node}).v}),Be=qe($,["queueMicrotask"]);function Ge(){return Je=D(A($,[J]).v)}function Ke(e){var t,n,r,i,o=Ae[e],u=(O||k(),(O.lzy?0:Je)||Ge());return u.v?u.v[o||e]:(De=De||{},(u=Ae[e])?De[u]=De[u]||(t="_"+Ne+++"_"+xe.v,n=J+"("+(o=J+"."+u)+")",i=Ie(null),c("description",ne(o)),c(L,function(){return n+ze+t}),c("valueOf",function(){return i}),c("v",n),c("_uid",t),(r=i)&&(A(function(){r[V]=!0,r[X]="symbol"}),A(E,[r,V,{v:!0,w:!1,e:!1}]),A(E,[r,X,{v:"symbol",w:!1,e:!1}])),r):void 0);function c(e,t){E(i,e,{v:t,e:!1,w:!1})}}function Qe(e){return e&&R(e.next)}function Ve(e){return!u(e)&&R(e[Ke(3)])}function Xe(t,e,n){if(t&&(Qe(t)||(t=t[(We=We||D(Ke(3))).v]?t[We.v]():s),Qe(t))){var r=l,i=l;try{for(var o=0;!(i=t.next()).done&&-1!==e[d](u(n)?t:n,i.value,o,t);)o++}catch(e){r={e:e},t.throw&&(i=s,t.throw(r))}finally{try{i&&!i.done&&t.return&&t.return(i)}finally{if(r)throw r.e}}}}var Ye=se("indexOf",Q);function x(e){return((e?e.slice:s)||y).apply(e,y[d](arguments,1))}var Ze,et,g=ve(W),tt=t(n(w,"setPrototypeOf"),nt);function nt(n,e){var t;return(Ze=Ze||D(((t={})[q]=[],t instanceof Array))).v?n[q]=e:le(e,function(e,t){return n[e]Line truncated
//# sourceMappingURL=ts-async.min.js.map
@@ -0,0 +1 @@
{"version":3,"file":"ts-async.min.js","sources":["https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/treeshake_helpers.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/constants.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/poly_helpers.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/safe.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/base.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/stubs.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/string/as_string.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/diagnostics.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/throw.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/throwIf.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/has_own.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/has_own_prop.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/for_each_key.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/array/forEach.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/unwrapFunction.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/define.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/map.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/object.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/enum.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/symbol/well_known.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/global.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/create.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/lazy.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/date.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/funcs/funcs.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/math/random.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/polyfills/symbol.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/instance.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/cache.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/environment.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/symbol/symbol.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/iterator/forOf.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/poly_utils.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/iterator/iterator.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/array/indexOf.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/array/slice.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/length.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/set_proto.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/perf.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/customError.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/handler.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/timeout.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/idle.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/microtasks/taskQueue.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/microtasks/promiseQueue.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/microtasks/runMicrotask.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/microtasks/timerQueue.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/microtask.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/internal/constants.ts","https://raw.githubusercontent.com/nevware21/tLine truncated
File diff suppressed because it is too large. Load diff
@@ -0,0 +1 @@
{"version":3,"file":"ts-async.js","sources":["https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/internal/constants.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/promise/await.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/internal/treeshake_helpers.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/promise/debug.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/internal/state.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/promise/event.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/promise/base.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/internal/timeout_helpers.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/promise/itemProcessor.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/promise/asyncPromise.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/promise/nativePromise.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/promise/syncPromise.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/promise/idlePromise.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/promise/promise.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/promise/timeoutPromise.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/helpers/doWhileAsync.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/helpers/arrForEachAsync.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/helpers/iterForOfAsync.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/scheduler/taskScheduler.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/polyfills/promise.ts"],"sourcesContent":["/*\r\n * @nevware21/ts-async\r\n * https://github.com/nevware21/ts-async\r\n *\r\n * Copyright (c) 2023 NevWare21 Solutions LLC\r\n * Licensed under the MIT license.\r\n */\r\n\r\nexport const STR_PROMISE = \"Promise\";\r\nexport const DONE = \"done\";\r\nexport const VALUE = \"value\";\r\nexport const ITERATOR = \"iterator\";\r\nexport const RETURN = \"return\";\r\nexport const REJECTED = \"rejected\";","/*\r\n * @nevware21/ts-async\r\n * https://github.com/nevware21/ts-async\r\n *\r\n * Copyright (c) 2022 NevWare21 Solutions LLC\r\n * Licensed under the MIT license.\r\n */\r\n\r\nimport { isPromiseLike } from \"@nevware21/ts-utils\";\r\nimport { AwaitResponse } from \"../interfaces/await-response\";\r\nimport { IPromise } from \"../interfaces/IPromise\";\r\nimport { FinallyPromiseHandler, RejectedPromiseHandler, ResolvedPromiseHandler } from \"../interfaces/types\";\r\nimport { REJECTED } from \"../internal/constants\";\r\n\r\n/**\r\n * Helper to coallesce the promise resolved / reject into a single callback to simplify error handling.\r\n * @group Await Helper\r\n * @param value - The value or promise like value to wait\r\n * @param cb - The callback function to call with the resulting value, if the value is not a\r\n * promise like value then the callback is called synchronously, if the value is a promise then\r\n * the callback will be called once the promise completes the resulting value will be passed as an\r\n * IAwaitResponse instance, it will be called whether any promise resolves or rejects.\r\n * @returns The value returned by the `cb` callback function, if the value is a promise then the return value\r\n * of the callback will be returned as a promise whether the callback returns a promise or not.\r\n * @example\r\n * ```ts\r\n * let promise = createPromise<number>((resolve, reject) => {\r\n * resolve(42);\r\n * });\r\n *\r\n * // Handle via doAwaitResponse\r\n * doAwaitResponse(promise, (value) => {\r\n * if (!value.rejected) {\r\n * // Do something with the value\r\n * } else {\r\n * // Do something with the reason\r\n * }\r\n * });\r\n *\r\n * // It can also handle the raw value, so you could process the result of either a\r\n * // synchrounous return of the value or a Promise\r\n * doAwaitResponse(42, (value) => {\r\n * if (!value.rejected) {\r\n * // Do something with the value\r\n * } else {\r\n * // This will never be true as the value is not a promise\r\n * }\r\n * });\r\n * ```\r\n */\r\nexport function doAwaitResponse<T, TResult1 = T, TResult2 = never>(value: T | IPromise<T> | PromiseLike<T>, cb: (response: AwaitResponse<T | TResult1>) => T | TResult1 | TResult2 | IPromise<T | TResult1 | TResult2> | PromiseLike<T | TResult1 | TResult2>): T | TResult1 | TResult2 | IPromise<T | TResult1 | TResult2>;\r\n\r\n/**\r\n * Helper to coallesce the promise resolved / reject inLine truncated
File diff suppressed because it is too large. Load diff
@@ -0,0 +1 @@
{"version":3,"file":"ts-async.js","sources":["https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/internal/constants.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/promise/await.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/internal/treeshake_helpers.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/promise/debug.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/internal/state.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/promise/event.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/promise/base.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/internal/timeout_helpers.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/promise/itemProcessor.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/promise/asyncPromise.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/promise/nativePromise.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/promise/syncPromise.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/promise/idlePromise.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/promise/promise.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/promise/timeoutPromise.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/helpers/doWhileAsync.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/helpers/arrForEachAsync.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/helpers/iterForOfAsync.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/scheduler/taskScheduler.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/polyfills/promise.ts"],"sourcesContent":["/*\r\n * @nevware21/ts-async\r\n * https://github.com/nevware21/ts-async\r\n *\r\n * Copyright (c) 2023 NevWare21 Solutions LLC\r\n * Licensed under the MIT license.\r\n */\r\n\r\nexport const STR_PROMISE = \"Promise\";\r\nexport const DONE = \"done\";\r\nexport const VALUE = \"value\";\r\nexport const ITERATOR = \"iterator\";\r\nexport const RETURN = \"return\";\r\nexport const REJECTED = \"rejected\";","/*\r\n * @nevware21/ts-async\r\n * https://github.com/nevware21/ts-async\r\n *\r\n * Copyright (c) 2022 NevWare21 Solutions LLC\r\n * Licensed under the MIT license.\r\n */\r\n\r\nimport { isPromiseLike } from \"@nevware21/ts-utils\";\r\nimport { AwaitResponse } from \"../interfaces/await-response\";\r\nimport { IPromise } from \"../interfaces/IPromise\";\r\nimport { FinallyPromiseHandler, RejectedPromiseHandler, ResolvedPromiseHandler } from \"../interfaces/types\";\r\nimport { REJECTED } from \"../internal/constants\";\r\n\r\n/**\r\n * Helper to coallesce the promise resolved / reject into a single callback to simplify error handling.\r\n * @group Await Helper\r\n * @param value - The value or promise like value to wait\r\n * @param cb - The callback function to call with the resulting value, if the value is not a\r\n * promise like value then the callback is called synchronously, if the value is a promise then\r\n * the callback will be called once the promise completes the resulting value will be passed as an\r\n * IAwaitResponse instance, it will be called whether any promise resolves or rejects.\r\n * @returns The value returned by the `cb` callback function, if the value is a promise then the return value\r\n * of the callback will be returned as a promise whether the callback returns a promise or not.\r\n * @example\r\n * ```ts\r\n * let promise = createPromise<number>((resolve, reject) => {\r\n * resolve(42);\r\n * });\r\n *\r\n * // Handle via doAwaitResponse\r\n * doAwaitResponse(promise, (value) => {\r\n * if (!value.rejected) {\r\n * // Do something with the value\r\n * } else {\r\n * // Do something with the reason\r\n * }\r\n * });\r\n *\r\n * // It can also handle the raw value, so you could process the result of either a\r\n * // synchrounous return of the value or a Promise\r\n * doAwaitResponse(42, (value) => {\r\n * if (!value.rejected) {\r\n * // Do something with the value\r\n * } else {\r\n * // This will never be true as the value is not a promise\r\n * }\r\n * });\r\n * ```\r\n */\r\nexport function doAwaitResponse<T, TResult1 = T, TResult2 = never>(value: T | IPromise<T> | PromiseLike<T>, cb: (response: AwaitResponse<T | TResult1>) => T | TResult1 | TResult2 | IPromise<T | TResult1 | TResult2> | PromiseLike<T | TResult1 | TResult2>): T | TResult1 | TResult2 | IPromise<T | TResult1 | TResult2>;\r\n\r\n/**\r\n * Helper to coallesce the promise resolved / reject inLine truncated
File diff suppressed because it is too large. Load diff
@@ -0,0 +1 @@
{"version":3,"file":"ts-async.js","sources":["https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/treeshake_helpers.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/constants.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/poly_helpers.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/safe.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/base.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/stubs.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/string/as_string.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/diagnostics.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/throw.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/throwIf.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/has_own_prop.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/has_own.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/for_each_key.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/array/forEach.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/unwrapFunction.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/define.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/map.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/object.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/enum.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/symbol/well_known.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/global.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/poly_utils.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/create.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/date.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/funcs/funcs.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/lazy.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/math/random.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/internal/instance.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/polyfills/symbol.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/cache.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/environment.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/symbol/symbol.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/iterator/iterator.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/iterator/forOf.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/array/indexOf.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/array/slice.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/length.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/object/set_proto.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/customError.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/helpers/perf.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/handler.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/timeout.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/idle.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/microtasks/cancellableTask.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/microtasks/runMicrotask.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/microtasks/taskQueue.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/microtasks/promiseQueue.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/microtasks/resolveScheduleFn.ts","https://raw.githubusercontent.com/nevware21/ts-utils/refs/tags/0.15.0/lib/src/timer/microtasks/timerQueue.ts","https://raw.gitLine truncated
File diff suppressed because it is too large. Load diff
@@ -0,0 +1 @@
{"version":3,"file":"ts-async.js","sources":["https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/internal/constants.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/promise/await.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/internal/treeshake_helpers.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/promise/debug.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/internal/state.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/promise/event.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/promise/base.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/internal/timeout_helpers.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/promise/itemProcessor.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/promise/asyncPromise.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/promise/nativePromise.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/promise/syncPromise.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/promise/idlePromise.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/promise/promise.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/promise/timeoutPromise.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/helpers/doWhileAsync.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/helpers/arrForEachAsync.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/helpers/iterForOfAsync.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/scheduler/taskScheduler.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/polyfills/promise.ts"],"sourcesContent":["/*\r\n * @nevware21/ts-async\r\n * https://github.com/nevware21/ts-async\r\n *\r\n * Copyright (c) 2023 NevWare21 Solutions LLC\r\n * Licensed under the MIT license.\r\n */\r\n\r\nexport const STR_PROMISE = \"Promise\";\r\nexport const DONE = \"done\";\r\nexport const VALUE = \"value\";\r\nexport const ITERATOR = \"iterator\";\r\nexport const RETURN = \"return\";\r\nexport const REJECTED = \"rejected\";","/*\r\n * @nevware21/ts-async\r\n * https://github.com/nevware21/ts-async\r\n *\r\n * Copyright (c) 2022 NevWare21 Solutions LLC\r\n * Licensed under the MIT license.\r\n */\r\n\r\nimport { isPromiseLike } from \"@nevware21/ts-utils\";\r\nimport { AwaitResponse } from \"../interfaces/await-response\";\r\nimport { IPromise } from \"../interfaces/IPromise\";\r\nimport { FinallyPromiseHandler, RejectedPromiseHandler, ResolvedPromiseHandler } from \"../interfaces/types\";\r\nimport { REJECTED } from \"../internal/constants\";\r\n\r\n/**\r\n * Helper to coallesce the promise resolved / reject into a single callback to simplify error handling.\r\n * @group Await Helper\r\n * @param value - The value or promise like value to wait\r\n * @param cb - The callback function to call with the resulting value, if the value is not a\r\n * promise like value then the callback is called synchronously, if the value is a promise then\r\n * the callback will be called once the promise completes the resulting value will be passed as an\r\n * IAwaitResponse instance, it will be called whether any promise resolves or rejects.\r\n * @returns The value returned by the `cb` callback function, if the value is a promise then the return value\r\n * of the callback will be returned as a promise whether the callback returns a promise or not.\r\n * @example\r\n * ```ts\r\n * let promise = createPromise<number>((resolve, reject) => {\r\n * resolve(42);\r\n * });\r\n *\r\n * // Handle via doAwaitResponse\r\n * doAwaitResponse(promise, (value) => {\r\n * if (!value.rejected) {\r\n * // Do something with the value\r\n * } else {\r\n * // Do something with the reason\r\n * }\r\n * });\r\n *\r\n * // It can also handle the raw value, so you could process the result of either a\r\n * // synchrounous return of the value or a Promise\r\n * doAwaitResponse(42, (value) => {\r\n * if (!value.rejected) {\r\n * // Do something with the value\r\n * } else {\r\n * // This will never be true as the value is not a promise\r\n * }\r\n * });\r\n * ```\r\n */\r\nexport function doAwaitResponse<T, TResult1 = T, TResult2 = never>(value: T | IPromise<T> | PromiseLike<T>, cb: (response: AwaitResponse<T | TResult1>) => T | TResult1 | TResult2 | IPromise<T | TResult1 | TResult2> | PromiseLike<T | TResult1 | TResult2>): T | TResult1 | TResult2 | IPromise<T | TResult1 | TResult2>;\r\n\r\n/**\r\n * Helper to coallesce the promise resolved / reject inLine truncated
File diff suppressed because it is too large. Load diff
@@ -0,0 +1 @@
{"version":3,"file":"ts-async.js","sources":["https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/internal/constants.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/promise/await.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/internal/treeshake_helpers.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/promise/debug.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/internal/state.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/promise/event.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/promise/base.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/internal/timeout_helpers.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/promise/itemProcessor.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/promise/asyncPromise.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/promise/nativePromise.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/promise/syncPromise.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/promise/idlePromise.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/promise/promise.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/promise/timeoutPromise.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/helpers/doWhileAsync.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/helpers/arrForEachAsync.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/helpers/iterForOfAsync.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/scheduler/taskScheduler.ts","https://raw.githubusercontent.com/nevware21/ts-async/refs/tags/0.6.1/lib/src/polyfills/promise.ts"],"sourcesContent":["/*\r\n * @nevware21/ts-async\r\n * https://github.com/nevware21/ts-async\r\n *\r\n * Copyright (c) 2023 NevWare21 Solutions LLC\r\n * Licensed under the MIT license.\r\n */\r\n\r\nexport const STR_PROMISE = \"Promise\";\r\nexport const DONE = \"done\";\r\nexport const VALUE = \"value\";\r\nexport const ITERATOR = \"iterator\";\r\nexport const RETURN = \"return\";\r\nexport const REJECTED = \"rejected\";","/*\r\n * @nevware21/ts-async\r\n * https://github.com/nevware21/ts-async\r\n *\r\n * Copyright (c) 2022 NevWare21 Solutions LLC\r\n * Licensed under the MIT license.\r\n */\r\n\r\nimport { isPromiseLike } from \"@nevware21/ts-utils\";\r\nimport { AwaitResponse } from \"../interfaces/await-response\";\r\nimport { IPromise } from \"../interfaces/IPromise\";\r\nimport { FinallyPromiseHandler, RejectedPromiseHandler, ResolvedPromiseHandler } from \"../interfaces/types\";\r\nimport { REJECTED } from \"../internal/constants\";\r\n\r\n/**\r\n * Helper to coallesce the promise resolved / reject into a single callback to simplify error handling.\r\n * @group Await Helper\r\n * @param value - The value or promise like value to wait\r\n * @param cb - The callback function to call with the resulting value, if the value is not a\r\n * promise like value then the callback is called synchronously, if the value is a promise then\r\n * the callback will be called once the promise completes the resulting value will be passed as an\r\n * IAwaitResponse instance, it will be called whether any promise resolves or rejects.\r\n * @returns The value returned by the `cb` callback function, if the value is a promise then the return value\r\n * of the callback will be returned as a promise whether the callback returns a promise or not.\r\n * @example\r\n * ```ts\r\n * let promise = createPromise<number>((resolve, reject) => {\r\n * resolve(42);\r\n * });\r\n *\r\n * // Handle via doAwaitResponse\r\n * doAwaitResponse(promise, (value) => {\r\n * if (!value.rejected) {\r\n * // Do something with the value\r\n * } else {\r\n * // Do something with the reason\r\n * }\r\n * });\r\n *\r\n * // It can also handle the raw value, so you could process the result of either a\r\n * // synchrounous return of the value or a Promise\r\n * doAwaitResponse(42, (value) => {\r\n * if (!value.rejected) {\r\n * // Do something with the value\r\n * } else {\r\n * // This will never be true as the value is not a promise\r\n * }\r\n * });\r\n * ```\r\n */\r\nexport function doAwaitResponse<T, TResult1 = T, TResult2 = never>(value: T | IPromise<T> | PromiseLike<T>, cb: (response: AwaitResponse<T | TResult1>) => T | TResult1 | TResult2 | IPromise<T | TResult1 | TResult2> | PromiseLike<T | TResult1 | TResult2>): T | TResult1 | TResult2 | IPromise<T | TResult1 | TResult2>;\r\n\r\n/**\r\n * Helper to coallesce the promise resolved / reject inLine truncated
File diff suppressed because it is too large. Load diff
+126
View File
@@ -0,0 +1,126 @@
{
"name": "@nevware21/ts-async",
"description": "support for asynchronous development with a Promise based task Scheduler, several different Promise implementations (synchronous, idle, asynchronous and native runtime wrappers), await helpers, and aliases all built and tested using TypeScript.",
"version": "0.6.1",
"homepage": "https://github.com/nevware21/ts-async",
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/nevware21"
},
{
"type": "buymeacoffee",
"url": "https://www.buymeacoffee.com/nevware21"
}
],
"sideEffects": false,
"license": "MIT",
"author": {
"name": "NevWare21 Solutions LLC",
"email": "[email protected]"
},
"keywords": [
"typescript",
"javascript",
"es5",
"promise",
"es6.promise",
"async",
"asynchronous",
"async promise",
"asynchronous promise",
"sync",
"synchronous",
"sync promise",
"synchronous promise",
"idle",
"idle promise",
"requestIdleCallback",
"minification",
"browser",
"promise polyfill",
"scheduler",
"task scheduler"
],
"main": "dist/es5/main/ts-async.js",
"esnext:main": "dist/es6/main/ts-async.js",
"module": "dist/es5/mod/ts-async.js",
"esnext": "dist/es6/mod/ts-async.js",
"types": "dist/types/ts-async.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/nevware21/ts-async.git"
},
"bugs": {
"url": "https://github.com/nevware21/ts-async/issues"
},
"licenses": [
{
"type": "MIT",
"url": "https://github.com/nevware21/ts-async/blob/main/LICENSE"
}
],
"scripts": {
"build": "npm run preproc && grunt ts_async --verbose && npm run preproc -- -restore && npm run package && npm run dtsgen",
"rebuild": "npm run build && npm run test",
"package": "rollup -c rollup.config.js --bundleConfigAsCjs",
"test": "npm run preproc test && grunt ts_async-test && npm run test:node && npm run test:browser && npm run test:worker && npm run coverage:report&& npm run preproc -- -restore",
"test:node": "nyc ts-mocha --type-check -p ./test/tsconfig.test.json \"./test/src/!(browser|worker)/**/*.test.ts\" --trace-uncaught",
"test:browser": "karma start karma.browser.conf.js --single-run",
"test:worker": "karma start karma.worker.conf.js --single-run",
"debug:browser": "karma start karma.debug.browser.conf.js --watch",
"debug:worker": "karma start karma.debug.worker.conf.js --watch",
"lint": "grunt ts_async-lint",
"coverage:report": "npm run coverage:nyc && npm run coverage:merge",
"coverage:nyc": "nyc report --reporter=json",
"coverage:merge": "merge-coverage",
"codecov": "npm run coverage:report",
"clean": "git clean -xdf && npm install",
"cleanBuild": "npm run clean && npm run rebuild && npm run docs",
"docs": "cd .. && npx typedoc",
"rush-update": "rush update --recheck --purge --full",
"dtsgen": "api-extractor run --local --verbose && node scripts/setTsReferences.js",
"preproc": "ts-preproc -C ../preproc.json -R .."
},
"dependencies": {
"@nevware21/ts-utils": ">= 0.15.0 < 2.x"
},
"devDependencies": {
"@istanbuljs/nyc-config-typescript": "^1.0.2",
"@microsoft/api-extractor": "^7.48.1",
"@nevware21/tripwire": ">= 0.1.8 < 2.x",
"@nevware21/ts-preproc": "^0.1.4",
"@rollup/plugin-commonjs": "^29.0.0",
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-node-resolve": "^16.0.0",
"@rollup/plugin-strip": "^3.0.2",
"@rollup/plugin-typescript": "^12.1.1",
"@types/mocha": "^10.0.1",
"@types/sinon": "^21.0.0",
"chromium": "^3.0.3",
"copyfiles": "^2.4.1",
"cross-env": "^10.1.0",
"grunt": "^1.6.2",
"grunt-cli": "^1.4.3",
"karma": "^6.3.20",
"karma-chrome-launcher": "^3.1.1",
"karma-mocha": "^2.0.1",
"karma-spec-reporter": "^0.0.36",
"karma-typescript": "^5.5.3",
"mocha": "^10.0.0",
"nyc": "^18.0.0",
"puppeteer": "^25.0.2",
"rollup": "^4.26.0",
"rollup-plugin-cleanup": "^3.2.1",
"rollup-plugin-istanbul": "^5.0.0",
"rollup-plugin-minify-es": "^1.1.1",
"rollup-plugin-sourcemaps": "^0.6.3",
"sinon": "^14.0.0",
"ts-mocha": "^11.1.0",
"typedoc": "^0.28.2",
"typedoc-github-theme": "^0.4.0",
"typescript": "~5.2.2",
"uglify-js": "^3.15.5"
}
}
@@ -0,0 +1,25 @@
{
"compilerOptions": {
"sourceMap": true,
"inlineSources": true,
"noImplicitAny": true,
"module": "es6",
"moduleResolution": "node",
"target": "es5",
"lib": ["es2018", "dom"],
"forceConsistentCasingInFileNames": true,
"importHelpers": true,
"noEmitHelpers": false,
"alwaysStrict": true,
"declaration": false,
"outDir": "./build/base",
"allowSyntheticDefaultImports": true,
"removeComments": true
},
"include": [
"./src/**/*.ts"
],
"exclude": [
"node_modules/"
]
}
@@ -0,0 +1,7 @@
{
"extends": "./tsconfig.base.json",
"compilerOptions": {
"target": "es6",
"outDir": "./build/es6"
}
}
+10
View File
@@ -0,0 +1,10 @@
{
"extends": "./tsconfig.base.json",
"compilerOptions": {
"target": "es5",
"declaration": true,
"declarationDir": "./build/types",
"removeComments": false,
"outDir": "./build/es5"
}
}