@strapi/plugin-documentation 5.5.0 → 5.5.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.
@@ -74,7 +74,9 @@ async function bootstrap({ strapi: strapi2 }) {
74
74
  if (!config2) {
75
75
  pluginStore.set({ key: "config", value: { restrictedAccess: false } });
76
76
  }
77
- await getService("documentation").generateFullDoc();
77
+ if (process.env.NODE_ENV !== "production") {
78
+ await getService("documentation").generateFullDoc();
79
+ }
78
80
  }
79
81
  const addDocumentMiddlewares = async ({ strapi: strapi2 }) => {
80
82
  strapi2.server.routes([
@@ -48,7 +48,9 @@ async function bootstrap({ strapi: strapi2 }) {
48
48
  if (!config2) {
49
49
  pluginStore.set({ key: "config", value: { restrictedAccess: false } });
50
50
  }
51
- await getService("documentation").generateFullDoc();
51
+ if (process.env.NODE_ENV !== "production") {
52
+ await getService("documentation").generateFullDoc();
53
+ }
52
54
  }
53
55
  const addDocumentMiddlewares = async ({ strapi: strapi2 }) => {
54
56
  strapi2.server.routes([
@@ -1 +1 @@
1
- {"version":3,"file":"bootstrap.d.ts","sourceRoot":"","sources":["../../../server/src/bootstrap.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAiC1C,wBAAsB,SAAS,CAAC,EAAE,MAAM,EAAE,EAAE;IAAE,MAAM,EAAE,IAAI,CAAC,MAAM,CAAA;CAAE,iBAgBlE"}
1
+ {"version":3,"file":"bootstrap.d.ts","sourceRoot":"","sources":["../../../server/src/bootstrap.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAiC1C,wBAAsB,SAAS,CAAC,EAAE,MAAM,EAAE,EAAE;IAAE,MAAM,EAAE,IAAI,CAAC,MAAM,CAAA;CAAE,iBAiBlE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strapi/plugin-documentation",
3
- "version": "5.5.0",
3
+ "version": "5.5.1",
4
4
  "description": "Create an OpenAPI Document and visualize your API with SWAGGER UI.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -55,10 +55,10 @@
55
55
  },
56
56
  "dependencies": {
57
57
  "@reduxjs/toolkit": "1.9.7",
58
- "@strapi/admin": "5.5.0",
58
+ "@strapi/admin": "5.5.1",
59
59
  "@strapi/design-system": "2.0.0-rc.14",
60
60
  "@strapi/icons": "2.0.0-rc.14",
61
- "@strapi/utils": "5.5.0",
61
+ "@strapi/utils": "5.5.1",
62
62
  "bcryptjs": "2.4.3",
63
63
  "cheerio": "^1.0.0",
64
64
  "formik": "2.4.5",
@@ -74,11 +74,11 @@
74
74
  },
75
75
  "devDependencies": {
76
76
  "@apidevtools/swagger-parser": "^10.1.0",
77
- "@strapi/admin-test-utils": "5.5.0",
77
+ "@strapi/admin-test-utils": "5.5.1",
78
78
  "@strapi/pack-up": "5.0.2",
79
79
  "@strapi/sdk-plugin": "^5.2.0",
80
- "@strapi/strapi": "5.5.0",
81
- "@strapi/types": "5.5.0",
80
+ "@strapi/strapi": "5.5.1",
81
+ "@strapi/types": "5.5.1",
82
82
  "@testing-library/react": "15.0.7",
83
83
  "@testing-library/user-event": "14.5.2",
84
84
  "@types/fs-extra": "11.0.4",
@@ -111,6 +111,5 @@
111
111
  "name": "documentation",
112
112
  "description": "Create an OpenAPI Document and visualize your API with SWAGGER UI.",
113
113
  "kind": "plugin"
114
- },
115
- "gitHead": "7d785703f52464577d077c4618cbe68b44f8a9cd"
114
+ }
116
115
  }