Skip to content

Commit 09ba156

Browse files
committed
version 1.11.0
1 parent 788c930 commit 09ba156

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<img src="https://github.com/jcubic/sysend.js/blob/master/assets/logo.svg?raw=true" alt="Sysend.js logo"/>
33
</p>
44

5-
[![npm](https://img.shields.io/badge/npm-1.10.0-blue.svg)](https://www.npmjs.com/package/sysend)
6-
![bower](https://img.shields.io/badge/bower-1.10.0-yellow.svg)
5+
[![npm](https://img.shields.io/badge/npm-1.11.0-blue.svg)](https://www.npmjs.com/package/sysend)
6+
![bower](https://img.shields.io/badge/bower-1.11.0-yellow.svg)
77
![downloads](https://img.shields.io/npm/dt/sysend.svg)
88
[![jsdelivr](https://img.shields.io/jsdelivr/npm/hm/sysend)](https://www.jsdelivr.com/package/npm/sysend)
99

@@ -114,7 +114,7 @@ sysend object:
114114
| `on(name, callback)` | add event handler for specified name | name - `string` - The name of the event<br>callback - function `(object, name) => void` | 1.0.0 |
115115
| `off(name [, callback])` | remove event handler for given name, if callback is not specified it will remove all callbacks for given name | name - `string` - The name of the event<br>callback - optional function `(object, name) => void` | 1.0.0 |
116116
| `broadcast(name [, object])` | send any object and fire all events with specified name (in different pages that register callback using on). You can also just send notification without an object | name - string - The name of the event<br>object - optional any data | 1.0.0 |
117-
| `proxy(url)` | create iframe proxy for different domain, the target domain/URL should have [proxy.html](https://github.com/jcubic/sysend.js/blob/master/proxy.html)<br> file. If url domain is the same as page domain, it's ignored. So you can put both proxy calls on both | url - string | 1.3.0 |
117+
| `proxy(<urls>)` | create iframe proxy for different domain, the target domain/URL should have [proxy.html](https://github.com/jcubic/sysend.js/blob/master/proxy.html)<br> file. If url domain is the same as page domain, it's ignored. So you can put both proxy calls on both | url - string | 1.3.0 |
118118
| `serializer(to_string, from_string)` | add serializer and deserializer functions | both arguments are functions (data: any) => string | 1.4.0 |
119119
| `emit(name, [, object])` | same as `broadcast()` but also invoke the even on same page | name - string - The name of the event<br>object - optional any data | 1.5.0 |
120120
| `post(<window_id>, [, object])` | send any data to other window | window_id - string of the target window<br>object - any data | 1.6.0 |

sysend.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**@license
2-
* sysend.js - send messages between browser windows/tabs version 1.10.0
2+
* sysend.js - send messages between browser windows/tabs version 1.11.0
33
*
44
* Copyright (C) 2014-2022 Jakub T. Jankiewicz <https://jcubic.pl/me>
55
* Released under the MIT license
@@ -13,7 +13,7 @@ interface Sysend {
1313
emit(event: string, data?: any): void;
1414
on(event: string, callback: callback): void;
1515
off(event: string, callback?: callback): void;
16-
proxy(url: string): void;
16+
proxy(args?: string[]): void;
1717
serializer(to: (data: any) => string, from: (data: string) => any): void;
1818
track(event: 'open', callback: (data: {id: string, count: number, primary: boolean}) => void): void;
1919
track(event: 'close', callback: (data: {id: string, count: number, primary: boolean, self: boolean}) => void): void;

sysend.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**@license
2-
* sysend.js - send messages between browser windows/tabs version 1.10.0
2+
* sysend.js - send messages between browser windows/tabs version 1.11.0
33
*
44
* Copyright (C) 2014-2022 Jakub T. Jankiewicz <https://jcubic.pl/me>
55
* Released under the MIT license

0 commit comments

Comments
 (0)