@thi.ng/geom-splines 2.1.5 → 2.1.8

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**: 2021-11-21T17:09:28Z
3
+ - **Last updated**: 2022-03-11T12:13:49Z
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.
@@ -9,6 +9,12 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
9
9
  **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
10
10
  and/or version bumps of transitive dependencies.
11
11
 
12
+ ### [2.1.8](https://github.com/thi-ng/umbrella/tree/@thi.ng/geom-splines@2.1.8) (2022-03-11)
13
+
14
+ #### ♻️ Refactoring
15
+
16
+ - minor refactor internal helper ([82c0cea](https://github.com/thi-ng/umbrella/commit/82c0cea))
17
+
12
18
  ## [2.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/geom-splines@2.1.0) (2021-11-17)
13
19
 
14
20
  #### 🚀 Features
package/README.md CHANGED
@@ -141,4 +141,4 @@ If this project contributes to an academic publication, please cite it as:
141
141
 
142
142
  ## License
143
143
 
144
- © 2016 - 2021 Karsten Schmidt // Apache Software License 2.0
144
+ © 2016 - 2022 Karsten Schmidt // Apache Software License 2.0
@@ -24,8 +24,5 @@ export const __sample = (sample) => function $(pts, opts) {
24
24
  export const __sampleArray = (fn) => (segments, closed = false, opts) => {
25
25
  const _opts = isNumber(opts) ? { num: opts } : opts;
26
26
  const n = segments.length - 1;
27
- return Array.prototype.concat.apply([], segments.map((seg, i) => {
28
- const last = !closed && i === n;
29
- return fn(seg, { ..._opts, last });
30
- }));
27
+ return Array.prototype.concat.apply([], segments.map((seg, i) => fn(seg, { ..._opts, last: !closed && i === n })));
31
28
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/geom-splines",
3
- "version": "2.1.5",
3
+ "version": "2.1.8",
4
4
  "description": "nD cubic & quadratic curve analysis, conversion, interpolation, splitting",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -34,21 +34,21 @@
34
34
  "test": "testament test"
35
35
  },
36
36
  "dependencies": {
37
- "@thi.ng/api": "^8.3.2",
38
- "@thi.ng/checks": "^3.1.2",
39
- "@thi.ng/geom-api": "^3.1.5",
40
- "@thi.ng/geom-arc": "^2.1.5",
41
- "@thi.ng/geom-resample": "^2.1.5",
42
- "@thi.ng/math": "^5.1.2",
43
- "@thi.ng/vectors": "^7.4.1"
37
+ "@thi.ng/api": "^8.3.4",
38
+ "@thi.ng/checks": "^3.1.4",
39
+ "@thi.ng/geom-api": "^3.1.8",
40
+ "@thi.ng/geom-arc": "^2.1.8",
41
+ "@thi.ng/geom-resample": "^2.1.8",
42
+ "@thi.ng/math": "^5.3.0",
43
+ "@thi.ng/vectors": "^7.5.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@microsoft/api-extractor": "^7.18.19",
47
- "@thi.ng/testament": "^0.2.2",
46
+ "@microsoft/api-extractor": "^7.19.4",
47
+ "@thi.ng/testament": "^0.2.4",
48
48
  "rimraf": "^3.0.2",
49
49
  "tools": "^0.0.1",
50
- "typedoc": "^0.22.9",
51
- "typescript": "^4.5.2"
50
+ "typedoc": "^0.22.13",
51
+ "typescript": "^4.6.2"
52
52
  },
53
53
  "keywords": [
54
54
  "2d",
@@ -144,5 +144,5 @@
144
144
  "geom-subdiv-curve"
145
145
  ]
146
146
  },
147
- "gitHead": "32cf1a96854f9bb97aca65ffa05ca862ea377059\n"
147
+ "gitHead": "0fc692a3225c068aacafdc4cb6140cf603c67ad8\n"
148
148
  }