Commit 2339e01d authored by 张九刚's avatar 张九刚

修改json返回

parent f6991f50
{
"name": "psd-parse-web",
"version": "1.0.2",
"version": "1.0.3",
"main": "src/index.js",
"module": "dist/index.es.js",
"license": "MIT",
......
......@@ -270,9 +270,9 @@ async function execute(psdFile, options = {}) {
assets,
view: viewRoot,
};
return data;
let dataString = JSON.stringify(data);
/* let dataString = JSON.stringify(data);
let buf = new Buffer(dataString);
return await new Promise((resolve, reject) => {
zlib.gzip(buf, function (err, res) {
......@@ -283,7 +283,7 @@ async function execute(psdFile, options = {}) {
resolve(res);
}
});
})
}) */
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment