@parcel/transformer-react-refresh-wrap
Advanced tools
Comparing version 2.0.0-canary.1776 to 2.0.0-canary.1777
@@ -45,6 +45,6 @@ "use strict"; | ||
if (typeof window !== 'undefined') { | ||
let ErrorOverlay = require('react-error-overlay'); | ||
let ErrorOverlay = require('@parcel/error-overlay'); | ||
ErrorOverlay.setEditorHandler(function (errorLocation) { | ||
let file = `${errorLocation.fileName}:${errorLocation.lineNumber || 1}:${errorLocation.colNumber || 1}`; | ||
fetch(`/__parcel_launch_editor?file=${encodeURIComponent(file)}`); | ||
fetch(import.meta.devServer + `/__parcel_launch_editor?file=${encodeURIComponent(file)}`); | ||
}); | ||
@@ -51,0 +51,0 @@ ErrorOverlay.startReportingRuntimeErrors({ |
@@ -52,3 +52,3 @@ "use strict"; | ||
if (map) { | ||
map.offsetLines(1, 6); | ||
map.offsetLines(1, 7); | ||
asset.setMap(map); | ||
@@ -55,0 +55,0 @@ } |
{ | ||
"name": "@parcel/transformer-react-refresh-wrap", | ||
"version": "2.0.0-canary.1776+53633df12", | ||
"version": "2.0.0-canary.1777+2e67b94b7", | ||
"license": "MIT", | ||
@@ -20,11 +20,11 @@ "publishConfig": { | ||
"node": ">= 16.0.0", | ||
"parcel": "^2.0.0-canary.1774+53633df12" | ||
"parcel": "^2.0.0-canary.1775+2e67b94b7" | ||
}, | ||
"dependencies": { | ||
"@parcel/plugin": "2.0.0-canary.1776+53633df12", | ||
"@parcel/utils": "2.0.0-canary.1776+53633df12", | ||
"react-error-overlay": "6.0.9", | ||
"@parcel/error-overlay": "2.13.4-canary.3400+2e67b94b7", | ||
"@parcel/plugin": "2.0.0-canary.1777+2e67b94b7", | ||
"@parcel/utils": "2.0.0-canary.1777+2e67b94b7", | ||
"react-refresh": ">=0.9 <=0.16" | ||
}, | ||
"gitHead": "53633df12ad9bba5d6ed5360e935fde8de0342fe" | ||
"gitHead": "2e67b94b7ea7fda6069793cad506e4375d9ac8b3" | ||
} |
@@ -46,3 +46,3 @@ var Refresh = require('react-refresh/runtime'); | ||
if (typeof window !== 'undefined') { | ||
let ErrorOverlay = require('react-error-overlay'); | ||
let ErrorOverlay = require('@parcel/error-overlay'); | ||
ErrorOverlay.setEditorHandler(function editorHandler(errorLocation) { | ||
@@ -52,3 +52,6 @@ let file = `${errorLocation.fileName}:${ | ||
}:${errorLocation.colNumber || 1}`; | ||
fetch(`/__parcel_launch_editor?file=${encodeURIComponent(file)}`); | ||
fetch( | ||
import.meta.devServer + | ||
`/__parcel_launch_editor?file=${encodeURIComponent(file)}`, | ||
); | ||
}); | ||
@@ -55,0 +58,0 @@ |
@@ -59,3 +59,3 @@ // @flow | ||
if (map) { | ||
map.offsetLines(1, 6); | ||
map.offsetLines(1, 7); | ||
asset.setMap(map); | ||
@@ -62,0 +62,0 @@ } |
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
19749
524
- Removedreact-error-overlay@6.0.9
- Removedreact-error-overlay@6.0.9(transitive)