nextemos 3.9.4 → 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}`);
@@ -1,6 +1,6 @@
1
1
  import { IApiResponse, ILocalizationAllResponse, ILocalizedTextResponse, IRequestInit } from '../..';
2
2
  export interface IAllByTagNameRequest {
3
- tagName: number;
3
+ tagName: string;
4
4
  language?: string;
5
5
  tags?: string[];
6
6
  }
@@ -14,7 +14,7 @@ export interface IAllByLanguageRequest {
14
14
  tags?: string[];
15
15
  }
16
16
  export interface IAllByTagNameByLanguageRequest extends IAllByLanguageRequest {
17
- tagName: number;
17
+ tagName: string;
18
18
  }
19
19
  export interface ILocalizationService {
20
20
  ServiceUrl: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nextemos",
3
- "version": "3.9.4",
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",