@quintype/components 3.3.2 → 3.3.3-at-global.1

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/cjs/index.js CHANGED
@@ -4638,7 +4638,11 @@ var AccessTypeBase = /*#__PURE__*/function (_React$Component) {
4638
4638
  return true;
4639
4639
  }
4640
4640
 
4641
- global.AccessType && callback();
4641
+ if (global.AccessType) {
4642
+ _this.props.onATGlobalSet && _this.props.onATGlobalSet();
4643
+ callback();
4644
+ }
4645
+
4642
4646
  return true;
4643
4647
  });
4644
4648
 
@@ -5318,6 +5322,7 @@ var AccessTypeBase = /*#__PURE__*/function (_React$Component) {
5318
5322
  _yield$awaitHelper9 = _context11.sent;
5319
5323
  error = _yield$awaitHelper9.error;
5320
5324
  accessData = _yield$awaitHelper9.data;
5325
+ console.log(" check access at internal", error, data);
5321
5326
  accessById = _defineProperty__default["default"]({}, assetId, accessData);
5322
5327
 
5323
5328
  _this.props.accessUpdated(accessById);
@@ -5333,16 +5338,16 @@ var AccessTypeBase = /*#__PURE__*/function (_React$Component) {
5333
5338
  }
5334
5339
 
5335
5340
  if (!error) {
5336
- _context11.next = 17;
5341
+ _context11.next = 18;
5337
5342
  break;
5338
5343
  }
5339
5344
 
5340
5345
  return _context11.abrupt("return", error);
5341
5346
 
5342
- case 17:
5347
+ case 18:
5343
5348
  return _context11.abrupt("return", accessById);
5344
5349
 
5345
- case 18:
5350
+ case 19:
5346
5351
  case "end":
5347
5352
  return _context11.stop();
5348
5353
  }
@@ -68,7 +68,11 @@ var AccessTypeBase = /*#__PURE__*/function (_React$Component) {
68
68
  return true;
69
69
  }
70
70
 
71
- global.AccessType && callback();
71
+ if (global.AccessType) {
72
+ _this.props.onATGlobalSet && _this.props.onATGlobalSet();
73
+ callback();
74
+ }
75
+
72
76
  return true;
73
77
  });
74
78
 
@@ -748,6 +752,7 @@ var AccessTypeBase = /*#__PURE__*/function (_React$Component) {
748
752
  _yield$awaitHelper9 = _context11.sent;
749
753
  error = _yield$awaitHelper9.error;
750
754
  accessData = _yield$awaitHelper9.data;
755
+ console.log(" check access at internal", error, data);
751
756
  accessById = _defineProperty({}, assetId, accessData);
752
757
 
753
758
  _this.props.accessUpdated(accessById);
@@ -763,16 +768,16 @@ var AccessTypeBase = /*#__PURE__*/function (_React$Component) {
763
768
  }
764
769
 
765
770
  if (!error) {
766
- _context11.next = 17;
771
+ _context11.next = 18;
767
772
  break;
768
773
  }
769
774
 
770
775
  return _context11.abrupt("return", error);
771
776
 
772
- case 17:
777
+ case 18:
773
778
  return _context11.abrupt("return", accessById);
774
779
 
775
- case 18:
780
+ case 19:
776
781
  case "end":
777
782
  return _context11.stop();
778
783
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quintype/components",
3
- "version": "3.3.2",
3
+ "version": "3.3.3-at-global.1",
4
4
  "description": "Components to help build Quintype Node.js apps",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/es/index.js",