@ndn/node-transport
Advanced tools
Comparing version 0.0.20200606 to 0.0.20200909
@@ -11,2 +11,3 @@ /// <reference types="node" /> | ||
export declare namespace TcpTransport { | ||
type NetConnectOpts = Omit<net.TcpNetConnectOpts, "port"> & Partial<Pick<net.TcpNetConnectOpts, "port">>; | ||
interface Options { | ||
@@ -27,5 +28,5 @@ /** Connect timeout (in milliseconds). */ | ||
*/ | ||
function connect(opts: net.TcpNetConnectOpts & Options): Promise<TcpTransport>; | ||
function connect(opts: NetConnectOpts & Options): Promise<TcpTransport>; | ||
/** Create a transport and add to forwarder. */ | ||
const createFace: L3Face.CreateFaceFunc<import("@ndn/l3face").Transport, typeof connect>; | ||
const createFace: L3Face.CreateFaceFunc<typeof connect>; | ||
} |
/// <reference types="node" /> | ||
import { L3Face, Transport } from "@ndn/l3face"; | ||
import { AddressInfo } from "net"; | ||
import type { AddressInfo } from "net"; | ||
import * as udp from "./udp-helper"; | ||
@@ -28,11 +28,11 @@ /** UDP socket transport. */ | ||
/** Create a unicast transport and add to forwarder. */ | ||
const createFace: L3Face.CreateFaceFunc<Transport, typeof connect>; | ||
const createFace: L3Face.CreateFaceFunc<typeof connect>; | ||
/** Create a multicast transport. */ | ||
function multicast(opts: udp.MulticastOptions): Promise<UdpTransport>; | ||
/** Create a multicast transport and add to forwarder. */ | ||
const createMulticastFace: L3Face.CreateFaceFunc<Transport, typeof multicast>; | ||
const createMulticastFace: L3Face.CreateFaceFunc<typeof multicast>; | ||
/** Create multicast transports on every interface. */ | ||
function multicasts(opts?: Omit<udp.MulticastOptions, "intf">): Promise<UdpTransport[]>; | ||
/** Create multicast transports on every interface. */ | ||
const createMulticastFaces: L3Face.CreateFaceFunc<Transport[], typeof multicasts>; | ||
const createMulticastFaces: L3Face.CreateFaceFunc<typeof multicasts>; | ||
} |
@@ -17,3 +17,3 @@ /// <reference types="node" /> | ||
/** Create a transport and add to forwarder. */ | ||
const createFace: L3Face.CreateFaceFunc<import("@ndn/l3face").Transport, typeof connect>; | ||
const createFace: L3Face.CreateFaceFunc<typeof connect>; | ||
} |
{ | ||
"name": "@ndn/node-transport", | ||
"version": "0.0.20200606", | ||
"version": "0.0.20200909", | ||
"description": "NDNts: Low-Level Transports for Node.js", | ||
@@ -15,4 +15,3 @@ "keywords": [ | ||
"type": "module", | ||
"main": "lib/mod.js", | ||
"sideEffects": false, | ||
"main": "lib/mod_node.js", | ||
"homepage": "https://yoursunny.com/p/NDNts/", | ||
@@ -25,8 +24,9 @@ "repository": { | ||
"dependencies": { | ||
"@ndn/l3face": "0.0.20200606", | ||
"@ndn/l3face": "0.0.20200909", | ||
"p-cancelable": "^2.0.0", | ||
"p-event": "^4.1.0", | ||
"p-event": "^4.2.0", | ||
"p-timeout": "^3.2.0", | ||
"tslib": "*" | ||
} | ||
"tslib": "^2.0.1" | ||
}, | ||
"types": "lib/mod.d.ts" | ||
} |
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
Wildcard dependency
QualityPackage has a dependency with a floating version range. This can cause issues if the dependency publishes a new major version.
Found 1 instance in 1 package
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
28350
17
630
1
7
+ Added@ndn/fw@0.0.20200909(transitive)
+ Added@ndn/l3face@0.0.20200909(transitive)
+ Added@ndn/lp@0.0.20200909(transitive)
+ Added@ndn/packet@0.0.20200909(transitive)
+ Added@ndn/tlv@0.0.20200909(transitive)
+ Addedmnemonist@0.38.5(transitive)
+ Addedobliterator@2.0.5(transitive)
+ Addedstreaming-iterables@5.0.4(transitive)
- Removed@ndn/fw@0.0.20200606(transitive)
- Removed@ndn/l3face@0.0.20200606(transitive)
- Removed@ndn/lp@0.0.20200606(transitive)
- Removed@ndn/packet@0.0.20200606(transitive)
- Removed@ndn/tlv@0.0.20200606(transitive)
- Removedmnemonist@0.36.1(transitive)
- Removedobliterator@1.6.1(transitive)
- Removedstreaming-iterables@4.1.2(transitive)
Updated@ndn/l3face@0.0.20200909
Updatedp-event@^4.2.0
Updatedtslib@^2.0.1