Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@wubafe/picasso

Package Overview
Dependencies
Maintainers
5
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wubafe/picasso - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

2

package.json
{
"name": "@wubafe/picasso",
"version": "0.0.7",
"version": "0.0.8",
"description": "sketch设计稿智能解析工具",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -8,3 +8,2 @@

const parseSymbol = require("./parseSymbol");
const { handleMeta } = require("../../../common/sketchTools");
const calculateCoordinate = require("./calculateCoordinate");

@@ -115,4 +114,3 @@ const calculateHiddenLayer = require("./calculateHiddenLayer");

}
//获取版本信息
let { appVersion, fonts } = handleMeta(sketchId, artboardIndex);
return {

@@ -122,4 +120,4 @@ data,

size,
appVersion,
fonts,
appVersion: '',
fonts: '',
isMongolian: false,

@@ -126,0 +124,0 @@ errorObj

@@ -104,2 +104,3 @@ const fs = require('fs');

process.exec(sketchtoolString, { maxBuffer: 20000*1024 }, (error,stdout,stderr) => {
console.log(stderr);
if (error!==null) {

@@ -240,2 +241,3 @@ reject(error);

}) => artboardName);
artboardsList = artboardsList.map((item,index)=> ({...item, artboardIndex: index+1}));
let resultList = [];

@@ -251,5 +253,5 @@

} = artboardsList[i];
console.log(`---第${i + 1}张画板解析-开始---`);
artboardIndex = i + 1;
process.execSync(`cp -r ${cliSketchParseResultPath}/${sketchId}_info ${cliSketchParseResultPath}/${sketchId}_${artboardIndex}`);
console.log(`---第${artboardIndex}张画板解析-开始---`);
await processAsync(`cp -r ${cliSketchParseResultPath}/${sketchId}_info ${cliSketchParseResultPath}/${sketchId}_${artboardIndex}`);
let errorObj = {};

@@ -277,3 +279,3 @@ let item = await artboardParse(sketchId, sketchName, artboardIndex, artboardName, errorObj, uuid,{

resultList.push(item);
console.log(`---第${i + 1}张画板解析-结束---`);
console.log(`---第${artboardIndex}张画板解析-结束---`);
}

@@ -280,0 +282,0 @@ // 删除多余文件

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc