chore: send script version when ready
This commit is contained in:
Vendored
+2
-1
@@ -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
|
||||
|
||||
Vendored
+2
-2
File diff suppressed because one or more lines are too long
@@ -22,6 +22,7 @@ await esbuild.build({
|
||||
target: "es2020",
|
||||
|
||||
define: {
|
||||
__VERSION__: JSON.stringify(VERSION),
|
||||
__WS_URL__: JSON.stringify(WS_URL),
|
||||
},
|
||||
|
||||
|
||||
+1
-1
@@ -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",
|
||||
|
||||
@@ -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,
|
||||
|
||||
Vendored
+1
@@ -1,3 +1,4 @@
|
||||
declare const __VERSION__: string;
|
||||
declare const __WS_URL__: string;
|
||||
|
||||
type SendMessageOptions = {
|
||||
|
||||
Reference in New Issue
Block a user