@ixfx/process 0.56.0 → 0.56.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/LICENSE CHANGED
@@ -1,6 +1,31 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2021-2025 Clint Heyer
3
+ Copyright (c) 2021-2026 Clint Heyer
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
22
+
23
+ ---
24
+
25
+ Package: bezier-js
26
+ https://github.com/Pomax/bezierjs
27
+
28
+ Copyright (c) 2023 Pomax
4
29
 
5
30
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
31
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -1,17 +1,3 @@
1
- The process module contains functions for orchestrating a simple series of data transformations.
1
+ # @ixfx/process [![npm](https://img.shields.io/npm/v/@ixfx/process.svg)](https://npmjs.com/package/@ixfx/process)
2
2
 
3
- Use `flow` to create this orchestration:
4
-
5
- ```js
6
- const p = flow(
7
- (value:string) => value.toUpperCase(), // Convert to uppercase
8
- (value:string) => value.at(0) === 'A') // If first letter is an A, return true
9
- );
10
- ```
11
-
12
- Once created, the flow can be invoked with an input value:
13
- ```js
14
- p('apple'); // True
15
- ```
16
-
17
- Each function in the processing flow takes one input and returns one result. There are a few in-built functions as well. Some of these are stateful, remembering previous values that have been processed (eg `seenToUndefined`).
3
+ Please refer to [README.md](https://github.com/clinth/ixfx#readme)
package/dist/basic.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as sum, i as rank, n as max, o as tally, r as min, s as Process, t as average } from "./basic-DeFYZmGk.js";
1
+ import { a as sum, i as rank, n as max, o as tally, r as min, s as Process, t as average } from "./basic-C8-UZpPW.js";
2
2
  export { Process, average, max, min, rank, sum, tally };
package/dist/basic.js CHANGED
@@ -4,14 +4,14 @@
4
4
  * @returns
5
5
  */
6
6
  const max = () => {
7
- let max$1 = Number.MIN_SAFE_INTEGER;
7
+ let max = Number.MIN_SAFE_INTEGER;
8
8
  const compute = (value) => {
9
9
  const valueArray = Array.isArray(value) ? value : [value];
10
10
  for (const subValue of valueArray) {
11
11
  if (typeof subValue !== `number`) break;
12
- max$1 = Math.max(subValue, max$1);
12
+ max = Math.max(subValue, max);
13
13
  }
14
- return max$1;
14
+ return max;
15
15
  };
16
16
  return compute;
17
17
  };
@@ -20,14 +20,14 @@ const max = () => {
20
20
  * @returns
21
21
  */
22
22
  const min = () => {
23
- let min$1 = Number.MAX_SAFE_INTEGER;
23
+ let min = Number.MAX_SAFE_INTEGER;
24
24
  const compute = (value) => {
25
25
  const valueArray = Array.isArray(value) ? value : [value];
26
26
  for (const subValue of valueArray) {
27
27
  if (typeof subValue !== `number`) break;
28
- min$1 = Math.min(subValue, min$1);
28
+ min = Math.min(subValue, min);
29
29
  }
30
- return min$1;
30
+ return min;
31
31
  };
32
32
  return compute;
33
33
  };
@@ -53,15 +53,15 @@ const sum = () => {
53
53
  */
54
54
  const average = () => {
55
55
  let total = 0;
56
- let tally$1 = 0;
56
+ let tally = 0;
57
57
  const compute = (value) => {
58
58
  const valueArray = Array.isArray(value) ? value : [value];
59
59
  for (const subValue of valueArray) {
60
60
  if (typeof subValue !== `number`) continue;
61
- tally$1++;
61
+ tally++;
62
62
  total += subValue;
63
63
  }
64
- return total / tally$1;
64
+ return total / tally;
65
65
  };
66
66
  return compute;
67
67
  };
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as sum, c as ProcessFactory, d as Processors2, f as Processors3, g as RankOptions, h as RankFunction, i as rank, l as Processors, m as Processors5, n as max, o as tally, p as Processors4, r as min, s as Process, t as average, u as Processors1 } from "./basic-DeFYZmGk.js";
1
+ import { a as sum, c as ProcessFactory, d as Processors2, f as Processors3, g as RankOptions, h as RankFunction, i as rank, l as Processors, m as Processors5, n as max, o as tally, p as Processors4, r as min, s as Process, t as average, u as Processors1 } from "./basic-C8-UZpPW.js";
2
2
 
3
3
  //#region src/cancel-error.d.ts
4
4
  declare class CancelError extends Error {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ixfx/process",
3
- "version": "0.56.0",
3
+ "version": "0.56.3",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -24,24 +24,25 @@
24
24
  "publishConfig": {
25
25
  "access": "public"
26
26
  },
27
- "description": "ixfx guards",
27
+ "description": "ixfx process",
28
28
  "keywords": [
29
29
  "ixfx",
30
30
  "interactivity",
31
- "guards"
31
+ "process"
32
32
  ],
33
33
  "homepage": "https://ixfxfun.dev",
34
34
  "bugs": {
35
- "url": "https://github.com/@ixfxfun/ixfx/issues"
35
+ "url": "https://github.com/clinth/ixfx/issues"
36
36
  },
37
37
  "repository": {
38
38
  "type": "git",
39
- "url": "git+https://github.com/@ixfxfun/ixfx.git",
40
- "directory": "packages/guards"
39
+ "url": "git+https://github.com/clinth/ixfx.git",
40
+ "directory": "packages/process"
41
41
  },
42
42
  "author": "Clint Heyer <clint@thestaticvoid.net>",
43
43
  "engines": {
44
- "node": ">=20.19.0"
44
+ "node": ">=24.0.0"
45
45
  },
46
+ "main": "./dist/index.js",
46
47
  "scripts": {}
47
48
  }