@hot-updater/datadog-plugin 1.0.0-rc.2 → 1.0.0-rc.21
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
|
@@ -51,8 +51,8 @@ const withDatadog = (buildFn, config) => (args) => {
|
|
|
51
51
|
const javascriptBundleSourcemapPath = ensureFilePath(files, result.buildPath, javascriptBundleSourcemapFilename);
|
|
52
52
|
const hermesBundlePath = ensureFilePath(files, result.buildPath, hermesBundleFilename);
|
|
53
53
|
const hermesBundleSourcemapPath = ensureFilePath(files, result.buildPath, hermesBundleSourcemapFilename);
|
|
54
|
-
if (!javascriptBundlePath || !javascriptBundleSourcemapPath) throw new Error("Sourcemap or original bundle not found. Please enable sourcemap in your build
|
|
55
|
-
if (!!hermesBundlePath !== !!hermesBundleSourcemapPath) throw new Error("Hermes bundle or sourcemap not found. Please enable Hermes in your build
|
|
54
|
+
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 })");
|
|
55
|
+
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 })");
|
|
56
56
|
const selectedBundleFilePath = hermesBundlePath ?? javascriptBundlePath;
|
|
57
57
|
const selectedSourcemapFilePath = hermesBundleSourcemapPath ?? javascriptBundleSourcemapPath;
|
|
58
58
|
const tmpDirBundleFilePath = path.default.join(tmpDir, javascriptBundleFilename);
|
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/withDatadog.d.ts
|
|
3
3
|
interface WithDatadogConfig {
|
|
4
4
|
buildNumber: string;
|
|
@@ -6,6 +6,6 @@ interface WithDatadogConfig {
|
|
|
6
6
|
repositoryUrl?: string;
|
|
7
7
|
service: string;
|
|
8
8
|
}
|
|
9
|
-
declare const withDatadog: (buildFn: (args:
|
|
9
|
+
declare const withDatadog: (buildFn: (args: BuildAdapterArgs) => BuildAdapter, config: WithDatadogConfig) => (args: BuildAdapterArgs) => BuildAdapter;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { withDatadog };
|
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/withDatadog.d.ts
|
|
3
3
|
interface WithDatadogConfig {
|
|
4
4
|
buildNumber: string;
|
|
@@ -6,6 +6,6 @@ interface WithDatadogConfig {
|
|
|
6
6
|
repositoryUrl?: string;
|
|
7
7
|
service: string;
|
|
8
8
|
}
|
|
9
|
-
declare const withDatadog: (buildFn: (args:
|
|
9
|
+
declare const withDatadog: (buildFn: (args: BuildAdapterArgs) => BuildAdapter, config: WithDatadogConfig) => (args: BuildAdapterArgs) => BuildAdapter;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { withDatadog };
|
package/dist/index.mjs
CHANGED
|
@@ -25,8 +25,8 @@ const withDatadog = (buildFn, config) => (args) => {
|
|
|
25
25
|
const javascriptBundleSourcemapPath = ensureFilePath(files, result.buildPath, javascriptBundleSourcemapFilename);
|
|
26
26
|
const hermesBundlePath = ensureFilePath(files, result.buildPath, hermesBundleFilename);
|
|
27
27
|
const hermesBundleSourcemapPath = ensureFilePath(files, result.buildPath, hermesBundleSourcemapFilename);
|
|
28
|
-
if (!javascriptBundlePath || !javascriptBundleSourcemapPath) throw new Error("Sourcemap or original bundle not found. Please enable sourcemap in your build
|
|
29
|
-
if (!!hermesBundlePath !== !!hermesBundleSourcemapPath) throw new Error("Hermes bundle or sourcemap not found. Please enable Hermes in your build
|
|
28
|
+
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 })");
|
|
29
|
+
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 })");
|
|
30
30
|
const selectedBundleFilePath = hermesBundlePath ?? javascriptBundlePath;
|
|
31
31
|
const selectedSourcemapFilePath = hermesBundleSourcemapPath ?? javascriptBundleSourcemapPath;
|
|
32
32
|
const tmpDirBundleFilePath = path.join(tmpDir, javascriptBundleFilename);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hot-updater/datadog-plugin",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.21",
|
|
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/core": "1.0.0-rc.
|
|
47
|
+
"@hot-updater/protocol": "1.0.0-rc.21",
|
|
48
|
+
"@hot-updater/plugin-core": "1.0.0-rc.21"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@datadog/datadog-ci": "~5.12.1",
|