Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

average-rating

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

average-rating - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

102

.eslintrc.json
{
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 6,
"ecmaFeatures": {
"binaryLiterals": true,
"blockBindings": true,
"defaultParams": true,
"forOf": true,
"generators": true,
"modules": true,
"objectLiteralComputedProperties": true,
"objectLiteralDuplicateProperties": true,
"objectLiteralShorthandMethods": true,
"objectLiteralShorthandProperties": true,
"octalLiterals": true,
"regexUFlag": true,
"regexYFlag": true,
"templateStrings": true,
"unicodeCodePointEscapes": true,
"jsx": true
}
},
"env": {
"browser": true,
"node": true,
"es6": true
},
"globals": {
},
"plugins": [
],
"extends": "eslint:all",
"rules": {
"arrow-body-style": 0,
"dot-location": 0,
"global-require": 0,
"id-length": 0,
"indent": [
"error",
2,
{
"SwitchCase": 1
}
],
"init-declarations": 0,
"max-len": [
"error",
{
"code": 120,
"ignoreTrailingComments": true,
"ignoreComments": true,
"ignoreUrls": true
}
],
"max-lines": 0,
"max-params": ["error", 5],
"max-statements": 0,
"newline-after-var": 0,
"newline-before-return": 0,
"newline-per-chained-call": 0,
"no-console": 0,
"no-inline-comments": 0,
"no-magic-numbers": 0,
"no-mixed-operators": 0,
"no-param-reassign": 0,
"no-plusplus": 0,
"no-prototype-builtins": 0,
"no-sync": 0,
"no-ternary": 0,
"no-underscore-dangle": 0,
"no-var": 0,
"object-curly-newline": 0,
"object-curly-spacing": 2,
"object-property-newline": 0,
"one-var": 0,
"padded-blocks": 0,
"prefer-const": 0,
"prefer-reflect": 0,
"prefer-template": 0,
"quotes": [
"error",
"single",
{
"allowTemplateLiterals": true
}
],
"quote-props": [
"error", "as-needed"
],
"require-jsdoc": 0,
"space-before-function-paren": [
"error", "never"
],
"vars-on-top": 0
}
"extends": "eslint-config-ggc"
}

28

package.json
{
"version": "1.0.0",
"version": "1.1.0",
"name": "average-rating",

@@ -16,10 +16,15 @@ "description": "Calculate average score and rating based on Wilson Score Equation",

"scripts": {
"test": "snyk test && tape test/start.js | tap-spec",
"coverage": "nyc tape test/start.js | tap-spec",
"report": "npm run coverage && nyc report --reporter=lcov",
"coveralls": "npm run report && cat ./coverage/lcov.info | coveralls",
"snyk": "snyk wizard"
"lint": "eslint .",
"snyk": "snyk test",
"tape": "nyc tape test/start.js | tap-spec",
"report": "nyc report --reporter=lcov",
"pretest": "npm run lint && npm run snyk",
"test": "npm run tape",
"posttest": "npm run report",
"coveralls": "npm test && cat ./coverage/lcov.info | coveralls"
},
"devDependencies": {
"coveralls": "latest",
"eslint": "latest",
"eslint-config-ggc": "latest",
"nyc": "latest",

@@ -39,12 +44,3 @@ "snyk": "latest",

],
"license": "MIT",
"maintainers": [
"ndaidong <ndaidong@gmail.com>"
],
"bugs": {
"url": "https://github.com/ndaidong/average-rating/issues"
},
"directories": {
"test": "test"
}
"license": "MIT"
}

@@ -7,3 +7,3 @@ # average-rating

[![Coverage Status](https://coveralls.io/repos/github/ndaidong/average-rating/badge.svg?branch=master)](https://coveralls.io/github/ndaidong/average-rating?branch=master)
![devDependency Status](https://david-dm.org/ndaidong/average-rating.svg)
[![Dependency Status](https://www.versioneye.com/user/projects/57e8df1bbd6fa600512e3a65/badge.svg?style=flat)](https://www.versioneye.com/user/projects/57e8df1bbd6fa600512e3a65)
[![Known Vulnerabilities](https://snyk.io/test/npm/average-rating/badge.svg)](https://snyk.io/test/npm/average-rating)

@@ -10,0 +10,0 @@

@@ -1,3 +0,1 @@

'use strict';
var fs = require('fs');

@@ -10,3 +8,3 @@ var path = require('path');

var dirs = [ 'average', 'rate', 'score' ];
var dirs = ['average', 'rate', 'score'];
dirs.forEach((dir) => {

@@ -13,0 +11,0 @@ let where = './test/specs/' + dir;

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc