Richard Scarrott

Frontend Web Developer, London

@richardscarrott
richardscarrott starred pinojs/pino 8 days ago

🌲 super fast, all natural json logger 🌲

JavaScript 3.5k 1 issue needs help Updated Jan 22

@richardscarrott
richardscarrott commented on issue pinojs/pino#579 9 days ago

I don't have the time right now but will try to come back around to this when I next get some spare time 👍

@richardscarrott

🌲A transport for pino that sends messages to Google Stackdriver Logging

JavaScript 4 Updated Jan 18

@richardscarrott
richardscarrott opened an issue in pinojs/pino 11 days ago
`logger.error(new Error)` behaves differently to `logger.error({ err: new Error })` #579

I'm seeing different behaviour when passing an Error instance directly as the mergingObject when compared to passing it as a nested err property, e.g.

@richardscarrott

An "artificial" css-in-js for those that want it all.

JavaScript 949 Updated Jan 22

@richardscarrott

I've got a hunch it's something to do with multiple versions of React and context -- although I'd have thought marking it as external would ensure …

@richardscarrott

@cdoublev looks like React is behaving differently when bundled with Webpack target 'node' vs running directly in Node -- if you add 'react' to you…

@richardscarrott
richardscarrott pushed to master in richardscarrott/test-snippets a month ago
1 commit to master
  • @richardscarrott 5702ed4
    Rename parade-billing-address.ts to parade-billing-address.js
@richardscarrott
richardscarrott pushed to master in richardscarrott/test-snippets a month ago
1 commit to master
  • @richardscarrott 6c6e0e5
    Create parade-billing-address.ts
@richardscarrott
richardscarrott pushed to master in richardscarrott/test-snippets a month ago
1 commit to master
  • @richardscarrott f65efb5
    Rename parade-contact-information.js to parade-shipping-address.js
@richardscarrott
richardscarrott pushed to master in richardscarrott/test-snippets 2 months ago
1 commit to master
  • @richardscarrott 69b46e5
    Update parade-contact-information.js
@richardscarrott
richardscarrott pushed to master in richardscarrott/test-snippets 2 months ago
1 commit to master
  • @richardscarrott e4f3ee2
    Create parade-contact-information.js
@richardscarrott
richardscarrott opened an issue in stripe/react-stripe-elements 2 months ago
Validate Stripe Elements without calling `createToken` #283

Summary Sorry if this is the wrong place for this but I didn't get a response over IRC and chat support was proving difficult -- I figured I'd hit …

@richardscarrott
richardscarrott commented on issue facebook/jest#6575 2 months ago

I'd be interested to know why toEqual has a special case for Error objects -- it seems so bizarre -- perhaps a legacy from jasmine? As an FYI, the …

@richardscarrott

Input mask for React, Angular, Ember, Vue, & plain JavaScript

JavaScript 6.7k Updated Jan 22

@richardscarrott

Persisted Query support with Apollo Link

TypeScript 161 Updated Jan 21

@richardscarrott
richardscarrott commented on pull request 60frames/webpack-hot-server-middleware#77 2 months ago

@threehams I'll aim to look at this shortly -- sorry for the delay

@richardscarrott
richardscarrott commented on pull request 60frames/webpack-hot-server-middleware#82 2 months ago

@okcoker I'll aim to look at this shortly -- sorry for the delay

@richardscarrott

@arnoldjos you could perhaps explicitly give your entry a name, e.g. entry: { server: './server/renderer.js', // or main: './server/renderer.js' }

@richardscarrott
use webpack-hot-server-middleware with typescript #81

Do you have any advice for using with typescript. Currently my start command looks like this: PORT=3600 NODE_ENV=development nodemon --watch 'src/s…

2 comments
@richardscarrott

@dagda1 I'm going to close this as I think the proxy solution is suitable -- feel free to continue the discussion here / reopen a new issue if you …

@richardscarrott

@phyllisstein it looks like you're actually creating a brand new instance of the webpack compiler for each request which comes in so even if you di…

@richardscarrott
richardscarrott closed an issue in hasura/schema-stitching-examples 2 months ago
[schema-extension] `city_weather` fails when selection set doesn't include `city` #1

Thanks for sharing these examples, they're v. useful! I've run into an issue within my own project which I think is also present in your schema-ext…

1 comment
@richardscarrott
richardscarrott commented on issue hasura/schema-stitching-examples#1 2 months ago

So it took me a little while but I found the solution -- the resolver can define a fragment which will be added to the delegated query so you can b…

@richardscarrott
richardscarrott opened an issue in hasura/schema-stitching-examples 2 months ago
[schema-extension] Fails when selection set doesn't include `city` #1

Thanks for sharing these examples, they're v. useful! I've run into an issue within my own project which I think is also present in your schema-ext…

@richardscarrott
richardscarrott commented on issue apollographql/apollo-server#1100 3 months ago

@todkap I'm also having the same problem using apollo-server-express v2.1.0 -- did you find a solution?

@richardscarrott
richardscarrott commented on issue apollographql/react-apollo#615 3 months ago

@mhaagens but how do you handle the errors in your components?

@richardscarrott
richardscarrott commented on issue apollographql/react-apollo#1403 3 months ago

@gabriel-miranda did you find a solution to this? Currently the only solution I can see is to handle errors differently on the server vs client, e.g.