@ndn/l3face
Advanced tools
Comparing version 0.0.20200606 to 0.0.20200909
@@ -1,6 +0,5 @@ | ||
import { Forwarder, FwFace } from "@ndn/fw"; | ||
import { Forwarder, FwFace, FwPacket } from "@ndn/fw"; | ||
import { LpService, NumericPitToken } from "@ndn/lp"; | ||
import TypedEmitter from "typed-emitter"; | ||
import { Transport } from "./mod"; | ||
declare type Packet = LpService.L3Pkt; | ||
import type { Transport } from "./mod"; | ||
interface Events { | ||
@@ -22,16 +21,15 @@ /** Emitted upon face state change. */ | ||
/** Network layer face for sending and receiving L3 packets. */ | ||
export declare class L3Face extends L3Face_base { | ||
export declare class L3Face extends L3Face_base implements FwFace.RxTx { | ||
private transport; | ||
readonly attributes: L3Face.Attributes; | ||
readonly lp: LpService; | ||
readonly numericPitToken: NumericPitToken; | ||
readonly rx: AsyncIterable<Packet>; | ||
readonly rx: AsyncIterable<FwPacket>; | ||
get state(): L3Face.State; | ||
private transport; | ||
private state_; | ||
constructor(transport: Transport, attributes?: L3Face.Attributes, lpOptions?: LpService.Options); | ||
private makeRx; | ||
tx: (iterable: AsyncIterable<Packet>) => Promise<void>; | ||
tx: (iterable: AsyncIterable<FwPacket>) => Promise<void>; | ||
private txImpl; | ||
private reopenTransport; | ||
toString(): string; | ||
} | ||
@@ -60,6 +58,5 @@ export declare namespace L3Face { | ||
*/ | ||
type CreateFaceFunc<R extends Transport | Transport[], C extends (...args: any) => Promise<R>> = <U extends any[] = C extends (...args: infer P) => any ? P : never>(opts: CreateFaceOptions, ...args: U) => Promise<R extends Transport ? FwFace : FwFace[]>; | ||
function makeCreateFace<C extends (...args: any) => Promise<Transport>>(createTransport: C): CreateFaceFunc<Transport, C>; | ||
function makeCreateFace<C extends (...args: any) => Promise<Transport[]>>(createTransports: C): CreateFaceFunc<Transport[], C>; | ||
type CreateFaceFunc<C extends (...args: any) => Promise<Transport | Transport[]>> = <U extends any[] = C extends (...args: infer P) => any ? P : never>(opts: CreateFaceOptions, ...args: U) => C extends ((...args: U) => Promise<Transport>) ? Promise<FwFace> : C extends ((...args: U) => Promise<Transport[]>) ? Promise<FwFace[]> : never; | ||
function makeCreateFace<C extends (...args: any) => Promise<Transport | Transport[]>>(createTransport: C): CreateFaceFunc<C>; | ||
} | ||
export {}; |
@@ -0,4 +1,5 @@ | ||
export * from "./l3face"; | ||
export * from "./rxtx-iterable"; | ||
export * from "./rxtx-stream"; | ||
export * from "./stream-transport"; | ||
export * from "./transport"; | ||
export * from "./rxtx"; | ||
export * from "./stream-transport"; | ||
export * from "./l3face"; |
/// <reference types="node" /> | ||
import { Transport } from "./mod"; | ||
import { Transport } from "./transport"; | ||
/** Stream-oriented transport. */ | ||
@@ -4,0 +4,0 @@ export declare class StreamTransport extends Transport { |
@@ -1,2 +0,2 @@ | ||
import { Decoder } from "@ndn/tlv"; | ||
import type { Decoder } from "@ndn/tlv"; | ||
/** | ||
@@ -3,0 +3,0 @@ * Low-level transport. |
{ | ||
"name": "@ndn/l3face", | ||
"version": "0.0.20200606", | ||
"version": "0.0.20200909", | ||
"description": "NDNts: Network Layer Face", | ||
@@ -15,3 +15,4 @@ "keywords": [ | ||
"type": "module", | ||
"main": "lib/mod.js", | ||
"main": "lib/mod_node.js", | ||
"module": "lib/mod_browser.js", | ||
"sideEffects": false, | ||
@@ -25,11 +26,12 @@ "homepage": "https://yoursunny.com/p/NDNts/", | ||
"dependencies": { | ||
"@ndn/fw": "0.0.20200606", | ||
"@ndn/lp": "0.0.20200606", | ||
"@ndn/packet": "0.0.20200606", | ||
"@ndn/tlv": "0.0.20200606", | ||
"@ndn/fw": "0.0.20200909", | ||
"@ndn/lp": "0.0.20200909", | ||
"@ndn/packet": "0.0.20200909", | ||
"@ndn/tlv": "0.0.20200909", | ||
"it-pushable": "^1.4.0", | ||
"streaming-iterables": "^4.1.2", | ||
"tslib": "*", | ||
"typed-emitter": "^1.2.0" | ||
} | ||
"streaming-iterables": "^5.0.2", | ||
"tslib": "^2.0.1", | ||
"typed-emitter": "^1.3.0" | ||
}, | ||
"types": "lib/mod.d.ts" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
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
21669
20
596
1
1
+ Added@ndn/fw@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.4(transitive)
+ Addedstreaming-iterables@5.0.4(transitive)
- Removed@ndn/fw@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/fw@0.0.20200909
Updated@ndn/lp@0.0.20200909
Updated@ndn/packet@0.0.20200909
Updated@ndn/tlv@0.0.20200909
Updatedstreaming-iterables@^5.0.2
Updatedtslib@^2.0.1
Updatedtyped-emitter@^1.3.0