Skip to content

Commit

Permalink
修复了tinypng官方后端接口路径修改导致不可用的问题,增加打包脚本
Browse files Browse the repository at this point in the history
  • Loading branch information
libudu committed Mar 23, 2023
1 parent 23a0c73 commit 5ed60cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const outputDir = path.join(cwd , 'output');
const options = {
method: 'POST',
hostname: 'tinypng.com',
path: '/web/shrink',
path: '/backend/opt/shrink',
headers: {
rejectUnauthorized: false,
'Postman-Token': Date.now(),
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"super-tinypng": "./index.js"
},
"scripts": {
"build": "pkg -t node14-win index.js ",
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
Expand Down

0 comments on commit 5ed60cc

Please sign in to comment.