From a71445ee191a490f08680a0ad8bd041bf82444bc Mon Sep 17 00:00:00 2001 From: Lapo Luchini Date: Mon, 6 May 2024 21:27:41 +0000 Subject: [PATCH] Add defs to npm package. Linting. --- defs.js | 2 +- package.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 .", -- 2.51.2