2dfire-cli
Advanced tools
+1
-1
@@ -60,3 +60,3 @@ /* | ||
| if (existInSrcButNotPage('base')) { | ||
| fs.copySync(join(__src, 'base'), __base) | ||
| // fs.copySync(join(__src, 'base'), __base) | ||
| } else { | ||
@@ -63,0 +63,0 @@ fs.copySync(join(__dirname, '../example/static/__BASE__'), __base) |
+1
-1
| { | ||
| "name": "2dfire-cli", | ||
| "version": "1.9.3", | ||
| "version": "1.9.5", | ||
| "description": "cli", | ||
@@ -5,0 +5,0 @@ "author": "danfan", |
+15
-13
@@ -17,6 +17,7 @@ const fs = require('fs-extra') | ||
| exports.setFireConfig = function(name) { | ||
| if (!fs.pathExistsSync(__fireConfig)) { | ||
| fs.writeFileSync( | ||
| __fireConfig, | ||
| ` | ||
| if (exports.isFireProject()) { | ||
| if (!fs.pathExistsSync(__fireConfig)) { | ||
| fs.writeFileSync( | ||
| __fireConfig, | ||
| ` | ||
| module.exports = { | ||
@@ -26,12 +27,13 @@ page: ['${name}'] | ||
| `.trim() | ||
| ) | ||
| } else { | ||
| const res = fs.readFileSync(__fireConfig, 'utf8') | ||
| fs.writeFileSync( | ||
| __fireConfig, | ||
| res.replace( | ||
| /page\s*:\s*((\[(.+?)\])|('(.+?)')|("(.+?)"))\s*,?/g, | ||
| `page:['${name}'],` | ||
| ) | ||
| ) | ||
| } else { | ||
| const res = fs.readFileSync(__fireConfig, 'utf8') | ||
| fs.writeFileSync( | ||
| __fireConfig, | ||
| res.replace( | ||
| /page\s*:\s*((\[(.+?)\])|('(.+?)')|("(.+?)"))\s*,?/g, | ||
| `page:['${name}'],` | ||
| ) | ||
| ) | ||
| } | ||
| } | ||
@@ -38,0 +40,0 @@ } |
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
38122
0.21%740
0.27%