@tinycloud/replica 0.4.5-beta.0 → 0.4.5-beta.2
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/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/kv-storage.js +1 -1
- package/dist/{kv-storage.worker.bb0d0e128851db2916b3233f31e5c31ca360a97a536bbe1fe81a0fa6886ea307.js → kv-storage.worker.ddaf752fe9f8aa50e111f4094b9ddd30fe648e8cb9d6948aac77e0e6dd8a7920.js} +1 -1
- package/dist/kv-storage.worker.js +1 -1
- package/dist/kv-storage.worker.js.map +1 -1
- package/dist/replica.worker.js +1 -1
- package/dist/replica.worker.js.map +1 -1
- package/package.json +2 -2
package/dist/replica.worker.js
CHANGED
|
@@ -8610,7 +8610,7 @@ function replicaErrorFromService(error, context, request) {
|
|
|
8610
8610
|
if (status !== void 0) {
|
|
8611
8611
|
return new ReplicaError(ReplicaErrorCode.NODE_ERROR, `${context}: ${error.message}`, detail);
|
|
8612
8612
|
}
|
|
8613
|
-
if (error.code === "NETWORK_ERROR" || error.code === "NODE_NOT_RESPONDING" || /TIMEOUT|ABORT/.test(error.code)) {
|
|
8613
|
+
if (error.code === "registry_unavailable" && reason === "no-saved-settings" || error.code === "NETWORK_ERROR" || error.code === "NODE_NOT_RESPONDING" || /TIMEOUT|ABORT/.test(error.code)) {
|
|
8614
8614
|
return new ReplicaError(ReplicaErrorCode.NETWORK_ERROR, `${context}: ${error.message}`, detail);
|
|
8615
8615
|
}
|
|
8616
8616
|
return new ReplicaError(ReplicaErrorCode.NODE_ERROR, `${context}: ${error.message}`, detail);
|