@thi.ng/rstream 9.5.1 → 9.5.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/README.md +2 -2
- package/package.json +10 -10
- package/subscription.js +3 -5
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
[](https://mastodon.thi.ng/@toxi)
|
|
8
8
|
|
|
9
9
|
> [!NOTE]
|
|
10
|
-
> This is one of
|
|
10
|
+
> This is one of 215 standalone projects, maintained as part
|
|
11
11
|
> of the [@thi.ng/umbrella](https://codeberg.org/thi.ng/umbrella/) ecosystem
|
|
12
12
|
> and anti-framework.
|
|
13
13
|
>
|
|
@@ -216,7 +216,7 @@ For Node.js REPL:
|
|
|
216
216
|
const rs = await import("@thi.ng/rstream");
|
|
217
217
|
```
|
|
218
218
|
|
|
219
|
-
Package sizes (brotli'd, pre-treeshake): ESM: 6.
|
|
219
|
+
Package sizes (brotli'd, pre-treeshake): ESM: 6.42 KB
|
|
220
220
|
|
|
221
221
|
## Dependencies
|
|
222
222
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/rstream",
|
|
3
|
-
"version": "9.5.
|
|
3
|
+
"version": "9.5.3",
|
|
4
4
|
"description": "Reactive streams & subscription primitives for constructing dataflow graphs / pipelines",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -44,14 +44,14 @@
|
|
|
44
44
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@thi.ng/api": "^8.12.
|
|
48
|
-
"@thi.ng/arrays": "^2.14.
|
|
49
|
-
"@thi.ng/associative": "^7.1.
|
|
50
|
-
"@thi.ng/atom": "^5.3.
|
|
51
|
-
"@thi.ng/checks": "^3.
|
|
52
|
-
"@thi.ng/errors": "^2.6.
|
|
53
|
-
"@thi.ng/logger": "^3.3.
|
|
54
|
-
"@thi.ng/transducers": "^9.6.
|
|
47
|
+
"@thi.ng/api": "^8.12.20",
|
|
48
|
+
"@thi.ng/arrays": "^2.14.16",
|
|
49
|
+
"@thi.ng/associative": "^7.1.36",
|
|
50
|
+
"@thi.ng/atom": "^5.3.61",
|
|
51
|
+
"@thi.ng/checks": "^3.9.0",
|
|
52
|
+
"@thi.ng/errors": "^2.6.9",
|
|
53
|
+
"@thi.ng/logger": "^3.3.3",
|
|
54
|
+
"@thi.ng/transducers": "^9.6.33"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@types/node": "^25.5.2",
|
|
@@ -223,5 +223,5 @@
|
|
|
223
223
|
],
|
|
224
224
|
"year": 2017
|
|
225
225
|
},
|
|
226
|
-
"gitHead": "
|
|
226
|
+
"gitHead": "92be63f24030506f09d6d156804da2798c381dc4"
|
|
227
227
|
}
|
package/subscription.js
CHANGED
|
@@ -4,6 +4,7 @@ import { isPlainObject } from "@thi.ng/checks/is-plain-object";
|
|
|
4
4
|
import { assert } from "@thi.ng/errors/assert";
|
|
5
5
|
import { illegalState } from "@thi.ng/errors/illegal-state";
|
|
6
6
|
import { NULL_LOGGER } from "@thi.ng/logger/null";
|
|
7
|
+
import { ROOT } from "@thi.ng/logger/root";
|
|
7
8
|
import { comp } from "@thi.ng/transducers/comp";
|
|
8
9
|
import { map } from "@thi.ng/transducers/map";
|
|
9
10
|
import { push } from "@thi.ng/transducers/push";
|
|
@@ -143,11 +144,8 @@ class Subscription {
|
|
|
143
144
|
return errorHandler?.(e) || this.unhandledError(e);
|
|
144
145
|
}
|
|
145
146
|
unhandledError(e) {
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
"unhandled error:",
|
|
149
|
-
e
|
|
150
|
-
);
|
|
147
|
+
const isNullLogger = LOGGER.parent === NULL_LOGGER || LOGGER.parent === ROOT && ROOT.parent === NULL_LOGGER;
|
|
148
|
+
(isNullLogger ? console : LOGGER).warn(this.id, "unhandled error:", e);
|
|
151
149
|
this.unsubscribe();
|
|
152
150
|
this.state = State.ERROR;
|
|
153
151
|
return false;
|