@thi.ng/csp 2.1.48 → 2.1.50
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 +1 -1
- package/channel.js +1 -2
- package/mult.js +1 -2
- package/package.json +13 -13
- package/pubsub.js +1 -2
package/CHANGELOG.md
CHANGED
package/channel.js
CHANGED
|
@@ -13,7 +13,7 @@ var State;
|
|
|
13
13
|
State[State["CLOSED"] = 1] = "CLOSED";
|
|
14
14
|
State[State["DONE"] = 2] = "DONE";
|
|
15
15
|
})(State || (State = {}));
|
|
16
|
-
class Channel {
|
|
16
|
+
export class Channel {
|
|
17
17
|
static constantly(x, delay) {
|
|
18
18
|
const chan = new Channel(delay ? delayed(delay) : null);
|
|
19
19
|
chan.produce(() => x);
|
|
@@ -504,6 +504,5 @@ Channel.RFN = [
|
|
|
504
504
|
(acc) => acc,
|
|
505
505
|
(acc, x) => acc.push(x),
|
|
506
506
|
];
|
|
507
|
-
export { Channel };
|
|
508
507
|
const defaultErrorHandler = (e, chan, val) => console.log(chan.id, "error occurred", e.message, val !== undefined ? val : "");
|
|
509
508
|
const maybeBuffer = (x) => x instanceof FixedBuffer || typeof x === "number";
|
package/mult.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DCons } from "@thi.ng/dcons/dcons";
|
|
2
2
|
import { illegalArity } from "@thi.ng/errors/illegal-arity";
|
|
3
3
|
import { Channel } from "./channel.js";
|
|
4
|
-
class Mult {
|
|
4
|
+
export class Mult {
|
|
5
5
|
constructor(...args) {
|
|
6
6
|
this.tapID = 0;
|
|
7
7
|
let id, src;
|
|
@@ -105,4 +105,3 @@ class Mult {
|
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
107
|
Mult.nextID = 0;
|
|
108
|
-
export { Mult };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/csp",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.50",
|
|
4
4
|
"description": "ES6 promise based CSP primitives & operations",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -38,20 +38,20 @@
|
|
|
38
38
|
"testnode": "tsc -p test && node build/test/node.js"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@thi.ng/api": "^8.8.
|
|
42
|
-
"@thi.ng/arrays": "^2.5.
|
|
43
|
-
"@thi.ng/checks": "^3.3.
|
|
44
|
-
"@thi.ng/dcons": "^3.2.
|
|
45
|
-
"@thi.ng/errors": "^2.2.
|
|
46
|
-
"@thi.ng/transducers": "^8.4.
|
|
41
|
+
"@thi.ng/api": "^8.8.2",
|
|
42
|
+
"@thi.ng/arrays": "^2.5.13",
|
|
43
|
+
"@thi.ng/checks": "^3.3.14",
|
|
44
|
+
"@thi.ng/dcons": "^3.2.45",
|
|
45
|
+
"@thi.ng/errors": "^2.2.17",
|
|
46
|
+
"@thi.ng/transducers": "^8.4.6"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@microsoft/api-extractor": "^7.
|
|
50
|
-
"@thi.ng/testament": "^0.3.
|
|
51
|
-
"rimraf": "^
|
|
49
|
+
"@microsoft/api-extractor": "^7.35.3",
|
|
50
|
+
"@thi.ng/testament": "^0.3.17",
|
|
51
|
+
"rimraf": "^5.0.1",
|
|
52
52
|
"tools": "^0.0.1",
|
|
53
|
-
"typedoc": "^0.
|
|
54
|
-
"typescript": "^5.
|
|
53
|
+
"typedoc": "^0.24.8",
|
|
54
|
+
"typescript": "^5.1.3"
|
|
55
55
|
},
|
|
56
56
|
"keywords": [
|
|
57
57
|
"async",
|
|
@@ -102,5 +102,5 @@
|
|
|
102
102
|
"status": "deprecated",
|
|
103
103
|
"year": 2016
|
|
104
104
|
},
|
|
105
|
-
"gitHead": "
|
|
105
|
+
"gitHead": "54e825a976c72067a244cff8725ca98f5416d26d\n"
|
|
106
106
|
}
|
package/pubsub.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { illegalArity } from "@thi.ng/errors/illegal-arity";
|
|
2
2
|
import { Channel } from "./channel.js";
|
|
3
3
|
import { Mult } from "./mult.js";
|
|
4
|
-
class PubSub {
|
|
4
|
+
export class PubSub {
|
|
5
5
|
constructor(...args) {
|
|
6
6
|
switch (args.length) {
|
|
7
7
|
case 2:
|
|
@@ -87,4 +87,3 @@ class PubSub {
|
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
PubSub.NEXT_ID = 0;
|
|
90
|
-
export { PubSub };
|