@thi.ng/csp 1.1.73 → 2.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,7 +3,7 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- ## [1.1.73](https://github.com/thi-ng/umbrella/compare/@thi.ng/csp@1.1.72...@thi.ng/csp@1.1.73) (2021-08-19)
6
+ ## [2.0.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/csp@2.0.2...@thi.ng/csp@2.0.3) (2021-10-15)
7
7
 
8
8
  **Note:** Version bump only for package @thi.ng/csp
9
9
 
@@ -11,7 +11,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
11
11
 
12
12
 
13
13
 
14
- ## [1.1.72](https://github.com/thi-ng/umbrella/compare/@thi.ng/csp@1.1.71...@thi.ng/csp@1.1.72) (2021-08-19)
14
+ ## [2.0.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/csp@2.0.1...@thi.ng/csp@2.0.2) (2021-10-15)
15
15
 
16
16
  **Note:** Version bump only for package @thi.ng/csp
17
17
 
@@ -19,7 +19,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
19
19
 
20
20
 
21
21
 
22
- ## [1.1.71](https://github.com/thi-ng/umbrella/compare/@thi.ng/csp@1.1.70...@thi.ng/csp@1.1.71) (2021-08-17)
22
+ ## [2.0.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/csp@2.0.0...@thi.ng/csp@2.0.1) (2021-10-13)
23
23
 
24
24
  **Note:** Version bump only for package @thi.ng/csp
25
25
 
@@ -27,104 +27,71 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
27
27
 
28
28
 
29
29
 
30
- ## [1.1.70](https://github.com/thi-ng/umbrella/compare/@thi.ng/csp@1.1.69...@thi.ng/csp@1.1.70) (2021-08-08)
30
+ # [2.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/csp@1.1.74...@thi.ng/csp@2.0.0) (2021-10-12)
31
31
 
32
- **Note:** Version bump only for package @thi.ng/csp
33
-
34
-
35
-
36
-
37
-
38
- ## [1.1.69](https://github.com/thi-ng/umbrella/compare/@thi.ng/csp@1.1.68...@thi.ng/csp@1.1.69) (2021-08-08)
39
-
40
- **Note:** Version bump only for package @thi.ng/csp
41
-
42
-
43
-
44
-
45
-
46
- ## [1.1.68](https://github.com/thi-ng/umbrella/compare/@thi.ng/csp@1.1.67...@thi.ng/csp@1.1.68) (2021-08-04)
47
-
48
- **Note:** Version bump only for package @thi.ng/csp
49
-
50
-
51
-
52
-
53
-
54
- ## [1.1.67](https://github.com/thi-ng/umbrella/compare/@thi.ng/csp@1.1.66...@thi.ng/csp@1.1.67) (2021-08-04)
55
32
 
56
- **Note:** Version bump only for package @thi.ng/csp
57
-
58
-
59
-
60
-
61
-
62
- ## [1.1.66](https://github.com/thi-ng/umbrella/compare/@thi.ng/csp@1.1.65...@thi.ng/csp@1.1.66) (2021-07-27)
63
-
64
- **Note:** Version bump only for package @thi.ng/csp
65
-
66
-
67
-
68
-
69
-
70
- ## [1.1.65](https://github.com/thi-ng/umbrella/compare/@thi.ng/csp@1.1.64...@thi.ng/csp@1.1.65) (2021-07-01)
71
-
72
- **Note:** Version bump only for package @thi.ng/csp
33
+ ### Build System
73
34
 
35
+ * major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea9fab2a645d6c5f2bf2591459b939c09b6))
74
36
 
75
37
 
38
+ ### BREAKING CHANGES
76
39
 
40
+ * discontinue CommonJS & UMD versions
77
41
 
78
- ## [1.1.64](https://github.com/thi-ng/umbrella/compare/@thi.ng/csp@1.1.63...@thi.ng/csp@1.1.64) (2021-06-08)
42
+ - only ESM modules will be published from now on
43
+ - CJS obsolete due to ESM support in recent versions of node:
44
+ - i.e. launch NodeJS via:
45
+ - `node --experimental-specifier-resolution=node --experimental-repl-await`
46
+ - in the node REPL use `await import(...)` instead of `require()`
47
+ - UMD obsolete due to widespread browser support for ESM
79
48
 
80
- **Note:** Version bump only for package @thi.ng/csp
49
+ Also:
50
+ - normalize/restructure/reorg all package.json files
51
+ - cleanup all build scripts, remove obsolete
52
+ - switch from mocha to @thi.ng/testament for all tests
81
53
 
82
54
 
83
55
 
84
56
 
85
57
 
86
- # [1.1.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/csp@1.0.19...@thi.ng/csp@1.1.0) (2019-07-07)
87
58
 
88
- ### Bug Fixes
59
+ # [1.1.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/csp@1.0.19...@thi.ng/csp@1.1.0) (2019-07-07)
89
60
 
90
- * **csp:** TS strictNullChecks, update various return types ([da909ac](https://github.com/thi-ng/umbrella/commit/da909ac))
61
+ ### Bug Fixes
91
62
 
92
- ### Features
63
+ - **csp:** TS strictNullChecks, update various return types ([da909ac](https://github.com/thi-ng/umbrella/commit/da909ac))
93
64
 
94
- * **csp:** enable TS strict compiler flags (refactor) ([3d7fba2](https://github.com/thi-ng/umbrella/commit/3d7fba2))
95
- * **csp:** update Mult.tap() to use set semantics ([c9bc953](https://github.com/thi-ng/umbrella/commit/c9bc953))
65
+ ### Features
96
66
 
97
- # [1.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/csp@0.3.79...@thi.ng/csp@1.0.0) (2019-01-21)
67
+ - **csp:** enable TS strict compiler flags (refactor) ([3d7fba2](https://github.com/thi-ng/umbrella/commit/3d7fba2))
68
+ - **csp:** update Mult.tap() to use set semantics ([c9bc953](https://github.com/thi-ng/umbrella/commit/c9bc953))
98
69
 
99
- ### Bug Fixes
70
+ # [1.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/csp@0.3.79...@thi.ng/csp@1.0.0) (2019-01-21)
100
71
 
101
- * **csp:** disable __State reverse enum lookup ([3b8576f](https://github.com/thi-ng/umbrella/commit/3b8576f))
72
+ ### Bug Fixes
102
73
 
103
- ### Build System
74
+ - **csp:** disable __State reverse enum lookup ([3b8576f](https://github.com/thi-ng/umbrella/commit/3b8576f))
104
75
 
105
- * update package build scripts & outputs, imports in ~50 packages ([b54b703](https://github.com/thi-ng/umbrella/commit/b54b703))
76
+ ### Build System
106
77
 
107
- ### BREAKING CHANGES
78
+ - update package build scripts & outputs, imports in ~50 packages ([b54b703](https://github.com/thi-ng/umbrella/commit/b54b703))
108
79
 
109
- * enabled multi-outputs (ES6 modules, CJS, UMD)
80
+ ### BREAKING CHANGES
110
81
 
111
- - build scripts now first build ES6 modules in package root, then call
112
- `scripts/bundle-module` to build minified CJS & UMD bundles in `/lib`
113
- - all imports MUST be updated to only refer to package level
114
- (not individual files anymore). tree shaking in user land will get rid of
115
- all unused imported symbols.
82
+ - enabled multi-outputs (ES6 modules, CJS, UMD)
83
+ - build scripts now first build ES6 modules in package root, then call `scripts/bundle-module` to build minified CJS & UMD bundles in `/lib`
84
+ - all imports MUST be updated to only refer to package level (not individual files anymore). tree shaking in user land will get rid of all unused imported symbols.
116
85
 
117
- <a name="0.3.64"></a>
118
- ## [0.3.64](https://github.com/thi-ng/umbrella/compare/@thi.ng/csp@0.3.63...@thi.ng/csp@0.3.64) (2018-09-24)
86
+ ## [0.3.64](https://github.com/thi-ng/umbrella/compare/@thi.ng/csp@0.3.63...@thi.ng/csp@0.3.64) (2018-09-24)
119
87
 
120
- ### Performance Improvements
88
+ ### Performance Improvements
121
89
 
122
- * **csp:** `State` => const enum ([c3e8d68](https://github.com/thi-ng/umbrella/commit/c3e8d68))
90
+ - **csp:** `State` => const enum ([c3e8d68](https://github.com/thi-ng/umbrella/commit/c3e8d68))
123
91
 
124
- <a name="0.3.11"></a>
125
- ## [0.3.11](https://github.com/thi-ng/umbrella/compare/@thi.ng/csp@0.3.10...@thi.ng/csp@0.3.11) (2018-02-08)
92
+ ## [0.3.11](https://github.com/thi-ng/umbrella/compare/@thi.ng/csp@0.3.10...@thi.ng/csp@0.3.11) (2018-02-08)
126
93
 
127
- ### Bug Fixes
94
+ ### Bug Fixes
128
95
 
129
- * **csp:** fix [#5](https://github.com/thi-ng/umbrella/issues/5), example in readme ([a10a487](https://github.com/thi-ng/umbrella/commit/a10a487))
130
- * **csp:** fix [#5](https://github.com/thi-ng/umbrella/issues/5), more example fixes (rfn calls) ([080c2ee](https://github.com/thi-ng/umbrella/commit/080c2ee))
96
+ - **csp:** fix [#5](https://github.com/thi-ng/umbrella/issues/5), example in readme ([a10a487](https://github.com/thi-ng/umbrella/commit/a10a487))
97
+ - **csp:** fix [#5](https://github.com/thi-ng/umbrella/issues/5), more example fixes (rfn calls) ([080c2ee](https://github.com/thi-ng/umbrella/commit/080c2ee))
package/README.md CHANGED
@@ -61,15 +61,24 @@ for a similar, but alternative (and actively maintained) approach.
61
61
  yarn add @thi.ng/csp
62
62
  ```
63
63
 
64
+ ES module import:
65
+
64
66
  ```html
65
- // ES module
66
- <script type="module" src="https://unpkg.com/@thi.ng/csp?module" crossorigin></script>
67
+ <script type="module" src="https://cdn.skypack.dev/@thi.ng/csp"></script>
68
+ ```
69
+
70
+ [Skypack documentation](https://docs.skypack.dev/)
71
+
72
+ For Node.js REPL:
73
+
74
+ ```text
75
+ # with flag only for < v16
76
+ node --experimental-repl-await
67
77
 
68
- // UMD
69
- <script src="https://unpkg.com/@thi.ng/csp/lib/index.umd.js" crossorigin></script>
78
+ > const csp = await import("@thi.ng/csp");
70
79
  ```
71
80
 
72
- Package sizes (gzipped, pre-treeshake): ESM: 2.61 KB / CJS: 2.68 KB / UMD: 2.75 KB
81
+ Package sizes (gzipped, pre-treeshake): ESM: 2.64 KB
73
82
 
74
83
  ## Dependencies
75
84
 
package/api.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { Fn, IID, ILength, IRelease } from "@thi.ng/api";
2
- import type { Channel } from "./channel";
2
+ import type { Channel } from "./channel.js";
3
3
  export interface ChannelItem<T> {
4
4
  value(): Promise<T>;
5
5
  resolve(success: boolean): void;
package/buffer.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { DCons } from "@thi.ng/dcons";
2
- import type { ChannelItem, IBuffer } from "./api";
1
+ import { DCons } from "@thi.ng/dcons/dcons";
2
+ import type { ChannelItem, IBuffer } from "./api.js";
3
3
  export declare class FixedBuffer<T> implements IBuffer<T> {
4
4
  buf: DCons<ChannelItem<T>>;
5
5
  limit: number;
package/buffer.js CHANGED
@@ -1,4 +1,4 @@
1
- import { DCons } from "@thi.ng/dcons";
1
+ import { DCons } from "@thi.ng/dcons/dcons";
2
2
  export class FixedBuffer {
3
3
  constructor(limit = 1) {
4
4
  this.buf = new DCons();
package/channel.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import type { Fn, Fn0, Fn2, FnAny, Predicate } from "@thi.ng/api";
2
- import { DCons } from "@thi.ng/dcons";
3
- import { Reducer, Transducer } from "@thi.ng/transducers";
4
- import type { ChannelItem, ErrorHandler, IBuffer, IReadWriteableChannel } from "./api";
2
+ import { DCons } from "@thi.ng/dcons/dcons";
3
+ import type { Reducer, Transducer } from "@thi.ng/transducers";
4
+ import type { ChannelItem, ErrorHandler, IBuffer, IReadWriteableChannel } from "./api.js";
5
5
  declare const enum State {
6
6
  OPEN = 0,
7
7
  CLOSED = 1,
package/channel.js CHANGED
@@ -1,9 +1,12 @@
1
- import { shuffle } from "@thi.ng/arrays";
2
- import { isFunction } from "@thi.ng/checks";
3
- import { DCons } from "@thi.ng/dcons";
4
- import { illegalArity } from "@thi.ng/errors";
5
- import { cycle, delayed, isReduced, range, unreduced, } from "@thi.ng/transducers";
6
- import { FixedBuffer } from "./buffer";
1
+ import { shuffle } from "@thi.ng/arrays/shuffle";
2
+ import { isFunction } from "@thi.ng/checks/is-function";
3
+ import { DCons } from "@thi.ng/dcons/dcons";
4
+ import { illegalArity } from "@thi.ng/errors/illegal-arity";
5
+ import { cycle } from "@thi.ng/transducers/cycle";
6
+ import { delayed } from "@thi.ng/transducers/delayed";
7
+ import { range } from "@thi.ng/transducers/range";
8
+ import { isReduced, unreduced } from "@thi.ng/transducers/reduced";
9
+ import { FixedBuffer } from "./buffer.js";
7
10
  export class Channel {
8
11
  constructor(...args) {
9
12
  let id, buf, tx, err;
package/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- export * from "./api";
2
- export * from "./buffer";
3
- export * from "./channel";
4
- export * from "./mult";
5
- export * from "./pubsub";
1
+ export * from "./api.js";
2
+ export * from "./buffer.js";
3
+ export * from "./channel.js";
4
+ export * from "./mult.js";
5
+ export * from "./pubsub.js";
6
6
  //# sourceMappingURL=index.d.ts.map
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
- export * from "./api";
2
- export * from "./buffer";
3
- export * from "./channel";
4
- export * from "./mult";
5
- export * from "./pubsub";
1
+ export * from "./api.js";
2
+ export * from "./buffer.js";
3
+ export * from "./channel.js";
4
+ export * from "./mult.js";
5
+ export * from "./pubsub.js";
package/mult.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { DCons } from "@thi.ng/dcons";
1
+ import { DCons } from "@thi.ng/dcons/dcons";
2
2
  import type { Transducer } from "@thi.ng/transducers";
3
- import type { IWriteableChannel } from "./api";
4
- import { Channel } from "./channel";
3
+ import type { IWriteableChannel } from "./api.js";
4
+ import { Channel } from "./channel.js";
5
5
  export declare class Mult<T> implements IWriteableChannel<T> {
6
6
  protected static nextID: number;
7
7
  protected src: Channel<any>;
package/mult.js CHANGED
@@ -1,6 +1,6 @@
1
- import { DCons } from "@thi.ng/dcons";
2
- import { illegalArity } from "@thi.ng/errors";
3
- import { Channel } from "./channel";
1
+ import { DCons } from "@thi.ng/dcons/dcons";
2
+ import { illegalArity } from "@thi.ng/errors/illegal-arity";
3
+ import { Channel } from "./channel.js";
4
4
  export class Mult {
5
5
  constructor(...args) {
6
6
  this.tapID = 0;
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@thi.ng/csp",
3
- "version": "1.1.73",
3
+ "version": "2.0.3",
4
4
  "description": "ES6 promise based CSP primitives & operations",
5
+ "type": "module",
5
6
  "module": "./index.js",
6
- "main": "./lib/index.js",
7
- "umd:main": "./lib/index.umd.js",
8
7
  "typings": "./index.d.ts",
8
+ "sideEffects": false,
9
9
  "repository": {
10
10
  "type": "git",
11
11
  "url": "https://github.com/thi-ng/umbrella.git"
@@ -24,36 +24,30 @@
24
24
  "author": "Karsten Schmidt <k+npm@thi.ng>",
25
25
  "license": "Apache-2.0",
26
26
  "scripts": {
27
- "build": "yarn clean && yarn build:es6 && node ../../scripts/bundle-module",
28
- "build:release": "yarn clean && yarn build:es6 && node ../../scripts/bundle-module all",
29
- "build:es6": "tsc --declaration",
30
- "build:test": "rimraf build && tsc -p test/tsconfig.json",
31
- "build:check": "tsc --isolatedModules --noEmit",
32
- "test": "mocha test",
33
- "cover": "nyc mocha test && nyc report --reporter=lcov",
34
- "clean": "rimraf *.js *.d.ts *.map .nyc_output build coverage doc lib",
35
- "doc:readme": "ts-node -P ../../tools/tsconfig.json ../../tools/src/readme.ts",
36
- "doc": "typedoc --excludePrivate --out doc --theme ../../tools/doc/typedoc-theme src/index.ts",
27
+ "build": "yarn clean && tsc --declaration",
28
+ "clean": "rimraf *.js *.d.ts *.map doc",
29
+ "doc": "typedoc --excludePrivate --excludeInternal --out doc src/index.ts",
37
30
  "doc:ae": "mkdir -p .ae/doc .ae/temp && node_modules/.bin/api-extractor run --local --verbose",
38
- "pub": "yarn build:release && yarn publish --access public",
31
+ "doc:readme": "yarn doc:stats && ../../scripts/node-esm ../../tools/src/readme.ts",
32
+ "doc:stats": "../../scripts/node-esm ../../tools/src/module-stats.ts",
33
+ "pub": "yarn build && yarn publish --access public",
34
+ "test": "testament test",
39
35
  "testasync": "tsc -p test && node build/test/async.js",
40
36
  "testfile": "tsc -p test && node build/test/file.js",
41
37
  "testgraph": "tsc -p test && node build/test/graph.js",
42
38
  "testnode": "tsc -p test && node build/test/node.js"
43
39
  },
44
40
  "dependencies": {
45
- "@thi.ng/api": "^7.1.9",
46
- "@thi.ng/arrays": "^1.0.2",
47
- "@thi.ng/checks": "^2.9.10",
48
- "@thi.ng/dcons": "^2.3.33",
49
- "@thi.ng/errors": "^1.3.4",
50
- "@thi.ng/transducers": "^7.9.1"
41
+ "@thi.ng/api": "^8.0.3",
42
+ "@thi.ng/arrays": "^2.0.3",
43
+ "@thi.ng/checks": "^3.0.3",
44
+ "@thi.ng/dcons": "^3.0.3",
45
+ "@thi.ng/errors": "^2.0.3",
46
+ "@thi.ng/transducers": "^8.0.3"
47
+ },
48
+ "devDependencies": {
49
+ "@thi.ng/testament": "^0.1.3"
51
50
  },
52
- "files": [
53
- "*.js",
54
- "*.d.ts",
55
- "lib"
56
- ],
57
51
  "keywords": [
58
52
  "async",
59
53
  "channel",
@@ -69,7 +63,33 @@
69
63
  "publishConfig": {
70
64
  "access": "public"
71
65
  },
72
- "sideEffects": false,
66
+ "engines": {
67
+ "node": ">=12.7"
68
+ },
69
+ "files": [
70
+ "*.js",
71
+ "*.d.ts"
72
+ ],
73
+ "exports": {
74
+ ".": {
75
+ "import": "./index.js"
76
+ },
77
+ "./api": {
78
+ "import": "./api.js"
79
+ },
80
+ "./buffer": {
81
+ "import": "./buffer.js"
82
+ },
83
+ "./channel": {
84
+ "import": "./channel.js"
85
+ },
86
+ "./mult": {
87
+ "import": "./mult.js"
88
+ },
89
+ "./pubsub": {
90
+ "import": "./pubsub.js"
91
+ }
92
+ },
73
93
  "thi.ng": {
74
94
  "related": [
75
95
  "rstream"
@@ -77,5 +97,5 @@
77
97
  "status": "deprecated",
78
98
  "year": 2016
79
99
  },
80
- "gitHead": "84a067278ef79ccd538eeb652046eb8e03f3e34e"
100
+ "gitHead": "1fb38cac74d6c009d96855c28784a267a81badf1"
81
101
  }
package/pubsub.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import type { IObjectOf } from "@thi.ng/api";
2
2
  import type { Transducer } from "@thi.ng/transducers";
3
- import type { IWriteableChannel, TopicFn } from "./api";
4
- import { Channel } from "./channel";
5
- import { Mult } from "./mult";
3
+ import type { IWriteableChannel, TopicFn } from "./api.js";
4
+ import { Channel } from "./channel.js";
5
+ import { Mult } from "./mult.js";
6
6
  export declare class PubSub<T> implements IWriteableChannel<T> {
7
7
  protected static NEXT_ID: number;
8
8
  protected src: Channel<T>;
package/pubsub.js CHANGED
@@ -1,6 +1,6 @@
1
- import { illegalArity } from "@thi.ng/errors";
2
- import { Channel } from "./channel";
3
- import { Mult } from "./mult";
1
+ import { illegalArity } from "@thi.ng/errors/illegal-arity";
2
+ import { Channel } from "./channel.js";
3
+ import { Mult } from "./mult.js";
4
4
  export class PubSub {
5
5
  constructor(...args) {
6
6
  switch (args.length) {
package/lib/index.js DELETED
@@ -1,670 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var dcons = require('@thi.ng/dcons');
6
- var arrays = require('@thi.ng/arrays');
7
- var checks = require('@thi.ng/checks');
8
- var errors = require('@thi.ng/errors');
9
- var transducers = require('@thi.ng/transducers');
10
-
11
- class FixedBuffer {
12
- constructor(limit = 1) {
13
- this.buf = new dcons.DCons();
14
- this.limit = limit;
15
- }
16
- get length() {
17
- return this.buf.length;
18
- }
19
- isEmpty() {
20
- return this.buf.length === 0;
21
- }
22
- isFull() {
23
- return this.buf.length >= this.limit;
24
- }
25
- release() {
26
- return this.buf.release();
27
- }
28
- push(x) {
29
- if (!this.isFull()) {
30
- this.buf.push(x);
31
- return true;
32
- }
33
- return false;
34
- }
35
- drop() {
36
- if (!this.isEmpty()) {
37
- return this.buf.drop();
38
- }
39
- }
40
- }
41
- class DroppingBuffer extends FixedBuffer {
42
- constructor(limit = 1) {
43
- super(limit);
44
- }
45
- isFull() {
46
- return false;
47
- }
48
- push(x) {
49
- if (this.buf.length < this.limit) {
50
- this.buf.push(x);
51
- }
52
- return true;
53
- }
54
- }
55
- class SlidingBuffer extends FixedBuffer {
56
- constructor(limit = 1) {
57
- super(limit);
58
- }
59
- isFull() {
60
- return false;
61
- }
62
- push(x) {
63
- if (this.buf.length >= this.limit) {
64
- this.buf.drop();
65
- }
66
- this.buf.push(x);
67
- return true;
68
- }
69
- }
70
-
71
- class Channel {
72
- constructor(...args) {
73
- let id, buf, tx, err;
74
- let [a, b] = args;
75
- switch (args.length) {
76
- case 0:
77
- break;
78
- case 1:
79
- if (typeof a === "string") {
80
- id = a;
81
- }
82
- else if (maybeBuffer(a)) {
83
- buf = a;
84
- }
85
- else {
86
- tx = a;
87
- }
88
- break;
89
- case 2:
90
- if (typeof a === "string") {
91
- id = a;
92
- if (maybeBuffer(b)) {
93
- buf = b;
94
- }
95
- else {
96
- tx = b;
97
- }
98
- }
99
- else {
100
- [tx, err] = args;
101
- }
102
- break;
103
- case 3:
104
- if (checks.isFunction(args[1]) && checks.isFunction(args[2])) {
105
- [id, tx, err] = args;
106
- }
107
- else {
108
- [id, buf, tx] = args;
109
- }
110
- break;
111
- case 4:
112
- [id, buf, tx, err] = args;
113
- break;
114
- default:
115
- errors.illegalArity(args.length);
116
- }
117
- this.id = id || `chan-${Channel.NEXT_ID++}`;
118
- buf = buf || 1;
119
- this.buf = typeof buf === "number" ? new FixedBuffer(buf) : buf;
120
- this.writes = new dcons.DCons();
121
- this.reads = new dcons.DCons();
122
- this.txbuf = new dcons.DCons();
123
- this.tx = tx ? tx(Channel.RFN) : null;
124
- this.onerror = tx && (err || defaultErrorHandler);
125
- this.state = 0 ;
126
- this.isBusy = false;
127
- }
128
- static constantly(x, delay) {
129
- const chan = new Channel(delay ? transducers.delayed(delay) : null);
130
- chan.produce(() => x);
131
- return chan;
132
- }
133
- static repeatedly(fn, delay) {
134
- const chan = new Channel(delay ? transducers.delayed(delay) : null);
135
- chan.produce(fn);
136
- return chan;
137
- }
138
- static cycle(src, delay) {
139
- return Channel.from(transducers.cycle(src), delay ? transducers.delayed(delay) : null);
140
- }
141
- static range(...args) {
142
- const [from, to, step, delay] = args;
143
- return Channel.from(transducers.range(from, to, step), delay !== undefined ? transducers.delayed(delay) : null);
144
- }
145
- static timeout(delay) {
146
- const chan = new Channel(`timeout-${Channel.NEXT_ID++}`);
147
- setTimeout(() => chan.close(), delay);
148
- return chan;
149
- }
150
- static sleep(delay) {
151
- return Channel.timeout(delay).read();
152
- }
153
- static fromPromise(p) {
154
- const chan = new Channel();
155
- p.then((x) => (async () => {
156
- await chan.write(x);
157
- await chan.close();
158
- return x;
159
- })());
160
- return chan;
161
- }
162
- static from(...args) {
163
- let close, tx;
164
- switch (args.length) {
165
- case 1:
166
- break;
167
- case 2:
168
- if (typeof args[1] === "boolean") {
169
- close = args[1];
170
- }
171
- else {
172
- tx = args[1];
173
- }
174
- break;
175
- case 3:
176
- tx = args[1];
177
- close = args[2];
178
- break;
179
- default:
180
- errors.illegalArity(args.length);
181
- }
182
- const chan = new Channel(tx);
183
- chan.into(args[0], close);
184
- return chan;
185
- }
186
- static select(chans) {
187
- return new Promise((resolve) => {
188
- const _select = () => {
189
- for (let c of arrays.shuffle(chans)) {
190
- if (c.isReadable() || c.isClosed()) {
191
- c.read().then((x) => resolve([x, c]));
192
- return;
193
- }
194
- }
195
- Channel.SCHEDULE.call(null, _select, 0);
196
- };
197
- Channel.SCHEDULE.call(null, _select, 0);
198
- });
199
- }
200
- static merge(chans, out, close = true, named = false) {
201
- out = out || new Channel();
202
- (async () => {
203
- while (true) {
204
- let [x, ch] = await Channel.select(chans);
205
- if (x === undefined) {
206
- chans.splice(chans.indexOf(ch), 1);
207
- if (!chans.length) {
208
- close && (await out.close());
209
- break;
210
- }
211
- }
212
- else {
213
- await out.write(named ? [ch.id, x] : x);
214
- }
215
- }
216
- })();
217
- return out;
218
- }
219
- static mergeTuples(chans, out, closeOnFirst = true, closeOutput = true) {
220
- out = out || new Channel();
221
- (async () => {
222
- let buf = [];
223
- let orig = [...chans];
224
- let sel = new Set(chans);
225
- let n = chans.length;
226
- while (true) {
227
- let [x, ch] = await Channel.select([...sel]);
228
- let idx = orig.indexOf(ch);
229
- if (x === undefined) {
230
- if (closeOnFirst || chans.length === 1) {
231
- break;
232
- }
233
- chans.splice(idx, 1);
234
- }
235
- buf[idx] = x;
236
- sel.delete(ch);
237
- if (--n === 0) {
238
- await out.write(buf);
239
- buf = [];
240
- n = chans.length;
241
- sel = new Set(chans);
242
- }
243
- }
244
- closeOutput && (await out.close());
245
- })();
246
- return out;
247
- }
248
- channel() {
249
- return this;
250
- }
251
- write(value) {
252
- return new Promise((resolve) => {
253
- if (this.state !== 0 ) {
254
- resolve(false);
255
- }
256
- if (this.writes.length < Channel.MAX_WRITES) {
257
- this.writes.push({
258
- value: this.tx
259
- ? async () => {
260
- try {
261
- if (transducers.isReduced(this.tx[2](this.txbuf, value))) {
262
- this.state = 1 ;
263
- }
264
- }
265
- catch (e) {
266
- this.onerror(e, this, value);
267
- }
268
- }
269
- : () => value,
270
- resolve,
271
- });
272
- this.process();
273
- }
274
- else {
275
- throw new Error(`channel stalled (${Channel.MAX_WRITES} unprocessed writes)`);
276
- }
277
- });
278
- }
279
- read() {
280
- return new Promise((resolve) => {
281
- if (this.state === 2 ) {
282
- resolve(undefined);
283
- }
284
- this.reads.push(resolve);
285
- this.process();
286
- });
287
- }
288
- tryRead(timeout = 1000) {
289
- return new Promise((resolve) => {
290
- (async () => resolve((await Channel.select([this, Channel.timeout(timeout)]))[0]))();
291
- });
292
- }
293
- close(flush = false) {
294
- if (this.state === 0 ) {
295
- this.state = 1 ;
296
- flush && this.flush();
297
- return this.process();
298
- }
299
- }
300
- isClosed() {
301
- return this.state !== 0 ;
302
- }
303
- isReadable() {
304
- return ((this.state !== 2 && this.buf && this.buf.length > 0) ||
305
- (this.writes && this.writes.length > 0) ||
306
- (this.txbuf && this.txbuf.length > 0));
307
- }
308
- consume(fn = (x) => console.log(this.id, ":", x)) {
309
- return (async () => {
310
- let x;
311
- while (((x = null), (x = await this.read())) !== undefined) {
312
- await fn(x);
313
- }
314
- })();
315
- }
316
- produce(fn, close = true) {
317
- return (async () => {
318
- while (!this.isClosed()) {
319
- const val = await fn();
320
- if (val === undefined) {
321
- close && (await this.close());
322
- break;
323
- }
324
- await this.write(val);
325
- }
326
- })();
327
- }
328
- consumeWhileReadable(fn = (x) => console.log(this.id, ":", x)) {
329
- return (async () => {
330
- let x;
331
- while (this.isReadable()) {
332
- x = await this.read();
333
- if (x === undefined) {
334
- break;
335
- }
336
- await fn(x);
337
- x = null;
338
- }
339
- })();
340
- }
341
- reduce(rfn, acc) {
342
- return (async () => {
343
- const [init, complete, reduce] = rfn;
344
- acc = acc != null ? acc : init();
345
- let x;
346
- while (((x = null), (x = await this.read())) !== undefined) {
347
- acc = reduce(acc, x);
348
- if (transducers.isReduced(acc)) {
349
- acc = acc.deref();
350
- break;
351
- }
352
- }
353
- return transducers.unreduced(complete(acc));
354
- })();
355
- }
356
- transduce(tx, rfn, acc) {
357
- return (async () => {
358
- const _rfn = tx(rfn);
359
- return transducers.unreduced(_rfn[1](await this.reduce(_rfn, acc)));
360
- })();
361
- }
362
- into(src, close = true) {
363
- return (async () => {
364
- for (let x of src) {
365
- if (this.isClosed()) {
366
- break;
367
- }
368
- await this.write(x);
369
- }
370
- close && (await this.close());
371
- })();
372
- }
373
- pipe(dest, close = true) {
374
- if (!(dest instanceof Channel)) {
375
- dest = new Channel(dest);
376
- }
377
- this.consume((x) => dest.write(x))
378
- .then(() => {
379
- close && dest.close();
380
- });
381
- return dest;
382
- }
383
- split(pred, truthy, falsey, close = true) {
384
- if (!(truthy instanceof Channel)) {
385
- truthy = new Channel();
386
- }
387
- if (!(falsey instanceof Channel)) {
388
- falsey = new Channel();
389
- }
390
- this.consume((x) => (pred(x) ? truthy : falsey).write(x)).then(() => {
391
- close && (truthy.close(), falsey.close());
392
- });
393
- return [truthy, falsey];
394
- }
395
- concat(chans, close = true) {
396
- return (async () => {
397
- for (let c of chans) {
398
- await c.consume((x) => this.write(x));
399
- }
400
- close && (await this.close());
401
- })();
402
- }
403
- release() {
404
- if (this.state === 1 ) {
405
- this.state = 2 ;
406
- this.flush();
407
- this.buf.release();
408
- delete this.reads;
409
- delete this.writes;
410
- delete this.buf;
411
- delete this.txbuf;
412
- delete this.tx;
413
- delete this.isBusy;
414
- delete this.onerror;
415
- }
416
- }
417
- async process() {
418
- if (!this.isBusy) {
419
- this.isBusy = true;
420
- const { buf, txbuf, reads, writes } = this;
421
- let doProcess = true;
422
- while (doProcess) {
423
- while (reads.length && (txbuf.length || buf.length)) {
424
- if (txbuf.length) {
425
- const val = txbuf.drop();
426
- if (val !== undefined) {
427
- reads.drop()(val);
428
- }
429
- }
430
- else {
431
- const val = await buf.drop().value();
432
- if (val !== undefined) {
433
- reads.drop()(val);
434
- }
435
- }
436
- }
437
- while (writes.length && !buf.isFull()) {
438
- const put = writes.drop();
439
- buf.push(put);
440
- put.resolve(true);
441
- }
442
- if (this.state === 1 ) {
443
- if (this.tx && !writes.length) {
444
- try {
445
- this.tx[1](this.txbuf);
446
- }
447
- catch (e) {
448
- this.onerror(e, this);
449
- }
450
- }
451
- if (!this.isReadable()) {
452
- this.release();
453
- return;
454
- }
455
- }
456
- doProcess =
457
- (reads.length && (txbuf.length || buf.length)) ||
458
- (writes.length && !buf.isFull());
459
- }
460
- this.isBusy = false;
461
- }
462
- }
463
- flush() {
464
- let op;
465
- while ((op = this.reads.drop())) {
466
- op();
467
- }
468
- while ((op = this.writes.drop())) {
469
- op.resolve(false);
470
- }
471
- this.buf.release();
472
- }
473
- }
474
- Channel.MAX_WRITES = 1024;
475
- Channel.NEXT_ID = 0;
476
- Channel.SCHEDULE = typeof setImmediate === "function" ? setImmediate : setTimeout;
477
- Channel.RFN = [
478
- (() => null),
479
- (acc) => acc,
480
- (acc, x) => acc.push(x),
481
- ];
482
- const defaultErrorHandler = (e, chan, val) => console.log(chan.id, "error occurred", e.message, val !== undefined ? val : "");
483
- const maybeBuffer = (x) => x instanceof FixedBuffer || typeof x === "number";
484
-
485
- class Mult {
486
- constructor(...args) {
487
- this.tapID = 0;
488
- let id, src;
489
- switch (args.length) {
490
- case 2:
491
- id = args[0];
492
- src = args[1];
493
- break;
494
- case 1:
495
- if (typeof args[0] === "string") {
496
- id = args[0];
497
- }
498
- else {
499
- src = args[0];
500
- }
501
- break;
502
- case 0:
503
- id = "mult" + Mult.nextID++;
504
- break;
505
- default:
506
- errors.illegalArity(args.length);
507
- }
508
- if (src instanceof Channel) {
509
- this.src = src;
510
- }
511
- else {
512
- this.src = new Channel(id, src);
513
- }
514
- this.taps = new dcons.DCons();
515
- this.process();
516
- }
517
- get id() {
518
- return this.src && this.src.id;
519
- }
520
- set id(id) {
521
- this.src && (this.src.id = id);
522
- }
523
- channel() {
524
- return this.src;
525
- }
526
- write(val) {
527
- if (this.src) {
528
- return this.src.write(val);
529
- }
530
- return Promise.resolve(false);
531
- }
532
- close(flush = false) {
533
- return this.src ? this.src.close(flush) : undefined;
534
- }
535
- tap(ch) {
536
- if (this.taps) {
537
- if (!(ch instanceof Channel)) {
538
- ch = new Channel(this.src.id + "-tap" + this.tapID++, ch);
539
- }
540
- else if (this.taps.find(ch)) {
541
- return ch;
542
- }
543
- this.taps.push(ch);
544
- return ch;
545
- }
546
- }
547
- untap(ch) {
548
- if (this.taps) {
549
- const t = this.taps.find(ch);
550
- if (t) {
551
- this.taps.remove(t);
552
- return true;
553
- }
554
- }
555
- return false;
556
- }
557
- untapAll(close = true) {
558
- if (this.taps) {
559
- let tap = this.taps.head;
560
- while (tap) {
561
- close && tap.value.close();
562
- this.taps.remove(tap);
563
- tap = tap.next;
564
- }
565
- return true;
566
- }
567
- return false;
568
- }
569
- async process() {
570
- let x;
571
- while (((x = null), (x = await this.src.read())) !== undefined) {
572
- let t = this.taps.head;
573
- while (t) {
574
- if (!(await t.value.write(x))) {
575
- this.taps.remove(t);
576
- }
577
- t = t.next;
578
- }
579
- }
580
- for (let t of this.taps) {
581
- await t.close();
582
- }
583
- delete this.src;
584
- delete this.taps;
585
- delete this.tapID;
586
- }
587
- }
588
- Mult.nextID = 0;
589
-
590
- class PubSub {
591
- constructor(...args) {
592
- switch (args.length) {
593
- case 2:
594
- this.src = args[0];
595
- this.fn = args[1];
596
- break;
597
- case 1:
598
- this.src = new Channel("pubsub" + PubSub.NEXT_ID++);
599
- this.fn = args[0];
600
- break;
601
- default:
602
- errors.illegalArity(args.length);
603
- }
604
- this.topics = {};
605
- this.process();
606
- }
607
- get id() {
608
- return this.src && this.src.id;
609
- }
610
- set id(id) {
611
- this.src && (this.src.id = id);
612
- }
613
- channel() {
614
- return this.src;
615
- }
616
- write(val) {
617
- if (this.src) {
618
- return this.src.write(val);
619
- }
620
- return Promise.resolve(false);
621
- }
622
- close(flush = false) {
623
- return this.src ? this.src.close(flush) : undefined;
624
- }
625
- sub(id, tx) {
626
- let topic = this.topics[id];
627
- if (!topic) {
628
- this.topics[id] = topic = new Mult(this.src.id + "-" + id);
629
- }
630
- return topic.tap(tx);
631
- }
632
- unsub(id, ch) {
633
- let topic = this.topics[id];
634
- if (topic) {
635
- return topic.untap(ch);
636
- }
637
- return false;
638
- }
639
- unsubAll(id, close = true) {
640
- let topic = this.topics[id];
641
- if (topic) {
642
- return topic.untapAll(close);
643
- }
644
- return false;
645
- }
646
- async process() {
647
- let x;
648
- while (((x = null), (x = await this.src.read())) !== undefined) {
649
- const id = await this.fn(x);
650
- let topic = this.topics[id];
651
- topic && (await topic.write(x));
652
- topic = this.topics["*"];
653
- topic && (await topic.write(x));
654
- }
655
- for (let id of Object.keys(this.topics)) {
656
- this.topics[id].close();
657
- }
658
- delete this.src;
659
- delete this.topics;
660
- delete this.fn;
661
- }
662
- }
663
- PubSub.NEXT_ID = 0;
664
-
665
- exports.Channel = Channel;
666
- exports.DroppingBuffer = DroppingBuffer;
667
- exports.FixedBuffer = FixedBuffer;
668
- exports.Mult = Mult;
669
- exports.PubSub = PubSub;
670
- exports.SlidingBuffer = SlidingBuffer;
package/lib/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../buffer.js","../channel.js","../mult.js","../pubsub.js"],"sourcesContent":null,"names":["DCons","isFunction","illegalArity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AAG,MAAM,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,MAAM,SAAS,EAAE;AACxE,YAAY,MAAM,EAAE,GAAG,MAAM,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;AACxC,YAAY,IAAI,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AACxC,YAAY,KAAK,KAAK,MAAM,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;AAC5C,YAAY,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;AACrC,YAAY,KAAK,KAAK,MAAM,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;AAC5C,SAAS;AACT,QAAQ,KAAK,IAAI,EAAE,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE;AACjD,YAAY,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC;AACpC,SAAS;AACT,QAAQ,OAAO,IAAI,CAAC,GAAG,CAAC;AACxB,QAAQ,OAAO,IAAI,CAAC,MAAM,CAAC;AAC3B,QAAQ,OAAO,IAAI,CAAC,EAAE,CAAC;AACvB,KAAK;AACL,CAAC;AACD,MAAM,CAAC,OAAO,GAAG,CAAC;;;;;;;;;"}
package/lib/index.umd.js DELETED
@@ -1 +0,0 @@
1
- !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@thi.ng/dcons"),require("@thi.ng/arrays"),require("@thi.ng/checks"),require("@thi.ng/errors"),require("@thi.ng/transducers")):"function"==typeof define&&define.amd?define(["exports","@thi.ng/dcons","@thi.ng/arrays","@thi.ng/checks","@thi.ng/errors","@thi.ng/transducers"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).thi=t.thi||{},t.thi.ng=t.thi.ng||{},t.thi.ng.csp={}),t.thi.ng.dcons,t.thi.ng.arrays,t.thi.ng.checks,t.thi.ng.errors,t.thi.ng.transducers)}(this,(function(t,e,s,i,r,n){"use strict";class h{constructor(t=1){this.buf=new e.DCons,this.limit=t}get length(){return this.buf.length}isEmpty(){return 0===this.buf.length}isFull(){return this.buf.length>=this.limit}release(){return this.buf.release()}push(t){return!this.isFull()&&(this.buf.push(t),!0)}drop(){if(!this.isEmpty())return this.buf.drop()}}class a{constructor(...t){let s,n,c,u,[d,f]=t;switch(t.length){case 0:break;case 1:"string"==typeof d?s=d:o(d)?n=d:c=d;break;case 2:"string"==typeof d?(s=d,o(f)?n=f:c=f):[c,u]=t;break;case 3:i.isFunction(t[1])&&i.isFunction(t[2])?[s,c,u]=t:[s,n,c]=t;break;case 4:[s,n,c,u]=t;break;default:r.illegalArity(t.length)}this.id=s||"chan-"+a.NEXT_ID++,n=n||1,this.buf="number"==typeof n?new h(n):n,this.writes=new e.DCons,this.reads=new e.DCons,this.txbuf=new e.DCons,this.tx=c?c(a.RFN):null,this.onerror=c&&(u||l),this.state=0,this.isBusy=!1}static constantly(t,e){const s=new a(e?n.delayed(e):null);return s.produce((()=>t)),s}static repeatedly(t,e){const s=new a(e?n.delayed(e):null);return s.produce(t),s}static cycle(t,e){return a.from(n.cycle(t),e?n.delayed(e):null)}static range(...t){const[e,s,i,r]=t;return a.from(n.range(e,s,i),void 0!==r?n.delayed(r):null)}static timeout(t){const e=new a("timeout-"+a.NEXT_ID++);return setTimeout((()=>e.close()),t),e}static sleep(t){return a.timeout(t).read()}static fromPromise(t){const e=new a;return t.then((t=>(async()=>(await e.write(t),await e.close(),t))())),e}static from(...t){let e,s;switch(t.length){case 1:break;case 2:"boolean"==typeof t[1]?e=t[1]:s=t[1];break;case 3:s=t[1],e=t[2];break;default:r.illegalArity(t.length)}const i=new a(s);return i.into(t[0],e),i}static select(t){return new Promise((e=>{const i=()=>{for(let i of s.shuffle(t))if(i.isReadable()||i.isClosed())return void i.read().then((t=>e([t,i])));a.SCHEDULE.call(null,i,0)};a.SCHEDULE.call(null,i,0)}))}static merge(t,e,s=!0,i=!1){return e=e||new a,(async()=>{for(;;){let[r,n]=await a.select(t);if(void 0===r){if(t.splice(t.indexOf(n),1),!t.length){s&&await e.close();break}}else await e.write(i?[n.id,r]:r)}})(),e}static mergeTuples(t,e,s=!0,i=!0){return e=e||new a,(async()=>{let r=[],n=[...t],h=new Set(t),l=t.length;for(;;){let[i,o]=await a.select([...h]),c=n.indexOf(o);if(void 0===i){if(s||1===t.length)break;t.splice(c,1)}r[c]=i,h.delete(o),0==--l&&(await e.write(r),r=[],l=t.length,h=new Set(t))}i&&await e.close()})(),e}channel(){return this}write(t){return new Promise((e=>{if(0!==this.state&&e(!1),!(this.writes.length<a.MAX_WRITES))throw new Error(`channel stalled (${a.MAX_WRITES} unprocessed writes)`);this.writes.push({value:this.tx?async()=>{try{n.isReduced(this.tx[2](this.txbuf,t))&&(this.state=1)}catch(e){this.onerror(e,this,t)}}:()=>t,resolve:e}),this.process()}))}read(){return new Promise((t=>{2===this.state&&t(void 0),this.reads.push(t),this.process()}))}tryRead(t=1e3){return new Promise((e=>{(async()=>{e((await a.select([this,a.timeout(t)]))[0])})()}))}close(t=!1){if(0===this.state)return this.state=1,t&&this.flush(),this.process()}isClosed(){return 0!==this.state}isReadable(){return 2!==this.state&&this.buf&&this.buf.length>0||this.writes&&this.writes.length>0||this.txbuf&&this.txbuf.length>0}consume(t=(t=>console.log(this.id,":",t))){return(async()=>{let e;for(;void 0!==(e=null,e=await this.read());)await t(e)})()}produce(t,e=!0){return(async()=>{for(;!this.isClosed();){const s=await t();if(void 0===s){e&&await this.close();break}await this.write(s)}})()}consumeWhileReadable(t=(t=>console.log(this.id,":",t))){return(async()=>{let e;for(;this.isReadable()&&(e=await this.read(),void 0!==e);)await t(e),e=null})()}reduce(t,e){return(async()=>{const[s,i,r]=t;let h;for(e=null!=e?e:s();void 0!==(h=null,h=await this.read());)if(e=r(e,h),n.isReduced(e)){e=e.deref();break}return n.unreduced(i(e))})()}transduce(t,e,s){return(async()=>{const i=t(e);return n.unreduced(i[1](await this.reduce(i,s)))})()}into(t,e=!0){return(async()=>{for(let e of t){if(this.isClosed())break;await this.write(e)}e&&await this.close()})()}pipe(t,e=!0){return t instanceof a||(t=new a(t)),this.consume((e=>t.write(e))).then((()=>{e&&t.close()})),t}split(t,e,s,i=!0){return e instanceof a||(e=new a),s instanceof a||(s=new a),this.consume((i=>(t(i)?e:s).write(i))).then((()=>{i&&(e.close(),s.close())})),[e,s]}concat(t,e=!0){return(async()=>{for(let e of t)await e.consume((t=>this.write(t)));e&&await this.close()})()}release(){1===this.state&&(this.state=2,this.flush(),this.buf.release(),delete this.reads,delete this.writes,delete this.buf,delete this.txbuf,delete this.tx,delete this.isBusy,delete this.onerror)}async process(){if(!this.isBusy){this.isBusy=!0;const{buf:t,txbuf:e,reads:s,writes:i}=this;let r=!0;for(;r;){for(;s.length&&(e.length||t.length);)if(e.length){const t=e.drop();void 0!==t&&s.drop()(t)}else{const e=await t.drop().value();void 0!==e&&s.drop()(e)}for(;i.length&&!t.isFull();){const e=i.drop();t.push(e),e.resolve(!0)}if(1===this.state){if(this.tx&&!i.length)try{this.tx[1](this.txbuf)}catch(t){this.onerror(t,this)}if(!this.isReadable())return void this.release()}r=s.length&&(e.length||t.length)||i.length&&!t.isFull()}this.isBusy=!1}}flush(){let t;for(;t=this.reads.drop();)t();for(;t=this.writes.drop();)t.resolve(!1);this.buf.release()}}a.MAX_WRITES=1024,a.NEXT_ID=0,a.SCHEDULE="function"==typeof setImmediate?setImmediate:setTimeout,a.RFN=[()=>null,t=>t,(t,e)=>t.push(e)];const l=(t,e,s)=>console.log(e.id,"error occurred",t.message,void 0!==s?s:""),o=t=>t instanceof h||"number"==typeof t;class c{constructor(...t){let s,i;switch(this.tapID=0,t.length){case 2:s=t[0],i=t[1];break;case 1:"string"==typeof t[0]?s=t[0]:i=t[0];break;case 0:s="mult"+c.nextID++;break;default:r.illegalArity(t.length)}this.src=i instanceof a?i:new a(s,i),this.taps=new e.DCons,this.process()}get id(){return this.src&&this.src.id}set id(t){this.src&&(this.src.id=t)}channel(){return this.src}write(t){return this.src?this.src.write(t):Promise.resolve(!1)}close(t=!1){return this.src?this.src.close(t):void 0}tap(t){if(this.taps){if(t instanceof a){if(this.taps.find(t))return t}else t=new a(this.src.id+"-tap"+this.tapID++,t);return this.taps.push(t),t}}untap(t){if(this.taps){const e=this.taps.find(t);if(e)return this.taps.remove(e),!0}return!1}untapAll(t=!0){if(this.taps){let e=this.taps.head;for(;e;)t&&e.value.close(),this.taps.remove(e),e=e.next;return!0}return!1}async process(){let t;for(;void 0!==(t=null,t=await this.src.read());){let e=this.taps.head;for(;e;)await e.value.write(t)||this.taps.remove(e),e=e.next}for(let t of this.taps)await t.close();delete this.src,delete this.taps,delete this.tapID}}c.nextID=0;class u{constructor(...t){switch(t.length){case 2:this.src=t[0],this.fn=t[1];break;case 1:this.src=new a("pubsub"+u.NEXT_ID++),this.fn=t[0];break;default:r.illegalArity(t.length)}this.topics={},this.process()}get id(){return this.src&&this.src.id}set id(t){this.src&&(this.src.id=t)}channel(){return this.src}write(t){return this.src?this.src.write(t):Promise.resolve(!1)}close(t=!1){return this.src?this.src.close(t):void 0}sub(t,e){let s=this.topics[t];return s||(this.topics[t]=s=new c(this.src.id+"-"+t)),s.tap(e)}unsub(t,e){let s=this.topics[t];return!!s&&s.untap(e)}unsubAll(t,e=!0){let s=this.topics[t];return!!s&&s.untapAll(e)}async process(){let t;for(;void 0!==(t=null,t=await this.src.read());){const e=await this.fn(t);let s=this.topics[e];s&&await s.write(t),s=this.topics["*"],s&&await s.write(t)}for(let t of Object.keys(this.topics))this.topics[t].close();delete this.src,delete this.topics,delete this.fn}}u.NEXT_ID=0,t.Channel=a,t.DroppingBuffer=class extends h{constructor(t=1){super(t)}isFull(){return!1}push(t){return this.buf.length<this.limit&&this.buf.push(t),!0}},t.FixedBuffer=h,t.Mult=c,t.PubSub=u,t.SlidingBuffer=class extends h{constructor(t=1){super(t)}isFull(){return!1}push(t){return this.buf.length>=this.limit&&this.buf.drop(),this.buf.push(t),!0}},Object.defineProperty(t,"__esModule",{value:!0})}));
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.umd.js","sources":["../buffer.js","../channel.js","../mult.js","../pubsub.js"],"sourcesContent":null,"names":["DCons","isFunction","illegalArity","delayed","cycle","range","shuffle","isReduced","unreduced"],"mappings":";;;;;;IACO,MAAM,WAAW,CAAC;IACzB,IAAI,WAAW,CAAC,KAAK,GAAG,CAAC,EAAE;IAC3B,QAAQ,IAAI,CAAC,GAAG,GAAG,IAAIA,WAAK,EAAE,CAAC;IAC/B,QAAQ,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IAC3B,KAAK;IACL,IAAI,IAAI,MAAM,GAAG;IACjB,QAAQ,OAAO,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC;IAC/B,KAAK;IACL,IAAI,OAAO,GAAG;IACd,QAAQ,OAAO,IAAI,CAAC,GAAG,CAAC,MAAM,KAAK,CAAC,CAAC;IACrC,KAAK;IACL,IAAI,MAAM,GAAG;IACb,QAAQ,OAAO,IAAI,CAAC,GAAG,CAAC,MAAM,IAAI,IAAI,CAAC,KAAK,CAAC;IAC7C,KAAK;IACL,IAAI,OAAO,GAAG;IACd,QAAQ,OAAO,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE,CAAC;IAClC,KAAK;IACL,IAAI,IAAI,CAAC,CAAC,EAAE;IACZ,QAAQ,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,EAAE;IAC5B,YAAY,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAC7B,YAAY,OAAO,IAAI,CAAC;IACxB,SAAS;IACT,QAAQ,OAAO,KAAK,CAAC;IACrB,KAAK;IACL,IAAI,IAAI,GAAG;IACX,QAAQ,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE;IAC7B,YAAY,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;IACnC,SAAS;IACT,KAAK;IACL,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