Jim B

Results 135 comments of Jim B

Well I did ignore(remove) the resolve because it just ended up calling the default resolve - I want basically the default node file resolution... nothing custom to do with the...

from node\lib\internal\modules\esm\loader.js ``` async getFormat(url) { const getFormatResponse = await this._getFormat( url, {}, defaultGetFormat); if (typeof getFormatResponse !== 'object') { throw new ERR_INVALID_RETURN_VALUE( 'object', 'loader getFormat', getFormatResponse); } ``` getting...

node module: ESM loaders next steps https://github.com/nodejs/node/issues/36396 This is an experimental state, so probably it can be fixed.

Okay1) I'm not sure why that would really behave any different; other than not intercepting the getSource or Transform calls and doing things with them.... they would only be used...

https://github.com/nodejs/node/blob/master/lib/internal/process/esm_loader.js#L42 node only uses one of the command line options (first? last?) It's right now even if you specify more than one it only uses one... this routine should at...

I'm here; I haven't noticed any issues with it; it's certainly loved; but it's a rather monogamous relationship right now :)

I did use it in gun-file https://www.npmjs.com/package/gun-file for streaming large json data in... it's worked for a while now

I suggested it on es-discuss... they were very resistant to changing/improving json even on the reading side. json5 was also resistant to improving their standards to include undefined, underscores, and...

Good idea to mark the differences.... https://github.com/d3x0r/JSON6#summary-of-changes-from-json5 Keyword undefined Objects/Strings back-tick quoted strings (no template support, just quotes) Strings - generous multiline string definition Numbers - underscore digit separation in...

Underscores was inspired by https://mail.mozilla.org/pipermail/es-discuss/2017-July/048665.html https://github.com/tc39/proposal-numeric-separator the proposal has a list of other languages that support such a feature.