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

修改json返回

parent f6991f50
{ {
"name": "psd-parse-web", "name": "psd-parse-web",
"version": "1.0.2", "version": "1.0.3",
"main": "src/index.js", "main": "src/index.js",
"module": "dist/index.es.js", "module": "dist/index.es.js",
"license": "MIT", "license": "MIT",
......
...@@ -270,9 +270,9 @@ async function execute(psdFile, options = {}) { ...@@ -270,9 +270,9 @@ async function execute(psdFile, options = {}) {
assets, assets,
view: viewRoot, view: viewRoot,
}; };
return data;
let dataString = JSON.stringify(data); /* let dataString = JSON.stringify(data);
let buf = new Buffer(dataString); let buf = new Buffer(dataString);
return await new Promise((resolve, reject) => { return await new Promise((resolve, reject) => {
zlib.gzip(buf, function (err, res) { zlib.gzip(buf, function (err, res) {
...@@ -283,7 +283,7 @@ async function execute(psdFile, options = {}) { ...@@ -283,7 +283,7 @@ async function execute(psdFile, options = {}) {
resolve(res); 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