@glance-apps/sync 1.1.2 → 1.1.3

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/package.json +1 -1
  2. package/src/providers.js +6 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glance-apps/sync",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
package/src/providers.js CHANGED
@@ -246,7 +246,12 @@ export function createProviders(engineConfig) {
246
246
  // nativeHttpRequest != null means the Android HTTP bridge is available,
247
247
  // which bypasses Koofr's server-side block on Vercel proxy IPs.
248
248
  const onAndroid = engineConfig.nativeHttpRequest != null;
249
- if (!onAndroid) return { success: false, error: "Koofr is blocking requests from the web app's server. Use the Android app — it connects to Koofr directly." };
249
+ if (!onAndroid) {
250
+ if (engineConfig.isHostedApp) {
251
+ return { success: false, error: "Koofr blocks requests from dayglance.app's servers. Use a self-hosted instance or the Android app to connect directly." };
252
+ }
253
+ return { success: false, error: "Access forbidden. If requests are going through a proxy, Koofr may be blocking that server's IP." };
254
+ }
250
255
  return { success: false, error: 'Access forbidden. Check that your app password is correct and has not been revoked.' };
251
256
  }
252
257
  return { success: false, error: `Unexpected response: ${res.status}${res.statusText ? ' ' + res.statusText : ''}` };