ismx-nexo-node-app 0.4.99 → 0.4.100

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.
@@ -77,5 +77,7 @@ class RepositoryRest extends Repository_1.default {
77
77
  RepositoryRest.defaultReviver = (key, value) => {
78
78
  if (DateUtils_1.default.isIsoDate(value))
79
79
  return new Date(value);
80
+ else
81
+ return value;
80
82
  };
81
83
  exports.default = RepositoryRest;
@@ -13,5 +13,5 @@ export default class RepositoryRest<Body = any, Res = any> extends Repository {
13
13
  constructor(baseUrl: string, options?: RestOptions);
14
14
  call<B = Body, E = Res>(method?: string, endpoint?: string, request?: HttpRequest<B>): Promise<HttpResponse<E>>;
15
15
  private reviver;
16
- static defaultReviver: (key: string, value: string) => Date | undefined;
16
+ static defaultReviver: (key: string, value: string) => string | Date;
17
17
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ismx-nexo-node-app",
3
- "version": "0.4.99",
3
+ "version": "0.4.100",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "build": "rm -rf ./dist && npx tsc",
@@ -88,6 +88,7 @@ export default class RepositoryRest<Body=any,Res=any> extends Repository
88
88
 
89
89
  static defaultReviver = (key: string, value: string) => {
90
90
  if (DateUtils.isIsoDate(value)) return new Date(value);
91
+ else return value;
91
92
  }
92
93
 
93
94