@kaspernj/api-maker 1.0.143 → 1.0.144

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -16,7 +16,7 @@
16
16
  ]
17
17
  },
18
18
  "name": "@kaspernj/api-maker",
19
- "version": "1.0.143",
19
+ "version": "1.0.144",
20
20
  "description": "",
21
21
  "main": "index.js",
22
22
  "repository": {
@@ -65,7 +65,7 @@
65
65
  "@babel/eslint-parser": "^7.16.3",
66
66
  "@babel/preset-env": "^7.12.11",
67
67
  "@babel/preset-react": "^7.12.10",
68
- "babel-jest": "^27.0.6",
68
+ "babel-jest": "^28.0.3",
69
69
  "eslint": "^8.2.0",
70
70
  "eslint-find-rules": "^4.0.0",
71
71
  "eslint-plugin-jest": "^26.0.0",
@@ -57,7 +57,7 @@ module.exports = class MoneyFormatter {
57
57
  static isMoney(value) {
58
58
  if (value instanceof Money) return true
59
59
 
60
- if (typeof value == "object" && value && Object.keys(value).length == 2 && value.amount && value.currency)
60
+ if (typeof value == "object" && value && Object.keys(value).length == 2 && "amount" in value && "currency" in value)
61
61
  return true
62
62
 
63
63
  return false