@dittolive/ditto
Advanced tools
Comparing version 0.0.1-alpha.9 to 0.0.1-alpha.10
{ | ||
"name": "@dittolive/ditto", | ||
"version": "0.0.1-alpha.9", | ||
"version": "0.0.1-alpha.10", | ||
"description": "Ditto let's you sync wothout the internet.'", | ||
@@ -14,3 +14,3 @@ "homepage": "https://ditto.live", | ||
"main": "node/ditto.js", | ||
"main": "node/ditto.cjs.js", | ||
"browser": "web/ditto.es6.js", | ||
@@ -17,0 +17,0 @@ "browser/umd": "web/ditto.umd.js", |
@@ -172,2 +172,11 @@ declare module "common" { | ||
/** | ||
* A configuration object specifying which network transports Ditto should use to sync data. | ||
* | ||
* For each websocket server that Ditto should connect to, add a string of the form "wss://…" to the websocketUrls | ||
* array, provide it to the `Ditto` object with `setTransportConfig()`, then call `startSync()`. | ||
*/ | ||
export interface TransportConfig { | ||
websocketUrls: string[]; | ||
} | ||
/** | ||
* TODO: document. | ||
@@ -179,3 +188,3 @@ */ | ||
setAccessLicense(accessLicense: string): void; | ||
connectToWebsocketServer(address: string): void; | ||
setTransportConfig(value: TransportConfig): void; | ||
/** | ||
@@ -190,10 +199,1 @@ * @deprecated use constructor form `await new Ditto(...)` instead. See | ||
} | ||
declare module "wasm" { | ||
import { DittoCounter, DittoValue } from './@ditto.wasm.js'; | ||
export { DittoCounter as Counter, DittoValue as Value }; | ||
} | ||
declare module "@dittolive/ditto" { | ||
export * from "common"; | ||
export * from "wasm"; | ||
export { Ditto as default } from "common"; | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
107105146
11
6026
4