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

@ndn/l3face

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

@ndn/l3face - npm Package Compare versions

Comparing version 0.0.20200606 to 0.0.20200909

lib/l3face_browser.js

19

lib/l3face.d.ts

@@ -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"
}
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