chore: send script version when ready

This commit is contained in:
2026-09-18 06:50:41 +08:00
parent 9792e49123
commit d9e627cc5f
6 changed files with 8 additions and 4 deletions
+2 -1
View File
@@ -2,7 +2,7 @@
// ==UserScript==
// @name WhatsApp Web Bridge
// @namespace https://rul.sh/
// @version 0.0.8
// @version 0.0.9
// @description WhatsApp Web WebSocket bridge
// @match https://web.whatsapp.com/*
// @updateURL https://git.rul.sh/khairul169/whatsapp-bridge/raw/branch/main/dist/whatsapp-bridge.user.js
@@ -342,6 +342,7 @@
type: "event",
event: "ready",
data: {
version: "0.0.9",
authenticated: WPP.conn.isAuthenticated(),
deviceId: consts.DEVICE_ID,
deviceName: consts.DEVICE_NAME
+2 -2
View File
File diff suppressed because one or more lines are too long
+1
View File
@@ -22,6 +22,7 @@ await esbuild.build({
target: "es2020",
define: {
__VERSION__: JSON.stringify(VERSION),
__WS_URL__: JSON.stringify(WS_URL),
},
+1 -1
View File
@@ -2,7 +2,7 @@
"name": "whatsapp-bridge",
"module": "index.ts",
"type": "module",
"version": "0.0.8",
"version": "0.0.9",
"private": true,
"scripts": {
"build": "bun run esbuild.mjs",
+1
View File
@@ -159,6 +159,7 @@ function connect() {
type: "event",
event: "ready",
data: {
version: __VERSION__,
authenticated: WPP.conn.isAuthenticated(),
deviceId: consts.DEVICE_ID,
deviceName: consts.DEVICE_NAME,
+1
View File
@@ -1,3 +1,4 @@
declare const __VERSION__: string;
declare const __WS_URL__: string;
type SendMessageOptions = {