@hot-updater/sentry-plugin 0.18.3 → 0.18.5
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/dist/index.cjs +3 -1
- package/dist/index.js +3 -1
- package/package.json +4 -7
package/dist/index.cjs
CHANGED
|
@@ -30,9 +30,11 @@ const __sentry_cli = __toESM(require("@sentry/cli"));
|
|
|
30
30
|
const injectDebugIdToHbcMap = (jsMapPath, hbcMapPath) => {
|
|
31
31
|
if (!hbcMapPath) return jsMapPath;
|
|
32
32
|
const jsMap = JSON.parse(fs.default.readFileSync(jsMapPath, "utf8"));
|
|
33
|
-
const debugId = jsMap.debug_id;
|
|
33
|
+
const debugId = jsMap.debug_id || jsMap.debugId;
|
|
34
|
+
if (!debugId) throw new Error("debugId from Source map not found. It seems hot-updater doesn't support Sentry plugin with this bundle framework. Please pile issue on Github.");
|
|
34
35
|
const hbcMap = JSON.parse(fs.default.readFileSync(hbcMapPath, "utf8"));
|
|
35
36
|
hbcMap.debug_id = debugId;
|
|
37
|
+
hbcMap.debugId = debugId;
|
|
36
38
|
fs.default.writeFileSync(hbcMapPath, JSON.stringify(hbcMap, null, 2));
|
|
37
39
|
fs.default.unlinkSync(jsMapPath);
|
|
38
40
|
fs.default.renameSync(hbcMapPath, jsMapPath);
|
package/dist/index.js
CHANGED
|
@@ -7,9 +7,11 @@ import SentryCli from "@sentry/cli";
|
|
|
7
7
|
const injectDebugIdToHbcMap = (jsMapPath, hbcMapPath) => {
|
|
8
8
|
if (!hbcMapPath) return jsMapPath;
|
|
9
9
|
const jsMap = JSON.parse(fs.readFileSync(jsMapPath, "utf8"));
|
|
10
|
-
const debugId = jsMap.debug_id;
|
|
10
|
+
const debugId = jsMap.debug_id || jsMap.debugId;
|
|
11
|
+
if (!debugId) throw new Error("debugId from Source map not found. It seems hot-updater doesn't support Sentry plugin with this bundle framework. Please pile issue on Github.");
|
|
11
12
|
const hbcMap = JSON.parse(fs.readFileSync(hbcMapPath, "utf8"));
|
|
12
13
|
hbcMap.debug_id = debugId;
|
|
14
|
+
hbcMap.debugId = debugId;
|
|
13
15
|
fs.writeFileSync(hbcMapPath, JSON.stringify(hbcMap, null, 2));
|
|
14
16
|
fs.unlinkSync(jsMapPath);
|
|
15
17
|
fs.renameSync(hbcMapPath, jsMapPath);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hot-updater/sentry-plugin",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "React Native OTA solution for self-hosted",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -38,16 +38,13 @@
|
|
|
38
38
|
"access": "public"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@
|
|
42
|
-
"@hot-updater/
|
|
41
|
+
"@sentry/cli": "2.46.0",
|
|
42
|
+
"@hot-updater/core": "0.18.5",
|
|
43
|
+
"@hot-updater/plugin-core": "0.18.5"
|
|
43
44
|
},
|
|
44
45
|
"devDependencies": {
|
|
45
|
-
"@sentry/cli": "^2.43.0",
|
|
46
46
|
"@types/node": "^20.9.4"
|
|
47
47
|
},
|
|
48
|
-
"peerDependencies": {
|
|
49
|
-
"@sentry/cli": ">=1.51.1"
|
|
50
|
-
},
|
|
51
48
|
"scripts": {
|
|
52
49
|
"build": "tsdown",
|
|
53
50
|
"test:type": "tsc --noEmit"
|