Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

iota-gateway

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

iota-gateway - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

4

dist/neighbor.d.ts
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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc