iota-gateway
Advanced tools
Comparing version 0.1.0 to 0.1.1
export declare abstract class Neighbor { | ||
readonly abstract address: string; | ||
readonly gatewayCanSend: boolean; | ||
readonly gatewayCanReceive: boolean; | ||
readonly gatewayCanSendTo: boolean; | ||
readonly gatewayCanReceiveFrom: boolean; | ||
match(address: string): boolean; | ||
} |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
class Neighbor { | ||
get gatewayCanSend() { | ||
get gatewayCanSendTo() { | ||
return true; | ||
} | ||
get gatewayCanReceive() { | ||
get gatewayCanReceiveFrom() { | ||
return true; | ||
@@ -9,0 +9,0 @@ } |
{ | ||
"name": "iota-gateway", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Network gateway for IOTA", | ||
@@ -31,3 +31,2 @@ "main": "./dist/index.js", | ||
"dependencies": { | ||
"block-stream": "0.0.9", | ||
"iota-tangle": "0.0.6" | ||
@@ -34,0 +33,0 @@ }, |
@@ -117,4 +117,5 @@ import { Transaction, Hash } from 'iota-tangle' | ||
const onTransportReceive = (data: Data, neighbor: Neighbor) => this.emit('receive', data, neighbor.address) | ||
const onTransportError = (error: any) => this.emit('error', error) | ||
const onTransportError = (error: any) => this.emit('error', error) | ||
for (const transport of this._transports) { | ||
@@ -121,0 +122,0 @@ transport.on('receive', onTransportReceive) |
export abstract class Neighbor { | ||
abstract get address(): string | ||
get gatewayCanSend(): boolean { | ||
get gatewayCanSendTo(): boolean { | ||
return true | ||
} | ||
get gatewayCanReceive(): boolean { | ||
get gatewayCanReceiveFrom(): boolean { | ||
return true | ||
@@ -10,0 +10,0 @@ } |
@@ -372,3 +372,2 @@ import { expect, use }from 'chai' | ||
expect(transports[1].addNeighbor).to.have.been.calledWith(neighbor) | ||
}) | ||
@@ -375,0 +374,0 @@ |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
1
2
55160
- Removedblock-stream@0.0.9
- Removedblock-stream@0.0.9(transitive)
- Removedinherits@2.0.4(transitive)