@docbrasil/api-systemmanager 1.1.49 → 1.1.50
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/api/dispatch.js +5 -0
- package/dist/bundle.cjs +5 -0
- package/dist/bundle.mjs +1 -1
- package/package.json +1 -1
package/api/dispatch.js
CHANGED
|
@@ -47,6 +47,7 @@ class Dispatch {
|
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
+
self.errorOffline();
|
|
50
51
|
throw new Error('Network error: No internet connection and no cached data available');
|
|
51
52
|
},
|
|
52
53
|
error => Promise.reject(error)
|
|
@@ -147,6 +148,10 @@ class Dispatch {
|
|
|
147
148
|
}
|
|
148
149
|
}
|
|
149
150
|
|
|
151
|
+
errorOffline() {
|
|
152
|
+
this._cache.errorOffline();
|
|
153
|
+
}
|
|
154
|
+
|
|
150
155
|
/**
|
|
151
156
|
* Get the URL context
|
|
152
157
|
* @param url {string} Full url
|
package/dist/bundle.cjs
CHANGED
|
@@ -59,6 +59,7 @@ class Dispatch {
|
|
|
59
59
|
};
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
+
self.errorOffline();
|
|
62
63
|
throw new Error('Network error: No internet connection and no cached data available');
|
|
63
64
|
},
|
|
64
65
|
error => Promise.reject(error)
|
|
@@ -159,6 +160,10 @@ class Dispatch {
|
|
|
159
160
|
}
|
|
160
161
|
}
|
|
161
162
|
|
|
163
|
+
errorOffline() {
|
|
164
|
+
this._cache.errorOffline();
|
|
165
|
+
}
|
|
166
|
+
|
|
162
167
|
/**
|
|
163
168
|
* Get the URL context
|
|
164
169
|
* @param url {string} Full url
|