Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
psd-parse-web
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
劳工
psd-parse-web
Commits
21a0f975
Commit
21a0f975
authored
Nov 19, 2020
by
张九刚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改buffer格式
parent
2339e01d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
zeroing.js
src/zeroing.js
+3
-4
No files found.
src/zeroing.js
View file @
21a0f975
...
...
@@ -270,10 +270,9 @@ async function execute(psdFile, options = {}) {
assets
,
view
:
viewRoot
,
};
return
data
;
/*
let dataString = JSON.stringify(data);
let buf = new Buffer(dataString);
let
dataString
=
JSON
.
stringify
(
data
);
let
buf
=
new
Buffer
.
from
(
dataString
);
return
await
new
Promise
((
resolve
,
reject
)
=>
{
zlib
.
gzip
(
buf
,
function
(
err
,
res
)
{
if
(
err
)
{
...
...
@@ -283,7 +282,7 @@ async function execute(psdFile, options = {}) {
resolve
(
res
);
}
});
})
*/
})
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment