@xyo-network/p2p
Advanced tools
Comparing version 0.17.3 to 0.18.0
@@ -40,2 +40,3 @@ /// <reference types="node" /> | ||
subscribe(topic: string, cb: (senderPublicKey: string, message: Buffer) => void): unsubscribeFn; | ||
startDiscovering(): Promise<undefined>; | ||
} | ||
@@ -42,0 +43,0 @@ export interface IXyoPeer { |
@@ -1,2 +0,1 @@ | ||
import "./multiaddr"; | ||
export { IXyoP2PService, IXyoPeer, unsubscribeFn, IXyoPeerDiscoveryService } from './@types'; | ||
@@ -3,0 +2,0 @@ export { XyoPeerTransport } from './xyo-peer-transport'; |
@@ -8,3 +8,3 @@ "use strict"; | ||
* @Last modified by: ryanxyo | ||
* @Last modified time: Monday, 28th January 2019 3:48:55 pm | ||
* @Last modified time: Tuesday, 29th January 2019 10:45:53 am | ||
* @License: All Rights Reserved | ||
@@ -14,3 +14,2 @@ * @Copyright: Copyright XY | The Findables Company | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
require("./multiaddr"); | ||
var xyo_peer_transport_1 = require("./xyo-peer-transport"); | ||
@@ -17,0 +16,0 @@ exports.XyoPeerTransport = xyo_peer_transport_1.XyoPeerTransport; |
@@ -13,4 +13,5 @@ /// <reference types="node" /> | ||
subscribe(topic: string, cb: Callback): unsubscribeFn; | ||
startDiscovering(): Promise<undefined>; | ||
} | ||
export {}; | ||
//# sourceMappingURL=xyo-p2p-service.d.ts.map |
@@ -35,4 +35,7 @@ "use strict"; | ||
} | ||
startDiscovering() { | ||
return this.discoveryService.start(); | ||
} | ||
} | ||
exports.XyoP2PService = XyoP2PService; | ||
//# sourceMappingURL=xyo-p2p-service.js.map |
@@ -0,1 +1,2 @@ | ||
/// <reference path="../src/@types/multiaddr.d.ts" /> | ||
/// <reference types="node" /> | ||
@@ -2,0 +3,0 @@ import { IXyoPeerConnection, Callback } from './@types'; |
@@ -6,5 +6,7 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
// tslint:disable-next-line:no-reference | ||
/// <reference path="./@types/multiaddr.d.ts" /> | ||
const multiaddr_1 = __importDefault(require("multiaddr")); | ||
const xyo_pub_sub_1 = require("./xyo-pub-sub"); | ||
const xyo_topic_buffer_1 = require("./xyo-topic-buffer"); | ||
const multiaddr_1 = __importDefault(require("multiaddr")); | ||
class XyoPeerConnection { | ||
@@ -11,0 +13,0 @@ constructor(connection) { |
@@ -0,1 +1,2 @@ | ||
/// <reference path="../src/@types/multiaddr.d.ts" /> | ||
/// <reference types="node" /> | ||
@@ -2,0 +3,0 @@ import { IXyoPeerTransport, IXyoPeerConnection } from './@types'; |
@@ -6,5 +6,7 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
// tslint:disable-next-line:no-reference | ||
/// <reference path="./@types/multiaddr.d.ts" /> | ||
const multiaddr_1 = __importDefault(require("multiaddr")); | ||
const xyo_pub_sub_1 = require("./xyo-pub-sub"); | ||
const xyo_peer_connection_1 = require("./xyo-peer-connection"); | ||
const multiaddr_1 = __importDefault(require("multiaddr")); | ||
const net_1 = __importDefault(require("net")); | ||
@@ -11,0 +13,0 @@ class XyoPeerTransport { |
{ | ||
"name": "@xyo-network/p2p", | ||
"version": "0.17.3", | ||
"version": "0.18.0", | ||
"description": "A peer to peer network module", | ||
@@ -10,3 +10,3 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@xyo-network/base": "^0.17.1", | ||
"@xyo-network/base": "^0.18.0", | ||
"multiaddr": "^6.0.3" | ||
@@ -23,3 +23,3 @@ }, | ||
}, | ||
"gitHead": "e2889f2c65301c3be120b88f8aa12a3330f3c262" | ||
"gitHead": "d6512e001722b5a34c11d1eac4ce22bdc75649b2" | ||
} |
@@ -9,3 +9,3 @@ import { Server } from "net" | ||
* @Last modified by: ryanxyo | ||
* @Last modified time: Monday, 28th January 2019 2:03:51 pm | ||
* @Last modified time: Tuesday, 29th January 2019 11:09:37 am | ||
* @License: All Rights Reserved | ||
@@ -56,3 +56,6 @@ * @Copyright: Copyright XY | The Findables Company | ||
subscribe(topic: string, cb: (senderPublicKey: string, message: Buffer) => void): unsubscribeFn | ||
startDiscovering(): Promise<undefined> | ||
} | ||
export interface IXyoPeer { | ||
@@ -76,2 +79,3 @@ | ||
} | ||
export interface IXyoPeerTransport { | ||
@@ -78,0 +82,0 @@ /** |
@@ -7,3 +7,3 @@ /* | ||
* @Last modified by: ryanxyo | ||
* @Last modified time: Monday, 28th January 2019 3:48:55 pm | ||
* @Last modified time: Tuesday, 29th January 2019 10:45:53 am | ||
* @License: All Rights Reserved | ||
@@ -13,3 +13,2 @@ * @Copyright: Copyright XY | The Findables Company | ||
import "./multiaddr" | ||
export { IXyoP2PService, IXyoPeer, unsubscribeFn, IXyoPeerDiscoveryService } from './@types' | ||
@@ -16,0 +15,0 @@ export { XyoPeerTransport } from './xyo-peer-transport' |
@@ -46,2 +46,6 @@ import { IXyoP2PService, unsubscribeFn, IXyoPeerDiscoveryService } from './@types' | ||
} | ||
public startDiscovering() { | ||
return this.discoveryService.start() | ||
} | ||
} |
@@ -0,1 +1,4 @@ | ||
// tslint:disable-next-line:no-reference | ||
/// <reference path="./@types/multiaddr.d.ts" /> | ||
import multiaddr from 'multiaddr' | ||
import { IXyoPeerConnection, Callback } from './@types' | ||
@@ -5,3 +8,2 @@ import { XyoPubSub } from './xyo-pub-sub' | ||
import { Socket } from 'net' | ||
import multiaddr from 'multiaddr' | ||
@@ -8,0 +10,0 @@ export class XyoPeerConnection implements IXyoPeerConnection { |
@@ -0,5 +1,7 @@ | ||
// tslint:disable-next-line:no-reference | ||
/// <reference path="./@types/multiaddr.d.ts" /> | ||
import multiaddr from 'multiaddr' | ||
import { IXyoPeerTransport, IXyoPeerConnection } from './@types' | ||
import { XyoPubSub } from './xyo-pub-sub' | ||
import { XyoPeerConnection } from './xyo-peer-connection' | ||
import multiaddr from 'multiaddr' | ||
import net, { Server } from 'net' | ||
@@ -6,0 +8,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
81868
1560
50
+ Added@xyo-network/base@0.18.0(transitive)
- Removed@xyo-network/base@0.17.1(transitive)
Updated@xyo-network/base@^0.18.0