@ndn/l3face
Advanced tools
Comparing version 0.0.20200909 to 0.0.20210203
@@ -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. */ |
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" | ||
} |
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
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
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 1 instance in 1 package
0
0
21581
592
+ Added@ndn/fw@0.0.20210203(transitive)
+ Added@ndn/lp@0.0.20210203(transitive)
+ Added@ndn/packet@0.0.20210203(transitive)
+ Added@ndn/tlv@0.0.20210203(transitive)
+ Addedit-pushable@1.4.0(transitive)
- Removed@ndn/fw@0.0.20200909(transitive)
- Removed@ndn/lp@0.0.20200909(transitive)
- Removed@ndn/packet@0.0.20200909(transitive)
- Removed@ndn/tlv@0.0.20200909(transitive)
- Removedit-pushable@1.4.2(transitive)
- Removedloglevel@1.9.2(transitive)
Updated@ndn/fw@0.0.20210203
Updated@ndn/lp@0.0.20210203
Updated@ndn/packet@0.0.20210203
Updated@ndn/tlv@0.0.20210203
Updatedit-pushable@1.4.0
Updatedstreaming-iterables@^5.0.4
Updatedtslib@^2.1.0
Updatedtyped-emitter@^1.3.1