bespoke-sync
Advanced tools
Comparing version 0.1.2 to 0.2.0
@@ -6,6 +6,8 @@ 'use strict'; | ||
module.exports = function (deck/*, options*/) { | ||
module.exports = function (/*options*/) { | ||
var options = Object(arguments[1]); | ||
sse(deck, options); | ||
xhr(deck, options); | ||
return function (deck) { | ||
sse(deck, options); | ||
xhr(deck, options); | ||
}; | ||
}; |
{ | ||
"name": "bespoke-sync", | ||
"version": "0.1.2", | ||
"version": "0.2.0", | ||
"description": "Cross-client synchronization for Bespoke.js presentations", | ||
@@ -18,9 +18,9 @@ "author": "Mariusz Nowak <medyk@medikoo.com> (http://www.medikoo.com/)", | ||
"dependencies": { | ||
"es5-ext": "~0.10.2", | ||
"es5-ext": "~0.10.4", | ||
"querystring": "0.2.x" | ||
}, | ||
"peerDependencies": { | ||
"bespoke": "0.4.x" | ||
"bespoke": "1" | ||
}, | ||
"license": "MIT" | ||
} |
@@ -38,12 +38,12 @@ # bespoke-sync | ||
```javascript | ||
bespoke.plugins.sync = require('bespoke-sync/client'); | ||
var sync = require('bespoke-sync/client'); | ||
bespoke.from(selector, { | ||
bespoke.from(selector, [ | ||
// Options (all optional, with defaults as below) | ||
sync: { | ||
sync({ | ||
log: false, | ||
ssePath: '/sse-slides/', // Must match ssePath in server conf | ||
xhrPath: '/slide/' // Must match xhrPath in server conf | ||
} | ||
}); | ||
}) | ||
]); | ||
``` | ||
@@ -50,0 +50,0 @@ |
Sorry, the diff of this file is not supported yet
191190
127
+ Addedbespoke@1.1.0(transitive)
- Removedbespoke@0.4.0(transitive)
Updatedes5-ext@~0.10.4