UNPKG

@ayonli/jsext

Version:

A JavaScript extension package for building strong and modern applications.

73 lines (70 loc) 2.69 kB
import _try from './try.js'; import func from './func.js'; import wrap from './wrap.js'; import mixin from './mixin.js'; import throttle from './throttle.js'; import debounce from './debounce.js'; import queue, { Queue as Queue$1 } from './queue.js'; import lock, { Mutex as Mutex$1 } from './lock.js'; import { readAsArray } from './reader.js'; import chan, { Channel as Channel$1 } from './chan.js'; import parallel from './parallel.js'; import run from './run.js'; import example$1 from './example.js'; import deprecate from './deprecate.js'; import pipe from './pipe.js'; import { isClass as isClass$1, isSubclassOf as isSubclassOf$1 } from './class.js'; export { AsyncFunction, AsyncGeneratorFunction, GeneratorFunction, TypedArray } from './types.js'; import { toAsyncIterable } from './reader/util.js'; /** @deprecated import `Queue` from `@ayonli/jsext/queue` instead. */ const Queue = Queue$1; /** @deprecated import `Mutex` from `@ayonli/jsext/lock` instead. */ const Mutex = Mutex$1; /** @deprecated import `Channel` from `@ayonli/jsext/chan` instead. */ const Channel = Channel$1; /** * The entry of jsext major functions. */ const jsext = { _try, /** @deprecated use `_try` instead */ try: _try, func, wrap, mixin, throttle, debounce, queue, lock, /** @deprecated Use {@link toAsyncIterable} from `@ayonli/jsext/reader` instead. */ read: toAsyncIterable, /** @deprecated Use {@link readAsArray} from `@ayonli/jsext/reader` instead. */ readAll: readAsArray, chan, parallel, run, /** @deprecated */ example: example$1, deprecate, pipe, /** @deprecated import `isClass` from `@ayonli/jsext/class` instead. */ isClass: isClass$1, /** @deprecated import `isSubclassOf` from `@ayonli/jsext/class` instead. */ isSubclassOf: isSubclassOf$1, /** @deprecated use `mixin` instead */ mixins: mixin, }; /** @deprecated Use {@link toAsyncIterable} from `@ayonli/jsext/reader` instead. */ const read = toAsyncIterable; /** @deprecated Use {@link readAsArray} from `@ayonli/jsext/reader` instead. */ const readAll = readAsArray; /** @deprecated */ const example = example$1; /** @deprecated import `isClass` from `@ayonli/jsext/class` instead. */ const isClass = isClass$1; /** @deprecated import `isSubclassOf` from `@ayonli/jsext/class` instead. */ const isSubclassOf = isSubclassOf$1; /** @deprecated use `mixin` instead */ const mixins = mixin; export { Channel, Mutex, Queue, _try, chan, debounce, jsext as default, deprecate, example, func, isClass, isSubclassOf, lock, mixin, mixins, parallel, pipe, queue, read, readAll, run, throttle, wrap }; //# sourceMappingURL=index.js.map