@feardread/feature-factory 5.0.1 → 5.0.3

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": "5.0.1",
3
+ "version": "5.0.3",
4
4
  "description": "Library to interact with redux toolkit and reduce boilerplate / repeated code",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -37,8 +37,7 @@ const CONFIG = {
37
37
  * @returns {string} Base URL
38
38
  */
39
39
  const getBaseUrl = () => {
40
- const env = process.env.NODE_ENV || 'development';
41
- //const uri = 'production';
40
+ const env = 'production'; //process.env.NODE_ENV || 'development';
42
41
  return CONFIG.baseUrls[env] || CONFIG.baseUrls.development;
43
42
  };
44
43
 
@@ -178,7 +178,7 @@ export const ThunkFactory = {
178
178
 
179
179
  // Fallback to original behavior for custom prefixes
180
180
  const useParams = prefix === 'search';
181
- //const useIdInUrl = prefix === 'one';
181
+ const useIdInUrl = (prefix === 'one') ? true : false;
182
182
 
183
183
  return createGenericThunk(entity, prefix, {
184
184
  method: HTTP_METHODS.GET,