@thi.ng/csp 2.1.49 → 2.1.51

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
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2023-05-11T12:16:33Z
3
+ - **Last updated**: 2023-06-14T07:58:51Z
4
4
  - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
5
 
6
6
  All notable changes to this project will be documented in this file.
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.49",
3
+ "version": "2.1.51",
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.1",
42
- "@thi.ng/arrays": "^2.5.12",
43
- "@thi.ng/checks": "^3.3.13",
44
- "@thi.ng/dcons": "^3.2.44",
45
- "@thi.ng/errors": "^2.2.16",
46
- "@thi.ng/transducers": "^8.4.5"
41
+ "@thi.ng/api": "^8.8.2",
42
+ "@thi.ng/arrays": "^2.5.14",
43
+ "@thi.ng/checks": "^3.3.14",
44
+ "@thi.ng/dcons": "^3.2.46",
45
+ "@thi.ng/errors": "^2.2.17",
46
+ "@thi.ng/transducers": "^8.4.7"
47
47
  },
48
48
  "devDependencies": {
49
- "@microsoft/api-extractor": "^7.34.8",
50
- "@thi.ng/testament": "^0.3.16",
51
- "rimraf": "^5.0.0",
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.24.6",
54
- "typescript": "^5.0.4"
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": "20ab11b687a13228f6a8cecdc5f05ba9105122ea\n"
105
+ "gitHead": "88cfe77770f3b07c788301dccefcb9547cd4aff6\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 };