authscape 1.0.644 → 1.0.648

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/index.js CHANGED
@@ -8827,16 +8827,20 @@ var authService = function authService() {
8827
8827
  }(),
8828
8828
  inviteUsers: function () {
8829
8829
  var _inviteUsers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(inviteRequests) {
8830
- var response;
8830
+ var host, response;
8831
8831
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
8832
8832
  while (1) switch (_context2.prev = _context2.next) {
8833
8833
  case 0:
8834
- _context2.next = 2;
8835
- return apiService().post(process.env.authorityUri + "/Invite/InviteUsers", inviteRequests);
8836
- case 2:
8834
+ host = window.location.protocol + "//" + window.location.host;
8835
+ _context2.next = 3;
8836
+ return apiService().post(process.env.authorityUri + "/Invite/InviteUsers", {
8837
+ requests: inviteRequests,
8838
+ host: host
8839
+ });
8840
+ case 3:
8837
8841
  response = _context2.sent;
8838
8842
  return _context2.abrupt("return", response);
8839
- case 4:
8843
+ case 5:
8840
8844
  case "end":
8841
8845
  return _context2.stop();
8842
8846
  }
@@ -8849,18 +8853,22 @@ var authService = function authService() {
8849
8853
  }(),
8850
8854
  inviteUser: function () {
8851
8855
  var _inviteUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(inviteRequest) {
8852
- var inviteRequests, response;
8856
+ var inviteRequests, host, response;
8853
8857
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
8854
8858
  while (1) switch (_context3.prev = _context3.next) {
8855
8859
  case 0:
8856
8860
  inviteRequests = [];
8857
8861
  inviteRequests.push(inviteRequest);
8858
- _context3.next = 4;
8859
- return apiService().post(process.env.authorityUri + "/Invite/InviteUsers", inviteRequests);
8860
- case 4:
8862
+ host = window.location.protocol + "//" + window.location.host;
8863
+ _context3.next = 5;
8864
+ return apiService().post(process.env.authorityUri + "/Invite/InviteUsers", {
8865
+ requests: inviteRequests,
8866
+ host: host
8867
+ });
8868
+ case 5:
8861
8869
  response = _context3.sent;
8862
8870
  return _context3.abrupt("return", response);
8863
- case 6:
8871
+ case 7:
8864
8872
  case "end":
8865
8873
  return _context3.stop();
8866
8874
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "authscape",
3
- "version": "1.0.644",
3
+ "version": "1.0.648",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -37,9 +37,13 @@ export const authService = () => {
37
37
  },
38
38
  inviteUsers: async (inviteRequests) => {
39
39
 
40
- let response = await apiService().post(
41
- process.env.authorityUri + "/Invite/InviteUsers",
42
- inviteRequests
40
+ var host = window.location.protocol + "//" + window.location.host;
41
+
42
+ let response = await apiService().post(process.env.authorityUri + "/Invite/InviteUsers",
43
+ {
44
+ requests: inviteRequests,
45
+ host: host
46
+ }
43
47
  );
44
48
 
45
49
  return response;
@@ -49,9 +53,14 @@ export const authService = () => {
49
53
  let inviteRequests = [];
50
54
  inviteRequests.push(inviteRequest);
51
55
 
56
+ var host = window.location.protocol + "//" + window.location.host;
57
+
52
58
  let response = await apiService().post(
53
59
  process.env.authorityUri + "/Invite/InviteUsers",
54
- inviteRequests
60
+ {
61
+ requests: inviteRequests,
62
+ host: host
63
+ }
55
64
  );
56
65
 
57
66
  return response;