nextemos 3.9.5 → 3.9.6

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.
@@ -39,9 +39,9 @@ const fetchRequest = () => {
39
39
  Object.keys(params).forEach(key => apiURL.searchParams.append(key, params[key]));
40
40
  if (method === __1.HTTPMethod.POST)
41
41
  options.headers = Object.assign(Object.assign({}, options.headers), { ['Content-Type']: 'application/json' });
42
- console.log(`Fetch Request: ${method} - ${apiURL} - ${JSON.stringify(Object.assign({ cache: 'no-cache' }, options))}`);
42
+ console.log(`Fetch Request: ${method} - ${apiURL} - ${JSON.stringify(options)}`);
43
43
  try {
44
- const response = yield fetch(apiURL.toString(), Object.assign(Object.assign({ cache: 'no-cache' }, options), { method }));
44
+ const response = yield fetch(apiURL.toString(), Object.assign(Object.assign({}, options), { method }));
45
45
  if (!response.ok) {
46
46
  const errorDetail = yield response.text();
47
47
  throw new Error(`Fetch Request HTTP Error: ${response.status} - ${apiURL} - ${errorDetail}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nextemos",
3
- "version": "3.9.5",
3
+ "version": "3.9.6",
4
4
  "description": "For helpers and hooks used in NextJS projects",
5
5
  "main": "dist/index.js",
6
6
  "types": "./dist/index.d.ts",