braintrust 3.11.0 → 3.12.0
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/README.md +8 -8
- package/dev/dist/index.d.mts +1 -1
- package/dev/dist/index.d.ts +1 -1
- package/dev/dist/index.js +2607 -316
- package/dev/dist/index.mjs +2388 -97
- package/dist/apply-auto-instrumentation.browser.d.mts +2 -0
- package/dist/apply-auto-instrumentation.browser.d.ts +2 -0
- package/dist/apply-auto-instrumentation.browser.js +18 -0
- package/dist/apply-auto-instrumentation.browser.mjs +0 -0
- package/dist/apply-auto-instrumentation.d.mts +2 -0
- package/dist/apply-auto-instrumentation.d.ts +2 -0
- package/dist/apply-auto-instrumentation.js +2534 -0
- package/dist/apply-auto-instrumentation.mjs +2534 -0
- package/dist/auto-instrumentations/bundler/esbuild.cjs +1802 -1283
- package/dist/auto-instrumentations/bundler/esbuild.d.mts +9 -5
- package/dist/auto-instrumentations/bundler/esbuild.d.ts +9 -5
- package/dist/auto-instrumentations/bundler/esbuild.mjs +10 -2
- package/dist/auto-instrumentations/bundler/next.cjs +3268 -0
- package/dist/auto-instrumentations/bundler/next.d.mts +3 -0
- package/dist/auto-instrumentations/bundler/next.d.ts +3 -0
- package/dist/auto-instrumentations/bundler/next.mjs +189 -0
- package/dist/auto-instrumentations/bundler/rollup.cjs +1802 -1283
- package/dist/auto-instrumentations/bundler/rollup.d.mts +9 -5
- package/dist/auto-instrumentations/bundler/rollup.d.ts +9 -5
- package/dist/auto-instrumentations/bundler/rollup.mjs +10 -2
- package/dist/auto-instrumentations/bundler/vite.cjs +1802 -1283
- package/dist/auto-instrumentations/bundler/vite.d.mts +9 -5
- package/dist/auto-instrumentations/bundler/vite.d.ts +9 -5
- package/dist/auto-instrumentations/bundler/vite.mjs +10 -2
- package/dist/auto-instrumentations/bundler/webpack-loader.cjs +1860 -1308
- package/dist/auto-instrumentations/bundler/webpack-loader.d.ts +3 -3
- package/dist/auto-instrumentations/bundler/webpack.cjs +1802 -1283
- package/dist/auto-instrumentations/bundler/webpack.d.mts +9 -5
- package/dist/auto-instrumentations/bundler/webpack.d.ts +9 -5
- package/dist/auto-instrumentations/bundler/webpack.mjs +6 -6
- package/dist/auto-instrumentations/{chunk-DIV5TO4S.mjs → chunk-2DPA74KK.mjs} +337 -1
- package/dist/auto-instrumentations/chunk-73BZUKVI.mjs +300 -0
- package/dist/auto-instrumentations/chunk-AFXRW7I7.mjs +18 -0
- package/dist/auto-instrumentations/hook.mjs +1712 -1460
- package/dist/auto-instrumentations/index.cjs +93 -0
- package/dist/auto-instrumentations/index.d.mts +5 -1
- package/dist/auto-instrumentations/index.d.ts +5 -1
- package/dist/auto-instrumentations/index.mjs +6 -247
- package/dist/auto-instrumentations/loader/esm-hook.mjs +19 -2
- package/dist/auto-instrumentations/plugin-D7nDswtC.d.mts +44 -0
- package/dist/auto-instrumentations/plugin-D7nDswtC.d.ts +44 -0
- package/dist/browser.d.mts +120 -31
- package/dist/browser.d.ts +120 -31
- package/dist/browser.js +2395 -123
- package/dist/browser.mjs +2395 -123
- package/dist/chunk-BW4DF4CY.js +816 -0
- package/dist/chunk-MSLBGITU.mjs +816 -0
- package/dist/cli.js +2407 -96
- package/dist/edge-light.d.mts +1 -1
- package/dist/edge-light.d.ts +1 -1
- package/dist/edge-light.js +2395 -123
- package/dist/edge-light.mjs +2395 -123
- package/dist/index.d.mts +120 -31
- package/dist/index.d.ts +120 -31
- package/dist/index.js +3362 -1849
- package/dist/index.mjs +2505 -992
- package/dist/instrumentation/index.d.mts +7860 -48
- package/dist/instrumentation/index.d.ts +7860 -48
- package/dist/instrumentation/index.js +2395 -95
- package/dist/instrumentation/index.mjs +2394 -95
- package/dist/workerd.d.mts +1 -1
- package/dist/workerd.d.ts +1 -1
- package/dist/workerd.js +2395 -123
- package/dist/workerd.mjs +2395 -123
- package/package.json +23 -3
- package/util/dist/index.js +6 -0
- package/util/dist/index.mjs +6 -0
- package/dist/auto-instrumentations/chunk-G6ZWXGZB.mjs +0 -116
- package/dist/auto-instrumentations/plugin-Df3qKIl2.d.mts +0 -22
- package/dist/auto-instrumentations/plugin-Df3qKIl2.d.ts +0 -22
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { B as BundlerPluginOptions } from '../plugin-
|
|
1
|
+
import { EsbuildPlugin } from 'unplugin';
|
|
2
|
+
import { L as LegacyBundlerPluginOptions, B as BundlerPluginOptions } from '../plugin-D7nDswtC.mjs';
|
|
3
3
|
import '@apm-js-collab/code-transformer';
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
declare function braintrustEsbuildPlugin(options?: BundlerPluginOptions): EsbuildPlugin;
|
|
6
|
+
type EsbuildPluginOptions = LegacyBundlerPluginOptions;
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated Use {@link braintrustEsbuildPlugin} instead.
|
|
9
|
+
*/
|
|
10
|
+
declare const esbuildPlugin: (options: LegacyBundlerPluginOptions) => EsbuildPlugin;
|
|
7
11
|
|
|
8
|
-
export { type EsbuildPluginOptions, esbuildPlugin };
|
|
12
|
+
export { type EsbuildPluginOptions, braintrustEsbuildPlugin, esbuildPlugin };
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { B as BundlerPluginOptions } from '../plugin-
|
|
1
|
+
import { EsbuildPlugin } from 'unplugin';
|
|
2
|
+
import { L as LegacyBundlerPluginOptions, B as BundlerPluginOptions } from '../plugin-D7nDswtC.js';
|
|
3
3
|
import '@apm-js-collab/code-transformer';
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
declare function braintrustEsbuildPlugin(options?: BundlerPluginOptions): EsbuildPlugin;
|
|
6
|
+
type EsbuildPluginOptions = LegacyBundlerPluginOptions;
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated Use {@link braintrustEsbuildPlugin} instead.
|
|
9
|
+
*/
|
|
10
|
+
declare const esbuildPlugin: (options: LegacyBundlerPluginOptions) => EsbuildPlugin;
|
|
7
11
|
|
|
8
|
-
export { type EsbuildPluginOptions, esbuildPlugin };
|
|
12
|
+
export { type EsbuildPluginOptions, braintrustEsbuildPlugin, esbuildPlugin };
|
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
unplugin
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-73BZUKVI.mjs";
|
|
4
|
+
import "../chunk-2DPA74KK.mjs";
|
|
5
5
|
|
|
6
6
|
// src/auto-instrumentations/bundler/esbuild.ts
|
|
7
|
+
function braintrustEsbuildPlugin(options = {}) {
|
|
8
|
+
const { useDiagnosticChannelCompatShim = false, ...pluginOptions } = options;
|
|
9
|
+
return unplugin.esbuild({
|
|
10
|
+
...pluginOptions,
|
|
11
|
+
browser: useDiagnosticChannelCompatShim
|
|
12
|
+
});
|
|
13
|
+
}
|
|
7
14
|
var esbuildPlugin = unplugin.esbuild;
|
|
8
15
|
export {
|
|
16
|
+
braintrustEsbuildPlugin,
|
|
9
17
|
esbuildPlugin
|
|
10
18
|
};
|