authscape 1.0.67 → 1.0.68
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 -3
- package/package.json +13 -3
- package/src/services/apiService.js +1 -1
package/index.js
CHANGED
|
@@ -74,8 +74,6 @@ var _nextCookies = _interopRequireDefault(require("next-cookies"));
|
|
|
74
74
|
|
|
75
75
|
var _nookies = require("nookies");
|
|
76
76
|
|
|
77
|
-
var _helper = _interopRequireDefault(require("./helper"));
|
|
78
|
-
|
|
79
77
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
80
78
|
|
|
81
79
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
@@ -90,6 +88,7 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try
|
|
|
90
88
|
|
|
91
89
|
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
92
90
|
|
|
91
|
+
// import Helper from "./helper";
|
|
93
92
|
var setupDefaultOptions = /*#__PURE__*/function () {
|
|
94
93
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
95
94
|
var ctx,
|
|
@@ -103,7 +102,7 @@ var setupDefaultOptions = /*#__PURE__*/function () {
|
|
|
103
102
|
ctx = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
|
104
103
|
defaultOptions = {};
|
|
105
104
|
|
|
106
|
-
if ((
|
|
105
|
+
if (Helper().isObjectEmpty(ctx)) {
|
|
107
106
|
accessToken = (0, _nextCookies["default"])(ctx).access_token || '';
|
|
108
107
|
|
|
109
108
|
if (accessToken !== null && accessToken !== undefined && accessToken != "") {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "authscape",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.68",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -10,9 +10,14 @@
|
|
|
10
10
|
"author": "zuechb",
|
|
11
11
|
"license": "ISC",
|
|
12
12
|
"peerDependencies": {
|
|
13
|
+
"next": "^12.2.0",
|
|
13
14
|
"react": "^18.2.0",
|
|
14
15
|
"react-dom": "^18.2.0",
|
|
15
|
-
"
|
|
16
|
+
"axios": "^0.27.2",
|
|
17
|
+
"js-file-download": "^0.4.12",
|
|
18
|
+
"nookies": "^2.5.2",
|
|
19
|
+
"next-cookies": "^2.0.3",
|
|
20
|
+
"querystring": "^0.2.1"
|
|
16
21
|
},
|
|
17
22
|
"devDependencies": {
|
|
18
23
|
"@babel/cli": "^7.1.5",
|
|
@@ -23,6 +28,11 @@
|
|
|
23
28
|
"react-dom": "^18.2.0"
|
|
24
29
|
},
|
|
25
30
|
"dependencies": {
|
|
26
|
-
"
|
|
31
|
+
"axios": "^0.27.2",
|
|
32
|
+
"js-file-download": "^0.4.12",
|
|
33
|
+
"next": "^12.2.0",
|
|
34
|
+
"next-cookies": "^2.0.3",
|
|
35
|
+
"nookies": "^2.5.2",
|
|
36
|
+
"querystring": "^0.2.1"
|
|
27
37
|
}
|
|
28
38
|
}
|
|
@@ -3,7 +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 Helper from "./helper";
|
|
6
|
+
// import Helper from "./helper";
|
|
7
7
|
|
|
8
8
|
const setupDefaultOptions = async (ctx = {}) => {
|
|
9
9
|
|