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.20200909 to 0.0.20210203

5

lib/l3face_node.js

@@ -1,4 +0,1 @@

import { createRequire } from "module";
const require = createRequire(import.meta.url);
const { __importDefault } = require("tslib");
import { Forwarder, FwPacket } from "@ndn/fw";

@@ -8,3 +5,3 @@ import { LpService, NumericPitToken } from "@ndn/lp";

import { EventEmitter } from "events";
const { filter, map, pipeline } = require("streaming-iterables");
import { filter, map, pipeline } from "streaming-iterables";
const REOPENED = Symbol("L3Face.REOPENED");

@@ -11,0 +8,0 @@ /** Network layer face for sending and receiving L3 packets. */

2

lib/l3face.d.ts
import { Forwarder, FwFace, FwPacket } from "@ndn/fw";
import { LpService, NumericPitToken } from "@ndn/lp";
import TypedEmitter from "typed-emitter";
import type TypedEmitter from "typed-emitter";
import type { Transport } from "./mod";

@@ -5,0 +5,0 @@ interface Events {

@@ -42,2 +42,6 @@ import { Decoder } from "@ndn/tlv";

finally {
await Promise.race([
new Promise((r) => conn.end(r)),
new Promise((r) => setTimeout(r, 100)),
]);
const destroyable = conn;

@@ -48,7 +52,4 @@ /* istanbul ignore else */

}
else {
conn.end();
}
}
};
}

@@ -1,6 +0,3 @@

import { createRequire } from "module";
const require = createRequire(import.meta.url);
const { __importDefault } = require("tslib");
import { Decoder } from "@ndn/tlv";
const { fromStream, writeToStream } = require("streaming-iterables");
import { fromStream, writeToStream } from "streaming-iterables";
async function* fromStreamSafe(conn) {

@@ -45,2 +42,6 @@ try {

finally {
await Promise.race([
new Promise((r) => conn.end(r)),
new Promise((r) => setTimeout(r, 100)),
]);
const destroyable = conn;

@@ -51,7 +52,4 @@ /* istanbul ignore else */

}
else {
conn.end();
}
}
};
}
{
"name": "@ndn/l3face",
"version": "0.0.20200909",
"version": "0.0.20210203",
"description": "NDNts: Network Layer Face",

@@ -25,12 +25,12 @@ "keywords": [

"dependencies": {
"@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": "^5.0.2",
"tslib": "^2.0.1",
"typed-emitter": "^1.3.0"
"@ndn/fw": "0.0.20210203",
"@ndn/lp": "0.0.20210203",
"@ndn/packet": "0.0.20210203",
"@ndn/tlv": "0.0.20210203",
"it-pushable": "1.4.0",
"streaming-iterables": "^5.0.4",
"tslib": "^2.1.0",
"typed-emitter": "^1.3.1"
},
"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