Skip to content

Commit

Permalink
Merge pull request #19 from ndaidong/2.0.3
Browse files Browse the repository at this point in the history
v2.0.3
  • Loading branch information
ndaidong authored Aug 10, 2022
2 parents a153b87 + 58ea203 commit 5f8e540
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 19 deletions.
7 changes: 0 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,6 @@ average([134055, 57472, 143135, 365957, 1448459]) // => 4.4
rate([134055, 57472, 143135, 365957, 1448459]) // => 0.84
```
##### Note:
> Since Node.js v14, ECMAScript modules [have became the official standard format](https://nodejs.org/docs/latest-v14.x/api/esm.html#esm_modules_ecmascript_modules).
> Just ensure that you are [using module system](https://nodejs.org/api/packages.html#determining-module-system) and enjoy with ES6 import/export syntax.
### Browsers:
Currently ECMAScript modules work fine on almost browsers:
Expand Down
2 changes: 1 addition & 1 deletion dist/average-rating.esm.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// average-rating@2.0.2, by @ndaidong - built with esbuild at 2022-06-03T09:32:41.807Z - published under MIT license
// average-rating@2.0.3, by @ndaidong - built with esbuild at 2022-08-10T15:12:36.260Z - published under MIT license
// src/main.js
var score = (p, n) => {
if (p === 0 && n === 0) {
Expand Down
2 changes: 1 addition & 1 deletion dist/average-rating.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/cjs/average-rating.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// average-rating@2.0.2, by @ndaidong - built with esbuild at 2022-06-03T09:32:41.807Z - published under MIT license
// average-rating@2.0.3, by @ndaidong - built with esbuild at 2022-08-10T15:12:36.260Z - published under MIT license
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
Expand Down
2 changes: 1 addition & 1 deletion dist/cjs/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "average-rating-cjs",
"version": "2.0.2",
"version": "2.0.3",
"main": "./average-rating.js"
}
12 changes: 5 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "2.0.2",
"version": "2.0.3",
"name": "average-rating",
"description": "Calculate average score and rating based on Wilson Score Equation",
"homepage": "https://www.npmjs.com/package/average-rating",
Expand All @@ -8,24 +8,22 @@
"url": "https://github.com/ndaidong/average-rating"
},
"author": "@ndaidong",
"main": "./dist/cjs/average-rating.js",
"module": "./src/main.js",
"browser": "./dist/average-rating.min.js",
"main": "./src/main.js",
"type": "module",
"engines": {
"node": ">= 14"
},
"scripts": {
"lint": "standard .",
"pretest": "npm run lint",
"test": "NODE_ENV=test NODE_OPTIONS=--experimental-vm-modules jest --verbose --coverage=true --unhandled-rejections=strict --detectOpenHandles",
"test": "NODE_ENV=test NODE_OPTIONS=--experimental-vm-modules jest --verbose --coverage=true",
"build": "node build src/main.js",
"eval": "node eval",
"reset": "node reset"
},
"devDependencies": {
"esbuild": "^0.14.42",
"jest": "^28.1.0"
"esbuild": "^0.15.0",
"jest": "^28.1.3"
},
"standard": {
"ignore": [
Expand Down
1 change: 0 additions & 1 deletion src/main.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/**
* Calculate average score and rating based on Wilson Score Equation
* @ndaidong
* Refer: https://en.wikipedia.org/wiki/Binomial_proportion_confidence_interval
**/

Expand Down

0 comments on commit 5f8e540

Please sign in to comment.