js-broadcast-channel 1.3.3 → 1.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
#
|
|
1
|
+
# js-broadcast-channel
|
|
2
2
|
|
|
3
3
|
A lightweight TypeScript library for cross-tab communication using the BroadcastChannel API. This package provides a simple interface for sending and receiving messages between different browser tabs or windows.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
|
-
npm install
|
|
7
|
+
npm install js-broadcast-channel
|
|
8
8
|
|
|
9
9
|
## Features
|
|
10
10
|
|
|
@@ -20,7 +20,7 @@ npm install broadcaster-channel
|
|
|
20
20
|
### Basic Usage
|
|
21
21
|
|
|
22
22
|
```typescript
|
|
23
|
-
import { BroadcastJS } from '
|
|
23
|
+
import { BroadcastJS } from 'js-broadcast-channel';
|
|
24
24
|
// Initialize BroadcastJS with a channel name
|
|
25
25
|
const broadcast = new BroadcastJS('my-channel');
|
|
26
26
|
// Send a message
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "js-broadcast-channel",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.5",
|
|
4
4
|
"description": "Broadcast-js",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"build": "tsup src/index.ts --dts --format
|
|
9
|
-
"dev": "tsup src/index.ts --dts --format
|
|
8
|
+
"build": "tsup src/index.ts --dts --format esm",
|
|
9
|
+
"dev": "tsup src/index.ts --dts --format esm --watch",
|
|
10
10
|
"test": "jest",
|
|
11
11
|
"prepare": "npm run build"
|
|
12
12
|
},
|