From 5ed60cc507e558d0ea8f8adf12266dfed953c0db Mon Sep 17 00:00:00 2001 From: libudu <823446473@qq.com> Date: Thu, 23 Mar 2023 13:42:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86tinypng=E5=AE=98?= =?UTF-8?q?=E6=96=B9=E5=90=8E=E7=AB=AF=E6=8E=A5=E5=8F=A3=E8=B7=AF=E5=BE=84?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AF=BC=E8=87=B4=E4=B8=8D=E5=8F=AF=E7=94=A8?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98=EF=BC=8C=E5=A2=9E=E5=8A=A0=E6=89=93?= =?UTF-8?q?=E5=8C=85=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.js | 2 +- package.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index ac06e83..f9697c3 100644 --- a/index.js +++ b/index.js @@ -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(), diff --git a/package.json b/package.json index 0b89090..8c39847 100644 --- a/package.json +++ b/package.json @@ -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": {