smath 1.6.1 → 1.6.2

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 CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  ![NPM Downloads](https://img.shields.io/npm/dt/smath)
4
4
  ![NPM Version](https://img.shields.io/npm/v/smath)
5
- ![Relative date](https://img.shields.io/date/1711574450)
5
+ ![Relative date](https://img.shields.io/date/1712342048)
6
6
  ![GitHub watchers](https://img.shields.io/github/watchers/nicfv/npm)
7
7
  ![GitHub forks](https://img.shields.io/github/forks/nicfv/npm)
8
8
  ![GitHub Repo stars](https://img.shields.io/github/stars/nicfv/npm)
@@ -12,7 +12,7 @@
12
12
  smath can be installed from the official [npm package repository](https://www.npmjs.com/package/smath). It is highly recommended to install the latest version, which is installed by default with the following command.
13
13
 
14
14
  ```shell
15
- npm i smath@1.6.1
15
+ npm i smath@1.6.2
16
16
  ```
17
17
 
18
18
  ## Bugs and Requests
package/dist/index.js CHANGED
@@ -251,7 +251,7 @@ var SMath = /** @class */ (function () {
251
251
  * ```
252
252
  */
253
253
  SMath.median = function (data) {
254
- data.sort();
254
+ data.sort(function (a, b) { return a - b; });
255
255
  if (data.length % 2) {
256
256
  return data[(data.length - 1) / 2];
257
257
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "smath",
3
- "version": "1.6.1",
3
+ "version": "1.6.2",
4
4
  "description": "Small math function library",
5
5
  "homepage": "https://npm.nicfv.com/smath",
6
6
  "bin": "dist/bin.js",
@@ -28,6 +28,11 @@
28
28
  "avg",
29
29
  "average",
30
30
  "mean",
31
+ "calculus",
32
+ "statistics",
33
+ "numeric",
34
+ "numerical",
35
+ "analysis",
31
36
  "interpolate",
32
37
  "interpolation",
33
38
  "extrapolate",
@@ -47,9 +52,9 @@
47
52
  "repository": "github:nicfv/npm",
48
53
  "license": "MIT",
49
54
  "devDependencies": {
50
- "@types/node": "20.11.30",
55
+ "@types/node": "20.12.4",
51
56
  "exray": "1.0.2",
52
57
  "typedoc": "0.25.12",
53
- "typescript": "5.4.3"
58
+ "typescript": "5.4.4"
54
59
  }
55
60
  }