@docbrasil/api-systemmanager 1.1.46 → 1.1.47

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.
Files changed (2) hide show
  1. package/api/dispatch.js +2 -0
  2. package/package.json +1 -1
package/api/dispatch.js CHANGED
@@ -13,6 +13,7 @@ class Dispatch {
13
13
  const self = this;
14
14
  self.parent = options.parent;
15
15
  self._cache = options.cache;
16
+ self._forceCache = options.forceCache;
16
17
  self._client = Axios.create({baseURL: self.parent.options.uri, withCredentials: true});
17
18
 
18
19
  // Add request interceptor for offline handling
@@ -110,6 +111,7 @@ class Dispatch {
110
111
  * @private
111
112
  */
112
113
  _isOnline() {
114
+ if(this._forceCache) return false;
113
115
  return typeof navigator !== 'undefined' && navigator.onLine;
114
116
  }
115
117
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@docbrasil/api-systemmanager",
3
3
  "description": "Module API System Manager",
4
- "version": "1.1.46",
4
+ "version": "1.1.47",
5
5
  "scripts": {
6
6
  "htmldoc": "rm -rf docs && jsdoc api/** -d docs -t ./node_modules/better-docs",
7
7
  "doc": "rm -rf doc && mkdir doc && jsdoc2md api/**/* api/* > doc/api.md",