New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@ndn/packet

Package Overview
Dependencies
Maintainers
0
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ndn/packet - npm Package Compare versions

Comparing version

to
0.0.20250307

4

lib/name/alt-uri_browser.js

@@ -49,4 +49,4 @@ import { TT } from "../an_browser.js";

match({ type }) { return type === TT.GenericNameComponent; }
create() { /* c8 ignore next */ throw new TypeError("not supported"); }
parse() { /* c8 ignore next */ throw new TypeError("not supported"); }
create() { /* v8 ignore next */ throw new TypeError("not supported"); }
parse() { /* v8 ignore next */ throw new TypeError("not supported"); }
toAltUri(comp) { return comp.toString().slice(2); }

@@ -53,0 +53,0 @@ fromAltUri() { return undefined; }

@@ -49,4 +49,4 @@ import { TT } from "../an_node.js";

match({ type }) { return type === TT.GenericNameComponent; }
create() { /* c8 ignore next */ throw new TypeError("not supported"); }
parse() { /* c8 ignore next */ throw new TypeError("not supported"); }
create() { /* v8 ignore next */ throw new TypeError("not supported"); }
parse() { /* v8 ignore next */ throw new TypeError("not supported"); }
toAltUri(comp) { return comp.toString().slice(2); }

@@ -53,0 +53,0 @@ fromAltUri() { return undefined; }

@@ -80,4 +80,3 @@ import { Decoder, Encoder } from "@ndn/tlv";

get(i) {
i = i < 0 ? i + this.length : i;
return this.comps[i];
return this.comps.at(i);
}

@@ -84,0 +83,0 @@ /**

@@ -80,4 +80,3 @@ import { Decoder, Encoder } from "@ndn/tlv";

get(i) {
i = i < 0 ? i + this.length : i;
return this.comps[i];
return this.comps.at(i);
}

@@ -84,0 +83,0 @@ /**

import { Encoder, EvDecoder, Extensible, ExtensionRegistry, NNI } from "@ndn/tlv";
import { assert, crypto } from "@ndn/util";
import { assert } from "@ndn/util";
import { SigType, TT } from "./an_browser.js";

@@ -4,0 +4,0 @@ import { KeyLocator } from "./key-locator_browser.js";

import { Encoder, EvDecoder, Extensible, ExtensionRegistry, NNI } from "@ndn/tlv";
import { assert, crypto } from "@ndn/util";
import { assert } from "@ndn/util";
import { SigType, TT } from "./an_node.js";

@@ -4,0 +4,0 @@ import { KeyLocator } from "./key-locator_node.js";

{
"name": "@ndn/packet",
"version": "0.0.20250122",
"version": "0.0.20250307",
"description": "NDNts: Network Layer Packets",

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

"dependencies": {
"@ndn/tlv": "0.0.20250122",
"@ndn/util": "0.0.20250122",
"@ndn/tlv": "0.0.20250307",
"@ndn/util": "0.0.20250307",
"buffer-compare": "^1.1.1",
"tslib": "^2.8.1",
"type-fest": "^4.33.0"
"type-fest": "^4.37.0"
},
"types": "lib/mod.d.ts"
}