-
Notifications
You must be signed in to change notification settings - Fork 255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Modernise browser packages #2224
base: next
Are you sure you want to change the base?
Conversation
0b18a5e
to
25ca84e
Compare
4d6971c
to
eade9df
Compare
node: TypeScript and rollup
core: move tests from src to test
core: move to src, add TypeScript and rollup
core: use dist assets for root export
|
||
if (typeof exportValue === 'string') { | ||
targetFilePath = exportKey.endsWith('*') | ||
? exportValue.replace( |
Check failure
Code scanning / CodeQL
Incomplete string escaping or encoding High
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix AI 1 day ago
To fix the problem, we need to ensure that all occurrences of the asterisk (*
) in exportValue
are replaced with the appropriate substring of submoduleName
. This can be achieved by using a regular expression with the global flag (g
) in the replace
method.
- Change the
replace
method call on line 146 to use a regular expression with the global flag. - Ensure that the replacement logic remains the same, i.e., replacing the asterisk (
*
) with the appropriate substring ofsubmoduleName
.
-
Copy modified line R147
@@ -146,3 +146,3 @@ | ||
? exportValue.replace( | ||
/\*/, submoduleName.slice(exportKey.length - 1) | ||
/\*/g, submoduleName.slice(exportKey.length - 1) | ||
) |
This reverts commit 50bebe4.
drop @bugsnag/core/breadcrumb export
…s into integration/typescript
drop @bugsnag/core/(client|event|session) exports
Goal
Convert packages to TypeScript using rollup to bundle both ES modules and Common JS modules for maximum compatibility
Changeset
Testing
Covered by CI
Outstanding