🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

@ndn/cli-common

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/cli-common - npm Package Compare versions

Comparing version

to
0.0.20250122

1

lib/env_browser.js

@@ -34,2 +34,3 @@ import { __importDefault, __importStar } from "tslib";

export const nfdReg = env.get("NDNTS_NFDREG").asBool() ?? true;
export const nfdRegAnn = env.get("NDNTS_NFDREGANN").asBool() ?? false;
export const nfdRegKey = env.get("NDNTS_NFDREGKEY").asName() ?? key;

@@ -36,0 +37,0 @@ export const dpdkGql = env.get("NDNTS_NDNDPDK_GQLSERVER").asUrlString();

@@ -34,2 +34,3 @@ import { __importDefault, __importStar } from "tslib";

export const nfdReg = env.get("NDNTS_NFDREG").asBool() ?? true;
export const nfdRegAnn = env.get("NDNTS_NFDREGANN").asBool() ?? false;
export const nfdRegKey = env.get("NDNTS_NFDREGKEY").asName() ?? key;

@@ -36,0 +37,0 @@ export const dpdkGql = env.get("NDNTS_NDNDPDK_GQLSERVER").asUrlString();

3

lib/env.d.ts

@@ -6,5 +6,6 @@ import "dotenv/config";

export declare const pktTrace: boolean;
export declare const uplink: URL;
export declare const uplink: import("url").URL;
export declare const mtu: number;
export declare const nfdReg: boolean;
export declare const nfdRegAnn: boolean;
export declare const nfdRegKey: Name;

@@ -11,0 +12,0 @@ export declare const dpdkGql: string | undefined;

@@ -6,3 +6,3 @@ import fs from "fs/promises";

import { FwTracer } from "@ndn/fw";
import { enableNfdPrefixReg } from "@ndn/nfdmgmt";
import { enableNfdPrefixReg, PrefixAnn } from "@ndn/nfdmgmt";
import { UnixTransport } from "@ndn/node-transport";

@@ -94,2 +94,3 @@ import { Closers } from "@ndn/util";

enableNfdPrefixReg(face, {
PrefixAnn: env.nfdRegAnn ? PrefixAnn : undefined,
signer,

@@ -96,0 +97,0 @@ preloadCertName: klName ?? env.nfdRegKey,

@@ -6,3 +6,3 @@ import fs from "node:fs/promises";

import { FwTracer } from "@ndn/fw";
import { enableNfdPrefixReg } from "@ndn/nfdmgmt";
import { enableNfdPrefixReg, PrefixAnn } from "@ndn/nfdmgmt";
import { UnixTransport } from "@ndn/node-transport";

@@ -94,2 +94,3 @@ import { Closers } from "@ndn/util";

enableNfdPrefixReg(face, {
PrefixAnn: env.nfdRegAnn ? PrefixAnn : undefined,
signer,

@@ -96,0 +97,0 @@ preloadCertName: klName ?? env.nfdRegKey,

{
"name": "@ndn/cli-common",
"version": "0.0.20240630",
"version": "0.0.20250122",
"description": "NDNts: common routines for CLI programs",

@@ -23,16 +23,16 @@ "keywords": [

"dependencies": {
"@ndn/autoconfig": "0.0.20240630",
"@ndn/dpdkmgmt": "0.0.20240630",
"@ndn/fw": "0.0.20240630",
"@ndn/keychain": "0.0.20240630",
"@ndn/nfdmgmt": "0.0.20240630",
"@ndn/node-transport": "0.0.20240630",
"@ndn/packet": "0.0.20240630",
"@ndn/util": "0.0.20240630",
"dotenv": "^16.4.5",
"@ndn/autoconfig": "0.0.20250122",
"@ndn/dpdkmgmt": "0.0.20250122",
"@ndn/fw": "0.0.20250122",
"@ndn/keychain": "0.0.20250122",
"@ndn/nfdmgmt": "0.0.20250122",
"@ndn/node-transport": "0.0.20250122",
"@ndn/packet": "0.0.20250122",
"@ndn/util": "0.0.20250122",
"dotenv": "^16.4.7",
"env-var": "^7.5.0",
"tslib": "^2.6.3",
"wtfnode": "^0.9.2"
"tslib": "^2.8.1",
"wtfnode": "^0.10.0"
},
"types": "lib/mod.d.ts"
}

@@ -51,2 +51,4 @@ # @ndn/cli-common

`NDNTS_NFDREGANN=1` environment variable enables prefix registration on the uplink using NFD prefix announcement protocol.
`NDNTS_NFDREGKEY` environment variable specifies the signing key for prefix registration commands.

@@ -53,0 +55,0 @@ This accepts the same syntax as `NDNTS_KEY`.

Sorry, the diff of this file is not supported yet