Comparing version 3.2.0 to 3.3.0
@@ -16,2 +16,5 @@ import Is from 'strong-type'; | ||
} | ||
if(parameters.tipAmount){ | ||
is.number(parameters.tipAmount); | ||
} | ||
@@ -32,2 +35,4 @@ super(); | ||
this.amount=parameters.amount||0; | ||
this.tipAmount=parameters.tipAmount||0; | ||
} | ||
@@ -40,2 +45,3 @@ | ||
amount=0 | ||
tipAmount=0 | ||
number='' | ||
@@ -42,0 +48,0 @@ cardType='' |
{ | ||
"name": "dominos", | ||
"version": "3.2.0", | ||
"version": "3.3.0", | ||
"description": "node js API for Domino's pizza", | ||
@@ -9,3 +9,3 @@ "exports": "./index.js", | ||
"test": "npm i && c8 -r lcov -r html node test/CI.js && c8 report", | ||
"precommit": "echo 'node test/CI.js'", | ||
"precommit": "echo '::::PLEASE MAKE SURE TESTS PASS BY RUNNING:::: npm test OR node test/CI.js'", | ||
"coverage": "echo 'See your coverage report at http://localhost:8080' && node-http-server port=8080 root=./coverage/", | ||
@@ -127,2 +127,10 @@ "start": "npm i && node example/commandline-pizza/dominos-commandline-pizza.js" | ||
"url": "https://github.com/mattdsteele" | ||
}, | ||
{ | ||
"name": "Patrick Collins", | ||
"url": "https://github.com/PatrickAlphaC" | ||
}, | ||
{ | ||
"name": "lastraum", | ||
"url": "https://github.com/lastraum" | ||
} | ||
@@ -129,0 +137,0 @@ ], |
69544
1212