authscape 1.0.62 → 1.0.65
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 +2 -14
- package/package.json +3 -3
- package/src/services/apiService.js +2 -3
- package/src/services/BaseUri.js +0 -3
package/index.js
CHANGED
|
@@ -74,9 +74,7 @@ var _nextCookies = _interopRequireDefault(require("next-cookies"));
|
|
|
74
74
|
|
|
75
75
|
var _nookies = require("nookies");
|
|
76
76
|
|
|
77
|
-
var
|
|
78
|
-
|
|
79
|
-
var _helper = _interopRequireDefault(require("./helper"));
|
|
77
|
+
var _helper = _interopRequireDefault(require("helper"));
|
|
80
78
|
|
|
81
79
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
82
80
|
|
|
@@ -213,7 +211,7 @@ var RefreshToken = /*#__PURE__*/function () {
|
|
|
213
211
|
|
|
214
212
|
var apiService = function apiService() {
|
|
215
213
|
var ctx = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
216
|
-
var env =
|
|
214
|
+
var env = process.env.STAGE;
|
|
217
215
|
|
|
218
216
|
if (env == "development") {
|
|
219
217
|
process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";
|
|
@@ -865,16 +863,6 @@ var _default = authService;
|
|
|
865
863
|
exports["default"] = _default;
|
|
866
864
|
"use strict";
|
|
867
865
|
|
|
868
|
-
Object.defineProperty(exports, "__esModule", {
|
|
869
|
-
value: true
|
|
870
|
-
});
|
|
871
|
-
exports.GetEnvironment = GetEnvironment;
|
|
872
|
-
|
|
873
|
-
function GetEnvironment() {
|
|
874
|
-
return process.env.STAGE;
|
|
875
|
-
}
|
|
876
|
-
"use strict";
|
|
877
|
-
|
|
878
866
|
Object.defineProperty(exports, "__esModule", {
|
|
879
867
|
value: true
|
|
880
868
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "authscape",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.65",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
"author": "zuechb",
|
|
11
11
|
"license": "ISC",
|
|
12
12
|
"peerDependencies": {
|
|
13
|
-
"react": "^
|
|
14
|
-
"react-dom": "^
|
|
13
|
+
"react": "^18.2.0",
|
|
14
|
+
"react-dom": "^18.2.0"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@babel/cli": "^7.1.5",
|
|
@@ -3,8 +3,7 @@ import querystring from 'querystring';
|
|
|
3
3
|
import fileDownload from 'js-file-download';
|
|
4
4
|
import cookies from 'next-cookies';
|
|
5
5
|
import { setCookie, destroyCookie } from 'nookies';
|
|
6
|
-
import
|
|
7
|
-
import helper from "./helper";
|
|
6
|
+
import helper from "helper";
|
|
8
7
|
|
|
9
8
|
const setupDefaultOptions = async (ctx = {}) => {
|
|
10
9
|
|
|
@@ -90,7 +89,7 @@ const RefreshToken = async (originalRequest, instance) => {
|
|
|
90
89
|
|
|
91
90
|
const apiService = (ctx = {}) => {
|
|
92
91
|
|
|
93
|
-
let env =
|
|
92
|
+
let env = process.env.STAGE;
|
|
94
93
|
if (env == "development")
|
|
95
94
|
{
|
|
96
95
|
process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";
|
package/src/services/BaseUri.js
DELETED