authscape 1.0.63 → 1.0.66

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
@@ -74,9 +74,7 @@ var _nextCookies = _interopRequireDefault(require("next-cookies"));
74
74
 
75
75
  var _nookies = require("nookies");
76
76
 
77
- var _BaseUri = require("./BaseUri");
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 = (0, _BaseUri.GetEnvironment)();
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.63",
3
+ "version": "1.0.66",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -11,7 +11,8 @@
11
11
  "license": "ISC",
12
12
  "peerDependencies": {
13
13
  "react": "^18.2.0",
14
- "react-dom": "^18.2.0"
14
+ "react-dom": "^18.2.0",
15
+ "next": "^12.2.0"
15
16
  },
16
17
  "devDependencies": {
17
18
  "@babel/cli": "^7.1.5",
@@ -20,5 +21,8 @@
20
21
  "@babel/preset-react": "^7.0.0",
21
22
  "react": "^18.2.0",
22
23
  "react-dom": "^18.2.0"
24
+ },
25
+ "dependencies": {
26
+ "next": "^12.2.0"
23
27
  }
24
28
  }
@@ -3,7 +3,6 @@ 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 { GetEnvironment } from "./BaseUri";
7
6
  import helper from "./helper";
8
7
 
9
8
  const setupDefaultOptions = async (ctx = {}) => {
@@ -90,7 +89,7 @@ const RefreshToken = async (originalRequest, instance) => {
90
89
 
91
90
  const apiService = (ctx = {}) => {
92
91
 
93
- let env = GetEnvironment();
92
+ let env = process.env.STAGE;
94
93
  if (env == "development")
95
94
  {
96
95
  process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";
@@ -1,3 +0,0 @@
1
- export function GetEnvironment() {
2
- return process.env.STAGE;
3
- }