Closed passion4code closed 4 years ago
@devfreddy Greetings, If you're not too busy, I was hoping to get this looked at. When using this plugin, there's a syntax error thrown due to some malformed regex. Ideally we would leverage this plugin rather than having to roll our own implementation of injecting the agent for Pro and SPA.
@tangollama for your merging pleasure :)
Just noticed this error in our application when trying out the plugin, is there an ETA on an NPM version with this fix?
Pretty please :) npm publish
:)
@jakemhiller @passion4code A fix to 1.X has been published on npm. There's an even better implementation in progress in https://github.com/newrelic/gatsby-plugin-newrelic/pull/10 which will ensure this is a non-issue in the future and keeps everything up to date.
:tada: This PR is included in version 1.0.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
:tada: This PR is included in version 1.0.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Fixes snippet of output of
proAndSpaAgent
causing syntax error to be thrownOld:
a=/Version\\/(\\S+)\\s+Safari/;
New:
a=/Version\/(\S+)\s+Safari/;
Old pattern throws a syntax error when attempting to be used.
The "new" pattern is the same as what's being used in the "pro"