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

@ndn/rdr

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ndn/rdr - npm Package Compare versions

Comparing version

to
0.0.20220501

@@ -10,3 +10,3 @@ import { Endpoint } from "@ndn/endpoint";

export function makeDiscoveryInterest(prefix) {
let name = new Name(prefix);
let name = Name.from(prefix);
if (!name.get(-1)?.equals(MetadataKeyword)) {

@@ -13,0 +13,0 @@ name = name.append(MetadataKeyword);

@@ -10,3 +10,3 @@ import { Endpoint } from "@ndn/endpoint";

export function makeDiscoveryInterest(prefix) {
let name = new Name(prefix);
let name = Name.from(prefix);
if (!name.get(-1)?.equals(MetadataKeyword)) {

@@ -13,0 +13,0 @@ name = name.append(MetadataKeyword);

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

/// <reference types="node" />
/// <reference types="web" />
import { Endpoint, RetxPolicy } from "@ndn/endpoint";
import { Interest, NameLike, Verifier } from "@ndn/packet";
import type { AbortSignal } from "abort-controller";
import { type RetxPolicy, Endpoint } from "@ndn/endpoint";
import { type NameLike, type Verifier, Interest } from "@ndn/packet";
import { Metadata } from "./metadata";

@@ -23,3 +20,3 @@ /**

/** Abort signal to cancel retrieval. */
signal?: AbortSignal | globalThis.AbortSignal;
signal?: AbortSignal;
/** Data verifier. Default is no verify. */

@@ -26,0 +23,0 @@ verifier?: Verifier;

import { Component, Name } from "@ndn/packet";
import { Decodable, Decoder, EncodableObj, Encoder, Extensible } from "@ndn/tlv";
import { type Decodable, type EncodableObj, Decoder, Encoder, Extensible } from "@ndn/tlv";
/** 32=metadata component. */

@@ -4,0 +4,0 @@ export declare const MetadataKeyword: Component;

@@ -7,3 +7,3 @@ import { Endpoint } from "@ndn/endpoint";

function makeName(payload, prefix) {
const name = prefix ? new Name(prefix) : payload.name.getPrefix(-1);
const name = prefix ? Name.from(prefix) : payload.name.getPrefix(-1);
return name.append(MetadataKeyword, Version.create(Date.now()), Segment.create(0));

@@ -10,0 +10,0 @@ }

@@ -7,3 +7,3 @@ import { Endpoint } from "@ndn/endpoint";

function makeName(payload, prefix) {
const name = prefix ? new Name(prefix) : payload.name.getPrefix(-1);
const name = prefix ? Name.from(prefix) : payload.name.getPrefix(-1);
return name.append(MetadataKeyword, Version.create(Date.now()), Segment.create(0));

@@ -10,0 +10,0 @@ }

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

import { Endpoint, Producer } from "@ndn/endpoint";
import { Data, Interest, NameLike, Signer } from "@ndn/packet";
import { type Producer, Endpoint } from "@ndn/endpoint";
import { type Interest, type NameLike, type Signer, Data } from "@ndn/packet";
import { Metadata } from "./metadata";

@@ -4,0 +4,0 @@ /** Make RDR metadata packet. */

{
"name": "@ndn/rdr",
"version": "0.0.20210930",
"version": "0.0.20220501",
"description": "NDNts: RDR Protocol",

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

"dependencies": {
"@ndn/endpoint": "0.0.20210930",
"@ndn/naming-convention2": "0.0.20210930",
"@ndn/packet": "0.0.20210930",
"@ndn/tlv": "0.0.20210930",
"abort-controller": "^3.0.0",
"tslib": "^2.3.1"
"@ndn/endpoint": "0.0.20220501",
"@ndn/naming-convention2": "0.0.20220501",
"@ndn/packet": "0.0.20220501",
"@ndn/tlv": "0.0.20220501",
"tslib": "^2.4.0"
},
"types": "lib/mod.d.ts"
"types": "lib/mod.d.ts",
"readme": "# @ndn/rdr\n\nThis package is part of [NDNts](https://yoursunny.com/p/NDNts/), Named Data Networking libraries for the modern web.\n\nThis package implements [Realtime Data Retrieval (RDR) protocol](https://redmine.named-data.net/projects/ndn-tlv/wiki/RDR).\n"
}