@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
- export default instance;
40
+ const wrapper = wrapAxiosInstance(instance);
41
+
42
+ export default wrapper;
@@ -5,7 +5,7 @@
5
5
  */
6
6
 
7
7
  import React from 'react';
8
- import Puzzle from '@strapi/icons/Puzzle';
8
+ import { Puzzle } from '@strapi/icons';
9
9
 
10
10
  const PluginIcon: React.VoidFunctionComponent = () => <Puzzle />;
11
11
 
@@ -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
- export default instance;
40
+ const wrapper = wrapAxiosInstance(instance);
41
+
42
+ export default wrapper;
@@ -7,7 +7,9 @@
7
7
  "description": "Description of {{ pluginName }} plugin",
8
8
  "kind": "plugin"
9
9
  },
10
- "dependencies": {},
10
+ "dependencies": {
11
+ "@strapi/icons": "^1.3.1"
12
+ },
11
13
  "devDependencies": {
12
14
  "typescript": "4.6.3"
13
15
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strapi/generators",
3
- "version": "4.6.0-alpha.1",
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-alpha.1",
34
- "@strapi/utils": "4.6.0-alpha.1",
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": "9171c48104548f5f6da21abf2a8098009f1a40e9"
45
+ "gitHead": "2c0bcabdf0bf2a269fed50c6f23ba777845968a0"
46
46
  }