From c2c9c2ac10a8fa7bdbe6f33fa3359e6121ff58fb Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 19 Jun 2024 02:19:29 +0000 Subject: [PATCH 1/3] chore(deps): bump the npm_and_yarn group across 1 directory with 2 updates Bumps the npm_and_yarn group with 2 updates in the / directory: [braces](https://github.com/micromatch/braces) and [ws](https://github.com/websockets/ws). Updates `braces` from 3.0.2 to 3.0.3 - [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md) - [Commits](https://github.com/micromatch/braces/compare/3.0.2...3.0.3) Updates `ws` from 8.17.0 to 8.17.1 - [Release notes](https://github.com/websockets/ws/releases) - [Commits](https://github.com/websockets/ws/compare/8.17.0...8.17.1) --- updated-dependencies: - dependency-name: braces dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: ws dependency-type: indirect dependency-group: npm_and_yarn ... Signed-off-by: dependabot[bot] --- yarn.lock | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/yarn.lock b/yarn.lock index a2258758..db1a5996 100644 --- a/yarn.lock +++ b/yarn.lock @@ -359,11 +359,11 @@ brace-expansion@^1.1.7: concat-map "0.0.1" braces@~3.0.2: - version "3.0.2" - resolved "https://registry.npmmirror.com/braces/-/braces-3.0.2.tgz#3454e1a462ee8d599e236df336cd9ea4f8afe107" - integrity sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A== + version "3.0.3" + resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.3.tgz#490332f40919452272d55a8480adc0c441358789" + integrity sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA== dependencies: - fill-range "^7.0.1" + fill-range "^7.1.1" callsites@^3.0.0: version "3.1.0" @@ -612,10 +612,10 @@ file-entry-cache@^8.0.0: dependencies: flat-cache "^4.0.0" -fill-range@^7.0.1: - version "7.0.1" - resolved "https://registry.npmmirror.com/fill-range/-/fill-range-7.0.1.tgz#1919a6a7c75fe38b2c7c77e5198535da9acdda40" - integrity sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ== +fill-range@^7.1.1: + version "7.1.1" + resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-7.1.1.tgz#44265d3cac07e3ea7dc247516380643754a05292" + integrity sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg== dependencies: to-regex-range "^5.0.1" @@ -1169,9 +1169,9 @@ wrangler@^3.0.0: fsevents "~2.3.2" ws@^8.11.0: - version "8.17.0" - resolved "https://registry.npmmirror.com/ws/-/ws-8.17.0.tgz#d145d18eca2ed25aaf791a183903f7be5e295fea" - integrity sha512-uJq6108EgZMAl20KagGkzCKfMEjxmKvZHG7Tlq0Z6nOky7YF7aq4mOx6xK8TJ/i1LeK4Qus7INktacctDgY8Ow== + version "8.17.1" + resolved "https://registry.yarnpkg.com/ws/-/ws-8.17.1.tgz#9293da530bb548febc95371d90f9c878727d919b" + integrity sha512-6XQFvXTkbfUOZOKKILFG1PDK2NDQs4azKQl26T0YS5CxqWLgXajbPZ+h4gZekJyRqFU8pvnbAbbs/3TgRPy+GQ== xxhash-wasm@^1.0.1: version "1.0.2" From 113793f50a32d7d2983ed70077d02cb68fdb81b7 Mon Sep 17 00:00:00 2001 From: Disney <4507101+discountry@users.noreply.github.com> Date: Wed, 19 Jun 2024 17:24:34 +0800 Subject: [PATCH 2/3] Update stream.js --- src/vendors/stream.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vendors/stream.js b/src/vendors/stream.js index cba57edc..c55675bb 100644 --- a/src/vendors/stream.js +++ b/src/vendors/stream.js @@ -163,7 +163,7 @@ class LineDecoder { if (typeof TextDecoder !== 'undefined') { if (bytes instanceof Uint8Array || bytes instanceof ArrayBuffer) { (_a = this.textDecoder) !== null && _a !== void 0 ? _a : (this.textDecoder = new TextDecoder('utf8')); - return this.textDecoder.decode(bytes); + return this.textDecoder.decode(bytes, { stream: true }); } throw new Error(`Unexpected: received non-Uint8Array/ArrayBuffer (${bytes.constructor.name}) in a web platform. Please report this error.`); } From bd2c707a6fe83f7a080b9206ed2668e4340ccbd5 Mon Sep 17 00:00:00 2001 From: tbxark Date: Thu, 20 Jun 2024 14:07:12 +0800 Subject: [PATCH 3/3] chore: build 1.7.0 --- dist/buildinfo.json | 2 +- dist/index.js | 6 +++--- dist/timestamp | 2 +- package.json | 6 ++---- 4 files changed, 7 insertions(+), 9 deletions(-) diff --git a/dist/buildinfo.json b/dist/buildinfo.json index 1d41c229..ad292a03 100644 --- a/dist/buildinfo.json +++ b/dist/buildinfo.json @@ -1 +1 @@ -{"sha": "90cf7c6", "timestamp": 1715873504} +{"sha": "17ebf29", "timestamp": 1718863608} diff --git a/dist/index.js b/dist/index.js index a5fc1db4..84ff2ea1 100644 --- a/dist/index.js +++ b/dist/index.js @@ -3,9 +3,9 @@ var Environment = class { // -- 版本数据 -- // // 当前版本 - BUILD_TIMESTAMP = 1715873504; + BUILD_TIMESTAMP = 1718863608; // 当前版本 commit id - BUILD_VERSION = "90cf7c6"; + BUILD_VERSION = "17ebf29"; // -- 基础配置 -- /** * @type {I18n | null} @@ -1090,7 +1090,7 @@ var LineDecoder = class { if (typeof TextDecoder !== "undefined") { if (bytes instanceof Uint8Array || bytes instanceof ArrayBuffer) { (_a = this.textDecoder) !== null && _a !== void 0 ? _a : this.textDecoder = new TextDecoder("utf8"); - return this.textDecoder.decode(bytes); + return this.textDecoder.decode(bytes, { stream: true }); } throw new Error(`Unexpected: received non-Uint8Array/ArrayBuffer (${bytes.constructor.name}) in a web platform. Please report this error.`); } diff --git a/dist/timestamp b/dist/timestamp index 579c705d..46ce2f1a 100644 --- a/dist/timestamp +++ b/dist/timestamp @@ -1 +1 @@ -1715873504 +1718863608 diff --git a/package.json b/package.json index 25a5e6ef..d721281a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "chatgpt-telegram-workers", - "version": "1.5.1", + "version": "1.7.0", "description": "最简单快捷部署属于自己的ChatGPT Telegram机器人的方法,单文件,直接复制粘贴一把梭,无需任何依赖,无需配置本地开发环境,不用域名,免服务器。", "main": "main.js", "type": "module", @@ -24,9 +24,7 @@ }, "files": [ "main.js", - "src/**/*", - "package.json", - "package-lock.json" + "src/**/*" ], "author": "TBXark", "license": "MIT",