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

@alheimsins/bigfive-calculate-score

Package Overview
Dependencies
Maintainers
2
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@alheimsins/bigfive-calculate-score - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

index.js

@@ -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")
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