strapi-plugin-documentation
Advanced tools
Comparing version 3.0.0-next.1 to 3.0.0-next.2
@@ -13,3 +13,3 @@ 'use strict'; | ||
// Public dependencies. | ||
const fs = require('fs'); | ||
const fs = require('fs-extra'); | ||
const cheerio = require('cheerio'); | ||
@@ -83,4 +83,4 @@ const _ = require('lodash'); | ||
const layoutPath = path.resolve(strapi.config.appPath, 'extensions', 'documentation', 'public', 'index.html'); | ||
await strapi.fs.ensureFile(layoutPath); | ||
await strapi.fs.writeFile(layoutPath, $.html()); | ||
await fs.ensureFile(layoutPath); | ||
await fs.writeFile(layoutPath, $.html()); | ||
@@ -119,4 +119,4 @@ // Serve the file. | ||
const layoutPath = path.resolve(strapi.config.appPath, 'extensions', 'documentation', 'public', 'login.html'); | ||
await strapi.fs.ensureFile(layoutPath); | ||
await strapi.fs.writeFile(layoutPath, $.html()); | ||
await fs.ensureFile(layoutPath); | ||
await fs.writeFile(layoutPath, $.html()); | ||
@@ -123,0 +123,0 @@ ctx.url = path.basename(`${ctx.url}/login.html`); |
{ | ||
"name": "strapi-plugin-documentation", | ||
"version": "3.0.0-next.1", | ||
"version": "3.0.0-next.2", | ||
"description": "This is the description of the plugin.", | ||
@@ -16,2 +16,3 @@ "strapi": { | ||
"classnames": "^2.2.6", | ||
"fs-extra": "^7.0.0", | ||
"immutable": "^3.8.2", | ||
@@ -35,3 +36,3 @@ "invariant": "^2.2.1", | ||
"reselect": "^3.0.1", | ||
"strapi-helper-plugin": "3.0.0-next.1", | ||
"strapi-helper-plugin": "3.0.0-next.2", | ||
"swagger-ui-dist": "3.22.1" | ||
@@ -77,3 +78,3 @@ }, | ||
"license": "MIT", | ||
"gitHead": "6134168532fb4301a83a0f514275e1651375e615" | ||
"gitHead": "ef584afae3550de3d96d04f9e59d68949ca8e95d" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
171706
2268
23
+ Addedfs-extra@^7.0.0
+ Addedfs-extra@7.0.1(transitive)
+ Addedgraceful-fs@4.2.11(transitive)
+ Addedjsonfile@4.0.0(transitive)
+ Addedstrapi-helper-plugin@3.0.0-next.2(transitive)
+ Addeduniversalify@0.1.2(transitive)
- Removedstrapi-helper-plugin@3.0.0-next.1(transitive)