Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tiny-image
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
劳工
tiny-image
Commits
56636c7f
Commit
56636c7f
authored
Feb 07, 2022
by
rockyl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xxx
parent
cc25fb6c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
index.ts
src/index.ts
+2
-1
No files found.
src/index.ts
View file @
56636c7f
...
@@ -46,9 +46,10 @@ export async function compress(bufferOrFile: Buffer | string) {
...
@@ -46,9 +46,10 @@ export async function compress(bufferOrFile: Buffer | string) {
try
{
try
{
json
=
JSON
.
parse
(
str
);
json
=
JSON
.
parse
(
str
);
}
catch
(
e
)
{
}
catch
(
e
)
{
console
.
log
(
str
)
console
.
log
(
e
);
console
.
log
(
e
);
}
}
reject
(
json
.
msg
);
reject
(
json
?
.
msg
);
}
}
});
});
res
.
on
(
'abort'
,
()
=>
{
res
.
on
(
'abort'
,
()
=>
{
...
...
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