w-cluster 1.0.1 → 1.0.5

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/.eslintrc.js CHANGED
@@ -49,5 +49,6 @@ module.exports = {
49
49
  'node/no-callback-literal': 'off',
50
50
  'prefer-regex-literals': 'off',
51
51
  'array-callback-return': 'off',
52
+ 'no-unreachable-loop': 'off',
52
53
  }
53
54
  };
@@ -0,0 +1,24 @@
1
+ name: Node.js CI
2
+
3
+ on: [push]
4
+
5
+ jobs:
6
+ build:
7
+
8
+ runs-on: ubuntu-latest
9
+
10
+ strategy:
11
+ matrix:
12
+ node-version: [16.x]
13
+
14
+ steps:
15
+ - uses: actions/checkout@v2
16
+ - name: Use Node.js ${{ matrix.node-version }}
17
+ uses: actions/setup-node@v1
18
+ with:
19
+ node-version: ${{ matrix.node-version }}
20
+ - run: npm cache clean -f
21
+ - run: npm install
22
+ - run: npm test
23
+ env:
24
+ CI: true
package/README.md CHANGED
@@ -3,7 +3,6 @@ A tool for data PCA(Principle Component Analysis) and cluster(K-Means & K-Medoid
3
3
 
4
4
  ![language](https://img.shields.io/badge/language-JavaScript-orange.svg)
5
5
  [![npm version](http://img.shields.io/npm/v/w-cluster.svg?style=flat)](https://npmjs.org/package/w-cluster)
6
- [![Build Status](https://travis-ci.org/yuda-lyu/w-cluster.svg?branch=master)](https://travis-ci.org/yuda-lyu/w-cluster)
7
6
  [![license](https://img.shields.io/npm/l/w-cluster.svg?style=flat)](https://npmjs.org/package/w-cluster)
8
7
  [![gzip file size](http://img.badgesize.io/yuda-lyu/w-cluster/master/dist/w-cluster.umd.js.svg?compression=gzip)](https://github.com/yuda-lyu/w-cluster)
9
8
  [![npm download](https://img.shields.io/npm/dt/w-cluster.svg)](https://npmjs.org/package/w-cluster)
@@ -158,11 +157,17 @@ testCluster()
158
157
  ```
159
158
 
160
159
  ### In a browser(UMD module):
161
- > **Note:** w-cluster is not dependent on any package.
160
+ > **Note:** w-cluster does not dependent on any package.
162
161
 
163
162
  [Necessary] Add script for w-cluster.
164
163
  ```alias
165
- <script src="https://cdn.jsdelivr.net/npm/w-cluster@1.0.1/dist/w-cluster.umd.js"></script>
164
+
165
+ <!-- for basic -->
166
+ <script src="https://cdn.jsdelivr.net/npm/w-cluster@1.0.5/dist/w-cluster.umd.js"></script>
167
+
168
+ <!-- for web workers -->
169
+ <script src="https://cdn.jsdelivr.net/npm/w-cluster@1.0.5/dist/w-cluster.wk.umd.js"></script>
170
+
166
171
  ```
167
172
 
168
173
  > **PCA:** [ex-PCA.html](https://yuda-lyu.github.io/w-cluster/examples/ex-PCA.html) [[source code](https://github.com/yuda-lyu/w-cluster/blob/master/docs/examples/ex-PCA.html)]
@@ -171,4 +176,4 @@ testCluster()
171
176
 
172
177
  > **cluster for k-medoids:** [ex-cluster-k-medoids.html](https://yuda-lyu.github.io/w-cluster/examples/ex-cluster-k-medoids.html) [[source code](https://github.com/yuda-lyu/w-cluster/blob/master/docs/examples/ex-cluster-k-medoids.html)]
173
178
 
174
- > **cluster for k-medoids with web worker[WebWorkers(from blob) does not support IE11]:** [ex-cluster-webworker-k-medoids.html](https://yuda-lyu.github.io/w-cluster/examples/ex-cluster-webworker-k-medoids.html) [[source code](https://github.com/yuda-lyu/w-cluster/blob/master/docs/examples/ex-cluster-webworker-k-medoids.html)]
179
+ > **cluster for k-medoids with web worker:** [ex-cluster-webworker-k-medoids.html](https://yuda-lyu.github.io/w-cluster/examples/ex-cluster-webworker-k-medoids.html) [[source code](https://github.com/yuda-lyu/w-cluster/blob/master/docs/examples/ex-cluster-webworker-k-medoids.html)] * WebWorkers(from blob) does not support IE11.
package/SECURITY.md ADDED
@@ -0,0 +1,5 @@
1
+ # Security Policy
2
+
3
+ ## Reporting a Vulnerability
4
+
5
+ Please report security issues to `firsemisphere@gmail.com`