@strapi/generators 4.6.0-alpha.1 → 4.6.0-beta.1
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.
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import axios from 'axios';
|
|
6
|
-
import { auth } from '@strapi/helper-plugin';
|
|
6
|
+
import { auth, wrapAxiosInstance } from '@strapi/helper-plugin';
|
|
7
7
|
|
|
8
8
|
const instance = axios.create({
|
|
9
9
|
baseURL: process.env.STRAPI_ADMIN_BACKEND_URL,
|
|
@@ -37,4 +37,6 @@ instance.interceptors.response.use(
|
|
|
37
37
|
}
|
|
38
38
|
);
|
|
39
39
|
|
|
40
|
-
|
|
40
|
+
const wrapper = wrapAxiosInstance(instance);
|
|
41
|
+
|
|
42
|
+
export default wrapper;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import axios from 'axios';
|
|
6
|
-
import { auth } from '@strapi/helper-plugin';
|
|
6
|
+
import { auth, wrapAxiosInstance } from '@strapi/helper-plugin';
|
|
7
7
|
|
|
8
8
|
const instance = axios.create({
|
|
9
9
|
baseURL: process.env.STRAPI_ADMIN_BACKEND_URL,
|
|
@@ -37,4 +37,6 @@ instance.interceptors.response.use(
|
|
|
37
37
|
}
|
|
38
38
|
);
|
|
39
39
|
|
|
40
|
-
|
|
40
|
+
const wrapper = wrapAxiosInstance(instance);
|
|
41
|
+
|
|
42
|
+
export default wrapper;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@strapi/generators",
|
|
3
|
-
"version": "4.6.0-
|
|
3
|
+
"version": "4.6.0-beta.1",
|
|
4
4
|
"description": "Interactive API generator.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"strapi",
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"main": "lib/index.js",
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@sindresorhus/slugify": "1.1.0",
|
|
33
|
-
"@strapi/typescript-utils": "4.6.0-
|
|
34
|
-
"@strapi/utils": "4.6.0-
|
|
33
|
+
"@strapi/typescript-utils": "4.6.0-beta.1",
|
|
34
|
+
"@strapi/utils": "4.6.0-beta.1",
|
|
35
35
|
"chalk": "4.1.2",
|
|
36
36
|
"fs-extra": "10.0.0",
|
|
37
37
|
"node-plop": "0.26.3",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"node": ">=14.19.1 <=18.x.x",
|
|
43
43
|
"npm": ">=6.0.0"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "2c0bcabdf0bf2a269fed50c6f23ba777845968a0"
|
|
46
46
|
}
|