@hot-updater/bugsnag-plugin 1.0.0-rc.2 → 1.0.0-rc.22
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 +2 -2
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -47,8 +47,8 @@ const withBugsnag = (buildFn, config) => (args) => {
|
|
|
47
47
|
const javascriptBundleSourcemapPath = ensureFilePath(files, result.buildPath, javascriptBundleSourcemapFilename);
|
|
48
48
|
const hermesBundlePath = ensureFilePath(files, result.buildPath, hermesBundleFilename);
|
|
49
49
|
const hermesBundleSourcemapPath = ensureFilePath(files, result.buildPath, hermesBundleSourcemapFilename);
|
|
50
|
-
if (!javascriptBundlePath || !javascriptBundleSourcemapPath) throw new Error("Sourcemap or original bundle not found. Please enable sourcemap in your build
|
|
51
|
-
if (!!hermesBundlePath !== !!hermesBundleSourcemapPath) throw new Error("Hermes bundle or sourcemap not found. Please enable Hermes in your build
|
|
50
|
+
if (!javascriptBundlePath || !javascriptBundleSourcemapPath) throw new Error("Sourcemap or original bundle not found. Please enable sourcemap in your build adapter. e.g build: bare({ sourcemap: true })");
|
|
51
|
+
if (!!hermesBundlePath !== !!hermesBundleSourcemapPath) throw new Error("Hermes bundle or sourcemap not found. Please enable Hermes in your build adapter. e.g build: bare({ hermes: true })");
|
|
52
52
|
const selectedBundleFilePath = hermesBundlePath ?? javascriptBundlePath;
|
|
53
53
|
const selectedSourcemapFilePath = hermesBundleSourcemapPath ?? javascriptBundleSourcemapPath;
|
|
54
54
|
await (0, execa.execa)("npx", [
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BuildAdapter, BuildAdapterArgs } from "@hot-updater/plugin-core";
|
|
2
2
|
//#region src/withBugsnag.d.ts
|
|
3
3
|
interface WithBugsnagConfig {
|
|
4
4
|
/**
|
|
@@ -24,6 +24,6 @@ interface WithBugsnagConfig {
|
|
|
24
24
|
*/
|
|
25
25
|
projectRoot?: string;
|
|
26
26
|
}
|
|
27
|
-
declare const withBugsnag: (buildFn: (args:
|
|
27
|
+
declare const withBugsnag: (buildFn: (args: BuildAdapterArgs) => BuildAdapter, config: WithBugsnagConfig) => (args: BuildAdapterArgs) => BuildAdapter;
|
|
28
28
|
//#endregion
|
|
29
29
|
export { withBugsnag };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BuildAdapter, BuildAdapterArgs } from "@hot-updater/plugin-core";
|
|
2
2
|
//#region src/withBugsnag.d.ts
|
|
3
3
|
interface WithBugsnagConfig {
|
|
4
4
|
/**
|
|
@@ -24,6 +24,6 @@ interface WithBugsnagConfig {
|
|
|
24
24
|
*/
|
|
25
25
|
projectRoot?: string;
|
|
26
26
|
}
|
|
27
|
-
declare const withBugsnag: (buildFn: (args:
|
|
27
|
+
declare const withBugsnag: (buildFn: (args: BuildAdapterArgs) => BuildAdapter, config: WithBugsnagConfig) => (args: BuildAdapterArgs) => BuildAdapter;
|
|
28
28
|
//#endregion
|
|
29
29
|
export { withBugsnag };
|
package/dist/index.mjs
CHANGED
|
@@ -22,8 +22,8 @@ const withBugsnag = (buildFn, config) => (args) => {
|
|
|
22
22
|
const javascriptBundleSourcemapPath = ensureFilePath(files, result.buildPath, javascriptBundleSourcemapFilename);
|
|
23
23
|
const hermesBundlePath = ensureFilePath(files, result.buildPath, hermesBundleFilename);
|
|
24
24
|
const hermesBundleSourcemapPath = ensureFilePath(files, result.buildPath, hermesBundleSourcemapFilename);
|
|
25
|
-
if (!javascriptBundlePath || !javascriptBundleSourcemapPath) throw new Error("Sourcemap or original bundle not found. Please enable sourcemap in your build
|
|
26
|
-
if (!!hermesBundlePath !== !!hermesBundleSourcemapPath) throw new Error("Hermes bundle or sourcemap not found. Please enable Hermes in your build
|
|
25
|
+
if (!javascriptBundlePath || !javascriptBundleSourcemapPath) throw new Error("Sourcemap or original bundle not found. Please enable sourcemap in your build adapter. e.g build: bare({ sourcemap: true })");
|
|
26
|
+
if (!!hermesBundlePath !== !!hermesBundleSourcemapPath) throw new Error("Hermes bundle or sourcemap not found. Please enable Hermes in your build adapter. e.g build: bare({ hermes: true })");
|
|
27
27
|
const selectedBundleFilePath = hermesBundlePath ?? javascriptBundlePath;
|
|
28
28
|
const selectedSourcemapFilePath = hermesBundleSourcemapPath ?? javascriptBundleSourcemapPath;
|
|
29
29
|
await execa("npx", [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hot-updater/bugsnag-plugin",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.22",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "React Native OTA solution for self-hosted",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"execa": "9.5.2",
|
|
47
|
-
"@hot-updater/
|
|
48
|
-
"@hot-updater/plugin-core": "1.0.0-rc.
|
|
47
|
+
"@hot-updater/protocol": "1.0.0-rc.22",
|
|
48
|
+
"@hot-updater/plugin-core": "1.0.0-rc.22"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@bugsnag/cli": "~3.10.4",
|