Jack Bates
Jack Bates
### Before ```JavaScript const INTEGER = asn1.define('INTEGER', function() { this.int(); }); console.log(INTEGER.decode(INTEGER.encode(-1))); // Error: non-byte EncoderBuffer value at: (shallow) ``` ### After ```JavaScript console.log(INTEGER.decode(INTEGER.encode(-1))); // console.log(INTEGER.decode(INTEGER.encode(-0x81))); // ```
### Before ```JavaScript const INTEGER = asn1.define('INTEGER', function() { this.int(); }); console.log(INTEGER.decode(INTEGER.encode(0x100000000))); // console.log(INTEGER.decode(INTEGER.encode(1n))); // TypeError: num.toArray is not a function ``` ### After ```JavaScript console.log(INTEGER.decode(INTEGER.encode(0x100000000))); // console.log(INTEGER.decode(INTEGER.encode(1n))); // ```
### Before ```JavaScript const INTEGER = asn1.define('INTEGER', function() { this.int(); }); console.log(INTEGER.encode(Buffer.from('0001', 'hex'))); // ``` ### After ```JavaScript console.log(INTEGER.encode(Buffer.from('0001', 'hex'))); // ```
Should the following output `30020500` or `3000`? ```JavaScript console.log( asn1 .define('Foo', function() { this.seq().obj( this.key('none') .null_() .optional() ); }) .encode() .toString('hex') ); ``` OpenSSL (on my machine) chokes on the...
### Initial checklist * [x] I read the support docs * [x] I read the contributing guide * [x] I agree to follow the code of conduct * [x] I...
### Initial checklist * [x] I read the support docs * [x] I read the contributing guide * [x] I agree to follow the code of conduct * [x] I...
### Initial checklist * [x] I read the support docs * [x] I read the contributing guide * [x] I agree to follow the code of conduct * [x] I...
### Initial checklist * [x] I read the support docs * [x] I read the contributing guide * [x] I agree to follow the code of conduct * [x] I...
### Initial checklist * [x] I read the support docs * [x] I read the contributing guide * [x] I agree to follow the code of conduct * [x] I...
- Make the diagram independent of "now", instead show the supported versions relative to the latest release. - Rebuild the diagram whenever the script/dependencies change, but only manually update the...