@papillonbits/library 0.90.0 → 0.91.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.
- package/auth/index.js +6 -3
- package/package.json +2 -2
package/auth/index.js
CHANGED
|
@@ -10,14 +10,16 @@ var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"))
|
|
|
10
10
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
11
11
|
var _rest = require("@octokit/rest");
|
|
12
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
-
var _isUserAuthenticatedPapillonBitsOrganizationMember;
|
|
14
13
|
function NotAuthorized() {
|
|
15
14
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("h1", {
|
|
16
15
|
children: "You are not authorized to proceed!"
|
|
17
16
|
});
|
|
18
17
|
}
|
|
19
18
|
function isUserAuthenticatedPapillonBitsOrganizationMember(_x) {
|
|
20
|
-
return
|
|
19
|
+
return _isUserAuthenticatedPapillonBitsOrganizationMember.apply(this, arguments);
|
|
20
|
+
}
|
|
21
|
+
function _isUserAuthenticatedPapillonBitsOrganizationMember() {
|
|
22
|
+
_isUserAuthenticatedPapillonBitsOrganizationMember = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(personalAccessToken) {
|
|
21
23
|
var collectedAccessToken, octokit, _yield$octokit$reques, data, isActivePapillonBitsMember;
|
|
22
24
|
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
23
25
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -54,5 +56,6 @@ function isUserAuthenticatedPapillonBitsOrganizationMember(_x) {
|
|
|
54
56
|
return _context.stop();
|
|
55
57
|
}
|
|
56
58
|
}, _callee, null, [[5, 14]]);
|
|
57
|
-
}))
|
|
59
|
+
}));
|
|
60
|
+
return _isUserAuthenticatedPapillonBitsOrganizationMember.apply(this, arguments);
|
|
58
61
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@papillonbits/library",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.91.0",
|
|
4
4
|
"description": "Papillon Bits Library",
|
|
5
5
|
"homepage": "https://github.com/papillonbits/papillonbits/tree/master/packages/library",
|
|
6
6
|
"repository": {
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"build-acceptance": "npm run build",
|
|
37
37
|
"build-release": "npm run build"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "472abf1067b705422fa2cc88998dc14a400c340b"
|
|
40
40
|
}
|