mozrest-sdk-react-dev 0.3.66 → 0.3.67

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/mozrest-sdk.es.js +14 -2
  2. package/package.json +1 -1
package/mozrest-sdk.es.js CHANGED
@@ -120248,12 +120248,18 @@ const FbButton$1 = ({
120248
120248
  onDisconnect("Facebook");
120249
120249
  };
120250
120250
  const callbackFb = (values) => {
120251
+ var _a2;
120251
120252
  if ((values == null ? void 0 : values.status) === "unknown") {
120252
120253
  return;
120253
120254
  }
120255
+ const accounts = (_a2 = values == null ? void 0 : values.accounts) == null ? void 0 : _a2.data;
120256
+ if (!accounts || !Array.isArray(accounts)) {
120257
+ console.error("Facebook response did not include accounts", values);
120258
+ return;
120259
+ }
120254
120260
  onSuccess({
120255
120261
  id: values.id,
120256
- accounts: values.accounts.data
120262
+ accounts
120257
120263
  });
120258
120264
  };
120259
120265
  if (isConnected) {
@@ -147520,12 +147526,18 @@ const FbButton = ({
147520
147526
  t: t2
147521
147527
  } = useTranslation();
147522
147528
  const callbackFb = (values) => {
147529
+ var _a2;
147523
147530
  if ((values == null ? void 0 : values.status) === "unknown") {
147524
147531
  return;
147525
147532
  }
147533
+ const accounts = (_a2 = values == null ? void 0 : values.accounts) == null ? void 0 : _a2.data;
147534
+ if (!accounts || !Array.isArray(accounts)) {
147535
+ console.error("Facebook response did not include accounts", values);
147536
+ return;
147537
+ }
147526
147538
  onSuccess({
147527
147539
  id: values.id,
147528
- accounts: values.accounts.data
147540
+ accounts
147529
147541
  });
147530
147542
  };
147531
147543
  useEffect(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mozrest-sdk-react-dev",
3
- "version": "0.3.66",
3
+ "version": "0.3.67",
4
4
  "main": "mozrest-sdk.es.js",
5
5
  "keywords": [
6
6
  "mozrest"