@feardread/feature-factory 4.0.4 → 4.0.5

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": "@feardread/feature-factory",
3
- "version": "4.0.4",
3
+ "version": "4.0.5",
4
4
  "description": "Library to interact with redux toolkit and reduce boilerplate / repeated code",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -168,7 +168,7 @@ export const ThunkFactory = {
168
168
  * @param {string} prefix - The operation prefix
169
169
  * @returns {Function} The created async thunk
170
170
  */
171
- create: (entity, prefix, apiUrl = API_URL) => {
171
+ create: (entity, prefix, apiUrl = ThunkFactory.API_URL) => {
172
172
  validateThunkParams(entity, prefix);
173
173
 
174
174
  const operation = STANDARD_OPERATIONS[prefix];