braintrust 3.7.1 → 3.9.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/dev/dist/index.d.mts +228 -5
- package/dev/dist/index.d.ts +228 -5
- package/dev/dist/index.js +6259 -1261
- package/dev/dist/index.mjs +6161 -1163
- package/dist/auto-instrumentations/bundler/esbuild.cjs +995 -55
- package/dist/auto-instrumentations/bundler/esbuild.mjs +2 -2
- package/dist/auto-instrumentations/bundler/rollup.cjs +995 -55
- package/dist/auto-instrumentations/bundler/rollup.mjs +2 -2
- package/dist/auto-instrumentations/bundler/vite.cjs +995 -55
- package/dist/auto-instrumentations/bundler/vite.mjs +2 -2
- package/dist/auto-instrumentations/bundler/webpack-loader.cjs +995 -55
- package/dist/auto-instrumentations/bundler/webpack-loader.d.ts +11 -9
- package/dist/auto-instrumentations/bundler/webpack.cjs +995 -55
- package/dist/auto-instrumentations/bundler/webpack.mjs +2 -2
- package/dist/auto-instrumentations/{chunk-NY4CGTN6.mjs → chunk-G7F6HZGE.mjs} +9 -1
- package/dist/auto-instrumentations/{chunk-EVUKFMHG.mjs → chunk-ITP7RAUY.mjs} +21 -3
- package/dist/auto-instrumentations/chunk-KIMMUFAK.mjs +1781 -0
- package/dist/auto-instrumentations/{chunk-VLEJ5AEK.mjs → chunk-P5YLNB2A.mjs} +21 -3
- package/dist/auto-instrumentations/hook.mjs +1206 -82
- package/dist/auto-instrumentations/index.cjs +1161 -55
- package/dist/auto-instrumentations/index.d.mts +22 -1
- package/dist/auto-instrumentations/index.d.ts +22 -1
- package/dist/auto-instrumentations/index.mjs +172 -1
- package/dist/auto-instrumentations/loader/cjs-patch.cjs +34 -6
- package/dist/auto-instrumentations/loader/cjs-patch.d.mts +1 -0
- package/dist/auto-instrumentations/loader/cjs-patch.d.ts +1 -0
- package/dist/auto-instrumentations/loader/cjs-patch.mjs +15 -5
- package/dist/auto-instrumentations/loader/esm-hook.mjs +10 -4
- package/dist/auto-instrumentations/loader/get-package-version.cjs +20 -2
- package/dist/auto-instrumentations/loader/get-package-version.mjs +1 -1
- package/dist/browser.d.mts +501 -18
- package/dist/browser.d.ts +501 -18
- package/dist/browser.js +6985 -1211
- package/dist/browser.mjs +6985 -1211
- package/dist/cli.js +6160 -1133
- package/dist/edge-light.d.mts +1 -1
- package/dist/edge-light.d.ts +1 -1
- package/dist/edge-light.js +16054 -10191
- package/dist/edge-light.mjs +16054 -10191
- package/dist/index.d.mts +501 -18
- package/dist/index.d.ts +501 -18
- package/dist/index.js +7144 -1370
- package/dist/index.mjs +6985 -1211
- package/dist/instrumentation/index.d.mts +17 -0
- package/dist/instrumentation/index.d.ts +17 -0
- package/dist/instrumentation/index.js +5929 -1053
- package/dist/instrumentation/index.mjs +5929 -1053
- package/dist/workerd.d.mts +1 -1
- package/dist/workerd.d.ts +1 -1
- package/dist/workerd.js +16054 -10191
- package/dist/workerd.mjs +16054 -10191
- package/package.json +13 -8
- package/util/dist/index.d.mts +42 -1
- package/util/dist/index.d.ts +42 -1
- package/util/dist/index.js +5 -1
- package/util/dist/index.mjs +4 -0
- package/dist/auto-instrumentations/chunk-YCKND42U.mjs +0 -839
|
@@ -23,21 +23,23 @@ interface BundlerPluginOptions {
|
|
|
23
23
|
* Webpack loader for auto-instrumentation.
|
|
24
24
|
*
|
|
25
25
|
* This is a webpack loader (not a plugin) for compatibility with tools that only support loaders,
|
|
26
|
-
* such as Next.js Turbopack.
|
|
26
|
+
* such as Next.js Turbopack.
|
|
27
27
|
*
|
|
28
28
|
* Usage in next.config.js / next.config.ts:
|
|
29
29
|
* ```javascript
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
30
|
+
* const nextConfig: NextConfig = {
|
|
31
|
+
* turbopack: {
|
|
32
|
+
* rules: {
|
|
33
|
+
* // Apply the loader to all JS/MJS/CJS files from node_modules.
|
|
34
|
+
* // condition: "foreign" restricts the rule to third-party packages only.
|
|
35
|
+
* "*.{js,mjs,cjs}": {
|
|
36
|
+
* condition: "foreign",
|
|
37
|
+
* loaders: [{ loader: require.resolve("braintrust/webpack-loader") }],
|
|
38
|
+
* },
|
|
39
|
+
* },
|
|
36
40
|
* },
|
|
37
41
|
* };
|
|
38
42
|
* ```
|
|
39
|
-
*
|
|
40
|
-
* For browser builds, the loader automatically uses 'dc-browser' for diagnostics_channel polyfill.
|
|
41
43
|
*/
|
|
42
44
|
|
|
43
45
|
/**
|