cocos2d-cli
Advanced tools
+1
-1
| { | ||
| "name": "cocos2d-cli", | ||
| "version": "1.6.3", | ||
| "version": "1.6.4", | ||
| "description": "Command-line tools for AI to read and manipulate Cocos Creator 2.4.x project scenes", | ||
@@ -5,0 +5,0 @@ "main": "bin/cocos2d-cli.js", |
@@ -92,9 +92,14 @@ /** | ||
| try { | ||
| await takeScreenshot(options); | ||
| console.log('成功'); | ||
| const result = await takeScreenshot(options); | ||
| const filename = path.basename(result.screenshotPath); | ||
| console.log(JSON.stringify({ | ||
| success: true, | ||
| filename: filename | ||
| })); | ||
| } catch (error) { | ||
| console.error('失败'); | ||
| if (error.logDir) { | ||
| console.error(`日志目录: ${error.logDir}`); | ||
| } | ||
| console.log(JSON.stringify({ | ||
| success: false, | ||
| error: error.message, | ||
| logDir: error.logDir || null | ||
| })); | ||
| process.exit(1); | ||
@@ -101,0 +106,0 @@ } |
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
584052
0.03%4193
0.12%