@shakerquiz/utilities 0.2.33 → 0.2.34

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shakerquiz/utilities",
3
- "version": "0.2.33",
3
+ "version": "0.2.34",
4
4
  "author": "yurkimus <yurkimus@gmail.com>",
5
5
  "license": "ISC",
6
6
  "exports": {
@@ -108,6 +108,11 @@ export let useFetch = (feature, method, network) => {
108
108
  `Method '${method}' must be listed in 'Methods'.`,
109
109
  )
110
110
 
111
+ if (!(network in Networks))
112
+ throw TypeError(
113
+ `Network '${network}' must be listed in 'Networks'.`,
114
+ )
115
+
111
116
  if (!(feature in FeaturePathnames))
112
117
  throw TypeError(
113
118
  `Feature '${feature}' must be listed in 'FeaturePathnames'.`,