@shakerquiz/utilities 0.2.33 → 0.2.35
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
|
@@ -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'.`,
|