chore: send script version when ready
This commit is contained in:
Vendored
+2
-1
@@ -2,7 +2,7 @@
|
|||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name WhatsApp Web Bridge
|
// @name WhatsApp Web Bridge
|
||||||
// @namespace https://rul.sh/
|
// @namespace https://rul.sh/
|
||||||
// @version 0.0.8
|
// @version 0.0.9
|
||||||
// @description WhatsApp Web WebSocket bridge
|
// @description WhatsApp Web WebSocket bridge
|
||||||
// @match https://web.whatsapp.com/*
|
// @match https://web.whatsapp.com/*
|
||||||
// @updateURL https://git.rul.sh/khairul169/whatsapp-bridge/raw/branch/main/dist/whatsapp-bridge.user.js
|
// @updateURL https://git.rul.sh/khairul169/whatsapp-bridge/raw/branch/main/dist/whatsapp-bridge.user.js
|
||||||
@@ -342,6 +342,7 @@
|
|||||||
type: "event",
|
type: "event",
|
||||||
event: "ready",
|
event: "ready",
|
||||||
data: {
|
data: {
|
||||||
|
version: "0.0.9",
|
||||||
authenticated: WPP.conn.isAuthenticated(),
|
authenticated: WPP.conn.isAuthenticated(),
|
||||||
deviceId: consts.DEVICE_ID,
|
deviceId: consts.DEVICE_ID,
|
||||||
deviceName: consts.DEVICE_NAME
|
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",
|
target: "es2020",
|
||||||
|
|
||||||
define: {
|
define: {
|
||||||
|
__VERSION__: JSON.stringify(VERSION),
|
||||||
__WS_URL__: JSON.stringify(WS_URL),
|
__WS_URL__: JSON.stringify(WS_URL),
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -2,7 +2,7 @@
|
|||||||
"name": "whatsapp-bridge",
|
"name": "whatsapp-bridge",
|
||||||
"module": "index.ts",
|
"module": "index.ts",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "0.0.8",
|
"version": "0.0.9",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "bun run esbuild.mjs",
|
"build": "bun run esbuild.mjs",
|
||||||
|
|||||||
@@ -159,6 +159,7 @@ function connect() {
|
|||||||
type: "event",
|
type: "event",
|
||||||
event: "ready",
|
event: "ready",
|
||||||
data: {
|
data: {
|
||||||
|
version: __VERSION__,
|
||||||
authenticated: WPP.conn.isAuthenticated(),
|
authenticated: WPP.conn.isAuthenticated(),
|
||||||
deviceId: consts.DEVICE_ID,
|
deviceId: consts.DEVICE_ID,
|
||||||
deviceName: consts.DEVICE_NAME,
|
deviceName: consts.DEVICE_NAME,
|
||||||
|
|||||||
Vendored
+1
@@ -1,3 +1,4 @@
|
|||||||
|
declare const __VERSION__: string;
|
||||||
declare const __WS_URL__: string;
|
declare const __WS_URL__: string;
|
||||||
|
|
||||||
type SendMessageOptions = {
|
type SendMessageOptions = {
|
||||||
|
|||||||
Reference in New Issue
Block a user