diff --git a/asn1.js b/asn1.js index ae816c6..55a5a2a 100644 --- a/asn1.js +++ b/asn1.js @@ -4,7 +4,7 @@ // Permission to use, copy, modify, and/or distribute this software for any // purpose with or without fee is hereby granted, provided that the above // copyright notice and this permission notice appear in all copies. -// +// // THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES // WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF // MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR diff --git a/base64.js b/base64.js index a91b36b..4e3d325 100644 --- a/base64.js +++ b/base64.js @@ -4,7 +4,7 @@ // Permission to use, copy, modify, and/or distribute this software for any // purpose with or without fee is hereby granted, provided that the above // copyright notice and this permission notice appear in all copies. -// +// // THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES // WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF // MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR diff --git a/defs.js b/defs.js index aef2ea0..fa42c3e 100644 --- a/defs.js +++ b/defs.js @@ -4,7 +4,7 @@ // Permission to use, copy, modify, and/or distribute this software for any // purpose with or without fee is hereby granted, provided that the above // copyright notice and this permission notice appear in all copies. -// +// // THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES // WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF // MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR @@ -127,7 +127,7 @@ export class Defs { Defs.RFC = rfcdef; Defs.commonTypes = [ - [ 'X.509 certificate', '1.3.6.1.5.5.7.0.18', 'Certificate' ], + [ 'X.509 certificate', '1.3.6.1.5.5.7.0.18', 'Certificate' ], [ 'X.509 public key info', '1.3.6.1.5.5.7.0.18', 'SubjectPublicKeyInfo' ], [ 'CMS / PKCS#7 envelope', '1.2.840.113549.1.9.16.0.14', 'ContentInfo' ], [ 'PKCS#1 RSA private key', '1.2.840.113549.1.1.0.1', 'RSAPrivateKey' ], diff --git a/hex.js b/hex.js index 8abea9d..de3ee49 100644 --- a/hex.js +++ b/hex.js @@ -4,7 +4,7 @@ // Permission to use, copy, modify, and/or distribute this software for any // purpose with or without fee is hereby granted, provided that the above // copyright notice and this permission notice appear in all copies. -// +// // THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES // WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF // MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR diff --git a/int10.js b/int10.js index 2d89b37..d2da3cd 100644 --- a/int10.js +++ b/int10.js @@ -4,7 +4,7 @@ // Permission to use, copy, modify, and/or distribute this software for any // purpose with or without fee is hereby granted, provided that the above // copyright notice and this permission notice appear in all copies. -// +// // THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES // WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF // MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR diff --git a/package.json b/package.json index d704f10..18a9fe1 100644 --- a/package.json +++ b/package.json @@ -62,6 +62,7 @@ "rules": { "strict": [ "error", "function" ], "indent": [ "error", 4 ], + "no-trailing-spaces": [ "error" ], "linebreak-style": [ "error", "unix" ], "eol-last": [ "error", "always" ], "semi": [ "warn", "always" ], diff --git a/parseRFC.js b/parseRFC.js index b2aab26..2d75588 100755 --- a/parseRFC.js +++ b/parseRFC.js @@ -519,10 +519,10 @@ while ((m = reModuleDefinition.exec(s))) { asn1[currentMod.oid] = currentMod; } /*asn1 = Object.keys(asn1).sort().reduce( - (obj, key) => { + (obj, key) => { obj[key] = asn1[key]; return obj; - }, + }, {} );*/ fs.writeFileSync(process.argv[3], JSON.stringify(asn1, null, 2) + '\n', 'utf8');