@product7/product7-js 0.6.9 → 0.7.0

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.
@@ -1464,10 +1464,10 @@
1464
1464
  if (_cached) return _cached;
1465
1465
 
1466
1466
  try {
1467
- const res = await fetch('http://ip-api.com/json');
1467
+ const res = await fetch('https://ipwho.is/');
1468
1468
  if (!res.ok) return null;
1469
1469
  const data = await res.json();
1470
- if (data.status === 'success') {
1470
+ if (data.success) {
1471
1471
  _cached = data;
1472
1472
  }
1473
1473
  return _cached;