diff --git a/defs.js b/defs.js index e19ba67..aef2ea0 100644 --- a/defs.js +++ b/defs.js @@ -90,7 +90,7 @@ export class Defs { type = def.content[0]; else { let tn = subval.typeName().replaceAll('_', ' '); - while (true) { + for (;;) { type = def.content[j++]; if (!type || typeof type != 'object') break; if (type?.type?.type) diff --git a/package.json b/package.json index 517fe73..d999a9b 100644 --- a/package.json +++ b/package.json @@ -13,9 +13,9 @@ "license": "ISC", "bugs": { "url": "https://github.com/lapo-luchini/asn1js/issues" }, "homepage": "https://lapo.it/asn1js/", - "files": [ "asn1.js", "base64.js", "hex.js", "int10.js", "oids.js" ], + "files": [ "asn1.js", "base64.js", "hex.js", "int10.js", "defs.js", "oids.js", "rfcdef.js" ], "scripts": { - "lint": "npx eslint asn1.js base64.js hex.js int10.js oids.js tags.js context.js index.js parseRFC.js dumpASN1.js test.js testDefs.js vite.config.js", + "lint": "npx eslint asn1.js base64.js hex.js int10.js defs.js oids.js rfcdef.js tags.js context.js index.js parseRFC.js dumpASN1.js test.js testDefs.js vite.config.js", "lint-action": "npx @action-validator/cli .github/workflows/node.js.yml", "build": "vite build", "serve": "echo 'Connect to http://localhost:3000/' ; npx statik --port 3000 .",