Skip to content

Commit

Permalink
lvs: upgrade to python-ndn@61ae7868
Browse files Browse the repository at this point in the history
  • Loading branch information
yoursunny committed Oct 28, 2024
1 parent 2d59f68 commit 579480f
Show file tree
Hide file tree
Showing 15 changed files with 19 additions and 20 deletions.
4 changes: 2 additions & 2 deletions integ/browser-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@
"devDependencies": {
"@nodelib/fs.walk": "^2.0.0",
"@types/webpack": "^5.28.5",
"@zenfs/core": "1.1.2",
"@zenfs/core": "1.1.4",
"@zenfs/dom": "1.0.1",
"fork-ts-checker-webpack-plugin": "^9.0.2",
"html-webpack-plugin": "^5.6.3",
"puppeteer": "^23.6.0",
"puppeteer": "^23.6.1",
"ts-loader": "^9.5.1",
"tslib": "^2.8.0",
"type-fest": "^4.26.1",
Expand Down
2 changes: 1 addition & 1 deletion integ/cxx-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"tslib": "^2.8.0"
},
"devDependencies": {
"execa": "^9.4.1",
"execa": "^9.5.0",
"streaming-iterables": "^8.0.1"
}
}
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@
"test": "vitest",
"typedoc": "bash mk/typedoc.sh"
},
"packageManager": "[email protected].2+sha512.22721b3a11f81661ae1ec68ce1a7b879425a1ca5b991c975b074ac220b187ce56c708fe5db69f4c962c989452eee76c82877f4ee80f474cebd61ee13461b6228",
"packageManager": "[email protected].3+sha512.cce0f9de9c5a7c95bef944169cc5dfe8741abfb145078c0d508b868056848a87c81e626246cb60967cbd7fd29a6c062ef73ff840d96b3c86c40ac92cf4a813ee",
"devDependencies": {
"@types/node": "^20.17.0",
"@types/node": "^20.17.2",
"@types/wtfnode": "^0.7.3",
"@typescript/lib-dom": "npm:@types/[email protected].174",
"@vitest/coverage-v8": "^2.1.3",
"@typescript/lib-dom": "npm:@types/[email protected].175",
"@vitest/coverage-v8": "^2.1.4",
"@yoursunny/xo-config": "0.59.0",
"codedown": "^3.2.1",
"tslib": "^2.8.0",
"typedoc": "^0.26.10",
"typescript": "~5.6.3",
"vitest": "^2.1.3"
"vitest": "^2.1.4"
},
"engines": {
"node": "^20.12.0 || ^22.0.0"
Expand Down
2 changes: 1 addition & 1 deletion pkg/fileserver/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"@ndn/segmented-object": "workspace:*",
"@ndn/tlv": "workspace:*",
"@ndn/util": "workspace:*",
"@zenfs/core": "1.1.2",
"@zenfs/core": "1.1.4",
"mnemonist": "^0.39.8",
"obliterator": "^2.0.4",
"streaming-iterables": "^8.0.1",
Expand Down
2 changes: 1 addition & 1 deletion pkg/keychain-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"env-var": "^7.5.0",
"fast-chunk-string": "^1.0.1",
"get-stdin": "^9.0.0",
"nodemailer": "^6.9.15",
"nodemailer": "^6.9.16",
"prompts": "^2.4.2",
"stdout-stream": "^2.0.0",
"tslib": "^2.8.0",
Expand Down
2 changes: 1 addition & 1 deletion pkg/lvs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ python3.11 -m venv ~/lvs.venv
source ~/lvs.venv/bin/activate

# install python-ndn
pip install 'python-ndn[dev] @ git+https://github.com/named-data/python-ndn@80aeeecbfe43b957c2a920e44b158ee95592e0b0'
pip install 'python-ndn[dev] @ git+https://github.com/named-data/python-ndn@61ae78687b3662d472024c95f1ebfc0770c3da7b'

# run the compiler
python ./pkg/lvs/compile.py <~/lvs-model.txt >~/lvs-model.tlv
Expand Down
5 changes: 1 addition & 4 deletions pkg/lvs/src/translate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,7 @@ class Translator {
}

private nameTag(tag: number): string {
// TODO
const prefix = this.tagSymbols.get(tag) ?? `_TAG_${tag}`;
const suffix = tag > this.model.namedPatternCnt ? `_${++this.lastAutoId}` : "";
return `${prefix}${suffix}`;
return this.tagSymbols.get(tag) ?? `_TAG_${tag}`;
}

private gatherNodes(): void {
Expand Down
Binary file modified pkg/lvs/test-fixture/pyndn0.tlv
Binary file not shown.
Binary file modified pkg/lvs/test-fixture/pyndn1.tlv
Binary file not shown.
Binary file modified pkg/lvs/test-fixture/pyndn2.tlv
Binary file not shown.
2 changes: 2 additions & 0 deletions pkg/lvs/test-fixture/pyndn3.rs
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
// https://github.com/named-data/python-ndn/blob/61ae78687b3662d472024c95f1ebfc0770c3da7b/docs/src/lvs/lvs.rst#user-functions

#rule: /a/b & { b: $fn("c", a) }
2 changes: 1 addition & 1 deletion pkg/ndncert/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"ajv": "^8.17.1",
"b64-lite": "^1.4.0",
"imap-emails": "^1.0.4",
"nodemailer": "^6.9.15",
"nodemailer": "^6.9.16",
"p-timeout": "^6.1.3",
"tslib": "^2.8.0",
"type-fest": "^4.26.1",
Expand Down
2 changes: 1 addition & 1 deletion pkg/ndnsec/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"@ndn/tlv": "workspace:*",
"@ndn/util": "workspace:*",
"@yoursunny/asn1": "0.0.20200718",
"execa": "^9.4.1",
"execa": "^9.5.0",
"tslib": "^2.8.0"
}
}
2 changes: 1 addition & 1 deletion pkg/pyrepo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"@ndn/ndnsec": "workspace:^",
"@ndn/nfdmgmt": "workspace:^",
"@types/netmask": "^2.0.5",
"execa": "^9.4.1",
"execa": "^9.5.0",
"netmask": "^2.0.2"
}
}
4 changes: 2 additions & 2 deletions pkg/segmented-object/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@
"@ndn/naming-convention2": "workspace:*",
"@ndn/packet": "workspace:*",
"@ndn/util": "workspace:*",
"@zenfs/core": "1.1.2",
"@zenfs/core": "1.1.4",
"it-keepalive": "^1.2.0",
"mnemonist": "^0.39.8",
"obliterator": "^2.0.4",
"p-defer": "^4.0.1",
"p-lazy": "^4.0.0",
"p-lazy": "^5.0.0",
"streaming-iterables": "^8.0.1",
"tslib": "^2.8.0",
"typescript-event-target": "^1.1.1"
Expand Down

0 comments on commit 579480f

Please sign in to comment.