@alheimsins/bigfive-calculate-score
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -16,3 +16,3 @@ const reduceFactors = require('./lib/reduce-factors') | ||
return reduceFactors({answers: data.answers, calculateResult: data.calculateResult}) | ||
return reduceFactors({ answers: data.answers, calculateResult: data.calculateResult }) | ||
} |
@@ -17,3 +17,3 @@ const calculateResultDefault = (score, count) => { | ||
if (!a[b.domain]) { | ||
a[b.domain] = {score: 0, count: 0, result: 'neutral', facet: {}} | ||
a[b.domain] = { score: 0, count: 0, result: 'neutral', facet: {} } | ||
} | ||
@@ -27,3 +27,3 @@ | ||
if (!a[b.domain].facet[b.facet]) { | ||
a[b.domain].facet[b.facet] = {score: 0, count: 0, result: 'neutral'} | ||
a[b.domain].facet[b.facet] = { score: 0, count: 0, result: 'neutral' } | ||
} | ||
@@ -30,0 +30,0 @@ a[b.domain].facet[b.facet].score += parseInt(b.score || 0, 10) |
{ | ||
"name": "@alheimsins/bigfive-calculate-score", | ||
"description": "Calculate score for big five tests", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"license": "MIT", | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"files": [ | ||
"lib/", | ||
"index.js" | ||
], | ||
"author": { | ||
@@ -20,6 +27,6 @@ "name": "Geir Gåsodden", | ||
"engines": { | ||
"node": ">=8.11.2" | ||
"node": ">=10.0.0" | ||
}, | ||
"scripts": { | ||
"test": "standard && nsp check && ava", | ||
"test": "standard && npm audit && ava", | ||
"test-offline": "standard && ava", | ||
@@ -29,4 +36,3 @@ "coverage": "nyc ava", | ||
"standard-fix": "standard --fix", | ||
"refresh": "rm -rf node_modules && rm package-lock.json && npm install", | ||
"publish": "npm publish --access=public" | ||
"refresh": "rm -rf node_modules && rm package-lock.json && npm install" | ||
}, | ||
@@ -49,7 +55,6 @@ "keywords": [ | ||
"ava": "0.25.0", | ||
"coveralls": "3.0.1", | ||
"nsp": "3.2.1", | ||
"nyc": "11.8.0", | ||
"standard": "11.0.1" | ||
"coveralls": "3.0.2", | ||
"nyc": "13.0.1", | ||
"standard": "12.0.1" | ||
} | ||
} |
@@ -0,1 +1,5 @@ | ||
[![Build Status](https://travis-ci.com/Alheimsins/bigfive-calculate-score.svg?branch=master)](https://travis-ci.com/Alheimsins/bigfive-calculate-score) | ||
[![Coverage Status](https://coveralls.io/repos/Alheimsins/bigfive-calculate-score/badge.svg?branch=master&service=github)](https://coveralls.io/github/Alheimsins/bigfive-calculate-score?branch=master) | ||
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard) | ||
# bigfive-calculate-score | ||
@@ -197,4 +201,4 @@ | ||
Created by [zrrzzt](https://github.com/zrrrzzt) and [maccyber](https://github.com/maccyber) with ❤ for [Alheimsins](https://alheimsins.net) | ||
Created with <3 by [Alheimsins](https://github.com/Alheimsins) | ||
<img src="https://image.ibb.co/dPH08G/logo_black.png" height="150px" width="150px" /> | ||
![Alheimsins symbol](https://file-qwoleuymtm.now.sh "Alheimsins symbol") |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
4
204
0
7725
5
44
1