authscape 1.0.88 → 1.0.90

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
@@ -318,7 +318,7 @@ exports.apiService = void 0;
318
318
 
319
319
  var _axios = _interopRequireDefault(require("axios"));
320
320
 
321
- var _querystring = _interopRequireDefault(require("querystring"));
321
+ var _queryString = _interopRequireDefault(require("query-string"));
322
322
 
323
323
  var _jsFileDownload = _interopRequireDefault(require("js-file-download"));
324
324
 
@@ -399,7 +399,7 @@ var RefreshToken = /*#__PURE__*/function () {
399
399
  accessToken = (0, _nextCookies["default"])(null).access_token || '';
400
400
  refreshToken = (0, _nextCookies["default"])(null).refresh_token || '';
401
401
  _context2.next = 4;
402
- return instance.post(process.env.AUTHORITYURI + "/connect/token", _querystring["default"].stringify({
402
+ return instance.post(process.env.AUTHORITYURI + "/connect/token", _queryString["default"].stringify({
403
403
  grant_type: 'refresh_token',
404
404
  client_id: process.env.client_id,
405
405
  client_secret: process.env.client_secret,
@@ -1139,7 +1139,7 @@ var _react = _interopRequireWildcard(require("react"));
1139
1139
 
1140
1140
  var _axios = _interopRequireDefault(require("axios"));
1141
1141
 
1142
- var _querystring = _interopRequireDefault(require("querystring"));
1142
+ var _queryString = _interopRequireDefault(require("query-string"));
1143
1143
 
1144
1144
  var _nookies = require("nookies");
1145
1145
 
@@ -1172,7 +1172,7 @@ var signInValidator = /*#__PURE__*/function () {
1172
1172
  headers = {
1173
1173
  'Content-Type': 'application/x-www-form-urlencoded'
1174
1174
  };
1175
- queryString = _querystring["default"].stringify({
1175
+ queryString = _queryString["default"].stringify({
1176
1176
  code: queryCode,
1177
1177
  grant_type: "authorization_code",
1178
1178
  redirect_uri: window.location.origin + "/signin-oidc",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "authscape",
3
- "version": "1.0.88",
3
+ "version": "1.0.90",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -15,10 +15,9 @@
15
15
  "next": "^12.2.0",
16
16
  "next-cookies": "^2.0.3",
17
17
  "nookies": "^2.5.2",
18
- "querystring": "^0.2.1",
19
18
  "react": "^17.0.2",
20
- "react-dom": "^17.0.2",
21
- "react-data-table-component": "^7.5.2"
19
+ "react-data-table-component": "^7.5.2",
20
+ "react-dom": "^17.0.2"
22
21
  },
23
22
  "devDependencies": {
24
23
  "@babel/cli": "^7.1.5",
@@ -34,7 +33,7 @@
34
33
  "next": "^12.2.0",
35
34
  "next-cookies": "^2.0.3",
36
35
  "nookies": "^2.5.2",
37
- "querystring": "^0.2.1",
36
+ "query-string": "^7.1.1",
38
37
  "react-data-table-component": "^7.5.2"
39
38
  }
40
39
  }
@@ -1,5 +1,5 @@
1
1
  import axios from 'axios'
2
- import querystring from 'querystring';
2
+ import querystring from 'query-string';
3
3
  import fileDownload from 'js-file-download';
4
4
  import cookies from 'next-cookies';
5
5
  import { setCookie, destroyCookie } from 'nookies';
@@ -1,6 +1,6 @@
1
1
  import React, { useEffect, useState } from 'react';
2
2
  import axios from 'axios';
3
- import querystring from "querystring";
3
+ import querystring from "query-string";
4
4
  import { setCookie } from 'nookies';
5
5
 
6
6
  export const signInValidator = async (queryCode) => {