peakflow-api 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -0
- package/package.json +1 -1
- package/src/bug-reporting/index.js +5 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,3 +2,4 @@
|
|
|
2
2
|
- Fix: avoid bundlers resolving Node-only modules in bug-reporting node transport by using runtime-only imports.
|
|
3
3
|
- Chore: keep single-line JSDoc comments on a single line and document the convention.
|
|
4
4
|
- Fix: defer runtime import helper creation to avoid CSP unsafe-eval during browser module load.
|
|
5
|
+
- Fix: build Node module specifiers dynamically to avoid Expo bundler resolution errors.
|
package/package.json
CHANGED
|
@@ -444,11 +444,14 @@ export default class BugReporting {
|
|
|
444
444
|
return loader(specifier)
|
|
445
445
|
}
|
|
446
446
|
|
|
447
|
+
const httpsSpecifier = ["node", "https"].join(":")
|
|
448
|
+
const urlSpecifier = ["node", "url"].join(":")
|
|
449
|
+
|
|
447
450
|
const {request} = /** @type {{request: typeof import("node:https").request}} */ (
|
|
448
|
-
await runtimeImport(
|
|
451
|
+
await runtimeImport(httpsSpecifier)
|
|
449
452
|
)
|
|
450
453
|
const {URL} = /** @type {{URL: typeof import("node:url").URL}} */ (
|
|
451
|
-
await runtimeImport(
|
|
454
|
+
await runtimeImport(urlSpecifier)
|
|
452
455
|
)
|
|
453
456
|
|
|
454
457
|
return await new Promise((resolve) => {
|